From 62fd8957973865875da5511e1036515cd9a9e668 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 18 Jul 2022 18:39:08 +0000 Subject: [PATCH 1/3] feat: generating GAPIC libraries for Google Cloud Functions v2beta PiperOrigin-RevId: 459309277 Source-Link: https://github.com/googleapis/googleapis/commit/2844793f71df766526ceeee8a35c90d7ac101fbe Source-Link: https://github.com/googleapis/googleapis-gen/commit/319987cc0e8789a368e34882271a92b0717c9c8f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzE5OTg3Y2MwZTg3ODlhMzY4ZTM0ODgyMjcxYTkyYjA3MTdjOWM4ZiJ9 --- .../v2alpha/FunctionServiceGrpc.java | 1309 ------ .../functions/v2beta/FunctionServiceGrpc.java | 1302 ------ .../v1/CloudFunctionsServiceClient.java | 40 +- .../v1/CloudFunctionsServiceSettings.java | 7 +- .../cloud/functions/v1/gapic_metadata.json | 0 .../cloud/functions/v1/package-info.java | 0 .../v1/stub/CloudFunctionsServiceStub.java | 0 .../CloudFunctionsServiceStubSettings.java | 6 +- ...cCloudFunctionsServiceCallableFactory.java | 0 .../stub/GrpcCloudFunctionsServiceStub.java | 1 + ...nCloudFunctionsServiceCallableFactory.java | 0 .../HttpJsonCloudFunctionsServiceStub.java | 1 + ...oudFunctionsServiceClientHttpJsonTest.java | 0 .../v1/CloudFunctionsServiceClientTest.java | 0 .../v1/MockCloudFunctionsService.java | 0 .../v1/MockCloudFunctionsServiceImpl.java | 0 .../v1/CloudFunctionsServiceGrpc.java | 1170 ++--- .../functions/v1/CallFunctionRequest.java | 418 +- .../v1/CallFunctionRequestOrBuilder.java | 49 + .../functions/v1/CallFunctionResponse.java | 469 +- .../v1/CallFunctionResponseOrBuilder.java | 45 +- .../cloud/functions/v1/CloudFunction.java | 3830 +++++++---------- .../cloud/functions/v1/CloudFunctionName.java | 0 .../functions/v1/CloudFunctionOrBuilder.java | 404 +- .../functions/v1/CloudFunctionStatus.java | 98 +- .../functions/v1/CreateFunctionRequest.java | 485 +-- .../v1/CreateFunctionRequestOrBuilder.java | 58 + .../cloud/functions/v1/CryptoKeyName.java | 0 .../functions/v1/DeleteFunctionRequest.java | 339 +- .../v1/DeleteFunctionRequestOrBuilder.java | 29 + .../cloud/functions/v1/EventTrigger.java | 557 +-- .../functions/v1/EventTriggerOrBuilder.java | 53 +- .../cloud/functions/v1/FailurePolicy.java | 591 ++- .../functions/v1/FailurePolicyOrBuilder.java | 26 +- .../v1/FunctionsOperationsProto.java | 65 + .../cloud/functions/v1/FunctionsProto.java | 515 +++ .../v1/GenerateDownloadUrlRequest.java | 351 +- .../GenerateDownloadUrlRequestOrBuilder.java | 30 +- .../v1/GenerateDownloadUrlResponse.java | 314 +- .../GenerateDownloadUrlResponseOrBuilder.java | 27 +- .../v1/GenerateUploadUrlRequest.java | 393 +- .../v1/GenerateUploadUrlRequestOrBuilder.java | 36 +- .../v1/GenerateUploadUrlResponse.java | 314 +- .../GenerateUploadUrlResponseOrBuilder.java | 27 +- .../functions/v1/GetFunctionRequest.java | 336 +- .../v1/GetFunctionRequestOrBuilder.java | 29 + .../cloud/functions/v1/HttpsTrigger.java | 440 +- .../functions/v1/HttpsTriggerOrBuilder.java | 33 +- .../functions/v1/ListFunctionsRequest.java | 424 +- .../v1/ListFunctionsRequestOrBuilder.java | 39 +- .../functions/v1/ListFunctionsResponse.java | 570 +-- .../v1/ListFunctionsResponseOrBuilder.java | 63 +- .../cloud/functions/v1/LocationName.java | 0 .../functions/v1/OperationMetadataV1.java | 824 ++-- .../v1/OperationMetadataV1OrBuilder.java | 79 +- .../cloud/functions/v1/OperationType.java | 93 +- .../cloud/functions/v1/SecretEnvVar.java | 540 +-- .../functions/v1/SecretEnvVarOrBuilder.java | 54 +- .../cloud/functions/v1/SecretVolume.java | 1005 ++--- .../functions/v1/SecretVolumeOrBuilder.java | 63 +- .../cloud/functions/v1/SourceRepository.java | 380 +- .../v1/SourceRepositoryOrBuilder.java | 36 +- .../functions/v1/UpdateFunctionRequest.java | 477 +- .../v1/UpdateFunctionRequestOrBuilder.java | 46 +- .../google/cloud/functions/v1/functions.proto | 0 .../cloud/functions/v1/operations.proto | 0 .../callfunction/AsyncCallFunction.java | 0 .../callfunction/SyncCallFunction.java | 0 ...ncCallFunctionCloudfunctionnameString.java | 6 +- .../SyncCallFunctionStringString.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createfunction/AsyncCreateFunction.java | 0 .../AsyncCreateFunctionLRO.java | 0 .../createfunction/SyncCreateFunction.java | 0 ...eateFunctionLocationnameCloudfunction.java | 6 +- ...SyncCreateFunctionStringCloudfunction.java | 3 +- .../deletefunction/AsyncDeleteFunction.java | 0 .../AsyncDeleteFunctionLRO.java | 0 .../deletefunction/SyncDeleteFunction.java | 1 + .../SyncDeleteFunctionCloudfunctionname.java | 1 + .../SyncDeleteFunctionString.java | 1 + .../AsyncGenerateDownloadUrl.java | 0 .../SyncGenerateDownloadUrl.java | 0 .../AsyncGenerateUploadUrl.java | 0 .../SyncGenerateUploadUrl.java | 0 .../getfunction/AsyncGetFunction.java | 0 .../getfunction/SyncGetFunction.java | 0 .../SyncGetFunctionCloudfunctionname.java | 0 .../getfunction/SyncGetFunctionString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../listfunctions/AsyncListFunctions.java | 0 .../AsyncListFunctionsPaged.java | 0 .../listfunctions/SyncListFunctions.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../updatefunction/AsyncUpdateFunction.java | 0 .../AsyncUpdateFunctionLRO.java | 0 .../updatefunction/SyncUpdateFunction.java | 0 .../SyncUpdateFunctionCloudfunction.java | 0 .../getfunction/SyncGetFunction.java | 0 .../getfunction/SyncGetFunction.java | 0 .../functions/v2/FunctionServiceClient.java | 1570 +++++++ .../functions/v2/FunctionServiceSettings.java | 377 ++ .../cloud/functions/v2/gapic_metadata.json | 54 + .../cloud/functions/v2/package-info.java | 45 + .../v2/stub/FunctionServiceStub.java | 146 + .../v2/stub/FunctionServiceStubSettings.java | 864 ++++ .../GrpcFunctionServiceCallableFactory.java | 113 + .../v2/stub/GrpcFunctionServiceStub.java | 585 +++ ...ttpJsonFunctionServiceCallableFactory.java | 105 + .../v2/stub/HttpJsonFunctionServiceStub.java | 876 ++++ .../v2/FunctionServiceClientHttpJsonTest.java | 1006 +++++ .../v2/FunctionServiceClientTest.java | 918 ++++ .../functions/v2/MockFunctionService.java | 59 + .../functions/v2/MockFunctionServiceImpl.java | 230 + .../cloud/functions/v2/MockIAMPolicy.java | 59 + .../cloud/functions/v2/MockIAMPolicyImpl.java | 127 + .../cloud/functions/v2/MockLocations.java | 59 + .../cloud/functions/v2/MockLocationsImpl.java | 83 + .../functions/v2/FunctionServiceGrpc.java | 1021 +++++ .../cloud/functions/v2/BuildConfig.java | 2269 ++++++++++ .../functions/v2/BuildConfigOrBuilder.java | 277 ++ .../functions/v2/CreateFunctionRequest.java | 1025 +++++ .../v2/CreateFunctionRequestOrBuilder.java | 84 + .../functions/v2/DeleteFunctionRequest.java | 595 +++ .../v2/DeleteFunctionRequestOrBuilder.java | 29 + .../cloud/functions/v2/Environment.java | 150 + .../cloud/functions/v2/EventFilter.java | 948 ++++ .../functions/v2/EventFilterOrBuilder.java | 75 + .../cloud/functions/v2/EventTrigger.java | 2261 ++++++++++ .../functions/v2/EventTriggerOrBuilder.java | 226 + .../google/cloud/functions/v2/Function.java | 2969 +++++++++++++ .../cloud/functions/v2/FunctionName.java | 223 + .../cloud/functions/v2/FunctionOrBuilder.java | 306 ++ .../cloud/functions/v2/FunctionsProto.java | 648 +++ .../v2/GenerateDownloadUrlRequest.java | 602 +++ .../GenerateDownloadUrlRequestOrBuilder.java | 31 + .../v2/GenerateDownloadUrlResponse.java | 602 +++ .../GenerateDownloadUrlResponseOrBuilder.java | 31 + .../v2/GenerateUploadUrlRequest.java | 602 +++ .../v2/GenerateUploadUrlRequestOrBuilder.java | 31 + .../v2/GenerateUploadUrlResponse.java | 905 ++++ .../GenerateUploadUrlResponseOrBuilder.java | 75 + .../functions/v2/GetFunctionRequest.java | 595 +++ .../v2/GetFunctionRequestOrBuilder.java | 29 + .../functions/v2/ListFunctionsRequest.java | 1250 ++++++ .../v2/ListFunctionsRequestOrBuilder.java | 121 + .../functions/v2/ListFunctionsResponse.java | 1302 ++++++ .../v2/ListFunctionsResponseOrBuilder.java | 120 + .../functions/v2/ListRuntimesRequest.java | 775 ++++ .../v2/ListRuntimesRequestOrBuilder.java | 53 + .../functions/v2/ListRuntimesResponse.java | 2461 +++++++++++ .../v2/ListRuntimesResponseOrBuilder.java | 53 + .../cloud/functions/v2/LocationName.java | 192 + .../cloud/functions/v2/OperationMetadata.java | 2337 ++++++++++ .../v2/OperationMetadataOrBuilder.java | 227 + .../google/cloud/functions/v2/RepoSource.java | 1793 ++++++++ .../functions/v2/RepoSourceOrBuilder.java | 189 + .../cloud/functions/v2/SecretEnvVar.java | 1132 +++++ .../functions/v2/SecretEnvVarOrBuilder.java | 99 + .../cloud/functions/v2/SecretVolume.java | 2307 ++++++++++ .../functions/v2/SecretVolumeOrBuilder.java | 135 + .../cloud/functions/v2/ServiceConfig.java | 3687 ++++++++++++++++ .../functions/v2/ServiceConfigOrBuilder.java | 395 ++ .../com/google/cloud/functions/v2/Source.java | 1036 +++++ .../cloud/functions/v2/SourceOrBuilder.java | 68 + .../cloud/functions/v2/SourceProvenance.java | 927 ++++ .../v2/SourceProvenanceOrBuilder.java | 69 + .../com/google/cloud/functions/v2/Stage.java | 1993 +++++++++ .../cloud/functions/v2/StageOrBuilder.java | 151 + .../cloud/functions/v2/StateMessage.java | 1047 +++++ .../functions/v2/StateMessageOrBuilder.java | 68 + .../cloud/functions/v2/StorageSource.java | 874 ++++ .../functions/v2/StorageSourceOrBuilder.java | 68 + .../functions/v2/UpdateFunctionRequest.java | 925 ++++ .../v2/UpdateFunctionRequestOrBuilder.java | 69 + .../google/cloud/functions/v2/functions.proto | 1037 +++++ .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../createfunction/AsyncCreateFunction.java | 50 + .../AsyncCreateFunctionLRO.java | 50 + .../createfunction/SyncCreateFunction.java | 45 + ...ateFunctionLocationnameFunctionString.java | 42 + ...yncCreateFunctionStringFunctionString.java | 42 + .../deletefunction/AsyncDeleteFunction.java | 47 + .../AsyncDeleteFunctionLRO.java | 48 + .../deletefunction/SyncDeleteFunction.java | 43 + .../SyncDeleteFunctionFunctionname.java | 39 + .../SyncDeleteFunctionString.java | 39 + .../AsyncGenerateDownloadUrl.java | 47 + .../SyncGenerateDownloadUrl.java | 43 + .../AsyncGenerateUploadUrl.java | 47 + .../SyncGenerateUploadUrl.java | 43 + .../getfunction/AsyncGetFunction.java | 46 + .../getfunction/SyncGetFunction.java | 43 + .../SyncGetFunctionFunctionname.java | 39 + .../getfunction/SyncGetFunctionString.java | 39 + .../getiampolicy/AsyncGetIamPolicy.java | 48 + .../getiampolicy/SyncGetIamPolicy.java | 45 + .../listfunctions/AsyncListFunctions.java | 53 + .../AsyncListFunctionsPaged.java | 61 + .../listfunctions/SyncListFunctions.java | 49 + .../SyncListFunctionsLocationname.java | 41 + .../SyncListFunctionsString.java | 41 + .../listlocations/AsyncListLocations.java | 51 + .../AsyncListLocationsPaged.java | 59 + .../listlocations/SyncListLocations.java | 47 + .../listruntimes/AsyncListRuntimes.java | 48 + .../listruntimes/SyncListRuntimes.java | 44 + .../SyncListRuntimesLocationname.java | 39 + .../listruntimes/SyncListRuntimesString.java | 39 + .../setiampolicy/AsyncSetIamPolicy.java | 49 + .../setiampolicy/SyncSetIamPolicy.java | 46 + .../AsyncTestIamPermissions.java | 49 + .../SyncTestIamPermissions.java | 45 + .../updatefunction/AsyncUpdateFunction.java | 49 + .../AsyncUpdateFunctionLRO.java | 49 + .../updatefunction/SyncUpdateFunction.java | 44 + .../SyncUpdateFunctionFunctionFieldmask.java | 40 + .../getfunction/SyncGetFunction.java | 46 + .../getfunction/SyncGetFunction.java | 46 + .../v2alpha/FunctionServiceClient.java | 42 +- .../v2alpha/FunctionServiceSettings.java | 7 +- .../functions/v2alpha/gapic_metadata.json | 0 .../cloud/functions/v2alpha/package-info.java | 0 .../v2alpha/stub/FunctionServiceStub.java | 0 .../stub/FunctionServiceStubSettings.java | 6 +- .../GrpcFunctionServiceCallableFactory.java | 0 .../v2alpha/stub/GrpcFunctionServiceStub.java | 1 + ...ttpJsonFunctionServiceCallableFactory.java | 0 .../stub/HttpJsonFunctionServiceStub.java | 1 + .../FunctionServiceClientHttpJsonTest.java | 0 .../v2alpha/FunctionServiceClientTest.java | 0 .../v2alpha/MockFunctionService.java | 0 .../v2alpha/MockFunctionServiceImpl.java | 0 .../functions/v2alpha/MockIAMPolicy.java | 0 .../functions/v2alpha/MockIAMPolicyImpl.java | 0 .../functions/v2alpha/MockLocations.java | 0 .../functions/v2alpha/MockLocationsImpl.java | 0 .../v2alpha/FunctionServiceGrpc.java | 1021 +++++ .../cloud/functions/v2alpha/BuildConfig.java | 1176 ++--- .../v2alpha/BuildConfigOrBuilder.java | 138 +- .../v2alpha/CreateFunctionRequest.java | 567 +-- .../CreateFunctionRequestOrBuilder.java | 64 +- .../v2alpha/DeleteFunctionRequest.java | 342 +- .../DeleteFunctionRequestOrBuilder.java | 29 + .../cloud/functions/v2alpha/Environment.java | 82 +- .../cloud/functions/v2alpha/EventFilter.java | 459 +- .../v2alpha/EventFilterOrBuilder.java | 45 +- .../cloud/functions/v2alpha/EventTrigger.java | 1084 ++--- .../v2alpha/EventTriggerOrBuilder.java | 128 +- .../cloud/functions/v2alpha/Function.java | 1535 +++---- .../cloud/functions/v2alpha/FunctionName.java | 0 .../functions/v2alpha/FunctionOrBuilder.java | 166 +- .../functions/v2alpha/FunctionsProto.java | 653 +++ .../v2alpha/GenerateDownloadUrlRequest.java | 350 +- .../GenerateDownloadUrlRequestOrBuilder.java | 31 + .../v2alpha/GenerateDownloadUrlResponse.java | 332 +- .../GenerateDownloadUrlResponseOrBuilder.java | 27 +- .../v2alpha/GenerateUploadUrlRequest.java | 342 +- .../GenerateUploadUrlRequestOrBuilder.java | 31 + .../v2alpha/GenerateUploadUrlResponse.java | 419 +- .../GenerateUploadUrlResponseOrBuilder.java | 35 +- .../functions/v2alpha/GetFunctionRequest.java | 342 +- .../v2alpha/GetFunctionRequestOrBuilder.java | 29 + .../v2alpha/ListFunctionsRequest.java | 615 ++- .../ListFunctionsRequestOrBuilder.java | 65 +- .../v2alpha/ListFunctionsResponse.java | 573 +-- .../ListFunctionsResponseOrBuilder.java | 63 +- .../v2alpha/ListRuntimesRequest.java | 421 +- .../v2alpha/ListRuntimesRequestOrBuilder.java | 44 +- .../v2alpha/ListRuntimesResponse.java | 1292 ++---- .../ListRuntimesResponseOrBuilder.java | 48 +- .../cloud/functions/v2alpha/LocationName.java | 0 .../functions/v2alpha/OperationMetadata.java | 1017 ++--- .../v2alpha/OperationMetadataOrBuilder.java | 99 +- .../cloud/functions/v2alpha/RepoSource.java | 827 ++-- .../v2alpha/RepoSourceOrBuilder.java | 84 +- .../cloud/functions/v2alpha/SecretEnvVar.java | 543 +-- .../v2alpha/SecretEnvVarOrBuilder.java | 54 +- .../cloud/functions/v2alpha/SecretVolume.java | 1101 ++--- .../v2alpha/SecretVolumeOrBuilder.java | 60 +- .../functions/v2alpha/ServiceConfig.java | 1843 +++----- .../v2alpha/ServiceConfigOrBuilder.java | 199 +- .../cloud/functions/v2alpha/Source.java | 480 +-- .../functions/v2alpha/SourceOrBuilder.java | 34 +- .../functions/v2alpha/SourceProvenance.java | 449 +- .../v2alpha/SourceProvenanceOrBuilder.java | 34 +- .../google/cloud/functions/v2alpha/Stage.java | 859 ++-- .../functions/v2alpha/StageOrBuilder.java | 75 +- .../cloud/functions/v2alpha/StateMessage.java | 526 +-- .../v2alpha/StateMessageOrBuilder.java | 42 +- .../functions/v2alpha/StorageSource.java | 424 +- .../v2alpha/StorageSourceOrBuilder.java | 39 +- .../v2alpha/UpdateFunctionRequest.java | 480 +-- .../UpdateFunctionRequestOrBuilder.java | 46 +- .../cloud/functions/v2alpha/functions.proto | 0 .../v2beta/FunctionServiceClient.java | 42 +- .../v2beta/FunctionServiceSettings.java | 7 +- .../functions/v2beta/gapic_metadata.json | 0 .../cloud/functions/v2beta/package-info.java | 0 .../v2beta/stub/FunctionServiceStub.java | 0 .../stub/FunctionServiceStubSettings.java | 6 +- .../GrpcFunctionServiceCallableFactory.java | 0 .../v2beta/stub/GrpcFunctionServiceStub.java | 1 + ...ttpJsonFunctionServiceCallableFactory.java | 0 .../stub/HttpJsonFunctionServiceStub.java | 1 + .../FunctionServiceClientHttpJsonTest.java | 0 .../v2beta/FunctionServiceClientTest.java | 0 .../functions/v2beta/MockFunctionService.java | 0 .../v2beta/MockFunctionServiceImpl.java | 0 .../cloud/functions/v2beta/MockIAMPolicy.java | 0 .../functions/v2beta/MockIAMPolicyImpl.java | 0 .../cloud/functions/v2beta/MockLocations.java | 0 .../functions/v2beta/MockLocationsImpl.java | 0 .../functions/v2beta/FunctionServiceGrpc.java | 1021 +++++ .../cloud/functions/v2beta/BuildConfig.java | 1170 ++--- .../v2beta/BuildConfigOrBuilder.java | 138 +- .../v2beta/CreateFunctionRequest.java | 570 +-- .../CreateFunctionRequestOrBuilder.java | 64 +- .../v2beta/DeleteFunctionRequest.java | 342 +- .../DeleteFunctionRequestOrBuilder.java | 29 + .../cloud/functions/v2beta/Environment.java | 82 +- .../cloud/functions/v2beta/EventFilter.java | 459 +- .../v2beta/EventFilterOrBuilder.java | 45 +- .../cloud/functions/v2beta/EventTrigger.java | 1093 ++--- .../v2beta/EventTriggerOrBuilder.java | 128 +- .../cloud/functions/v2beta/Function.java | 1534 +++---- .../cloud/functions/v2beta/FunctionName.java | 0 .../functions/v2beta/FunctionOrBuilder.java | 166 +- .../functions/v2beta/FunctionsProto.java | 651 +++ .../v2beta/GenerateDownloadUrlRequest.java | 349 +- .../GenerateDownloadUrlRequestOrBuilder.java | 31 + .../v2beta/GenerateDownloadUrlResponse.java | 322 +- .../GenerateDownloadUrlResponseOrBuilder.java | 27 +- .../v2beta/GenerateUploadUrlRequest.java | 342 +- .../GenerateUploadUrlRequestOrBuilder.java | 31 + .../v2beta/GenerateUploadUrlResponse.java | 412 +- .../GenerateUploadUrlResponseOrBuilder.java | 35 +- .../functions/v2beta/GetFunctionRequest.java | 339 +- .../v2beta/GetFunctionRequestOrBuilder.java | 29 + .../v2beta/ListFunctionsRequest.java | 615 ++- .../v2beta/ListFunctionsRequestOrBuilder.java | 65 +- .../v2beta/ListFunctionsResponse.java | 573 +-- .../ListFunctionsResponseOrBuilder.java | 63 +- .../functions/v2beta/ListRuntimesRequest.java | 421 +- .../v2beta/ListRuntimesRequestOrBuilder.java | 44 +- .../v2beta/ListRuntimesResponse.java | 1264 ++---- .../v2beta/ListRuntimesResponseOrBuilder.java | 33 +- .../cloud/functions/v2beta/LocationName.java | 0 .../functions/v2beta/OperationMetadata.java | 1017 ++--- .../v2beta/OperationMetadataOrBuilder.java | 99 +- .../cloud/functions/v2beta/RepoSource.java | 827 ++-- .../functions/v2beta/RepoSourceOrBuilder.java | 84 +- .../cloud/functions/v2beta/SecretEnvVar.java | 540 +-- .../v2beta/SecretEnvVarOrBuilder.java | 54 +- .../cloud/functions/v2beta/SecretVolume.java | 1032 ++--- .../v2beta/SecretVolumeOrBuilder.java | 60 +- .../cloud/functions/v2beta/ServiceConfig.java | 1810 +++----- .../v2beta/ServiceConfigOrBuilder.java | 193 +- .../google/cloud/functions/v2beta/Source.java | 477 +- .../functions/v2beta/SourceOrBuilder.java | 34 +- .../functions/v2beta/SourceProvenance.java | 446 +- .../v2beta/SourceProvenanceOrBuilder.java | 34 +- .../google/cloud/functions/v2beta/Stage.java | 858 ++-- .../functions/v2beta/StageOrBuilder.java | 75 +- .../cloud/functions/v2beta/StateMessage.java | 523 +-- .../v2beta/StateMessageOrBuilder.java | 42 +- .../cloud/functions/v2beta/StorageSource.java | 420 +- .../v2beta/StorageSourceOrBuilder.java | 39 +- .../v2beta/UpdateFunctionRequest.java | 483 +-- .../UpdateFunctionRequestOrBuilder.java | 46 +- .../cloud/functions/v2beta/functions.proto | 0 .../v1/CallFunctionRequestOrBuilder.java | 79 - .../v1/CreateFunctionRequestOrBuilder.java | 97 - .../v1/DeleteFunctionRequestOrBuilder.java | 54 - .../v1/FunctionsOperationsProto.java | 87 - .../cloud/functions/v1/FunctionsProto.java | 585 --- .../v1/GetFunctionRequestOrBuilder.java | 54 - .../DeleteFunctionRequestOrBuilder.java | 54 - .../functions/v2alpha/FunctionsProto.java | 758 ---- .../GenerateDownloadUrlRequestOrBuilder.java | 56 - .../GenerateUploadUrlRequestOrBuilder.java | 56 - .../v2alpha/GetFunctionRequestOrBuilder.java | 54 - .../DeleteFunctionRequestOrBuilder.java | 54 - .../functions/v2beta/FunctionsProto.java | 756 ---- .../GenerateDownloadUrlRequestOrBuilder.java | 56 - .../GenerateUploadUrlRequestOrBuilder.java | 56 - .../v2beta/GetFunctionRequestOrBuilder.java | 54 - 395 files changed, 77998 insertions(+), 40364 deletions(-) delete mode 100644 grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java delete mode 100644 grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java (97%) rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java (97%) rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json (100%) rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/package-info.java (100%) rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java (100%) rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java (99%) rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceCallableFactory.java (100%) rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java (99%) rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceCallableFactory.java (100%) rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java (99%) rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientHttpJsonTest.java (100%) rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java (100%) rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsService.java (100%) rename {google-cloud-functions => owl-bot-staging/v1/google-cloud-functions}/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java (100%) rename {grpc-google-cloud-functions-v1 => owl-bot-staging/v1/grpc-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java (50%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java (71%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java (64%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CloudFunction.java (76%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java (100%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java (86%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java (73%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java (62%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java (100%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/EventTrigger.java (77%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java (85%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java (71%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java (63%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java (69%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java (56%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java (68%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java (51%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java (76%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java (79%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java (69%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java (55%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java (70%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java (62%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java (74%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java (73%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java (75%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java (75%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/LocationName.java (100%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java (74%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java (80%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/OperationType.java (66%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java (73%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java (72%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/SecretVolume.java (77%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java (81%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/SourceRepository.java (76%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java (77%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java (65%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java (58%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/proto/google/cloud/functions/v1/functions.proto (100%) rename {proto-google-cloud-functions-v1 => owl-bot-staging/v1/proto-google-cloud-functions-v1}/src/main/proto/google/cloud/functions/v1/operations.proto (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/AsyncCallFunction.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunction.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionCloudfunctionnameString.java (88%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionStringString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunction.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunctionLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunction.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionLocationnameCloudfunction.java (87%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionStringCloudfunction.java (94%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunction.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunctionLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunction.java (98%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionCloudfunctionname.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionString.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/SyncGenerateUploadUrl.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/AsyncGetFunction.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunction.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionCloudfunctionname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/AsyncGetIamPolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/SyncGetIamPolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctions.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctionsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/SyncListFunctions.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/AsyncSetIamPolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/SyncSetIamPolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/AsyncTestIamPermissions.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/SyncTestIamPermissions.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunction.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunctionLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunction.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunctionCloudfunction.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservicesettings/getfunction/SyncGetFunction.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/functions/v1/stub/cloudfunctionsservicestubsettings/getfunction/SyncGetFunction.java (100%) create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/gapic_metadata.json create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/package-info.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStub.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceCallableFactory.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceStub.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceCallableFactory.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceStub.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientHttpJsonTest.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientTest.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionService.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionServiceImpl.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicy.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicyImpl.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocations.java create mode 100644 owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocationsImpl.java create mode 100644 owl-bot-staging/v2/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Environment.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilterOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionName.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponseOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponseOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponseOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationName.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadataOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVarOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolumeOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenanceOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StageOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessageOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/proto/google/cloud/functions/v2/functions.proto create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunction.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunctionLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunction.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionLocationnameFunctionString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionStringFunctionString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunction.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunctionLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunction.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionFunctionname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/SyncGenerateUploadUrl.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/AsyncGetFunction.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunction.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionFunctionname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/AsyncGetIamPolicy.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/SyncGetIamPolicy.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctions.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctionsPaged.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctions.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsLocationname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocations.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocationsPaged.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/SyncListLocations.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/AsyncListRuntimes.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimes.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesLocationname.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesString.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/AsyncSetIamPolicy.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/SyncSetIamPolicy.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/AsyncTestIamPermissions.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/SyncTestIamPermissions.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunction.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunctionLRO.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunction.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunctionFunctionFieldmask.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionservicesettings/getfunction/SyncGetFunction.java create mode 100644 owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/stub/functionservicestubsettings/getfunction/SyncGetFunction.java rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java (98%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java (98%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/gapic_metadata.json (100%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/package-info.java (100%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java (100%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java (99%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceCallableFactory.java (100%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java (99%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceCallableFactory.java (100%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java (99%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientHttpJsonTest.java (100%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientTest.java (100%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionService.java (100%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionServiceImpl.java (100%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicy.java (100%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicyImpl.java (100%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/MockLocations.java (100%) rename {google-cloud-functions => owl-bot-staging/v2alpha/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/MockLocationsImpl.java (100%) create mode 100644 owl-bot-staging/v2alpha/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java (70%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java (75%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java (65%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java (56%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java (64%) create mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/Environment.java (65%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java (72%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java (69%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java (73%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java (72%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/Function.java (68%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java (100%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java (73%) create mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java (64%) create mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java (66%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java (52%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java (65%) create mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java (73%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java (77%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java (64%) create mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java (72%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java (72%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java (74%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java (74%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java (67%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java (54%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java (71%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java (58%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java (100%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java (74%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java (80%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java (75%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java (79%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java (73%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java (71%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java (75%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java (81%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java (73%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java (78%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/Source.java (71%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java (74%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java (70%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java (75%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/Stage.java (75%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java (76%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java (70%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java (63%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java (72%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java (67%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java (66%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java (60%) rename {proto-google-cloud-functions-v2alpha => owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha}/src/main/proto/google/cloud/functions/v2alpha/functions.proto (100%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java (98%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java (98%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/gapic_metadata.json (100%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/package-info.java (100%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java (100%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java (99%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceCallableFactory.java (100%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java (99%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceCallableFactory.java (100%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java (99%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java (100%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java (100%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/MockFunctionService.java (100%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/MockFunctionServiceImpl.java (100%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicy.java (100%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicyImpl.java (100%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/MockLocations.java (100%) rename {google-cloud-functions => owl-bot-staging/v2beta/google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/MockLocationsImpl.java (100%) create mode 100644 owl-bot-staging/v2beta/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java (70%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java (75%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java (65%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java (56%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java (64%) create mode 100644 owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/Environment.java (65%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java (72%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java (69%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java (73%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java (72%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/Function.java (68%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java (100%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java (73%) create mode 100644 owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java (64%) create mode 100644 owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java (67%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java (52%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java (65%) create mode 100644 owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java (73%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java (77%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java (65%) create mode 100644 owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java (72%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java (72%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java (74%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java (74%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java (67%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java (54%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java (71%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java (67%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/LocationName.java (100%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java (74%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java (80%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java (74%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java (79%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java (73%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java (71%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java (76%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java (81%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java (74%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java (79%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/Source.java (71%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java (74%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java (70%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java (75%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/Stage.java (75%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java (76%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java (70%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java (63%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java (72%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java (67%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java (65%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java (60%) rename {proto-google-cloud-functions-v2beta => owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta}/src/main/proto/google/cloud/functions/v2beta/functions.proto (100%) delete mode 100644 proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java delete mode 100644 proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java delete mode 100644 proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java delete mode 100644 proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java delete mode 100644 proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java delete mode 100644 proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java delete mode 100644 proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java delete mode 100644 proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java delete mode 100644 proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java delete mode 100644 proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java delete mode 100644 proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java delete mode 100644 proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java delete mode 100644 proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java delete mode 100644 proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java delete mode 100644 proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java delete mode 100644 proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java diff --git a/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java b/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java deleted file mode 100644 index cc0d18d5..00000000 --- a/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java +++ /dev/null @@ -1,1309 +0,0 @@ -/* - * 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. - */ -package com.google.cloud.functions.v2alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Google Cloud Functions is used to deploy functions that are executed by
- * Google in response to various events. Data connected with that event is
- * passed to a function as the input data.
- * A **function** is a resource which describes a function that should be
- * executed and how it is triggered.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/functions/v2alpha/functions.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class FunctionServiceGrpc { - - private FunctionServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.functions.v2alpha.FunctionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.GetFunctionRequest, - com.google.cloud.functions.v2alpha.Function> - getGetFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFunction", - requestType = com.google.cloud.functions.v2alpha.GetFunctionRequest.class, - responseType = com.google.cloud.functions.v2alpha.Function.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.GetFunctionRequest, - com.google.cloud.functions.v2alpha.Function> - getGetFunctionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.GetFunctionRequest, - com.google.cloud.functions.v2alpha.Function> - getGetFunctionMethod; - if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { - FunctionServiceGrpc.getGetFunctionMethod = - getGetFunctionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.GetFunctionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.Function.getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("GetFunction")) - .build(); - } - } - } - return getGetFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.ListFunctionsRequest, - com.google.cloud.functions.v2alpha.ListFunctionsResponse> - getListFunctionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFunctions", - requestType = com.google.cloud.functions.v2alpha.ListFunctionsRequest.class, - responseType = com.google.cloud.functions.v2alpha.ListFunctionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.ListFunctionsRequest, - com.google.cloud.functions.v2alpha.ListFunctionsResponse> - getListFunctionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.ListFunctionsRequest, - com.google.cloud.functions.v2alpha.ListFunctionsResponse> - getListFunctionsMethod; - if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { - FunctionServiceGrpc.getListFunctionsMethod = - getListFunctionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.ListFunctionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.ListFunctionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("ListFunctions")) - .build(); - } - } - } - return getListFunctionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.CreateFunctionRequest, - com.google.longrunning.Operation> - getCreateFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFunction", - requestType = com.google.cloud.functions.v2alpha.CreateFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.CreateFunctionRequest, - com.google.longrunning.Operation> - getCreateFunctionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.CreateFunctionRequest, - com.google.longrunning.Operation> - getCreateFunctionMethod; - if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { - FunctionServiceGrpc.getCreateFunctionMethod = - getCreateFunctionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.CreateFunctionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("CreateFunction")) - .build(); - } - } - } - return getCreateFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.UpdateFunctionRequest, - com.google.longrunning.Operation> - getUpdateFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFunction", - requestType = com.google.cloud.functions.v2alpha.UpdateFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.UpdateFunctionRequest, - com.google.longrunning.Operation> - getUpdateFunctionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.UpdateFunctionRequest, - com.google.longrunning.Operation> - getUpdateFunctionMethod; - if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { - FunctionServiceGrpc.getUpdateFunctionMethod = - getUpdateFunctionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.UpdateFunctionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("UpdateFunction")) - .build(); - } - } - } - return getUpdateFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.DeleteFunctionRequest, - com.google.longrunning.Operation> - getDeleteFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFunction", - requestType = com.google.cloud.functions.v2alpha.DeleteFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.DeleteFunctionRequest, - com.google.longrunning.Operation> - getDeleteFunctionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.DeleteFunctionRequest, - com.google.longrunning.Operation> - getDeleteFunctionMethod; - if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { - FunctionServiceGrpc.getDeleteFunctionMethod = - getDeleteFunctionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.DeleteFunctionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("DeleteFunction")) - .build(); - } - } - } - return getDeleteFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest, - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse> - getGenerateUploadUrlMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateUploadUrl", - requestType = com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.class, - responseType = com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest, - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse> - getGenerateUploadUrlMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest, - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse> - getGenerateUploadUrlMethod; - if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { - FunctionServiceGrpc.getGenerateUploadUrlMethod = - getGenerateUploadUrlMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("GenerateUploadUrl")) - .build(); - } - } - } - return getGenerateUploadUrlMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest, - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse> - getGenerateDownloadUrlMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateDownloadUrl", - requestType = com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.class, - responseType = com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest, - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse> - getGenerateDownloadUrlMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest, - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse> - getGenerateDownloadUrlMethod; - if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) - == null) { - FunctionServiceGrpc.getGenerateDownloadUrlMethod = - getGenerateDownloadUrlMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("GenerateDownloadUrl")) - .build(); - } - } - } - return getGenerateDownloadUrlMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.ListRuntimesRequest, - com.google.cloud.functions.v2alpha.ListRuntimesResponse> - getListRuntimesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", - requestType = com.google.cloud.functions.v2alpha.ListRuntimesRequest.class, - responseType = com.google.cloud.functions.v2alpha.ListRuntimesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.ListRuntimesRequest, - com.google.cloud.functions.v2alpha.ListRuntimesResponse> - getListRuntimesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2alpha.ListRuntimesRequest, - com.google.cloud.functions.v2alpha.ListRuntimesResponse> - getListRuntimesMethod; - if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { - FunctionServiceGrpc.getListRuntimesMethod = - getListRuntimesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.ListRuntimesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.ListRuntimesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("ListRuntimes")) - .build(); - } - } - } - return getListRuntimesMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static FunctionServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceStub(channel, callOptions); - } - }; - return FunctionServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static FunctionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceBlockingStub(channel, callOptions); - } - }; - return FunctionServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static FunctionServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceFutureStub(channel, callOptions); - } - }; - return FunctionServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Google Cloud Functions is used to deploy functions that are executed by
-   * Google in response to various events. Data connected with that event is
-   * passed to a function as the input data.
-   * A **function** is a resource which describes a function that should be
-   * executed and how it is triggered.
-   * 
- */ - public abstract static class FunctionServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns a function with the given name from the requested project.
-     * 
- */ - public void getFunction( - com.google.cloud.functions.v2alpha.GetFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetFunctionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of functions that belong to the requested project.
-     * 
- */ - public void listFunctions( - com.google.cloud.functions.v2alpha.ListFunctionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFunctionsMethod(), responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void createFunction( - com.google.cloud.functions.v2alpha.CreateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFunctionMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates existing function.
-     * 
- */ - public void updateFunction( - com.google.cloud.functions.v2alpha.UpdateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFunctionMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a function with the given name from the specified project. If the
-     * given function is used by some trigger, the trigger will be updated to
-     * remove this function.
-     * 
- */ - public void deleteFunction( - com.google.cloud.functions.v2alpha.DeleteFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFunctionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a signed URL for uploading a function source code.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls.
-     * Once the function source code upload is complete, the used signed
-     * URL should be provided in CreateFunction or UpdateFunction request
-     * as a reference to the function source code.
-     * When uploading source code to the generated signed URL, please follow
-     * these restrictions:
-     * * Source file type should be a zip file.
-     * * No credentials should be attached - the signed URLs provide access to the
-     *   target bucket using internal service identity; if credentials were
-     *   attached, the identity from the credentials would be used, but that
-     *   identity does not have permissions to upload files to the URL.
-     * When making a HTTP PUT request, these two headers need to be specified:
-     * * `content-type: application/zip`
-     * And this header SHOULD NOT be specified:
-     * * `Authorization: Bearer YOUR_TOKEN`
-     * 
- */ - public void generateUploadUrl( - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateUploadUrlMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a signed URL for downloading deployed function source code.
-     * The URL is only valid for a limited period and should be used within
-     * 30 minutes of generation.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls
-     * 
- */ - public void generateDownloadUrl( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateDownloadUrlMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of runtimes that are supported for the requested project.
-     * 
- */ - public void listRuntimes( - com.google.cloud.functions.v2alpha.ListRuntimesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRuntimesMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.GetFunctionRequest, - com.google.cloud.functions.v2alpha.Function>(this, METHODID_GET_FUNCTION))) - .addMethod( - getListFunctionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.ListFunctionsRequest, - com.google.cloud.functions.v2alpha.ListFunctionsResponse>( - this, METHODID_LIST_FUNCTIONS))) - .addMethod( - getCreateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.CreateFunctionRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_FUNCTION))) - .addMethod( - getUpdateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.UpdateFunctionRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_FUNCTION))) - .addMethod( - getDeleteFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.DeleteFunctionRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_FUNCTION))) - .addMethod( - getGenerateUploadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest, - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse>( - this, METHODID_GENERATE_UPLOAD_URL))) - .addMethod( - getGenerateDownloadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest, - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse>( - this, METHODID_GENERATE_DOWNLOAD_URL))) - .addMethod( - getListRuntimesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.ListRuntimesRequest, - com.google.cloud.functions.v2alpha.ListRuntimesResponse>( - this, METHODID_LIST_RUNTIMES))) - .build(); - } - } - - /** - * - * - *
-   * Google Cloud Functions is used to deploy functions that are executed by
-   * Google in response to various events. Data connected with that event is
-   * passed to a function as the input data.
-   * A **function** is a resource which describes a function that should be
-   * executed and how it is triggered.
-   * 
- */ - public static final class FunctionServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private FunctionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a function with the given name from the requested project.
-     * 
- */ - public void getFunction( - com.google.cloud.functions.v2alpha.GetFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFunctionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of functions that belong to the requested project.
-     * 
- */ - public void listFunctions( - com.google.cloud.functions.v2alpha.ListFunctionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFunctionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void createFunction( - com.google.cloud.functions.v2alpha.CreateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates existing function.
-     * 
- */ - public void updateFunction( - com.google.cloud.functions.v2alpha.UpdateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a function with the given name from the specified project. If the
-     * given function is used by some trigger, the trigger will be updated to
-     * remove this function.
-     * 
- */ - public void deleteFunction( - com.google.cloud.functions.v2alpha.DeleteFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a signed URL for uploading a function source code.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls.
-     * Once the function source code upload is complete, the used signed
-     * URL should be provided in CreateFunction or UpdateFunction request
-     * as a reference to the function source code.
-     * When uploading source code to the generated signed URL, please follow
-     * these restrictions:
-     * * Source file type should be a zip file.
-     * * No credentials should be attached - the signed URLs provide access to the
-     *   target bucket using internal service identity; if credentials were
-     *   attached, the identity from the credentials would be used, but that
-     *   identity does not have permissions to upload files to the URL.
-     * When making a HTTP PUT request, these two headers need to be specified:
-     * * `content-type: application/zip`
-     * And this header SHOULD NOT be specified:
-     * * `Authorization: Bearer YOUR_TOKEN`
-     * 
- */ - public void generateUploadUrl( - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a signed URL for downloading deployed function source code.
-     * The URL is only valid for a limited period and should be used within
-     * 30 minutes of generation.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls
-     * 
- */ - public void generateDownloadUrl( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of runtimes that are supported for the requested project.
-     * 
- */ - public void listRuntimes( - com.google.cloud.functions.v2alpha.ListRuntimesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRuntimesMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Google Cloud Functions is used to deploy functions that are executed by
-   * Google in response to various events. Data connected with that event is
-   * passed to a function as the input data.
-   * A **function** is a resource which describes a function that should be
-   * executed and how it is triggered.
-   * 
- */ - public static final class FunctionServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private FunctionServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a function with the given name from the requested project.
-     * 
- */ - public com.google.cloud.functions.v2alpha.Function getFunction( - com.google.cloud.functions.v2alpha.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFunctionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a list of functions that belong to the requested project.
-     * 
- */ - public com.google.cloud.functions.v2alpha.ListFunctionsResponse listFunctions( - com.google.cloud.functions.v2alpha.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFunctionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation createFunction( - com.google.cloud.functions.v2alpha.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFunctionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates existing function.
-     * 
- */ - public com.google.longrunning.Operation updateFunction( - com.google.cloud.functions.v2alpha.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a function with the given name from the specified project. If the
-     * given function is used by some trigger, the trigger will be updated to
-     * remove this function.
-     * 
- */ - public com.google.longrunning.Operation deleteFunction( - com.google.cloud.functions.v2alpha.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a signed URL for uploading a function source code.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls.
-     * Once the function source code upload is complete, the used signed
-     * URL should be provided in CreateFunction or UpdateFunction request
-     * as a reference to the function source code.
-     * When uploading source code to the generated signed URL, please follow
-     * these restrictions:
-     * * Source file type should be a zip file.
-     * * No credentials should be attached - the signed URLs provide access to the
-     *   target bucket using internal service identity; if credentials were
-     *   attached, the identity from the credentials would be used, but that
-     *   identity does not have permissions to upload files to the URL.
-     * When making a HTTP PUT request, these two headers need to be specified:
-     * * `content-type: application/zip`
-     * And this header SHOULD NOT be specified:
-     * * `Authorization: Bearer YOUR_TOKEN`
-     * 
- */ - public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse generateUploadUrl( - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a signed URL for downloading deployed function source code.
-     * The URL is only valid for a limited period and should be used within
-     * 30 minutes of generation.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls
-     * 
- */ - public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse generateDownloadUrl( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a list of runtimes that are supported for the requested project.
-     * 
- */ - public com.google.cloud.functions.v2alpha.ListRuntimesResponse listRuntimes( - com.google.cloud.functions.v2alpha.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRuntimesMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Google Cloud Functions is used to deploy functions that are executed by
-   * Google in response to various events. Data connected with that event is
-   * passed to a function as the input data.
-   * A **function** is a resource which describes a function that should be
-   * executed and how it is triggered.
-   * 
- */ - public static final class FunctionServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private FunctionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a function with the given name from the requested project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v2alpha.Function> - getFunction(com.google.cloud.functions.v2alpha.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a list of functions that belong to the requested project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v2alpha.ListFunctionsResponse> - listFunctions(com.google.cloud.functions.v2alpha.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createFunction(com.google.cloud.functions.v2alpha.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates existing function.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateFunction(com.google.cloud.functions.v2alpha.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a function with the given name from the specified project. If the
-     * given function is used by some trigger, the trigger will be updated to
-     * remove this function.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteFunction(com.google.cloud.functions.v2alpha.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a signed URL for uploading a function source code.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls.
-     * Once the function source code upload is complete, the used signed
-     * URL should be provided in CreateFunction or UpdateFunction request
-     * as a reference to the function source code.
-     * When uploading source code to the generated signed URL, please follow
-     * these restrictions:
-     * * Source file type should be a zip file.
-     * * No credentials should be attached - the signed URLs provide access to the
-     *   target bucket using internal service identity; if credentials were
-     *   attached, the identity from the credentials would be used, but that
-     *   identity does not have permissions to upload files to the URL.
-     * When making a HTTP PUT request, these two headers need to be specified:
-     * * `content-type: application/zip`
-     * And this header SHOULD NOT be specified:
-     * * `Authorization: Bearer YOUR_TOKEN`
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse> - generateUploadUrl(com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a signed URL for downloading deployed function source code.
-     * The URL is only valid for a limited period and should be used within
-     * 30 minutes of generation.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse> - generateDownloadUrl(com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a list of runtimes that are supported for the requested project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v2alpha.ListRuntimesResponse> - listRuntimes(com.google.cloud.functions.v2alpha.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_FUNCTION = 0; - private static final int METHODID_LIST_FUNCTIONS = 1; - private static final int METHODID_CREATE_FUNCTION = 2; - private static final int METHODID_UPDATE_FUNCTION = 3; - private static final int METHODID_DELETE_FUNCTION = 4; - private static final int METHODID_GENERATE_UPLOAD_URL = 5; - private static final int METHODID_GENERATE_DOWNLOAD_URL = 6; - private static final int METHODID_LIST_RUNTIMES = 7; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final FunctionServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(FunctionServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_FUNCTION: - serviceImpl.getFunction( - (com.google.cloud.functions.v2alpha.GetFunctionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_FUNCTIONS: - serviceImpl.listFunctions( - (com.google.cloud.functions.v2alpha.ListFunctionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.functions.v2alpha.ListFunctionsResponse>) - responseObserver); - break; - case METHODID_CREATE_FUNCTION: - serviceImpl.createFunction( - (com.google.cloud.functions.v2alpha.CreateFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FUNCTION: - serviceImpl.updateFunction( - (com.google.cloud.functions.v2alpha.UpdateFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FUNCTION: - serviceImpl.deleteFunction( - (com.google.cloud.functions.v2alpha.DeleteFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_UPLOAD_URL: - serviceImpl.generateUploadUrl( - (com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse>) - responseObserver); - break; - case METHODID_GENERATE_DOWNLOAD_URL: - serviceImpl.generateDownloadUrl( - (com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse>) - responseObserver); - break; - case METHODID_LIST_RUNTIMES: - serviceImpl.listRuntimes( - (com.google.cloud.functions.v2alpha.ListRuntimesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class FunctionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - FunctionServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("FunctionService"); - } - } - - private static final class FunctionServiceFileDescriptorSupplier - extends FunctionServiceBaseDescriptorSupplier { - FunctionServiceFileDescriptorSupplier() {} - } - - private static final class FunctionServiceMethodDescriptorSupplier - extends FunctionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - FunctionServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (FunctionServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new FunctionServiceFileDescriptorSupplier()) - .addMethod(getGetFunctionMethod()) - .addMethod(getListFunctionsMethod()) - .addMethod(getCreateFunctionMethod()) - .addMethod(getUpdateFunctionMethod()) - .addMethod(getDeleteFunctionMethod()) - .addMethod(getGenerateUploadUrlMethod()) - .addMethod(getGenerateDownloadUrlMethod()) - .addMethod(getListRuntimesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java b/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java deleted file mode 100644 index 1b00ba30..00000000 --- a/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java +++ /dev/null @@ -1,1302 +0,0 @@ -/* - * 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. - */ -package com.google.cloud.functions.v2beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Google Cloud Functions is used to deploy functions that are executed by
- * Google in response to various events. Data connected with that event is
- * passed to a function as the input data.
- * A **function** is a resource which describes a function that should be
- * executed and how it is triggered.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/functions/v2beta/functions.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class FunctionServiceGrpc { - - private FunctionServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.functions.v2beta.FunctionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.GetFunctionRequest, - com.google.cloud.functions.v2beta.Function> - getGetFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFunction", - requestType = com.google.cloud.functions.v2beta.GetFunctionRequest.class, - responseType = com.google.cloud.functions.v2beta.Function.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.GetFunctionRequest, - com.google.cloud.functions.v2beta.Function> - getGetFunctionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.GetFunctionRequest, - com.google.cloud.functions.v2beta.Function> - getGetFunctionMethod; - if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { - FunctionServiceGrpc.getGetFunctionMethod = - getGetFunctionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.GetFunctionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.Function.getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("GetFunction")) - .build(); - } - } - } - return getGetFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.ListFunctionsRequest, - com.google.cloud.functions.v2beta.ListFunctionsResponse> - getListFunctionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFunctions", - requestType = com.google.cloud.functions.v2beta.ListFunctionsRequest.class, - responseType = com.google.cloud.functions.v2beta.ListFunctionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.ListFunctionsRequest, - com.google.cloud.functions.v2beta.ListFunctionsResponse> - getListFunctionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.ListFunctionsRequest, - com.google.cloud.functions.v2beta.ListFunctionsResponse> - getListFunctionsMethod; - if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { - FunctionServiceGrpc.getListFunctionsMethod = - getListFunctionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.ListFunctionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.ListFunctionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("ListFunctions")) - .build(); - } - } - } - return getListFunctionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.CreateFunctionRequest, com.google.longrunning.Operation> - getCreateFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFunction", - requestType = com.google.cloud.functions.v2beta.CreateFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.CreateFunctionRequest, com.google.longrunning.Operation> - getCreateFunctionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.CreateFunctionRequest, - com.google.longrunning.Operation> - getCreateFunctionMethod; - if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { - FunctionServiceGrpc.getCreateFunctionMethod = - getCreateFunctionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.CreateFunctionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("CreateFunction")) - .build(); - } - } - } - return getCreateFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.UpdateFunctionRequest, com.google.longrunning.Operation> - getUpdateFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFunction", - requestType = com.google.cloud.functions.v2beta.UpdateFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.UpdateFunctionRequest, com.google.longrunning.Operation> - getUpdateFunctionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.UpdateFunctionRequest, - com.google.longrunning.Operation> - getUpdateFunctionMethod; - if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { - FunctionServiceGrpc.getUpdateFunctionMethod = - getUpdateFunctionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.UpdateFunctionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("UpdateFunction")) - .build(); - } - } - } - return getUpdateFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.DeleteFunctionRequest, com.google.longrunning.Operation> - getDeleteFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFunction", - requestType = com.google.cloud.functions.v2beta.DeleteFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.DeleteFunctionRequest, com.google.longrunning.Operation> - getDeleteFunctionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.DeleteFunctionRequest, - com.google.longrunning.Operation> - getDeleteFunctionMethod; - if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { - FunctionServiceGrpc.getDeleteFunctionMethod = - getDeleteFunctionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.DeleteFunctionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("DeleteFunction")) - .build(); - } - } - } - return getDeleteFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest, - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse> - getGenerateUploadUrlMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateUploadUrl", - requestType = com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.class, - responseType = com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest, - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse> - getGenerateUploadUrlMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest, - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse> - getGenerateUploadUrlMethod; - if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { - FunctionServiceGrpc.getGenerateUploadUrlMethod = - getGenerateUploadUrlMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("GenerateUploadUrl")) - .build(); - } - } - } - return getGenerateUploadUrlMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest, - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse> - getGenerateDownloadUrlMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateDownloadUrl", - requestType = com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.class, - responseType = com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest, - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse> - getGenerateDownloadUrlMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest, - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse> - getGenerateDownloadUrlMethod; - if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) - == null) { - FunctionServiceGrpc.getGenerateDownloadUrlMethod = - getGenerateDownloadUrlMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("GenerateDownloadUrl")) - .build(); - } - } - } - return getGenerateDownloadUrlMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.ListRuntimesRequest, - com.google.cloud.functions.v2beta.ListRuntimesResponse> - getListRuntimesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", - requestType = com.google.cloud.functions.v2beta.ListRuntimesRequest.class, - responseType = com.google.cloud.functions.v2beta.ListRuntimesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.ListRuntimesRequest, - com.google.cloud.functions.v2beta.ListRuntimesResponse> - getListRuntimesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v2beta.ListRuntimesRequest, - com.google.cloud.functions.v2beta.ListRuntimesResponse> - getListRuntimesMethod; - if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { - FunctionServiceGrpc.getListRuntimesMethod = - getListRuntimesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.ListRuntimesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.ListRuntimesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new FunctionServiceMethodDescriptorSupplier("ListRuntimes")) - .build(); - } - } - } - return getListRuntimesMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static FunctionServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceStub(channel, callOptions); - } - }; - return FunctionServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static FunctionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceBlockingStub(channel, callOptions); - } - }; - return FunctionServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static FunctionServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceFutureStub(channel, callOptions); - } - }; - return FunctionServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Google Cloud Functions is used to deploy functions that are executed by
-   * Google in response to various events. Data connected with that event is
-   * passed to a function as the input data.
-   * A **function** is a resource which describes a function that should be
-   * executed and how it is triggered.
-   * 
- */ - public abstract static class FunctionServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns a function with the given name from the requested project.
-     * 
- */ - public void getFunction( - com.google.cloud.functions.v2beta.GetFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetFunctionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of functions that belong to the requested project.
-     * 
- */ - public void listFunctions( - com.google.cloud.functions.v2beta.ListFunctionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFunctionsMethod(), responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void createFunction( - com.google.cloud.functions.v2beta.CreateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFunctionMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates existing function.
-     * 
- */ - public void updateFunction( - com.google.cloud.functions.v2beta.UpdateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFunctionMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a function with the given name from the specified project. If the
-     * given function is used by some trigger, the trigger will be updated to
-     * remove this function.
-     * 
- */ - public void deleteFunction( - com.google.cloud.functions.v2beta.DeleteFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFunctionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a signed URL for uploading a function source code.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls.
-     * Once the function source code upload is complete, the used signed
-     * URL should be provided in CreateFunction or UpdateFunction request
-     * as a reference to the function source code.
-     * When uploading source code to the generated signed URL, please follow
-     * these restrictions:
-     * * Source file type should be a zip file.
-     * * No credentials should be attached - the signed URLs provide access to the
-     *   target bucket using internal service identity; if credentials were
-     *   attached, the identity from the credentials would be used, but that
-     *   identity does not have permissions to upload files to the URL.
-     * When making a HTTP PUT request, these two headers need to be specified:
-     * * `content-type: application/zip`
-     * And this header SHOULD NOT be specified:
-     * * `Authorization: Bearer YOUR_TOKEN`
-     * 
- */ - public void generateUploadUrl( - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateUploadUrlMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a signed URL for downloading deployed function source code.
-     * The URL is only valid for a limited period and should be used within
-     * 30 minutes of generation.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls
-     * 
- */ - public void generateDownloadUrl( - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateDownloadUrlMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of runtimes that are supported for the requested project.
-     * 
- */ - public void listRuntimes( - com.google.cloud.functions.v2beta.ListRuntimesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRuntimesMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.GetFunctionRequest, - com.google.cloud.functions.v2beta.Function>(this, METHODID_GET_FUNCTION))) - .addMethod( - getListFunctionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.ListFunctionsRequest, - com.google.cloud.functions.v2beta.ListFunctionsResponse>( - this, METHODID_LIST_FUNCTIONS))) - .addMethod( - getCreateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.CreateFunctionRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_FUNCTION))) - .addMethod( - getUpdateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.UpdateFunctionRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_FUNCTION))) - .addMethod( - getDeleteFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.DeleteFunctionRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_FUNCTION))) - .addMethod( - getGenerateUploadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest, - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse>( - this, METHODID_GENERATE_UPLOAD_URL))) - .addMethod( - getGenerateDownloadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest, - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse>( - this, METHODID_GENERATE_DOWNLOAD_URL))) - .addMethod( - getListRuntimesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.ListRuntimesRequest, - com.google.cloud.functions.v2beta.ListRuntimesResponse>( - this, METHODID_LIST_RUNTIMES))) - .build(); - } - } - - /** - * - * - *
-   * Google Cloud Functions is used to deploy functions that are executed by
-   * Google in response to various events. Data connected with that event is
-   * passed to a function as the input data.
-   * A **function** is a resource which describes a function that should be
-   * executed and how it is triggered.
-   * 
- */ - public static final class FunctionServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private FunctionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a function with the given name from the requested project.
-     * 
- */ - public void getFunction( - com.google.cloud.functions.v2beta.GetFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFunctionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of functions that belong to the requested project.
-     * 
- */ - public void listFunctions( - com.google.cloud.functions.v2beta.ListFunctionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFunctionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void createFunction( - com.google.cloud.functions.v2beta.CreateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates existing function.
-     * 
- */ - public void updateFunction( - com.google.cloud.functions.v2beta.UpdateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a function with the given name from the specified project. If the
-     * given function is used by some trigger, the trigger will be updated to
-     * remove this function.
-     * 
- */ - public void deleteFunction( - com.google.cloud.functions.v2beta.DeleteFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a signed URL for uploading a function source code.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls.
-     * Once the function source code upload is complete, the used signed
-     * URL should be provided in CreateFunction or UpdateFunction request
-     * as a reference to the function source code.
-     * When uploading source code to the generated signed URL, please follow
-     * these restrictions:
-     * * Source file type should be a zip file.
-     * * No credentials should be attached - the signed URLs provide access to the
-     *   target bucket using internal service identity; if credentials were
-     *   attached, the identity from the credentials would be used, but that
-     *   identity does not have permissions to upload files to the URL.
-     * When making a HTTP PUT request, these two headers need to be specified:
-     * * `content-type: application/zip`
-     * And this header SHOULD NOT be specified:
-     * * `Authorization: Bearer YOUR_TOKEN`
-     * 
- */ - public void generateUploadUrl( - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a signed URL for downloading deployed function source code.
-     * The URL is only valid for a limited period and should be used within
-     * 30 minutes of generation.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls
-     * 
- */ - public void generateDownloadUrl( - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of runtimes that are supported for the requested project.
-     * 
- */ - public void listRuntimes( - com.google.cloud.functions.v2beta.ListRuntimesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRuntimesMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Google Cloud Functions is used to deploy functions that are executed by
-   * Google in response to various events. Data connected with that event is
-   * passed to a function as the input data.
-   * A **function** is a resource which describes a function that should be
-   * executed and how it is triggered.
-   * 
- */ - public static final class FunctionServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private FunctionServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a function with the given name from the requested project.
-     * 
- */ - public com.google.cloud.functions.v2beta.Function getFunction( - com.google.cloud.functions.v2beta.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFunctionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a list of functions that belong to the requested project.
-     * 
- */ - public com.google.cloud.functions.v2beta.ListFunctionsResponse listFunctions( - com.google.cloud.functions.v2beta.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFunctionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.longrunning.Operation createFunction( - com.google.cloud.functions.v2beta.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFunctionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates existing function.
-     * 
- */ - public com.google.longrunning.Operation updateFunction( - com.google.cloud.functions.v2beta.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a function with the given name from the specified project. If the
-     * given function is used by some trigger, the trigger will be updated to
-     * remove this function.
-     * 
- */ - public com.google.longrunning.Operation deleteFunction( - com.google.cloud.functions.v2beta.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a signed URL for uploading a function source code.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls.
-     * Once the function source code upload is complete, the used signed
-     * URL should be provided in CreateFunction or UpdateFunction request
-     * as a reference to the function source code.
-     * When uploading source code to the generated signed URL, please follow
-     * these restrictions:
-     * * Source file type should be a zip file.
-     * * No credentials should be attached - the signed URLs provide access to the
-     *   target bucket using internal service identity; if credentials were
-     *   attached, the identity from the credentials would be used, but that
-     *   identity does not have permissions to upload files to the URL.
-     * When making a HTTP PUT request, these two headers need to be specified:
-     * * `content-type: application/zip`
-     * And this header SHOULD NOT be specified:
-     * * `Authorization: Bearer YOUR_TOKEN`
-     * 
- */ - public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse generateUploadUrl( - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a signed URL for downloading deployed function source code.
-     * The URL is only valid for a limited period and should be used within
-     * 30 minutes of generation.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls
-     * 
- */ - public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse generateDownloadUrl( - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a list of runtimes that are supported for the requested project.
-     * 
- */ - public com.google.cloud.functions.v2beta.ListRuntimesResponse listRuntimes( - com.google.cloud.functions.v2beta.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRuntimesMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Google Cloud Functions is used to deploy functions that are executed by
-   * Google in response to various events. Data connected with that event is
-   * passed to a function as the input data.
-   * A **function** is a resource which describes a function that should be
-   * executed and how it is triggered.
-   * 
- */ - public static final class FunctionServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private FunctionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a function with the given name from the requested project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v2beta.Function> - getFunction(com.google.cloud.functions.v2beta.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a list of functions that belong to the requested project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v2beta.ListFunctionsResponse> - listFunctions(com.google.cloud.functions.v2beta.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createFunction(com.google.cloud.functions.v2beta.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates existing function.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateFunction(com.google.cloud.functions.v2beta.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a function with the given name from the specified project. If the
-     * given function is used by some trigger, the trigger will be updated to
-     * remove this function.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteFunction(com.google.cloud.functions.v2beta.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a signed URL for uploading a function source code.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls.
-     * Once the function source code upload is complete, the used signed
-     * URL should be provided in CreateFunction or UpdateFunction request
-     * as a reference to the function source code.
-     * When uploading source code to the generated signed URL, please follow
-     * these restrictions:
-     * * Source file type should be a zip file.
-     * * No credentials should be attached - the signed URLs provide access to the
-     *   target bucket using internal service identity; if credentials were
-     *   attached, the identity from the credentials would be used, but that
-     *   identity does not have permissions to upload files to the URL.
-     * When making a HTTP PUT request, these two headers need to be specified:
-     * * `content-type: application/zip`
-     * And this header SHOULD NOT be specified:
-     * * `Authorization: Bearer YOUR_TOKEN`
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse> - generateUploadUrl(com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a signed URL for downloading deployed function source code.
-     * The URL is only valid for a limited period and should be used within
-     * 30 minutes of generation.
-     * For more information about the signed URL usage see:
-     * https://cloud.google.com/storage/docs/access-control/signed-urls
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse> - generateDownloadUrl(com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a list of runtimes that are supported for the requested project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v2beta.ListRuntimesResponse> - listRuntimes(com.google.cloud.functions.v2beta.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_FUNCTION = 0; - private static final int METHODID_LIST_FUNCTIONS = 1; - private static final int METHODID_CREATE_FUNCTION = 2; - private static final int METHODID_UPDATE_FUNCTION = 3; - private static final int METHODID_DELETE_FUNCTION = 4; - private static final int METHODID_GENERATE_UPLOAD_URL = 5; - private static final int METHODID_GENERATE_DOWNLOAD_URL = 6; - private static final int METHODID_LIST_RUNTIMES = 7; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final FunctionServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(FunctionServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_FUNCTION: - serviceImpl.getFunction( - (com.google.cloud.functions.v2beta.GetFunctionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_FUNCTIONS: - serviceImpl.listFunctions( - (com.google.cloud.functions.v2beta.ListFunctionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_FUNCTION: - serviceImpl.createFunction( - (com.google.cloud.functions.v2beta.CreateFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FUNCTION: - serviceImpl.updateFunction( - (com.google.cloud.functions.v2beta.UpdateFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FUNCTION: - serviceImpl.deleteFunction( - (com.google.cloud.functions.v2beta.DeleteFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_UPLOAD_URL: - serviceImpl.generateUploadUrl( - (com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse>) - responseObserver); - break; - case METHODID_GENERATE_DOWNLOAD_URL: - serviceImpl.generateDownloadUrl( - (com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse>) - responseObserver); - break; - case METHODID_LIST_RUNTIMES: - serviceImpl.listRuntimes( - (com.google.cloud.functions.v2beta.ListRuntimesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class FunctionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - FunctionServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("FunctionService"); - } - } - - private static final class FunctionServiceFileDescriptorSupplier - extends FunctionServiceBaseDescriptorSupplier { - FunctionServiceFileDescriptorSupplier() {} - } - - private static final class FunctionServiceMethodDescriptorSupplier - extends FunctionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - FunctionServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (FunctionServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new FunctionServiceFileDescriptorSupplier()) - .addMethod(getGetFunctionMethod()) - .addMethod(getListFunctionsMethod()) - .addMethod(getCreateFunctionMethod()) - .addMethod(getUpdateFunctionMethod()) - .addMethod(getDeleteFunctionMethod()) - .addMethod(getGenerateUploadUrlMethod()) - .addMethod(getGenerateDownloadUrlMethod()) - .addMethod(getListRuntimesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java similarity index 97% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java rename to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java index 89cb411e..64ce8be8 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java @@ -68,13 +68,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -927,9 +927,9 @@ public final UnaryCallable callFuncti *

When uploading source code to the generated signed URL, please follow these restrictions: * *

    - *
  • Source file type should be a zip file. - *
  • Source file size should not exceed 100MB limit. - *
  • No credentials should be attached - the signed URLs provide access to the target bucket + *
  • Source file type should be a zip file. + *
  • Source file size should not exceed 100MB limit. + *
  • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -938,14 +938,14 @@ public final UnaryCallable callFuncti *

    When making a HTTP PUT request, these two headers need to be specified: * *

      - *
    • `content-type: application/zip` - *
    • `x-goog-content-length-range: 0,104857600` + *
    • `content-type: application/zip` + *
    • `x-goog-content-length-range: 0,104857600` *
    * *

    And this header SHOULD NOT be specified: * *

      - *
    • `Authorization: Bearer YOUR_TOKEN` + *
    • `Authorization: Bearer YOUR_TOKEN` *
    * *

    Sample code: @@ -983,9 +983,9 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

    When uploading source code to the generated signed URL, please follow these restrictions: * *

      - *
    • Source file type should be a zip file. - *
    • Source file size should not exceed 100MB limit. - *
    • No credentials should be attached - the signed URLs provide access to the target bucket + *
    • Source file type should be a zip file. + *
    • Source file size should not exceed 100MB limit. + *
    • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -994,14 +994,14 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

      When making a HTTP PUT request, these two headers need to be specified: * *

        - *
      • `content-type: application/zip` - *
      • `x-goog-content-length-range: 0,104857600` + *
      • `content-type: application/zip` + *
      • `x-goog-content-length-range: 0,104857600` *
      * *

      And this header SHOULD NOT be specified: * *

        - *
      • `Authorization: Bearer YOUR_TOKEN` + *
      • `Authorization: Bearer YOUR_TOKEN` *
      * *

      Sample code: @@ -1291,10 +1291,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListFunctionsPagedResponse extends AbstractPagedListResponse< - ListFunctionsRequest, - ListFunctionsResponse, - CloudFunction, - ListFunctionsPage, + ListFunctionsRequest, ListFunctionsResponse, CloudFunction, ListFunctionsPage, ListFunctionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1344,10 +1341,7 @@ public ApiFuture createPageAsync( public static class ListFunctionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFunctionsRequest, - ListFunctionsResponse, - CloudFunction, - ListFunctionsPage, + ListFunctionsRequest, ListFunctionsResponse, CloudFunction, ListFunctionsPage, ListFunctionsFixedSizeCollection> { private ListFunctionsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java similarity index 97% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java rename to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java index b7b948fe..5c904d73 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.functions.v1.stub.CloudFunctionsServiceStubSettings; @@ -50,10 +51,10 @@ *

      The default instance has everything set to sensible defaults: * *

        - *
      • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
      • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
      • Credentials are acquired automatically through Application Default Credentials. - *
      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
      • Credentials are acquired automatically through Application Default Credentials. + *
      • Retries are configured for idempotent methods but not for non-idempotent methods. *
      * *

      The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java rename to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java similarity index 99% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java index b7280156..810b5239 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java @@ -84,10 +84,10 @@ *

      The default instance has everything set to sensible defaults: * *

        - *
      • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
      • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
      • Credentials are acquired automatically through Application Default Credentials. - *
      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
      • Credentials are acquired automatically through Application Default Credentials. + *
      • Retries are configured for idempotent methods but not for non-idempotent methods. *
      * *

      The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceCallableFactory.java similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceCallableFactory.java diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java similarity index 99% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java rename to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java index 10cc8375..20e05fd4 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java @@ -51,6 +51,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceCallableFactory.java similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceCallableFactory.java diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java similarity index 99% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java rename to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java index 2b76d736..b3ca17a4 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java @@ -30,6 +30,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientHttpJsonTest.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientHttpJsonTest.java rename to owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientHttpJsonTest.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java b/owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsService.java b/owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsService.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsService.java rename to owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsService.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java b/owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java rename to owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java diff --git a/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java similarity index 50% rename from grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java index 17c064db..a3ebd45d 100644 --- a/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * 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. - */ package com.google.cloud.functions.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

        * A service that application uses to manipulate triggers and functions.
        * 
      @@ -35,625 +18,453 @@ private CloudFunctionsServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.functions.v1.CloudFunctionsService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.ListFunctionsRequest, - com.google.cloud.functions.v1.ListFunctionsResponse> - getListFunctionsMethod; + private static volatile io.grpc.MethodDescriptor getListFunctionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListFunctions", requestType = com.google.cloud.functions.v1.ListFunctionsRequest.class, responseType = com.google.cloud.functions.v1.ListFunctionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.ListFunctionsRequest, - com.google.cloud.functions.v1.ListFunctionsResponse> - getListFunctionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.ListFunctionsRequest, - com.google.cloud.functions.v1.ListFunctionsResponse> - getListFunctionsMethod; + public static io.grpc.MethodDescriptor getListFunctionsMethod() { + io.grpc.MethodDescriptor getListFunctionsMethod; if ((getListFunctionsMethod = CloudFunctionsServiceGrpc.getListFunctionsMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getListFunctionsMethod = CloudFunctionsServiceGrpc.getListFunctionsMethod) == null) { - CloudFunctionsServiceGrpc.getListFunctionsMethod = - getListFunctionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.ListFunctionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.ListFunctionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudFunctionsServiceMethodDescriptorSupplier("ListFunctions")) - .build(); + CloudFunctionsServiceGrpc.getListFunctionsMethod = getListFunctionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.ListFunctionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.ListFunctionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("ListFunctions")) + .build(); } } } return getListFunctionsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.GetFunctionRequest, - com.google.cloud.functions.v1.CloudFunction> - getGetFunctionMethod; + private static volatile io.grpc.MethodDescriptor getGetFunctionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetFunction", requestType = com.google.cloud.functions.v1.GetFunctionRequest.class, responseType = com.google.cloud.functions.v1.CloudFunction.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.GetFunctionRequest, - com.google.cloud.functions.v1.CloudFunction> - getGetFunctionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.GetFunctionRequest, - com.google.cloud.functions.v1.CloudFunction> - getGetFunctionMethod; + public static io.grpc.MethodDescriptor getGetFunctionMethod() { + io.grpc.MethodDescriptor getGetFunctionMethod; if ((getGetFunctionMethod = CloudFunctionsServiceGrpc.getGetFunctionMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getGetFunctionMethod = CloudFunctionsServiceGrpc.getGetFunctionMethod) == null) { - CloudFunctionsServiceGrpc.getGetFunctionMethod = - getGetFunctionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.GetFunctionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.CloudFunction.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFunctionsServiceMethodDescriptorSupplier("GetFunction")) - .build(); + CloudFunctionsServiceGrpc.getGetFunctionMethod = getGetFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.GetFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.CloudFunction.getDefaultInstance())) + .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("GetFunction")) + .build(); } } } return getGetFunctionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.CreateFunctionRequest, com.google.longrunning.Operation> - getCreateFunctionMethod; + private static volatile io.grpc.MethodDescriptor getCreateFunctionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateFunction", requestType = com.google.cloud.functions.v1.CreateFunctionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.CreateFunctionRequest, com.google.longrunning.Operation> - getCreateFunctionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.CreateFunctionRequest, com.google.longrunning.Operation> - getCreateFunctionMethod; + public static io.grpc.MethodDescriptor getCreateFunctionMethod() { + io.grpc.MethodDescriptor getCreateFunctionMethod; if ((getCreateFunctionMethod = CloudFunctionsServiceGrpc.getCreateFunctionMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getCreateFunctionMethod = CloudFunctionsServiceGrpc.getCreateFunctionMethod) == null) { - CloudFunctionsServiceGrpc.getCreateFunctionMethod = - getCreateFunctionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.CreateFunctionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFunctionsServiceMethodDescriptorSupplier("CreateFunction")) - .build(); + CloudFunctionsServiceGrpc.getCreateFunctionMethod = getCreateFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.CreateFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("CreateFunction")) + .build(); } } } return getCreateFunctionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.UpdateFunctionRequest, com.google.longrunning.Operation> - getUpdateFunctionMethod; + private static volatile io.grpc.MethodDescriptor getUpdateFunctionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateFunction", requestType = com.google.cloud.functions.v1.UpdateFunctionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.UpdateFunctionRequest, com.google.longrunning.Operation> - getUpdateFunctionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.UpdateFunctionRequest, com.google.longrunning.Operation> - getUpdateFunctionMethod; + public static io.grpc.MethodDescriptor getUpdateFunctionMethod() { + io.grpc.MethodDescriptor getUpdateFunctionMethod; if ((getUpdateFunctionMethod = CloudFunctionsServiceGrpc.getUpdateFunctionMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getUpdateFunctionMethod = CloudFunctionsServiceGrpc.getUpdateFunctionMethod) == null) { - CloudFunctionsServiceGrpc.getUpdateFunctionMethod = - getUpdateFunctionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.UpdateFunctionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFunctionsServiceMethodDescriptorSupplier("UpdateFunction")) - .build(); + CloudFunctionsServiceGrpc.getUpdateFunctionMethod = getUpdateFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.UpdateFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("UpdateFunction")) + .build(); } } } return getUpdateFunctionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.DeleteFunctionRequest, com.google.longrunning.Operation> - getDeleteFunctionMethod; + private static volatile io.grpc.MethodDescriptor getDeleteFunctionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteFunction", requestType = com.google.cloud.functions.v1.DeleteFunctionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.DeleteFunctionRequest, com.google.longrunning.Operation> - getDeleteFunctionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.DeleteFunctionRequest, com.google.longrunning.Operation> - getDeleteFunctionMethod; + public static io.grpc.MethodDescriptor getDeleteFunctionMethod() { + io.grpc.MethodDescriptor getDeleteFunctionMethod; if ((getDeleteFunctionMethod = CloudFunctionsServiceGrpc.getDeleteFunctionMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getDeleteFunctionMethod = CloudFunctionsServiceGrpc.getDeleteFunctionMethod) == null) { - CloudFunctionsServiceGrpc.getDeleteFunctionMethod = - getDeleteFunctionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.DeleteFunctionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFunctionsServiceMethodDescriptorSupplier("DeleteFunction")) - .build(); + CloudFunctionsServiceGrpc.getDeleteFunctionMethod = getDeleteFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.DeleteFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("DeleteFunction")) + .build(); } } } return getDeleteFunctionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.CallFunctionRequest, - com.google.cloud.functions.v1.CallFunctionResponse> - getCallFunctionMethod; + private static volatile io.grpc.MethodDescriptor getCallFunctionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CallFunction", requestType = com.google.cloud.functions.v1.CallFunctionRequest.class, responseType = com.google.cloud.functions.v1.CallFunctionResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.CallFunctionRequest, - com.google.cloud.functions.v1.CallFunctionResponse> - getCallFunctionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.CallFunctionRequest, - com.google.cloud.functions.v1.CallFunctionResponse> - getCallFunctionMethod; + public static io.grpc.MethodDescriptor getCallFunctionMethod() { + io.grpc.MethodDescriptor getCallFunctionMethod; if ((getCallFunctionMethod = CloudFunctionsServiceGrpc.getCallFunctionMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getCallFunctionMethod = CloudFunctionsServiceGrpc.getCallFunctionMethod) == null) { - CloudFunctionsServiceGrpc.getCallFunctionMethod = - getCallFunctionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CallFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.CallFunctionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.CallFunctionResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudFunctionsServiceMethodDescriptorSupplier("CallFunction")) - .build(); + CloudFunctionsServiceGrpc.getCallFunctionMethod = getCallFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CallFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.CallFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.CallFunctionResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("CallFunction")) + .build(); } } } return getCallFunctionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.GenerateUploadUrlRequest, - com.google.cloud.functions.v1.GenerateUploadUrlResponse> - getGenerateUploadUrlMethod; + private static volatile io.grpc.MethodDescriptor getGenerateUploadUrlMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GenerateUploadUrl", requestType = com.google.cloud.functions.v1.GenerateUploadUrlRequest.class, responseType = com.google.cloud.functions.v1.GenerateUploadUrlResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.GenerateUploadUrlRequest, - com.google.cloud.functions.v1.GenerateUploadUrlResponse> - getGenerateUploadUrlMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.GenerateUploadUrlRequest, - com.google.cloud.functions.v1.GenerateUploadUrlResponse> - getGenerateUploadUrlMethod; - if ((getGenerateUploadUrlMethod = CloudFunctionsServiceGrpc.getGenerateUploadUrlMethod) - == null) { + public static io.grpc.MethodDescriptor getGenerateUploadUrlMethod() { + io.grpc.MethodDescriptor getGenerateUploadUrlMethod; + if ((getGenerateUploadUrlMethod = CloudFunctionsServiceGrpc.getGenerateUploadUrlMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { - if ((getGenerateUploadUrlMethod = CloudFunctionsServiceGrpc.getGenerateUploadUrlMethod) - == null) { - CloudFunctionsServiceGrpc.getGenerateUploadUrlMethod = - getGenerateUploadUrlMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.GenerateUploadUrlRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.GenerateUploadUrlResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudFunctionsServiceMethodDescriptorSupplier("GenerateUploadUrl")) - .build(); + if ((getGenerateUploadUrlMethod = CloudFunctionsServiceGrpc.getGenerateUploadUrlMethod) == null) { + CloudFunctionsServiceGrpc.getGenerateUploadUrlMethod = getGenerateUploadUrlMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.GenerateUploadUrlRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.GenerateUploadUrlResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("GenerateUploadUrl")) + .build(); } } } return getGenerateUploadUrlMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.GenerateDownloadUrlRequest, - com.google.cloud.functions.v1.GenerateDownloadUrlResponse> - getGenerateDownloadUrlMethod; + private static volatile io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GenerateDownloadUrl", requestType = com.google.cloud.functions.v1.GenerateDownloadUrlRequest.class, responseType = com.google.cloud.functions.v1.GenerateDownloadUrlResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.GenerateDownloadUrlRequest, - com.google.cloud.functions.v1.GenerateDownloadUrlResponse> - getGenerateDownloadUrlMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.functions.v1.GenerateDownloadUrlRequest, - com.google.cloud.functions.v1.GenerateDownloadUrlResponse> - getGenerateDownloadUrlMethod; - if ((getGenerateDownloadUrlMethod = CloudFunctionsServiceGrpc.getGenerateDownloadUrlMethod) - == null) { + public static io.grpc.MethodDescriptor getGenerateDownloadUrlMethod() { + io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; + if ((getGenerateDownloadUrlMethod = CloudFunctionsServiceGrpc.getGenerateDownloadUrlMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { - if ((getGenerateDownloadUrlMethod = CloudFunctionsServiceGrpc.getGenerateDownloadUrlMethod) - == null) { - CloudFunctionsServiceGrpc.getGenerateDownloadUrlMethod = - getGenerateDownloadUrlMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.GenerateDownloadUrlRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.GenerateDownloadUrlResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudFunctionsServiceMethodDescriptorSupplier("GenerateDownloadUrl")) - .build(); + if ((getGenerateDownloadUrlMethod = CloudFunctionsServiceGrpc.getGenerateDownloadUrlMethod) == null) { + CloudFunctionsServiceGrpc.getGenerateDownloadUrlMethod = getGenerateDownloadUrlMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.GenerateDownloadUrlRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.GenerateDownloadUrlResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("GenerateDownloadUrl")) + .build(); } } } return getGenerateDownloadUrlMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; + private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", requestType = com.google.iam.v1.SetIamPolicyRequest.class, responseType = com.google.iam.v1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; + public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; if ((getSetIamPolicyMethod = CloudFunctionsServiceGrpc.getSetIamPolicyMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getSetIamPolicyMethod = CloudFunctionsServiceGrpc.getSetIamPolicyMethod) == null) { - CloudFunctionsServiceGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFunctionsServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); + CloudFunctionsServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); } } } return getSetIamPolicyMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; + private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", requestType = com.google.iam.v1.GetIamPolicyRequest.class, responseType = com.google.iam.v1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; + public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; if ((getGetIamPolicyMethod = CloudFunctionsServiceGrpc.getGetIamPolicyMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getGetIamPolicyMethod = CloudFunctionsServiceGrpc.getGetIamPolicyMethod) == null) { - CloudFunctionsServiceGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFunctionsServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); + CloudFunctionsServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); } } } return getGetIamPolicyMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; + private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", requestType = com.google.iam.v1.TestIamPermissionsRequest.class, responseType = com.google.iam.v1.TestIamPermissionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = CloudFunctionsServiceGrpc.getTestIamPermissionsMethod) - == null) { + public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = CloudFunctionsServiceGrpc.getTestIamPermissionsMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { - if ((getTestIamPermissionsMethod = CloudFunctionsServiceGrpc.getTestIamPermissionsMethod) - == null) { - CloudFunctionsServiceGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CloudFunctionsServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); + if ((getTestIamPermissionsMethod = CloudFunctionsServiceGrpc.getTestIamPermissionsMethod) == null) { + CloudFunctionsServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); } } } return getTestIamPermissionsMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static CloudFunctionsServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFunctionsServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFunctionsServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFunctionsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFunctionsServiceStub(channel, callOptions); + } + }; return CloudFunctionsServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static CloudFunctionsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static CloudFunctionsServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFunctionsServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFunctionsServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFunctionsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFunctionsServiceBlockingStub(channel, callOptions); + } + }; return CloudFunctionsServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CloudFunctionsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CloudFunctionsServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFunctionsServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFunctionsServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFunctionsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFunctionsServiceFutureStub(channel, callOptions); + } + }; return CloudFunctionsServiceFutureStub.newStub(factory, channel); } /** - * - * *
          * A service that application uses to manipulate triggers and functions.
          * 
      */ - public abstract static class CloudFunctionsServiceImplBase implements io.grpc.BindableService { + public static abstract class CloudFunctionsServiceImplBase implements io.grpc.BindableService { /** - * - * *
            * Returns a list of functions that belong to the requested project.
            * 
      */ - public void listFunctions( - com.google.cloud.functions.v1.ListFunctionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFunctionsMethod(), responseObserver); + public void listFunctions(com.google.cloud.functions.v1.ListFunctionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFunctionsMethod(), responseObserver); } /** - * - * *
            * Returns a function with the given name from the requested project.
            * 
      */ - public void getFunction( - com.google.cloud.functions.v1.GetFunctionRequest request, + public void getFunction(com.google.cloud.functions.v1.GetFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetFunctionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFunctionMethod(), responseObserver); } /** - * - * *
            * 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.
            * 
      */ - public void createFunction( - com.google.cloud.functions.v1.CreateFunctionRequest request, + public void createFunction(com.google.cloud.functions.v1.CreateFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFunctionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFunctionMethod(), responseObserver); } /** - * - * *
            * Updates existing function.
            * 
      */ - public void updateFunction( - com.google.cloud.functions.v1.UpdateFunctionRequest request, + public void updateFunction(com.google.cloud.functions.v1.UpdateFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFunctionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFunctionMethod(), responseObserver); } /** - * - * *
            * Deletes a function with the given name from the specified project. If the
            * given function is used by some trigger, the trigger will be updated to
            * remove this function.
            * 
      */ - public void deleteFunction( - com.google.cloud.functions.v1.DeleteFunctionRequest request, + public void deleteFunction(com.google.cloud.functions.v1.DeleteFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFunctionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFunctionMethod(), responseObserver); } /** - * - * *
            * Synchronously invokes a deployed Cloud Function. To be used for testing
            * purposes as very limited traffic is allowed. For more information on
      @@ -661,17 +472,12 @@ public void deleteFunction(
            * [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).
            * 
      */ - public void callFunction( - com.google.cloud.functions.v1.CallFunctionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCallFunctionMethod(), responseObserver); + public void callFunction(com.google.cloud.functions.v1.CallFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCallFunctionMethod(), responseObserver); } /** - * - * *
            * Returns a signed URL for uploading a function source code.
            * For more information about the signed URL usage see:
      @@ -694,17 +500,12 @@ public void callFunction(
            * * `Authorization: Bearer YOUR_TOKEN`
            * 
      */ - public void generateUploadUrl( - com.google.cloud.functions.v1.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateUploadUrlMethod(), responseObserver); + public void generateUploadUrl(com.google.cloud.functions.v1.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateUploadUrlMethod(), responseObserver); } /** - * - * *
            * Returns a signed URL for downloading deployed function source code.
            * The URL is only valid for a limited period and should be used within
      @@ -713,48 +514,35 @@ public void generateUploadUrl(
            * https://cloud.google.com/storage/docs/access-control/signed-urls
            * 
      */ - public void generateDownloadUrl( - com.google.cloud.functions.v1.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateDownloadUrlMethod(), responseObserver); + public void generateDownloadUrl(com.google.cloud.functions.v1.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateDownloadUrlMethod(), responseObserver); } /** - * - * *
            * Sets the IAM access control policy on the specified function.
            * Replaces any existing policy.
            * 
      */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); } /** - * - * *
            * Gets the IAM access control policy for a function.
            * Returns an empty policy if the function exists and does not have a policy
            * set.
            * 
      */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); } /** - * - * *
            * Tests the specified permissions against the IAM access control policy
            * for a function.
      @@ -762,102 +550,102 @@ public void getIamPolicy(
            * permissions, not a NOT_FOUND error.
            * 
      */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListFunctionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.ListFunctionsRequest, - com.google.cloud.functions.v1.ListFunctionsResponse>( - this, METHODID_LIST_FUNCTIONS))) + getListFunctionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.ListFunctionsRequest, + com.google.cloud.functions.v1.ListFunctionsResponse>( + this, METHODID_LIST_FUNCTIONS))) .addMethod( - getGetFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.GetFunctionRequest, - com.google.cloud.functions.v1.CloudFunction>(this, METHODID_GET_FUNCTION))) + getGetFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.GetFunctionRequest, + com.google.cloud.functions.v1.CloudFunction>( + this, METHODID_GET_FUNCTION))) .addMethod( - getCreateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.CreateFunctionRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_FUNCTION))) + getCreateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.CreateFunctionRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_FUNCTION))) .addMethod( - getUpdateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.UpdateFunctionRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_FUNCTION))) + getUpdateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.UpdateFunctionRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_FUNCTION))) .addMethod( - getDeleteFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.DeleteFunctionRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_FUNCTION))) + getDeleteFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.DeleteFunctionRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_FUNCTION))) .addMethod( - getCallFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.CallFunctionRequest, - com.google.cloud.functions.v1.CallFunctionResponse>( - this, METHODID_CALL_FUNCTION))) + getCallFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.CallFunctionRequest, + com.google.cloud.functions.v1.CallFunctionResponse>( + this, METHODID_CALL_FUNCTION))) .addMethod( - getGenerateUploadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.GenerateUploadUrlRequest, - com.google.cloud.functions.v1.GenerateUploadUrlResponse>( - this, METHODID_GENERATE_UPLOAD_URL))) + getGenerateUploadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.GenerateUploadUrlRequest, + com.google.cloud.functions.v1.GenerateUploadUrlResponse>( + this, METHODID_GENERATE_UPLOAD_URL))) .addMethod( - getGenerateDownloadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.GenerateDownloadUrlRequest, - com.google.cloud.functions.v1.GenerateDownloadUrlResponse>( - this, METHODID_GENERATE_DOWNLOAD_URL))) + getGenerateDownloadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.GenerateDownloadUrlRequest, + com.google.cloud.functions.v1.GenerateDownloadUrlResponse>( + this, METHODID_GENERATE_DOWNLOAD_URL))) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) .build(); } } /** - * - * *
          * A service that application uses to manipulate triggers and functions.
          * 
      */ - public static final class CloudFunctionsServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private CloudFunctionsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class CloudFunctionsServiceStub extends io.grpc.stub.AbstractAsyncStub { + private CloudFunctionsServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -868,93 +656,65 @@ protected CloudFunctionsServiceStub build( } /** - * - * *
            * Returns a list of functions that belong to the requested project.
            * 
      */ - public void listFunctions( - com.google.cloud.functions.v1.ListFunctionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listFunctions(com.google.cloud.functions.v1.ListFunctionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFunctionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
            * Returns a function with the given name from the requested project.
            * 
      */ - public void getFunction( - com.google.cloud.functions.v1.GetFunctionRequest request, + public void getFunction(com.google.cloud.functions.v1.GetFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFunctionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
            * 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.
            * 
      */ - public void createFunction( - com.google.cloud.functions.v1.CreateFunctionRequest request, + public void createFunction(com.google.cloud.functions.v1.CreateFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
            * Updates existing function.
            * 
      */ - public void updateFunction( - com.google.cloud.functions.v1.UpdateFunctionRequest request, + public void updateFunction(com.google.cloud.functions.v1.UpdateFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
            * Deletes a function with the given name from the specified project. If the
            * given function is used by some trigger, the trigger will be updated to
            * remove this function.
            * 
      */ - public void deleteFunction( - com.google.cloud.functions.v1.DeleteFunctionRequest request, + public void deleteFunction(com.google.cloud.functions.v1.DeleteFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
            * Synchronously invokes a deployed Cloud Function. To be used for testing
            * purposes as very limited traffic is allowed. For more information on
      @@ -962,19 +722,13 @@ public void deleteFunction(
            * [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).
            * 
      */ - public void callFunction( - com.google.cloud.functions.v1.CallFunctionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void callFunction(com.google.cloud.functions.v1.CallFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCallFunctionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCallFunctionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
            * Returns a signed URL for uploading a function source code.
            * For more information about the signed URL usage see:
      @@ -997,19 +751,13 @@ public void callFunction(
            * * `Authorization: Bearer YOUR_TOKEN`
            * 
      */ - public void generateUploadUrl( - com.google.cloud.functions.v1.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void generateUploadUrl(com.google.cloud.functions.v1.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
            * Returns a signed URL for downloading deployed function source code.
            * The URL is only valid for a limited period and should be used within
      @@ -1018,54 +766,38 @@ public void generateUploadUrl(
            * https://cloud.google.com/storage/docs/access-control/signed-urls
            * 
      */ - public void generateDownloadUrl( - com.google.cloud.functions.v1.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void generateDownloadUrl(com.google.cloud.functions.v1.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
            * Sets the IAM access control policy on the specified function.
            * Replaces any existing policy.
            * 
      */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
            * Gets the IAM access control policy for a function.
            * Returns an empty policy if the function exists and does not have a policy
            * set.
            * 
      */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
            * Tests the specified permissions against the IAM access control policy
            * for a function.
      @@ -1073,26 +805,19 @@ public void getIamPolicy(
            * permissions, not a NOT_FOUND error.
            * 
      */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
          * A service that application uses to manipulate triggers and functions.
          * 
      */ - public static final class CloudFunctionsServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { + public static final class CloudFunctionsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private CloudFunctionsServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -1105,77 +830,60 @@ protected CloudFunctionsServiceBlockingStub build( } /** - * - * *
            * Returns a list of functions that belong to the requested project.
            * 
      */ - public com.google.cloud.functions.v1.ListFunctionsResponse listFunctions( - com.google.cloud.functions.v1.ListFunctionsRequest request) { + public com.google.cloud.functions.v1.ListFunctionsResponse listFunctions(com.google.cloud.functions.v1.ListFunctionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListFunctionsMethod(), getCallOptions(), request); } /** - * - * *
            * Returns a function with the given name from the requested project.
            * 
      */ - public com.google.cloud.functions.v1.CloudFunction getFunction( - com.google.cloud.functions.v1.GetFunctionRequest request) { + public com.google.cloud.functions.v1.CloudFunction getFunction(com.google.cloud.functions.v1.GetFunctionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetFunctionMethod(), getCallOptions(), request); } /** - * - * *
            * 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.
            * 
      */ - public com.google.longrunning.Operation createFunction( - com.google.cloud.functions.v1.CreateFunctionRequest request) { + public com.google.longrunning.Operation createFunction(com.google.cloud.functions.v1.CreateFunctionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateFunctionMethod(), getCallOptions(), request); } /** - * - * *
            * Updates existing function.
            * 
      */ - public com.google.longrunning.Operation updateFunction( - com.google.cloud.functions.v1.UpdateFunctionRequest request) { + public com.google.longrunning.Operation updateFunction(com.google.cloud.functions.v1.UpdateFunctionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); } /** - * - * *
            * Deletes a function with the given name from the specified project. If the
            * given function is used by some trigger, the trigger will be updated to
            * remove this function.
            * 
      */ - public com.google.longrunning.Operation deleteFunction( - com.google.cloud.functions.v1.DeleteFunctionRequest request) { + public com.google.longrunning.Operation deleteFunction(com.google.cloud.functions.v1.DeleteFunctionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); } /** - * - * *
            * Synchronously invokes a deployed Cloud Function. To be used for testing
            * purposes as very limited traffic is allowed. For more information on
      @@ -1183,15 +891,12 @@ public com.google.longrunning.Operation deleteFunction(
            * [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).
            * 
      */ - public com.google.cloud.functions.v1.CallFunctionResponse callFunction( - com.google.cloud.functions.v1.CallFunctionRequest request) { + public com.google.cloud.functions.v1.CallFunctionResponse callFunction(com.google.cloud.functions.v1.CallFunctionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCallFunctionMethod(), getCallOptions(), request); } /** - * - * *
            * Returns a signed URL for uploading a function source code.
            * For more information about the signed URL usage see:
      @@ -1214,15 +919,12 @@ public com.google.cloud.functions.v1.CallFunctionResponse callFunction(
            * * `Authorization: Bearer YOUR_TOKEN`
            * 
      */ - public com.google.cloud.functions.v1.GenerateUploadUrlResponse generateUploadUrl( - com.google.cloud.functions.v1.GenerateUploadUrlRequest request) { + public com.google.cloud.functions.v1.GenerateUploadUrlResponse generateUploadUrl(com.google.cloud.functions.v1.GenerateUploadUrlRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); } /** - * - * *
            * Returns a signed URL for downloading deployed function source code.
            * The URL is only valid for a limited period and should be used within
      @@ -1231,15 +933,12 @@ public com.google.cloud.functions.v1.GenerateUploadUrlResponse generateUploadUrl
            * https://cloud.google.com/storage/docs/access-control/signed-urls
            * 
      */ - public com.google.cloud.functions.v1.GenerateDownloadUrlResponse generateDownloadUrl( - com.google.cloud.functions.v1.GenerateDownloadUrlRequest request) { + public com.google.cloud.functions.v1.GenerateDownloadUrlResponse generateDownloadUrl(com.google.cloud.functions.v1.GenerateDownloadUrlRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); } /** - * - * *
            * Sets the IAM access control policy on the specified function.
            * Replaces any existing policy.
      @@ -1251,8 +950,6 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque
           }
       
           /**
      -     *
      -     *
            * 
            * Gets the IAM access control policy for a function.
            * Returns an empty policy if the function exists and does not have a policy
      @@ -1265,8 +962,6 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
           }
       
           /**
      -     *
      -     *
            * 
            * Tests the specified permissions against the IAM access control policy
            * for a function.
      @@ -1274,22 +969,18 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
            * permissions, not a NOT_FOUND error.
            * 
      */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } /** - * - * *
          * A service that application uses to manipulate triggers and functions.
          * 
      */ - public static final class CloudFunctionsServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { + public static final class CloudFunctionsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private CloudFunctionsServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -1302,79 +993,65 @@ protected CloudFunctionsServiceFutureStub build( } /** - * - * *
            * Returns a list of functions that belong to the requested project.
            * 
      */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v1.ListFunctionsResponse> - listFunctions(com.google.cloud.functions.v1.ListFunctionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listFunctions( + com.google.cloud.functions.v1.ListFunctionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request); } /** - * - * *
            * Returns a function with the given name from the requested project.
            * 
      */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v1.CloudFunction> - getFunction(com.google.cloud.functions.v1.GetFunctionRequest request) { + public com.google.common.util.concurrent.ListenableFuture getFunction( + com.google.cloud.functions.v1.GetFunctionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request); } /** - * - * *
            * 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.
            * 
      */ - public com.google.common.util.concurrent.ListenableFuture - createFunction(com.google.cloud.functions.v1.CreateFunctionRequest request) { + public com.google.common.util.concurrent.ListenableFuture createFunction( + com.google.cloud.functions.v1.CreateFunctionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request); } /** - * - * *
            * Updates existing function.
            * 
      */ - public com.google.common.util.concurrent.ListenableFuture - updateFunction(com.google.cloud.functions.v1.UpdateFunctionRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateFunction( + com.google.cloud.functions.v1.UpdateFunctionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request); } /** - * - * *
            * Deletes a function with the given name from the specified project. If the
            * given function is used by some trigger, the trigger will be updated to
            * remove this function.
            * 
      */ - public com.google.common.util.concurrent.ListenableFuture - deleteFunction(com.google.cloud.functions.v1.DeleteFunctionRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteFunction( + com.google.cloud.functions.v1.DeleteFunctionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request); } /** - * - * *
            * Synchronously invokes a deployed Cloud Function. To be used for testing
            * purposes as very limited traffic is allowed. For more information on
      @@ -1382,16 +1059,13 @@ protected CloudFunctionsServiceFutureStub build(
            * [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).
            * 
      */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v1.CallFunctionResponse> - callFunction(com.google.cloud.functions.v1.CallFunctionRequest request) { + public com.google.common.util.concurrent.ListenableFuture callFunction( + com.google.cloud.functions.v1.CallFunctionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCallFunctionMethod(), getCallOptions()), request); } /** - * - * *
            * Returns a signed URL for uploading a function source code.
            * For more information about the signed URL usage see:
      @@ -1414,16 +1088,13 @@ protected CloudFunctionsServiceFutureStub build(
            * * `Authorization: Bearer YOUR_TOKEN`
            * 
      */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v1.GenerateUploadUrlResponse> - generateUploadUrl(com.google.cloud.functions.v1.GenerateUploadUrlRequest request) { + public com.google.common.util.concurrent.ListenableFuture generateUploadUrl( + com.google.cloud.functions.v1.GenerateUploadUrlRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request); } /** - * - * *
            * Returns a signed URL for downloading deployed function source code.
            * The URL is only valid for a limited period and should be used within
      @@ -1432,45 +1103,38 @@ protected CloudFunctionsServiceFutureStub build(
            * https://cloud.google.com/storage/docs/access-control/signed-urls
            * 
      */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.functions.v1.GenerateDownloadUrlResponse> - generateDownloadUrl(com.google.cloud.functions.v1.GenerateDownloadUrlRequest request) { + public com.google.common.util.concurrent.ListenableFuture generateDownloadUrl( + com.google.cloud.functions.v1.GenerateDownloadUrlRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request); } /** - * - * *
            * Sets the IAM access control policy on the specified function.
            * Replaces any existing policy.
            * 
      */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } /** - * - * *
            * Gets the IAM access control policy for a function.
            * Returns an empty policy if the function exists and does not have a policy
            * set.
            * 
      */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } /** - * - * *
            * Tests the specified permissions against the IAM access control policy
            * for a function.
      @@ -1478,9 +1142,8 @@ protected CloudFunctionsServiceFutureStub build(
            * permissions, not a NOT_FOUND error.
            * 
      */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } @@ -1498,11 +1161,11 @@ protected CloudFunctionsServiceFutureStub build( private static final int METHODID_GET_IAM_POLICY = 9; private static final int METHODID_TEST_IAM_PERMISSIONS = 10; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final CloudFunctionsServiceImplBase serviceImpl; private final int methodId; @@ -1516,66 +1179,48 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_FUNCTIONS: - serviceImpl.listFunctions( - (com.google.cloud.functions.v1.ListFunctionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listFunctions((com.google.cloud.functions.v1.ListFunctionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_FUNCTION: - serviceImpl.getFunction( - (com.google.cloud.functions.v1.GetFunctionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getFunction((com.google.cloud.functions.v1.GetFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_FUNCTION: - serviceImpl.createFunction( - (com.google.cloud.functions.v1.CreateFunctionRequest) request, + serviceImpl.createFunction((com.google.cloud.functions.v1.CreateFunctionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_FUNCTION: - serviceImpl.updateFunction( - (com.google.cloud.functions.v1.UpdateFunctionRequest) request, + serviceImpl.updateFunction((com.google.cloud.functions.v1.UpdateFunctionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_FUNCTION: - serviceImpl.deleteFunction( - (com.google.cloud.functions.v1.DeleteFunctionRequest) request, + serviceImpl.deleteFunction((com.google.cloud.functions.v1.DeleteFunctionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CALL_FUNCTION: - serviceImpl.callFunction( - (com.google.cloud.functions.v1.CallFunctionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.callFunction((com.google.cloud.functions.v1.CallFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GENERATE_UPLOAD_URL: - serviceImpl.generateUploadUrl( - (com.google.cloud.functions.v1.GenerateUploadUrlRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.generateUploadUrl((com.google.cloud.functions.v1.GenerateUploadUrlRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GENERATE_DOWNLOAD_URL: - serviceImpl.generateDownloadUrl( - (com.google.cloud.functions.v1.GenerateDownloadUrlRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.functions.v1.GenerateDownloadUrlResponse>) - responseObserver); + serviceImpl.generateDownloadUrl((com.google.cloud.functions.v1.GenerateDownloadUrlRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -1593,9 +1238,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class CloudFunctionsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class CloudFunctionsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { CloudFunctionsServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -1637,22 +1281,20 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (CloudFunctionsServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudFunctionsServiceFileDescriptorSupplier()) - .addMethod(getListFunctionsMethod()) - .addMethod(getGetFunctionMethod()) - .addMethod(getCreateFunctionMethod()) - .addMethod(getUpdateFunctionMethod()) - .addMethod(getDeleteFunctionMethod()) - .addMethod(getCallFunctionMethod()) - .addMethod(getGenerateUploadUrlMethod()) - .addMethod(getGenerateDownloadUrlMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudFunctionsServiceFileDescriptorSupplier()) + .addMethod(getListFunctionsMethod()) + .addMethod(getGetFunctionMethod()) + .addMethod(getCreateFunctionMethod()) + .addMethod(getUpdateFunctionMethod()) + .addMethod(getDeleteFunctionMethod()) + .addMethod(getCallFunctionMethod()) + .addMethod(getGenerateUploadUrlMethod()) + .addMethod(getGenerateDownloadUrlMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); } } } diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java similarity index 66% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java index 24344734..b701eb4a 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java @@ -1,42 +1,24 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Request for the `CallFunction` method.
        * 
      * * Protobuf type {@code google.cloud.functions.v1.CallFunctionRequest} */ -public final class CallFunctionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CallFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.CallFunctionRequest) CallFunctionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CallFunctionRequest.newBuilder() to construct. private CallFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CallFunctionRequest() { name_ = ""; data_ = ""; @@ -44,15 +26,16 @@ private CallFunctionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CallFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CallFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private CallFunctionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - data_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + data_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,41 +80,34 @@ private CallFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.CallFunctionRequest.class, - com.google.cloud.functions.v1.CallFunctionRequest.Builder.class); + com.google.cloud.functions.v1.CallFunctionRequest.class, com.google.cloud.functions.v1.CallFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
          * Required. The name of the function to be called.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -142,31 +116,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
          * Required. The name of the function to be called.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -177,14 +149,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DATA_FIELD_NUMBER = 2; private volatile java.lang.Object data_; /** - * - * *
          * Required. Input to be passed to the function.
          * 
      * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The data. */ @java.lang.Override @@ -193,29 +162,29 @@ public java.lang.String getData() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); data_ = s; return s; } } /** - * - * *
          * Required. Input to be passed to the function.
          * 
      * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for data. */ @java.lang.Override - public com.google.protobuf.ByteString getDataBytes() { + public com.google.protobuf.ByteString + getDataBytes() { java.lang.Object ref = data_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); data_ = b; return b; } else { @@ -224,7 +193,6 @@ public com.google.protobuf.ByteString getDataBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -266,16 +235,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.CallFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.CallFunctionRequest other = - (com.google.cloud.functions.v1.CallFunctionRequest) obj; + com.google.cloud.functions.v1.CallFunctionRequest other = (com.google.cloud.functions.v1.CallFunctionRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getData().equals(other.getData())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getData() + .equals(other.getData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -297,126 +267,117 @@ public int hashCode() { } public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CallFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.CallFunctionRequest 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.v1.CallFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.CallFunctionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.CallFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.CallFunctionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.CallFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request for the `CallFunction` method.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.CallFunctionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.CallFunctionRequest) com.google.cloud.functions.v1.CallFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.CallFunctionRequest.class, - com.google.cloud.functions.v1.CallFunctionRequest.Builder.class); + com.google.cloud.functions.v1.CallFunctionRequest.class, com.google.cloud.functions.v1.CallFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.CallFunctionRequest.newBuilder() @@ -424,15 +385,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; } @java.lang.Override @@ -465,8 +427,7 @@ public com.google.cloud.functions.v1.CallFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v1.CallFunctionRequest buildPartial() { - com.google.cloud.functions.v1.CallFunctionRequest result = - new com.google.cloud.functions.v1.CallFunctionRequest(this); + com.google.cloud.functions.v1.CallFunctionRequest result = new com.google.cloud.functions.v1.CallFunctionRequest(this); result.name_ = name_; result.data_ = data_; onBuilt(); @@ -477,39 +438,38 @@ public com.google.cloud.functions.v1.CallFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.CallFunctionRequest) other); + return mergeFrom((com.google.cloud.functions.v1.CallFunctionRequest)other); } else { super.mergeFrom(other); return this; @@ -517,8 +477,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.CallFunctionRequest other) { - if (other == com.google.cloud.functions.v1.CallFunctionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.CallFunctionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -546,8 +505,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v1.CallFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v1.CallFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -559,22 +517,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
            * Required. The name of the function to be called.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -583,23 +537,20 @@ public java.lang.String getName() { } } /** - * - * *
            * Required. The name of the function to be called.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -607,67 +558,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
            * Required. The name of the function to be called.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
            * Required. The name of the function to be called.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
            * Required. The name of the function to be called.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -675,20 +613,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object data_ = ""; /** - * - * *
            * Required. Input to be passed to the function.
            * 
      * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The data. */ public java.lang.String getData() { java.lang.Object ref = data_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); data_ = s; return s; @@ -697,21 +633,20 @@ public java.lang.String getData() { } } /** - * - * *
            * Required. Input to be passed to the function.
            * 
      * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for data. */ - public com.google.protobuf.ByteString getDataBytes() { + public com.google.protobuf.ByteString + getDataBytes() { java.lang.Object ref = data_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); data_ = b; return b; } else { @@ -719,68 +654,61 @@ public com.google.protobuf.ByteString getDataBytes() { } } /** - * - * *
            * Required. Input to be passed to the function.
            * 
      * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The data to set. * @return This builder for chaining. */ - public Builder setData(java.lang.String value) { + public Builder setData( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + data_ = value; onChanged(); return this; } /** - * - * *
            * Required. Input to be passed to the function.
            * 
      * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearData() { - + data_ = getDefaultInstance().getData(); onChanged(); return this; } /** - * - * *
            * Required. Input to be passed to the function.
            * 
      * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for data to set. * @return This builder for chaining. */ - public Builder setDataBytes(com.google.protobuf.ByteString value) { + public Builder setDataBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + data_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -790,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.CallFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.CallFunctionRequest) private static final com.google.cloud.functions.v1.CallFunctionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.CallFunctionRequest(); } @@ -804,16 +732,16 @@ public static com.google.cloud.functions.v1.CallFunctionRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CallFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CallFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CallFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CallFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -828,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.CallFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java new file mode 100644 index 00000000..b0e626b3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v1/functions.proto + +package com.google.cloud.functions.v1; + +public interface CallFunctionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.CallFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Required. The name of the function to be called.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
      +   * Required. The name of the function to be called.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
      +   * Required. Input to be passed to the function.
      +   * 
      + * + * string data = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The data. + */ + java.lang.String getData(); + /** + *
      +   * Required. Input to be passed to the function.
      +   * 
      + * + * string data = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for data. + */ + com.google.protobuf.ByteString + getDataBytes(); +} diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java similarity index 71% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java index 34c0537b..1e0c8f0a 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java @@ -1,42 +1,24 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Response of `CallFunction` method.
        * 
      * * Protobuf type {@code google.cloud.functions.v1.CallFunctionResponse} */ -public final class CallFunctionResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CallFunctionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.CallFunctionResponse) CallFunctionResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CallFunctionResponse.newBuilder() to construct. private CallFunctionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CallFunctionResponse() { executionId_ = ""; result_ = ""; @@ -45,15 +27,16 @@ private CallFunctionResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CallFunctionResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CallFunctionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,31 @@ private CallFunctionResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - executionId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + executionId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - result_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + result_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - error_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + error_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,39 +87,34 @@ private CallFunctionResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.CallFunctionResponse.class, - com.google.cloud.functions.v1.CallFunctionResponse.Builder.class); + com.google.cloud.functions.v1.CallFunctionResponse.class, com.google.cloud.functions.v1.CallFunctionResponse.Builder.class); } public static final int EXECUTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object executionId_; /** - * - * *
          * Execution id of function invocation.
          * 
      * * string execution_id = 1; - * * @return The executionId. */ @java.lang.Override @@ -148,29 +123,29 @@ public java.lang.String getExecutionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); executionId_ = s; return s; } } /** - * - * *
          * Execution id of function invocation.
          * 
      * * string execution_id = 1; - * * @return The bytes for executionId. */ @java.lang.Override - public com.google.protobuf.ByteString getExecutionIdBytes() { + public com.google.protobuf.ByteString + getExecutionIdBytes() { java.lang.Object ref = executionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); executionId_ = b; return b; } else { @@ -181,15 +156,12 @@ public com.google.protobuf.ByteString getExecutionIdBytes() { public static final int RESULT_FIELD_NUMBER = 2; private volatile java.lang.Object result_; /** - * - * *
          * Result populated for successful execution of synchronous function. Will
          * not be populated if function does not return a result through context.
          * 
      * * string result = 2; - * * @return The result. */ @java.lang.Override @@ -198,30 +170,30 @@ public java.lang.String getResult() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); result_ = s; return s; } } /** - * - * *
          * Result populated for successful execution of synchronous function. Will
          * not be populated if function does not return a result through context.
          * 
      * * string result = 2; - * * @return The bytes for result. */ @java.lang.Override - public com.google.protobuf.ByteString getResultBytes() { + public com.google.protobuf.ByteString + getResultBytes() { java.lang.Object ref = result_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); result_ = b; return b; } else { @@ -232,15 +204,12 @@ public com.google.protobuf.ByteString getResultBytes() { public static final int ERROR_FIELD_NUMBER = 3; private volatile java.lang.Object error_; /** - * - * *
          * Either system or user-function generated error. Set if execution
          * was not successful.
          * 
      * * string error = 3; - * * @return The error. */ @java.lang.Override @@ -249,30 +218,30 @@ public java.lang.String getError() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } } /** - * - * *
          * Either system or user-function generated error. Set if execution
          * was not successful.
          * 
      * * string error = 3; - * * @return The bytes for error. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorBytes() { + public com.google.protobuf.ByteString + getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); error_ = b; return b; } else { @@ -281,7 +250,6 @@ public com.google.protobuf.ByteString getErrorBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executionId_); } @@ -329,17 +298,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.CallFunctionResponse)) { return super.equals(obj); } - com.google.cloud.functions.v1.CallFunctionResponse other = - (com.google.cloud.functions.v1.CallFunctionResponse) obj; + com.google.cloud.functions.v1.CallFunctionResponse other = (com.google.cloud.functions.v1.CallFunctionResponse) obj; - if (!getExecutionId().equals(other.getExecutionId())) return false; - if (!getResult().equals(other.getResult())) return false; - if (!getError().equals(other.getError())) return false; + if (!getExecutionId() + .equals(other.getExecutionId())) return false; + if (!getResult() + .equals(other.getResult())) return false; + if (!getError() + .equals(other.getError())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -363,126 +334,117 @@ public int hashCode() { } public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CallFunctionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.CallFunctionResponse 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.v1.CallFunctionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.CallFunctionResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.CallFunctionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.CallFunctionResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.CallFunctionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Response of `CallFunction` method.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.CallFunctionResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.CallFunctionResponse) com.google.cloud.functions.v1.CallFunctionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.CallFunctionResponse.class, - com.google.cloud.functions.v1.CallFunctionResponse.Builder.class); + com.google.cloud.functions.v1.CallFunctionResponse.class, com.google.cloud.functions.v1.CallFunctionResponse.Builder.class); } // Construct using com.google.cloud.functions.v1.CallFunctionResponse.newBuilder() @@ -490,15 +452,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -512,9 +475,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; } @java.lang.Override @@ -533,8 +496,7 @@ public com.google.cloud.functions.v1.CallFunctionResponse build() { @java.lang.Override public com.google.cloud.functions.v1.CallFunctionResponse buildPartial() { - com.google.cloud.functions.v1.CallFunctionResponse result = - new com.google.cloud.functions.v1.CallFunctionResponse(this); + com.google.cloud.functions.v1.CallFunctionResponse result = new com.google.cloud.functions.v1.CallFunctionResponse(this); result.executionId_ = executionId_; result.result_ = result_; result.error_ = error_; @@ -546,39 +508,38 @@ public com.google.cloud.functions.v1.CallFunctionResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.CallFunctionResponse) other); + return mergeFrom((com.google.cloud.functions.v1.CallFunctionResponse)other); } else { super.mergeFrom(other); return this; @@ -586,8 +547,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.CallFunctionResponse other) { - if (other == com.google.cloud.functions.v1.CallFunctionResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.CallFunctionResponse.getDefaultInstance()) return this; if (!other.getExecutionId().isEmpty()) { executionId_ = other.executionId_; onChanged(); @@ -619,8 +579,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v1.CallFunctionResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v1.CallFunctionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -632,20 +591,18 @@ public Builder mergeFrom( private java.lang.Object executionId_ = ""; /** - * - * *
            * Execution id of function invocation.
            * 
      * * string execution_id = 1; - * * @return The executionId. */ public java.lang.String getExecutionId() { java.lang.Object ref = executionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); executionId_ = s; return s; @@ -654,21 +611,20 @@ public java.lang.String getExecutionId() { } } /** - * - * *
            * Execution id of function invocation.
            * 
      * * string execution_id = 1; - * * @return The bytes for executionId. */ - public com.google.protobuf.ByteString getExecutionIdBytes() { + public com.google.protobuf.ByteString + getExecutionIdBytes() { java.lang.Object ref = executionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); executionId_ = b; return b; } else { @@ -676,61 +632,54 @@ public com.google.protobuf.ByteString getExecutionIdBytes() { } } /** - * - * *
            * Execution id of function invocation.
            * 
      * * string execution_id = 1; - * * @param value The executionId to set. * @return This builder for chaining. */ - public Builder setExecutionId(java.lang.String value) { + public Builder setExecutionId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + executionId_ = value; onChanged(); return this; } /** - * - * *
            * Execution id of function invocation.
            * 
      * * string execution_id = 1; - * * @return This builder for chaining. */ public Builder clearExecutionId() { - + executionId_ = getDefaultInstance().getExecutionId(); onChanged(); return this; } /** - * - * *
            * Execution id of function invocation.
            * 
      * * string execution_id = 1; - * * @param value The bytes for executionId to set. * @return This builder for chaining. */ - public Builder setExecutionIdBytes(com.google.protobuf.ByteString value) { + public Builder setExecutionIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + executionId_ = value; onChanged(); return this; @@ -738,21 +687,19 @@ public Builder setExecutionIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object result_ = ""; /** - * - * *
            * Result populated for successful execution of synchronous function. Will
            * not be populated if function does not return a result through context.
            * 
      * * string result = 2; - * * @return The result. */ public java.lang.String getResult() { java.lang.Object ref = result_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); result_ = s; return s; @@ -761,22 +708,21 @@ public java.lang.String getResult() { } } /** - * - * *
            * Result populated for successful execution of synchronous function. Will
            * not be populated if function does not return a result through context.
            * 
      * * string result = 2; - * * @return The bytes for result. */ - public com.google.protobuf.ByteString getResultBytes() { + public com.google.protobuf.ByteString + getResultBytes() { java.lang.Object ref = result_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); result_ = b; return b; } else { @@ -784,64 +730,57 @@ public com.google.protobuf.ByteString getResultBytes() { } } /** - * - * *
            * Result populated for successful execution of synchronous function. Will
            * not be populated if function does not return a result through context.
            * 
      * * string result = 2; - * * @param value The result to set. * @return This builder for chaining. */ - public Builder setResult(java.lang.String value) { + public Builder setResult( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + result_ = value; onChanged(); return this; } /** - * - * *
            * Result populated for successful execution of synchronous function. Will
            * not be populated if function does not return a result through context.
            * 
      * * string result = 2; - * * @return This builder for chaining. */ public Builder clearResult() { - + result_ = getDefaultInstance().getResult(); onChanged(); return this; } /** - * - * *
            * Result populated for successful execution of synchronous function. Will
            * not be populated if function does not return a result through context.
            * 
      * * string result = 2; - * * @param value The bytes for result to set. * @return This builder for chaining. */ - public Builder setResultBytes(com.google.protobuf.ByteString value) { + public Builder setResultBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + result_ = value; onChanged(); return this; @@ -849,21 +788,19 @@ public Builder setResultBytes(com.google.protobuf.ByteString value) { private java.lang.Object error_ = ""; /** - * - * *
            * Either system or user-function generated error. Set if execution
            * was not successful.
            * 
      * * string error = 3; - * * @return The error. */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; @@ -872,22 +809,21 @@ public java.lang.String getError() { } } /** - * - * *
            * Either system or user-function generated error. Set if execution
            * was not successful.
            * 
      * * string error = 3; - * * @return The bytes for error. */ - public com.google.protobuf.ByteString getErrorBytes() { + public com.google.protobuf.ByteString + getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); error_ = b; return b; } else { @@ -895,71 +831,64 @@ public com.google.protobuf.ByteString getErrorBytes() { } } /** - * - * *
            * Either system or user-function generated error. Set if execution
            * was not successful.
            * 
      * * string error = 3; - * * @param value The error to set. * @return This builder for chaining. */ - public Builder setError(java.lang.String value) { + public Builder setError( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + error_ = value; onChanged(); return this; } /** - * - * *
            * Either system or user-function generated error. Set if execution
            * was not successful.
            * 
      * * string error = 3; - * * @return This builder for chaining. */ public Builder clearError() { - + error_ = getDefaultInstance().getError(); onChanged(); return this; } /** - * - * *
            * Either system or user-function generated error. Set if execution
            * was not successful.
            * 
      * * string error = 3; - * * @param value The bytes for error to set. * @return This builder for chaining. */ - public Builder setErrorBytes(com.google.protobuf.ByteString value) { + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + error_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -969,12 +898,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.CallFunctionResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.CallFunctionResponse) private static final com.google.cloud.functions.v1.CallFunctionResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.CallFunctionResponse(); } @@ -983,16 +912,16 @@ public static com.google.cloud.functions.v1.CallFunctionResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CallFunctionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CallFunctionResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CallFunctionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CallFunctionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1007,4 +936,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.CallFunctionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java similarity index 64% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java index 4bb656e9..382a94e9 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java @@ -1,104 +1,73 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface CallFunctionResponseOrBuilder - extends +public interface CallFunctionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.CallFunctionResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Execution id of function invocation.
          * 
      * * string execution_id = 1; - * * @return The executionId. */ java.lang.String getExecutionId(); /** - * - * *
          * Execution id of function invocation.
          * 
      * * string execution_id = 1; - * * @return The bytes for executionId. */ - com.google.protobuf.ByteString getExecutionIdBytes(); + com.google.protobuf.ByteString + getExecutionIdBytes(); /** - * - * *
          * Result populated for successful execution of synchronous function. Will
          * not be populated if function does not return a result through context.
          * 
      * * string result = 2; - * * @return The result. */ java.lang.String getResult(); /** - * - * *
          * Result populated for successful execution of synchronous function. Will
          * not be populated if function does not return a result through context.
          * 
      * * string result = 2; - * * @return The bytes for result. */ - com.google.protobuf.ByteString getResultBytes(); + com.google.protobuf.ByteString + getResultBytes(); /** - * - * *
          * Either system or user-function generated error. Set if execution
          * was not successful.
          * 
      * * string error = 3; - * * @return The error. */ java.lang.String getError(); /** - * - * *
          * Either system or user-function generated error. Set if execution
          * was not successful.
          * 
      * * string error = 3; - * * @return The bytes for error. */ - com.google.protobuf.ByteString getErrorBytes(); + com.google.protobuf.ByteString + getErrorBytes(); } diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java similarity index 76% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java index bcb223da..04de8546 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java @@ -1,26 +1,9 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Describes a Cloud Function that contains user computation executed in
        * response to an event. It encapsulate function and triggers configurations.
      @@ -28,16 +11,15 @@
        *
        * Protobuf type {@code google.cloud.functions.v1.CloudFunction}
        */
      -public final class CloudFunction extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class CloudFunction extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.CloudFunction)
           CloudFunctionOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use CloudFunction.newBuilder() to construct.
         private CloudFunction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
         private CloudFunction() {
           name_ = "";
           description_ = "";
      @@ -62,15 +44,16 @@ private CloudFunction() {
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new CloudFunction();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private CloudFunction(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -90,320 +73,272 @@ private CloudFunction(
                 case 0:
                   done = true;
                   break;
      -          case 10:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +          case 10: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              name_ = s;
      -              break;
      -            }
      -          case 18:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            name_ = s;
      +            break;
      +          }
      +          case 18: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              description_ = s;
      -              break;
      +            description_ = s;
      +            break;
      +          }
      +          case 26: {
      +            java.lang.String s = input.readStringRequireUtf8();
      +            sourceCodeCase_ = 3;
      +            sourceCode_ = s;
      +            break;
      +          }
      +          case 34: {
      +            com.google.cloud.functions.v1.SourceRepository.Builder subBuilder = null;
      +            if (sourceCodeCase_ == 4) {
      +              subBuilder = ((com.google.cloud.functions.v1.SourceRepository) sourceCode_).toBuilder();
      +            }
      +            sourceCode_ =
      +                input.readMessage(com.google.cloud.functions.v1.SourceRepository.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom((com.google.cloud.functions.v1.SourceRepository) sourceCode_);
      +              sourceCode_ = subBuilder.buildPartial();
                   }
      -          case 26:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      -              sourceCodeCase_ = 3;
      -              sourceCode_ = s;
      -              break;
      +            sourceCodeCase_ = 4;
      +            break;
      +          }
      +          case 42: {
      +            com.google.cloud.functions.v1.HttpsTrigger.Builder subBuilder = null;
      +            if (triggerCase_ == 5) {
      +              subBuilder = ((com.google.cloud.functions.v1.HttpsTrigger) trigger_).toBuilder();
                   }
      -          case 34:
      -            {
      -              com.google.cloud.functions.v1.SourceRepository.Builder subBuilder = null;
      -              if (sourceCodeCase_ == 4) {
      -                subBuilder =
      -                    ((com.google.cloud.functions.v1.SourceRepository) sourceCode_).toBuilder();
      -              }
      -              sourceCode_ =
      -                  input.readMessage(
      -                      com.google.cloud.functions.v1.SourceRepository.parser(), extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom((com.google.cloud.functions.v1.SourceRepository) sourceCode_);
      -                sourceCode_ = subBuilder.buildPartial();
      -              }
      -              sourceCodeCase_ = 4;
      -              break;
      +            trigger_ =
      +                input.readMessage(com.google.cloud.functions.v1.HttpsTrigger.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom((com.google.cloud.functions.v1.HttpsTrigger) trigger_);
      +              trigger_ = subBuilder.buildPartial();
                   }
      -          case 42:
      -            {
      -              com.google.cloud.functions.v1.HttpsTrigger.Builder subBuilder = null;
      -              if (triggerCase_ == 5) {
      -                subBuilder = ((com.google.cloud.functions.v1.HttpsTrigger) trigger_).toBuilder();
      -              }
      -              trigger_ =
      -                  input.readMessage(
      -                      com.google.cloud.functions.v1.HttpsTrigger.parser(), extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom((com.google.cloud.functions.v1.HttpsTrigger) trigger_);
      -                trigger_ = subBuilder.buildPartial();
      -              }
      -              triggerCase_ = 5;
      -              break;
      +            triggerCase_ = 5;
      +            break;
      +          }
      +          case 50: {
      +            com.google.cloud.functions.v1.EventTrigger.Builder subBuilder = null;
      +            if (triggerCase_ == 6) {
      +              subBuilder = ((com.google.cloud.functions.v1.EventTrigger) trigger_).toBuilder();
                   }
      -          case 50:
      -            {
      -              com.google.cloud.functions.v1.EventTrigger.Builder subBuilder = null;
      -              if (triggerCase_ == 6) {
      -                subBuilder = ((com.google.cloud.functions.v1.EventTrigger) trigger_).toBuilder();
      -              }
      -              trigger_ =
      -                  input.readMessage(
      -                      com.google.cloud.functions.v1.EventTrigger.parser(), extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom((com.google.cloud.functions.v1.EventTrigger) trigger_);
      -                trigger_ = subBuilder.buildPartial();
      -              }
      -              triggerCase_ = 6;
      -              break;
      +            trigger_ =
      +                input.readMessage(com.google.cloud.functions.v1.EventTrigger.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom((com.google.cloud.functions.v1.EventTrigger) trigger_);
      +              trigger_ = subBuilder.buildPartial();
                   }
      -          case 56:
      -            {
      -              int rawValue = input.readEnum();
      +            triggerCase_ = 6;
      +            break;
      +          }
      +          case 56: {
      +            int rawValue = input.readEnum();
       
      -              status_ = rawValue;
      -              break;
      -            }
      -          case 66:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            status_ = rawValue;
      +            break;
      +          }
      +          case 66: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              entryPoint_ = s;
      -              break;
      -            }
      -          case 74:
      -            {
      -              com.google.protobuf.Duration.Builder subBuilder = null;
      -              if (timeout_ != null) {
      -                subBuilder = timeout_.toBuilder();
      -              }
      -              timeout_ =
      -                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom(timeout_);
      -                timeout_ = subBuilder.buildPartial();
      -              }
      -
      -              break;
      +            entryPoint_ = s;
      +            break;
      +          }
      +          case 74: {
      +            com.google.protobuf.Duration.Builder subBuilder = null;
      +            if (timeout_ != null) {
      +              subBuilder = timeout_.toBuilder();
                   }
      -          case 80:
      -            {
      -              availableMemoryMb_ = input.readInt32();
      -              break;
      +            timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(timeout_);
      +              timeout_ = subBuilder.buildPartial();
                   }
      -          case 90:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
       
      -              serviceAccountEmail_ = s;
      -              break;
      -            }
      -          case 98:
      -            {
      -              com.google.protobuf.Timestamp.Builder subBuilder = null;
      -              if (updateTime_ != null) {
      -                subBuilder = updateTime_.toBuilder();
      -              }
      -              updateTime_ =
      -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom(updateTime_);
      -                updateTime_ = subBuilder.buildPartial();
      -              }
      -
      -              break;
      -            }
      -          case 112:
      -            {
      -              versionId_ = input.readInt64();
      -              break;
      -            }
      -          case 122:
      -            {
      -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      -                labels_ =
      -                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
      -                mutable_bitField0_ |= 0x00000001;
      -              }
      -              com.google.protobuf.MapEntry labels__ =
      -                  input.readMessage(
      -                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
      -              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
      -              break;
      -            }
      -          case 130:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      -              sourceCodeCase_ = 16;
      -              sourceCode_ = s;
      -              break;
      +            break;
      +          }
      +          case 80: {
      +
      +            availableMemoryMb_ = input.readInt32();
      +            break;
      +          }
      +          case 90: {
      +            java.lang.String s = input.readStringRequireUtf8();
      +
      +            serviceAccountEmail_ = s;
      +            break;
      +          }
      +          case 98: {
      +            com.google.protobuf.Timestamp.Builder subBuilder = null;
      +            if (updateTime_ != null) {
      +              subBuilder = updateTime_.toBuilder();
                   }
      -          case 138:
      -            {
      -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
      -                environmentVariables_ =
      -                    com.google.protobuf.MapField.newMapField(
      -                        EnvironmentVariablesDefaultEntryHolder.defaultEntry);
      -                mutable_bitField0_ |= 0x00000002;
      -              }
      -              com.google.protobuf.MapEntry
      -                  environmentVariables__ =
      -                      input.readMessage(
      -                          EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
      -                          extensionRegistry);
      -              environmentVariables_
      -                  .getMutableMap()
      -                  .put(environmentVariables__.getKey(), environmentVariables__.getValue());
      -              break;
      +            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(updateTime_);
      +              updateTime_ = subBuilder.buildPartial();
                   }
      -          case 146:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
       
      -              network_ = s;
      -              break;
      -            }
      -          case 154:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            break;
      +          }
      +          case 112: {
       
      -              runtime_ = s;
      -              break;
      +            versionId_ = input.readInt64();
      +            break;
      +          }
      +          case 122: {
      +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      +              labels_ = com.google.protobuf.MapField.newMapField(
      +                  LabelsDefaultEntryHolder.defaultEntry);
      +              mutable_bitField0_ |= 0x00000001;
                   }
      -          case 160:
      -            {
      -              maxInstances_ = input.readInt32();
      -              break;
      +            com.google.protobuf.MapEntry
      +            labels__ = input.readMessage(
      +                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
      +            labels_.getMutableMap().put(
      +                labels__.getKey(), labels__.getValue());
      +            break;
      +          }
      +          case 130: {
      +            java.lang.String s = input.readStringRequireUtf8();
      +            sourceCodeCase_ = 16;
      +            sourceCode_ = s;
      +            break;
      +          }
      +          case 138: {
      +            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
      +              environmentVariables_ = com.google.protobuf.MapField.newMapField(
      +                  EnvironmentVariablesDefaultEntryHolder.defaultEntry);
      +              mutable_bitField0_ |= 0x00000002;
                   }
      -          case 178:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            com.google.protobuf.MapEntry
      +            environmentVariables__ = input.readMessage(
      +                EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
      +            environmentVariables_.getMutableMap().put(
      +                environmentVariables__.getKey(), environmentVariables__.getValue());
      +            break;
      +          }
      +          case 146: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              vpcConnector_ = s;
      -              break;
      -            }
      -          case 184:
      -            {
      -              int rawValue = input.readEnum();
      +            network_ = s;
      +            break;
      +          }
      +          case 154: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              vpcConnectorEgressSettings_ = rawValue;
      -              break;
      -            }
      -          case 192:
      -            {
      -              int rawValue = input.readEnum();
      +            runtime_ = s;
      +            break;
      +          }
      +          case 160: {
       
      -              ingressSettings_ = rawValue;
      -              break;
      -            }
      -          case 202:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            maxInstances_ = input.readInt32();
      +            break;
      +          }
      +          case 178: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              kmsKeyName_ = s;
      -              break;
      -            }
      -          case 210:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            vpcConnector_ = s;
      +            break;
      +          }
      +          case 184: {
      +            int rawValue = input.readEnum();
       
      -              buildWorkerPool_ = s;
      -              break;
      -            }
      -          case 218:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            vpcConnectorEgressSettings_ = rawValue;
      +            break;
      +          }
      +          case 192: {
      +            int rawValue = input.readEnum();
       
      -              buildId_ = s;
      -              break;
      -            }
      -          case 226:
      -            {
      -              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
      -                buildEnvironmentVariables_ =
      -                    com.google.protobuf.MapField.newMapField(
      -                        BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry);
      -                mutable_bitField0_ |= 0x00000004;
      -              }
      -              com.google.protobuf.MapEntry
      -                  buildEnvironmentVariables__ =
      -                      input.readMessage(
      -                          BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry
      -                              .getParserForType(),
      -                          extensionRegistry);
      -              buildEnvironmentVariables_
      -                  .getMutableMap()
      -                  .put(
      -                      buildEnvironmentVariables__.getKey(), buildEnvironmentVariables__.getValue());
      -              break;
      +            ingressSettings_ = rawValue;
      +            break;
      +          }
      +          case 202: {
      +            java.lang.String s = input.readStringRequireUtf8();
      +
      +            kmsKeyName_ = s;
      +            break;
      +          }
      +          case 210: {
      +            java.lang.String s = input.readStringRequireUtf8();
      +
      +            buildWorkerPool_ = s;
      +            break;
      +          }
      +          case 218: {
      +            java.lang.String s = input.readStringRequireUtf8();
      +
      +            buildId_ = s;
      +            break;
      +          }
      +          case 226: {
      +            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
      +              buildEnvironmentVariables_ = com.google.protobuf.MapField.newMapField(
      +                  BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry);
      +              mutable_bitField0_ |= 0x00000004;
                   }
      -          case 234:
      -            {
      -              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
      -                secretEnvironmentVariables_ =
      -                    new java.util.ArrayList();
      -                mutable_bitField0_ |= 0x00000008;
      -              }
      -              secretEnvironmentVariables_.add(
      -                  input.readMessage(
      -                      com.google.cloud.functions.v1.SecretEnvVar.parser(), extensionRegistry));
      -              break;
      +            com.google.protobuf.MapEntry
      +            buildEnvironmentVariables__ = input.readMessage(
      +                BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
      +            buildEnvironmentVariables_.getMutableMap().put(
      +                buildEnvironmentVariables__.getKey(), buildEnvironmentVariables__.getValue());
      +            break;
      +          }
      +          case 234: {
      +            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
      +              secretEnvironmentVariables_ = new java.util.ArrayList();
      +              mutable_bitField0_ |= 0x00000008;
                   }
      -          case 242:
      -            {
      -              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
      -                secretVolumes_ =
      -                    new java.util.ArrayList();
      -                mutable_bitField0_ |= 0x00000010;
      -              }
      -              secretVolumes_.add(
      -                  input.readMessage(
      -                      com.google.cloud.functions.v1.SecretVolume.parser(), extensionRegistry));
      -              break;
      +            secretEnvironmentVariables_.add(
      +                input.readMessage(com.google.cloud.functions.v1.SecretEnvVar.parser(), extensionRegistry));
      +            break;
      +          }
      +          case 242: {
      +            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
      +              secretVolumes_ = new java.util.ArrayList();
      +              mutable_bitField0_ |= 0x00000010;
                   }
      -          case 250:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            secretVolumes_.add(
      +                input.readMessage(com.google.cloud.functions.v1.SecretVolume.parser(), extensionRegistry));
      +            break;
      +          }
      +          case 250: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              sourceToken_ = s;
      -              break;
      -            }
      -          case 256:
      -            {
      -              minInstances_ = input.readInt32();
      -              break;
      -            }
      -          case 266:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            sourceToken_ = s;
      +            break;
      +          }
      +          case 256: {
       
      -              buildName_ = s;
      -              break;
      -            }
      -          case 274:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            minInstances_ = input.readInt32();
      +            break;
      +          }
      +          case 266: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              dockerRepository_ = s;
      -              break;
      -            }
      -          case 280:
      -            {
      -              int rawValue = input.readEnum();
      +            buildName_ = s;
      +            break;
      +          }
      +          case 274: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              dockerRegistry_ = rawValue;
      -              break;
      -            }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +            dockerRepository_ = s;
      +            break;
      +          }
      +          case 280: {
      +            int rawValue = input.readEnum();
      +
      +            dockerRegistry_ = rawValue;
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -411,11 +346,11 @@ private CloudFunction(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             if (((mutable_bitField0_ & 0x00000008) != 0)) {
      -        secretEnvironmentVariables_ =
      -            java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
      +        secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
             }
             if (((mutable_bitField0_ & 0x00000010) != 0)) {
               secretVolumes_ = java.util.Collections.unmodifiableList(secretVolumes_);
      @@ -424,15 +359,15 @@ private CloudFunction(
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.functions.v1.FunctionsProto
      -        .internal_static_google_cloud_functions_v1_CloudFunction_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_descriptor;
         }
       
         @SuppressWarnings({"rawtypes"})
         @java.lang.Override
      -  protected com.google.protobuf.MapField internalGetMapField(int number) {
      +  protected com.google.protobuf.MapField internalGetMapField(
      +      int number) {
           switch (number) {
             case 15:
               return internalGetLabels();
      @@ -441,23 +376,19 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
             case 28:
               return internalGetBuildEnvironmentVariables();
             default:
      -        throw new RuntimeException("Invalid map field number: " + number);
      +        throw new RuntimeException(
      +            "Invalid map field number: " + number);
           }
         }
      -
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.functions.v1.FunctionsProto
      -        .internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable
      +    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.functions.v1.CloudFunction.class,
      -            com.google.cloud.functions.v1.CloudFunction.Builder.class);
      +            com.google.cloud.functions.v1.CloudFunction.class, com.google.cloud.functions.v1.CloudFunction.Builder.class);
         }
       
         /**
      -   *
      -   *
          * 
          * Available egress settings.
          * This controls what traffic is diverted through the VPC Access Connector
      @@ -466,10 +397,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
          *
          * Protobuf enum {@code google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings}
          */
      -  public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMessageEnum {
      +  public enum VpcConnectorEgressSettings
      +      implements com.google.protobuf.ProtocolMessageEnum {
           /**
      -     *
      -     *
            * 
            * Unspecified.
            * 
      @@ -478,8 +408,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe */ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED(0), /** - * - * *
            * Use the VPC Access Connector only for private IP space from RFC1918.
            * 
      @@ -488,8 +416,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe */ PRIVATE_RANGES_ONLY(1), /** - * - * *
            * Force the use of VPC Access Connector for all egress traffic from the
            * function.
      @@ -502,8 +428,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe
           ;
       
           /**
      -     *
      -     *
            * 
            * Unspecified.
            * 
      @@ -512,8 +436,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe */ public static final int VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** - * - * *
            * Use the VPC Access Connector only for private IP space from RFC1918.
            * 
      @@ -522,8 +444,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe */ public static final int PRIVATE_RANGES_ONLY_VALUE = 1; /** - * - * *
            * Force the use of VPC Access Connector for all egress traffic from the
            * function.
      @@ -533,6 +453,7 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe
            */
           public static final int ALL_TRAFFIC_VALUE = 2;
       
      +
           public final int getNumber() {
             if (this == UNRECOGNIZED) {
               throw new java.lang.IllegalArgumentException(
      @@ -557,14 +478,10 @@ public static VpcConnectorEgressSettings valueOf(int value) {
            */
           public static VpcConnectorEgressSettings forNumber(int value) {
             switch (value) {
      -        case 0:
      -          return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
      -        case 1:
      -          return PRIVATE_RANGES_ONLY;
      -        case 2:
      -          return ALL_TRAFFIC;
      -        default:
      -          return null;
      +        case 0: return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
      +        case 1: return PRIVATE_RANGES_ONLY;
      +        case 2: return ALL_TRAFFIC;
      +        default: return null;
             }
           }
       
      @@ -572,28 +489,28 @@ public static VpcConnectorEgressSettings forNumber(int value) {
               internalGetValueMap() {
             return internalValueMap;
           }
      +    private static final com.google.protobuf.Internal.EnumLiteMap<
      +        VpcConnectorEgressSettings> internalValueMap =
      +          new com.google.protobuf.Internal.EnumLiteMap() {
      +            public VpcConnectorEgressSettings findValueByNumber(int number) {
      +              return VpcConnectorEgressSettings.forNumber(number);
      +            }
      +          };
       
      -    private static final com.google.protobuf.Internal.EnumLiteMap
      -        internalValueMap =
      -            new com.google.protobuf.Internal.EnumLiteMap() {
      -              public VpcConnectorEgressSettings findValueByNumber(int number) {
      -                return VpcConnectorEgressSettings.forNumber(number);
      -              }
      -            };
      -
      -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      +    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() {
      +    public final com.google.protobuf.Descriptors.EnumDescriptor
      +        getDescriptorForType() {
             return getDescriptor();
           }
      -
      -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      +    public static final com.google.protobuf.Descriptors.EnumDescriptor
      +        getDescriptor() {
             return com.google.cloud.functions.v1.CloudFunction.getDescriptor().getEnumTypes().get(0);
           }
       
      @@ -602,7 +519,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
           public static VpcConnectorEgressSettings valueOf(
               com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
             if (desc.getType() != getDescriptor()) {
      -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      +        throw new java.lang.IllegalArgumentException(
      +          "EnumValueDescriptor is not for this type.");
             }
             if (desc.getIndex() == -1) {
               return UNRECOGNIZED;
      @@ -620,8 +538,6 @@ private VpcConnectorEgressSettings(int value) {
         }
       
         /**
      -   *
      -   *
          * 
          * Available ingress settings.
          * This controls what traffic can reach the function.
      @@ -630,10 +546,9 @@ private VpcConnectorEgressSettings(int value) {
          *
          * Protobuf enum {@code google.cloud.functions.v1.CloudFunction.IngressSettings}
          */
      -  public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum {
      +  public enum IngressSettings
      +      implements com.google.protobuf.ProtocolMessageEnum {
           /**
      -     *
      -     *
            * 
            * Unspecified.
            * 
      @@ -642,8 +557,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ INGRESS_SETTINGS_UNSPECIFIED(0), /** - * - * *
            * Allow HTTP traffic from public and private sources.
            * 
      @@ -652,8 +565,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ ALLOW_ALL(1), /** - * - * *
            * Allow HTTP traffic from only private VPC sources.
            * 
      @@ -662,8 +573,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ ALLOW_INTERNAL_ONLY(2), /** - * - * *
            * Allow HTTP traffic from private VPC sources and through GCLB.
            * 
      @@ -675,8 +584,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
            * Unspecified.
            * 
      @@ -685,8 +592,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** - * - * *
            * Allow HTTP traffic from public and private sources.
            * 
      @@ -695,8 +600,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALLOW_ALL_VALUE = 1; /** - * - * *
            * Allow HTTP traffic from only private VPC sources.
            * 
      @@ -705,8 +608,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALLOW_INTERNAL_ONLY_VALUE = 2; /** - * - * *
            * Allow HTTP traffic from private VPC sources and through GCLB.
            * 
      @@ -715,6 +616,7 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALLOW_INTERNAL_AND_GCLB_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -739,44 +641,40 @@ public static IngressSettings valueOf(int value) { */ public static IngressSettings forNumber(int value) { switch (value) { - case 0: - return INGRESS_SETTINGS_UNSPECIFIED; - case 1: - return ALLOW_ALL; - case 2: - return ALLOW_INTERNAL_ONLY; - case 3: - return ALLOW_INTERNAL_AND_GCLB; - default: - return null; + case 0: return INGRESS_SETTINGS_UNSPECIFIED; + case 1: return ALLOW_ALL; + case 2: return ALLOW_INTERNAL_ONLY; + case 3: return ALLOW_INTERNAL_AND_GCLB; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + IngressSettings> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IngressSettings findValueByNumber(int number) { + return IngressSettings.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IngressSettings findValueByNumber(int number) { - return IngressSettings.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.functions.v1.CloudFunction.getDescriptor().getEnumTypes().get(1); } @@ -785,7 +683,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static IngressSettings valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -803,18 +702,15 @@ private IngressSettings(int value) { } /** - * - * *
          * Docker Registry to use for storing function Docker images.
          * 
      * * Protobuf enum {@code google.cloud.functions.v1.CloudFunction.DockerRegistry} */ - public enum DockerRegistry implements com.google.protobuf.ProtocolMessageEnum { + public enum DockerRegistry + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
            * Unspecified.
            * 
      @@ -823,8 +719,6 @@ public enum DockerRegistry implements com.google.protobuf.ProtocolMessageEnum { */ DOCKER_REGISTRY_UNSPECIFIED(0), /** - * - * *
            * Docker images will be stored in multi-regional Container Registry
            * repositories named `gcf`.
      @@ -834,8 +728,6 @@ public enum DockerRegistry implements com.google.protobuf.ProtocolMessageEnum {
            */
           CONTAINER_REGISTRY(1),
           /**
      -     *
      -     *
            * 
            * Docker images will be stored in regional Artifact Registry repositories.
            * By default, GCF will create and use repositories named `gcf-artifacts`
      @@ -851,8 +743,6 @@ public enum DockerRegistry implements com.google.protobuf.ProtocolMessageEnum {
           ;
       
           /**
      -     *
      -     *
            * 
            * Unspecified.
            * 
      @@ -861,8 +751,6 @@ public enum DockerRegistry implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DOCKER_REGISTRY_UNSPECIFIED_VALUE = 0; /** - * - * *
            * Docker images will be stored in multi-regional Container Registry
            * repositories named `gcf`.
      @@ -872,8 +760,6 @@ public enum DockerRegistry implements com.google.protobuf.ProtocolMessageEnum {
            */
           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`
      @@ -886,6 +772,7 @@ public enum DockerRegistry implements com.google.protobuf.ProtocolMessageEnum {
            */
           public static final int ARTIFACT_REGISTRY_VALUE = 2;
       
      +
           public final int getNumber() {
             if (this == UNRECOGNIZED) {
               throw new java.lang.IllegalArgumentException(
      @@ -910,49 +797,49 @@ public static DockerRegistry valueOf(int 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;
      +        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() {
      +    public static com.google.protobuf.Internal.EnumLiteMap
      +        internalGetValueMap() {
             return internalValueMap;
           }
      +    private static final com.google.protobuf.Internal.EnumLiteMap<
      +        DockerRegistry> internalValueMap =
      +          new com.google.protobuf.Internal.EnumLiteMap() {
      +            public DockerRegistry findValueByNumber(int number) {
      +              return DockerRegistry.forNumber(number);
      +            }
      +          };
       
      -    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() {
      +    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() {
      +    public final com.google.protobuf.Descriptors.EnumDescriptor
      +        getDescriptorForType() {
             return getDescriptor();
           }
      -
      -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      +    public static final com.google.protobuf.Descriptors.EnumDescriptor
      +        getDescriptor() {
             return com.google.cloud.functions.v1.CloudFunction.getDescriptor().getEnumTypes().get(2);
           }
       
           private static final DockerRegistry[] VALUES = values();
       
      -    public static DockerRegistry valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      +    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.");
      +        throw new java.lang.IllegalArgumentException(
      +          "EnumValueDescriptor is not for this type.");
             }
             if (desc.getIndex() == -1) {
               return UNRECOGNIZED;
      @@ -971,17 +858,14 @@ private DockerRegistry(int value) {
       
         private int sourceCodeCase_ = 0;
         private java.lang.Object sourceCode_;
      -
         public enum SourceCodeCase
      -      implements
      -          com.google.protobuf.Internal.EnumLite,
      +      implements com.google.protobuf.Internal.EnumLite,
                 com.google.protobuf.AbstractMessage.InternalOneOfEnum {
           SOURCE_ARCHIVE_URL(3),
           SOURCE_REPOSITORY(4),
           SOURCE_UPLOAD_URL(16),
           SOURCECODE_NOT_SET(0);
           private final int value;
      -
           private SourceCodeCase(int value) {
             this.value = value;
           }
      @@ -997,40 +881,33 @@ public static SourceCodeCase valueOf(int value) {
       
           public static SourceCodeCase forNumber(int value) {
             switch (value) {
      -        case 3:
      -          return SOURCE_ARCHIVE_URL;
      -        case 4:
      -          return SOURCE_REPOSITORY;
      -        case 16:
      -          return SOURCE_UPLOAD_URL;
      -        case 0:
      -          return SOURCECODE_NOT_SET;
      -        default:
      -          return null;
      +        case 3: return SOURCE_ARCHIVE_URL;
      +        case 4: return SOURCE_REPOSITORY;
      +        case 16: return SOURCE_UPLOAD_URL;
      +        case 0: return SOURCECODE_NOT_SET;
      +        default: return null;
             }
           }
      -
           public int getNumber() {
             return this.value;
           }
         };
       
      -  public SourceCodeCase getSourceCodeCase() {
      -    return SourceCodeCase.forNumber(sourceCodeCase_);
      +  public SourceCodeCase
      +  getSourceCodeCase() {
      +    return SourceCodeCase.forNumber(
      +        sourceCodeCase_);
         }
       
         private int triggerCase_ = 0;
         private java.lang.Object trigger_;
      -
         public enum TriggerCase
      -      implements
      -          com.google.protobuf.Internal.EnumLite,
      +      implements com.google.protobuf.Internal.EnumLite,
                 com.google.protobuf.AbstractMessage.InternalOneOfEnum {
           HTTPS_TRIGGER(5),
           EVENT_TRIGGER(6),
           TRIGGER_NOT_SET(0);
           private final int value;
      -
           private TriggerCase(int value) {
             this.value = value;
           }
      @@ -1046,38 +923,32 @@ public static TriggerCase valueOf(int value) {
       
           public static TriggerCase forNumber(int value) {
             switch (value) {
      -        case 5:
      -          return HTTPS_TRIGGER;
      -        case 6:
      -          return EVENT_TRIGGER;
      -        case 0:
      -          return TRIGGER_NOT_SET;
      -        default:
      -          return null;
      +        case 5: return HTTPS_TRIGGER;
      +        case 6: return EVENT_TRIGGER;
      +        case 0: return TRIGGER_NOT_SET;
      +        default: return null;
             }
           }
      -
           public int getNumber() {
             return this.value;
           }
         };
       
      -  public TriggerCase getTriggerCase() {
      -    return TriggerCase.forNumber(triggerCase_);
      +  public TriggerCase
      +  getTriggerCase() {
      +    return TriggerCase.forNumber(
      +        triggerCase_);
         }
       
         public static final int NAME_FIELD_NUMBER = 1;
         private volatile java.lang.Object name_;
         /**
      -   *
      -   *
          * 
          * A user-defined name of the function. Function names must be unique
          * globally and match pattern `projects/*/locations/*/functions/*`
          * 
      * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1086,30 +957,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
          * A user-defined name of the function. Function names must be unique
          * globally and match pattern `projects/*/locations/*/functions/*`
          * 
      * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1120,14 +991,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
          * User-provided description of a function.
          * 
      * * string description = 2; - * * @return The description. */ @java.lang.Override @@ -1136,29 +1004,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
          * User-provided description of a function.
          * 
      * * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1168,30 +1036,24 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int SOURCE_ARCHIVE_URL_FIELD_NUMBER = 3; /** - * - * *
          * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
          * archive which contains the function.
          * 
      * * string source_archive_url = 3; - * * @return Whether the sourceArchiveUrl field is set. */ public boolean hasSourceArchiveUrl() { return sourceCodeCase_ == 3; } /** - * - * *
          * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
          * archive which contains the function.
          * 
      * * string source_archive_url = 3; - * * @return The sourceArchiveUrl. */ public java.lang.String getSourceArchiveUrl() { @@ -1202,7 +1064,8 @@ public java.lang.String getSourceArchiveUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 3) { sourceCode_ = s; @@ -1211,25 +1074,24 @@ public java.lang.String getSourceArchiveUrl() { } } /** - * - * *
          * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
          * archive which contains the function.
          * 
      * * string source_archive_url = 3; - * * @return The bytes for sourceArchiveUrl. */ - public com.google.protobuf.ByteString getSourceArchiveUrlBytes() { + public com.google.protobuf.ByteString + getSourceArchiveUrlBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 3) { ref = sourceCode_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCodeCase_ == 3) { sourceCode_ = b; } @@ -1241,15 +1103,12 @@ public com.google.protobuf.ByteString getSourceArchiveUrlBytes() { public static final int SOURCE_REPOSITORY_FIELD_NUMBER = 4; /** - * - * *
          * **Beta Feature**
          * The source repository where a function is hosted.
          * 
      * * .google.cloud.functions.v1.SourceRepository source_repository = 4; - * * @return Whether the sourceRepository field is set. */ @java.lang.Override @@ -1257,27 +1116,22 @@ public boolean hasSourceRepository() { return sourceCodeCase_ == 4; } /** - * - * *
          * **Beta Feature**
          * The source repository where a function is hosted.
          * 
      * * .google.cloud.functions.v1.SourceRepository source_repository = 4; - * * @return The sourceRepository. */ @java.lang.Override public com.google.cloud.functions.v1.SourceRepository getSourceRepository() { if (sourceCodeCase_ == 4) { - return (com.google.cloud.functions.v1.SourceRepository) sourceCode_; + return (com.google.cloud.functions.v1.SourceRepository) sourceCode_; } return com.google.cloud.functions.v1.SourceRepository.getDefaultInstance(); } /** - * - * *
          * **Beta Feature**
          * The source repository where a function is hosted.
      @@ -1288,15 +1142,13 @@ public com.google.cloud.functions.v1.SourceRepository getSourceRepository() {
         @java.lang.Override
         public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceRepositoryOrBuilder() {
           if (sourceCodeCase_ == 4) {
      -      return (com.google.cloud.functions.v1.SourceRepository) sourceCode_;
      +       return (com.google.cloud.functions.v1.SourceRepository) sourceCode_;
           }
           return com.google.cloud.functions.v1.SourceRepository.getDefaultInstance();
         }
       
         public static final int SOURCE_UPLOAD_URL_FIELD_NUMBER = 16;
         /**
      -   *
      -   *
          * 
          * The Google Cloud Storage signed URL used for source uploading, generated
          * by calling [google.cloud.functions.v1.GenerateUploadUrl].
      @@ -1306,15 +1158,12 @@ public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceReposito
          * 
      * * string source_upload_url = 16; - * * @return Whether the sourceUploadUrl field is set. */ public boolean hasSourceUploadUrl() { return sourceCodeCase_ == 16; } /** - * - * *
          * The Google Cloud Storage signed URL used for source uploading, generated
          * by calling [google.cloud.functions.v1.GenerateUploadUrl].
      @@ -1324,7 +1173,6 @@ public boolean hasSourceUploadUrl() {
          * 
      * * string source_upload_url = 16; - * * @return The sourceUploadUrl. */ public java.lang.String getSourceUploadUrl() { @@ -1335,7 +1183,8 @@ public java.lang.String getSourceUploadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 16) { sourceCode_ = s; @@ -1344,8 +1193,6 @@ public java.lang.String getSourceUploadUrl() { } } /** - * - * *
          * The Google Cloud Storage signed URL used for source uploading, generated
          * by calling [google.cloud.functions.v1.GenerateUploadUrl].
      @@ -1355,17 +1202,18 @@ public java.lang.String getSourceUploadUrl() {
          * 
      * * string source_upload_url = 16; - * * @return The bytes for sourceUploadUrl. */ - public com.google.protobuf.ByteString getSourceUploadUrlBytes() { + public com.google.protobuf.ByteString + getSourceUploadUrlBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 16) { ref = sourceCode_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCodeCase_ == 16) { sourceCode_ = b; } @@ -1377,14 +1225,11 @@ public com.google.protobuf.ByteString getSourceUploadUrlBytes() { public static final int HTTPS_TRIGGER_FIELD_NUMBER = 5; /** - * - * *
          * An HTTPS endpoint type of source that can be triggered via URL.
          * 
      * * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; - * * @return Whether the httpsTrigger field is set. */ @java.lang.Override @@ -1392,26 +1237,21 @@ public boolean hasHttpsTrigger() { return triggerCase_ == 5; } /** - * - * *
          * An HTTPS endpoint type of source that can be triggered via URL.
          * 
      * * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; - * * @return The httpsTrigger. */ @java.lang.Override public com.google.cloud.functions.v1.HttpsTrigger getHttpsTrigger() { if (triggerCase_ == 5) { - return (com.google.cloud.functions.v1.HttpsTrigger) trigger_; + return (com.google.cloud.functions.v1.HttpsTrigger) trigger_; } return com.google.cloud.functions.v1.HttpsTrigger.getDefaultInstance(); } /** - * - * *
          * An HTTPS endpoint type of source that can be triggered via URL.
          * 
      @@ -1421,21 +1261,18 @@ public com.google.cloud.functions.v1.HttpsTrigger getHttpsTrigger() { @java.lang.Override public com.google.cloud.functions.v1.HttpsTriggerOrBuilder getHttpsTriggerOrBuilder() { if (triggerCase_ == 5) { - return (com.google.cloud.functions.v1.HttpsTrigger) trigger_; + return (com.google.cloud.functions.v1.HttpsTrigger) trigger_; } return com.google.cloud.functions.v1.HttpsTrigger.getDefaultInstance(); } public static final int EVENT_TRIGGER_FIELD_NUMBER = 6; /** - * - * *
          * A source that fires events in response to a condition in another service.
          * 
      * * .google.cloud.functions.v1.EventTrigger event_trigger = 6; - * * @return Whether the eventTrigger field is set. */ @java.lang.Override @@ -1443,26 +1280,21 @@ public boolean hasEventTrigger() { return triggerCase_ == 6; } /** - * - * *
          * A source that fires events in response to a condition in another service.
          * 
      * * .google.cloud.functions.v1.EventTrigger event_trigger = 6; - * * @return The eventTrigger. */ @java.lang.Override public com.google.cloud.functions.v1.EventTrigger getEventTrigger() { if (triggerCase_ == 6) { - return (com.google.cloud.functions.v1.EventTrigger) trigger_; + return (com.google.cloud.functions.v1.EventTrigger) trigger_; } return com.google.cloud.functions.v1.EventTrigger.getDefaultInstance(); } /** - * - * *
          * A source that fires events in response to a condition in another service.
          * 
      @@ -1472,7 +1304,7 @@ public com.google.cloud.functions.v1.EventTrigger getEventTrigger() { @java.lang.Override public com.google.cloud.functions.v1.EventTriggerOrBuilder getEventTriggerOrBuilder() { if (triggerCase_ == 6) { - return (com.google.cloud.functions.v1.EventTrigger) trigger_; + return (com.google.cloud.functions.v1.EventTrigger) trigger_; } return com.google.cloud.functions.v1.EventTrigger.getDefaultInstance(); } @@ -1480,48 +1312,33 @@ public com.google.cloud.functions.v1.EventTriggerOrBuilder getEventTriggerOrBuil public static final int STATUS_FIELD_NUMBER = 7; private int status_; /** - * - * *
          * Output only. Status of the function deployment.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for status. */ - @java.lang.Override - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * - * *
          * Output only. Status of the function deployment.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ - @java.lang.Override - public com.google.cloud.functions.v1.CloudFunctionStatus getStatus() { + @java.lang.Override public com.google.cloud.functions.v1.CloudFunctionStatus getStatus() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunctionStatus result = - com.google.cloud.functions.v1.CloudFunctionStatus.valueOf(status_); + com.google.cloud.functions.v1.CloudFunctionStatus result = com.google.cloud.functions.v1.CloudFunctionStatus.valueOf(status_); return result == null ? com.google.cloud.functions.v1.CloudFunctionStatus.UNRECOGNIZED : result; } public static final int ENTRY_POINT_FIELD_NUMBER = 8; private volatile java.lang.Object entryPoint_; /** - * - * *
          * The name of the function (as defined in source code) that will be
          * executed. Defaults to the resource name suffix, if not specified. For
      @@ -1532,7 +1349,6 @@ public com.google.cloud.functions.v1.CloudFunctionStatus getStatus() {
          * 
      * * string entry_point = 8; - * * @return The entryPoint. */ @java.lang.Override @@ -1541,15 +1357,14 @@ public java.lang.String getEntryPoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; } } /** - * - * *
          * The name of the function (as defined in source code) that will be
          * executed. Defaults to the resource name suffix, if not specified. For
      @@ -1560,15 +1375,16 @@ public java.lang.String getEntryPoint() {
          * 
      * * string entry_point = 8; - * * @return The bytes for entryPoint. */ @java.lang.Override - public com.google.protobuf.ByteString getEntryPointBytes() { + public com.google.protobuf.ByteString + getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -1579,8 +1395,6 @@ public com.google.protobuf.ByteString getEntryPointBytes() { public static final int RUNTIME_FIELD_NUMBER = 19; private volatile java.lang.Object runtime_; /** - * - * *
          * The runtime in which to run the function. Required when deploying a new
          * function, optional when updating an existing function. For a complete
      @@ -1590,7 +1404,6 @@ public com.google.protobuf.ByteString getEntryPointBytes() {
          * 
      * * string runtime = 19; - * * @return The runtime. */ @java.lang.Override @@ -1599,15 +1412,14 @@ public java.lang.String getRuntime() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; } } /** - * - * *
          * The runtime in which to run the function. Required when deploying a new
          * function, optional when updating an existing function. For a complete
      @@ -1617,15 +1429,16 @@ public java.lang.String getRuntime() {
          * 
      * * string runtime = 19; - * * @return The bytes for runtime. */ @java.lang.Override - public com.google.protobuf.ByteString getRuntimeBytes() { + public com.google.protobuf.ByteString + getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); runtime_ = b; return b; } else { @@ -1636,8 +1449,6 @@ public com.google.protobuf.ByteString getRuntimeBytes() { public static final int TIMEOUT_FIELD_NUMBER = 9; private com.google.protobuf.Duration timeout_; /** - * - * *
          * The function execution timeout. Execution is considered failed and
          * can be terminated if the function is not completed at the end of the
      @@ -1645,7 +1456,6 @@ public com.google.protobuf.ByteString getRuntimeBytes() {
          * 
      * * .google.protobuf.Duration timeout = 9; - * * @return Whether the timeout field is set. */ @java.lang.Override @@ -1653,8 +1463,6 @@ public boolean hasTimeout() { return timeout_ != null; } /** - * - * *
          * The function execution timeout. Execution is considered failed and
          * can be terminated if the function is not completed at the end of the
      @@ -1662,7 +1470,6 @@ public boolean hasTimeout() {
          * 
      * * .google.protobuf.Duration timeout = 9; - * * @return The timeout. */ @java.lang.Override @@ -1670,8 +1477,6 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** - * - * *
          * The function execution timeout. Execution is considered failed and
          * can be terminated if the function is not completed at the end of the
      @@ -1688,15 +1493,12 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
         public static final int AVAILABLE_MEMORY_MB_FIELD_NUMBER = 10;
         private int availableMemoryMb_;
         /**
      -   *
      -   *
          * 
          * The amount of memory in MB available for a function.
          * Defaults to 256MB.
          * 
      * * int32 available_memory_mb = 10; - * * @return The availableMemoryMb. */ @java.lang.Override @@ -1707,15 +1509,12 @@ public int getAvailableMemoryMb() { public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 11; private volatile java.lang.Object serviceAccountEmail_; /** - * - * *
          * The email of the function's service account. If empty, defaults to
          * `{project_id}@appspot.gserviceaccount.com`.
          * 
      * * string service_account_email = 11; - * * @return The serviceAccountEmail. */ @java.lang.Override @@ -1724,30 +1523,30 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** - * - * *
          * The email of the function's service account. If empty, defaults to
          * `{project_id}@appspot.gserviceaccount.com`.
          * 
      * * string service_account_email = 11; - * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -1758,15 +1557,11 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { public static final int UPDATE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
          * Output only. The last update timestamp of a Cloud Function.
          * 
      * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1774,15 +1569,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
          * Output only. The last update timestamp of a Cloud Function.
          * 
      * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1790,14 +1581,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
          * Output only. The last update timestamp of a Cloud Function.
          * 
      * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1807,15 +1595,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int VERSION_ID_FIELD_NUMBER = 14; private long versionId_; /** - * - * *
          * Output only. The version identifier of the Cloud Function. Each deployment attempt
          * results in a new version of a function being created.
          * 
      * * int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The versionId. */ @java.lang.Override @@ -1824,23 +1609,24 @@ public long getVersionId() { } public static final int LABELS_FIELD_NUMBER = 15; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1849,30 +1635,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
          * Labels associated with this Cloud Function.
          * 
      * * map<string, string> labels = 15; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
          * Labels associated with this Cloud Function.
          * 
      @@ -1880,12 +1664,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 15; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
          * Labels associated with this Cloud Function.
          * 
      @@ -1893,16 +1676,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 15; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
          * Labels associated with this Cloud Function.
          * 
      @@ -1910,11 +1693,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 15; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1922,22 +1706,21 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 17; - private static final class EnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField environmentVariables_; - + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -1949,30 +1732,28 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** - * - * *
          * Environment variables that shall be available during function execution.
          * 
      * * map<string, string> environment_variables = 17; */ + @java.lang.Override - public boolean containsEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** - * - * *
          * Environment variables that shall be available during function execution.
          * 
      @@ -1980,12 +1761,11 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 17; */ @java.lang.Override + public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** - * - * *
          * Environment variables that shall be available during function execution.
          * 
      @@ -1993,18 +1773,16 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 17; */ @java.lang.Override + public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
          * Environment variables that shall be available during function execution.
          * 
      @@ -2012,10 +1790,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 17; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -2025,23 +1803,21 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { } public static final int BUILD_ENVIRONMENT_VARIABLES_FIELD_NUMBER = 28; - private static final class BuildEnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField - buildEnvironmentVariables_; - + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> buildEnvironmentVariables_; private com.google.protobuf.MapField - internalGetBuildEnvironmentVariables() { + internalGetBuildEnvironmentVariables() { if (buildEnvironmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -2053,30 +1829,28 @@ public int getBuildEnvironmentVariablesCount() { return internalGetBuildEnvironmentVariables().getMap().size(); } /** - * - * *
          * Build environment variables that shall be available during build time.
          * 
      * * map<string, string> build_environment_variables = 28; */ + @java.lang.Override - public boolean containsBuildEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsBuildEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetBuildEnvironmentVariables().getMap().containsKey(key); } - /** Use {@link #getBuildEnvironmentVariablesMap()} instead. */ + /** + * Use {@link #getBuildEnvironmentVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getBuildEnvironmentVariables() { return getBuildEnvironmentVariablesMap(); } /** - * - * *
          * Build environment variables that shall be available during build time.
          * 
      @@ -2084,12 +1858,11 @@ public java.util.Map getBuildEnvironmentVari * map<string, string> build_environment_variables = 28; */ @java.lang.Override + public java.util.Map getBuildEnvironmentVariablesMap() { return internalGetBuildEnvironmentVariables().getMap(); } /** - * - * *
          * Build environment variables that shall be available during build time.
          * 
      @@ -2097,18 +1870,16 @@ public java.util.Map getBuildEnvironmentVari * map<string, string> build_environment_variables = 28; */ @java.lang.Override + public java.lang.String getBuildEnvironmentVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetBuildEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
          * Build environment variables that shall be available during build time.
          * 
      @@ -2116,10 +1887,10 @@ public java.lang.String getBuildEnvironmentVariablesOrDefault( * map<string, string> build_environment_variables = 28; */ @java.lang.Override - public java.lang.String getBuildEnvironmentVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getBuildEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetBuildEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -2131,8 +1902,6 @@ public java.lang.String getBuildEnvironmentVariablesOrThrow(java.lang.String key public static final int NETWORK_FIELD_NUMBER = 18; private volatile java.lang.Object network_; /** - * - * *
          * The VPC Network that this cloud function can connect to. It can be
          * either the fully-qualified URI, or the short name of the network resource.
      @@ -2149,7 +1918,6 @@ public java.lang.String getBuildEnvironmentVariablesOrThrow(java.lang.String key
          * 
      * * string network = 18; - * * @return The network. */ @java.lang.Override @@ -2158,15 +1926,14 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
          * The VPC Network that this cloud function can connect to. It can be
          * either the fully-qualified URI, or the short name of the network resource.
      @@ -2183,15 +1950,16 @@ public java.lang.String getNetwork() {
          * 
      * * string network = 18; - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -2202,8 +1970,6 @@ public com.google.protobuf.ByteString getNetworkBytes() { public static final int MAX_INSTANCES_FIELD_NUMBER = 20; private int maxInstances_; /** - * - * *
          * The limit on the maximum number of function instances that may coexist at a
          * given time.
      @@ -2218,7 +1984,6 @@ public com.google.protobuf.ByteString getNetworkBytes() {
          * 
      * * int32 max_instances = 20; - * * @return The maxInstances. */ @java.lang.Override @@ -2229,15 +1994,12 @@ public int getMaxInstances() { public static final int MIN_INSTANCES_FIELD_NUMBER = 32; private int minInstances_; /** - * - * *
          * A lower bound for the number function instances that may coexist at a
          * given time.
          * 
      * * int32 min_instances = 32; - * * @return The minInstances. */ @java.lang.Override @@ -2248,8 +2010,6 @@ public int getMinInstances() { public static final int VPC_CONNECTOR_FIELD_NUMBER = 22; private volatile java.lang.Object vpcConnector_; /** - * - * *
          * The VPC Network Connector that this cloud function can connect to. It can
          * be either the fully-qualified URI, or the short name of the network
      @@ -2262,7 +2022,6 @@ public int getMinInstances() {
          * 
      * * string vpc_connector = 22; - * * @return The vpcConnector. */ @java.lang.Override @@ -2271,15 +2030,14 @@ public java.lang.String getVpcConnector() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; } } /** - * - * *
          * The VPC Network Connector that this cloud function can connect to. It can
          * be either the fully-qualified URI, or the short name of the network
      @@ -2292,15 +2050,16 @@ public java.lang.String getVpcConnector() {
          * 
      * * string vpc_connector = 22; - * * @return The bytes for vpcConnector. */ @java.lang.Override - public com.google.protobuf.ByteString getVpcConnectorBytes() { + public com.google.protobuf.ByteString + getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -2311,94 +2070,64 @@ public com.google.protobuf.ByteString getVpcConnectorBytes() { public static final int VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER = 23; private int vpcConnectorEgressSettings_; /** - * - * *
          * The egress settings for the connector, controlling what traffic is diverted
          * through it.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; - * - * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override - public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** - * - * *
          * The egress settings for the connector, controlling what traffic is diverted
          * through it.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; - * - * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; * @return The vpcConnectorEgressSettings. */ - @java.lang.Override - public com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings - getVpcConnectorEgressSettings() { + @java.lang.Override public com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings result = - com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.valueOf( - vpcConnectorEgressSettings_); - return result == null - ? com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.UNRECOGNIZED - : result; + com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings result = com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); + return result == null ? com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.UNRECOGNIZED : result; } public static final int INGRESS_SETTINGS_FIELD_NUMBER = 24; private int ingressSettings_; /** - * - * *
          * The ingress settings for the function, controlling what traffic can reach
          * it.
          * 
      * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; - * * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override - public int getIngressSettingsValue() { + @java.lang.Override public int getIngressSettingsValue() { return ingressSettings_; } /** - * - * *
          * The ingress settings for the function, controlling what traffic can reach
          * it.
          * 
      * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; - * * @return The ingressSettings. */ - @java.lang.Override - public com.google.cloud.functions.v1.CloudFunction.IngressSettings getIngressSettings() { + @java.lang.Override public com.google.cloud.functions.v1.CloudFunction.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunction.IngressSettings result = - com.google.cloud.functions.v1.CloudFunction.IngressSettings.valueOf(ingressSettings_); - return result == null - ? com.google.cloud.functions.v1.CloudFunction.IngressSettings.UNRECOGNIZED - : result; + com.google.cloud.functions.v1.CloudFunction.IngressSettings result = com.google.cloud.functions.v1.CloudFunction.IngressSettings.valueOf(ingressSettings_); + return result == null ? com.google.cloud.functions.v1.CloudFunction.IngressSettings.UNRECOGNIZED : result; } public static final int KMS_KEY_NAME_FIELD_NUMBER = 25; private volatile java.lang.Object kmsKeyName_; /** - * - * *
          * Resource name of a KMS crypto key (managed by the user) used to
          * encrypt/decrypt function resources.
      @@ -2427,7 +2156,6 @@ public com.google.cloud.functions.v1.CloudFunction.IngressSettings getIngressSet
          * 
      * * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyName. */ @java.lang.Override @@ -2436,15 +2164,14 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** - * - * *
          * Resource name of a KMS crypto key (managed by the user) used to
          * encrypt/decrypt function resources.
      @@ -2473,15 +2200,16 @@ public java.lang.String getKmsKeyName() {
          * 
      * * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -2492,8 +2220,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { public static final int BUILD_WORKER_POOL_FIELD_NUMBER = 26; private volatile java.lang.Object buildWorkerPool_; /** - * - * *
          * Name of the Cloud Build Custom Worker Pool that should be used to build the
          * function. The format of this field is
      @@ -2509,7 +2235,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
          * 
      * * string build_worker_pool = 26; - * * @return The buildWorkerPool. */ @java.lang.Override @@ -2518,15 +2243,14 @@ public java.lang.String getBuildWorkerPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildWorkerPool_ = s; return s; } } /** - * - * *
          * Name of the Cloud Build Custom Worker Pool that should be used to build the
          * function. The format of this field is
      @@ -2542,15 +2266,16 @@ public java.lang.String getBuildWorkerPool() {
          * 
      * * string build_worker_pool = 26; - * * @return The bytes for buildWorkerPool. */ @java.lang.Override - public com.google.protobuf.ByteString getBuildWorkerPoolBytes() { + public com.google.protobuf.ByteString + getBuildWorkerPoolBytes() { java.lang.Object ref = buildWorkerPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); buildWorkerPool_ = b; return b; } else { @@ -2561,15 +2286,12 @@ public com.google.protobuf.ByteString getBuildWorkerPoolBytes() { public static final int BUILD_ID_FIELD_NUMBER = 27; private volatile java.lang.Object buildId_; /** - * - * *
          * Output only. The Cloud Build ID of the latest successful deployment of the
          * function.
          * 
      * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The buildId. */ @java.lang.Override @@ -2578,30 +2300,30 @@ public java.lang.String getBuildId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildId_ = s; return s; } } /** - * - * *
          * Output only. The Cloud Build ID of the latest successful deployment of the
          * function.
          * 
      * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for buildId. */ @java.lang.Override - public com.google.protobuf.ByteString getBuildIdBytes() { + public com.google.protobuf.ByteString + getBuildIdBytes() { java.lang.Object ref = buildId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); buildId_ = b; return b; } else { @@ -2612,15 +2334,12 @@ public com.google.protobuf.ByteString getBuildIdBytes() { public static final int BUILD_NAME_FIELD_NUMBER = 33; private volatile java.lang.Object buildName_; /** - * - * *
          * Output only. The Cloud Build Name of the function deployment.
          * `projects/<project-number>/locations/<region>/builds/<build-id>`.
          * 
      * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The buildName. */ @java.lang.Override @@ -2629,30 +2348,30 @@ public java.lang.String getBuildName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildName_ = s; return s; } } /** - * - * *
          * Output only. The Cloud Build Name of the function deployment.
          * `projects/<project-number>/locations/<region>/builds/<build-id>`.
          * 
      * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for buildName. */ @java.lang.Override - public com.google.protobuf.ByteString getBuildNameBytes() { + public com.google.protobuf.ByteString + getBuildNameBytes() { java.lang.Object ref = buildName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); buildName_ = b; return b; } else { @@ -2663,72 +2382,56 @@ public com.google.protobuf.ByteString getBuildNameBytes() { public static final int SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER = 29; private java.util.List secretEnvironmentVariables_; /** - * - * *
          * Secret environment variables configuration.
          * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ @java.lang.Override - public java.util.List - getSecretEnvironmentVariablesList() { + public java.util.List getSecretEnvironmentVariablesList() { return secretEnvironmentVariables_; } /** - * - * *
          * Secret environment variables configuration.
          * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ @java.lang.Override - public java.util.List + public java.util.List getSecretEnvironmentVariablesOrBuilderList() { return secretEnvironmentVariables_; } /** - * - * *
          * Secret environment variables configuration.
          * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ @java.lang.Override public int getSecretEnvironmentVariablesCount() { return secretEnvironmentVariables_.size(); } /** - * - * *
          * Secret environment variables configuration.
          * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ @java.lang.Override public com.google.cloud.functions.v1.SecretEnvVar getSecretEnvironmentVariables(int index) { return secretEnvironmentVariables_.get(index); } /** - * - * *
          * Secret environment variables configuration.
          * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ @java.lang.Override public com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( @@ -2739,8 +2442,6 @@ public com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentV public static final int SECRET_VOLUMES_FIELD_NUMBER = 30; private java.util.List secretVolumes_; /** - * - * *
          * Secret volumes configuration.
          * 
      @@ -2752,8 +2453,6 @@ public java.util.List getSecretVolum return secretVolumes_; } /** - * - * *
          * Secret volumes configuration.
          * 
      @@ -2761,13 +2460,11 @@ public java.util.List getSecretVolum * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ @java.lang.Override - public java.util.List + public java.util.List getSecretVolumesOrBuilderList() { return secretVolumes_; } /** - * - * *
          * Secret volumes configuration.
          * 
      @@ -2779,8 +2476,6 @@ public int getSecretVolumesCount() { return secretVolumes_.size(); } /** - * - * *
          * Secret volumes configuration.
          * 
      @@ -2792,8 +2487,6 @@ public com.google.cloud.functions.v1.SecretVolume getSecretVolumes(int index) { return secretVolumes_.get(index); } /** - * - * *
          * Secret volumes configuration.
          * 
      @@ -2801,22 +2494,20 @@ public com.google.cloud.functions.v1.SecretVolume getSecretVolumes(int index) { * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ @java.lang.Override - public com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index) { + public com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder( + int index) { return secretVolumes_.get(index); } public static final int SOURCE_TOKEN_FIELD_NUMBER = 31; private volatile java.lang.Object sourceToken_; /** - * - * *
          * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
          * supported for Firebase function deployments.
          * 
      * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The sourceToken. */ @java.lang.Override @@ -2825,30 +2516,30 @@ public java.lang.String getSourceToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; } } /** - * - * *
          * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
          * supported for Firebase function deployments.
          * 
      * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for sourceToken. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceTokenBytes() { + public com.google.protobuf.ByteString + getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -2859,8 +2550,6 @@ public com.google.protobuf.ByteString getSourceTokenBytes() { public static final int DOCKER_REPOSITORY_FIELD_NUMBER = 34; private volatile java.lang.Object dockerRepository_; /** - * - * *
          * User managed repository created in Artifact Registry optionally with a
          * customer managed encryption key. If specified, deployments will use
      @@ -2876,7 +2565,6 @@ public com.google.protobuf.ByteString getSourceTokenBytes() {
          * 
      * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } - * * @return The dockerRepository. */ @java.lang.Override @@ -2885,15 +2573,14 @@ public java.lang.String getDockerRepository() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; } } /** - * - * *
          * User managed repository created in Artifact Registry optionally with a
          * customer managed encryption key. If specified, deployments will use
      @@ -2909,15 +2596,16 @@ public java.lang.String getDockerRepository() {
          * 
      * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } - * * @return The bytes for dockerRepository. */ @java.lang.Override - public com.google.protobuf.ByteString getDockerRepositoryBytes() { + public com.google.protobuf.ByteString + getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -2928,8 +2616,6 @@ public com.google.protobuf.ByteString getDockerRepositoryBytes() { public static final int DOCKER_REGISTRY_FIELD_NUMBER = 35; private int dockerRegistry_; /** - * - * *
          * Docker Registry to use for this deployment.
          * If `docker_repository` field is specified, this field will be automatically
      @@ -2939,16 +2625,12 @@ public com.google.protobuf.ByteString getDockerRepositoryBytes() {
          * 
      * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; - * * @return The enum numeric value on the wire for dockerRegistry. */ - @java.lang.Override - public int getDockerRegistryValue() { + @java.lang.Override public int getDockerRegistryValue() { return dockerRegistry_; } /** - * - * *
          * Docker Registry to use for this deployment.
          * If `docker_repository` field is specified, this field will be automatically
      @@ -2958,21 +2640,15 @@ public int getDockerRegistryValue() {
          * 
      * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; - * * @return The dockerRegistry. */ - @java.lang.Override - public com.google.cloud.functions.v1.CloudFunction.DockerRegistry getDockerRegistry() { + @java.lang.Override public com.google.cloud.functions.v1.CloudFunction.DockerRegistry getDockerRegistry() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunction.DockerRegistry result = - com.google.cloud.functions.v1.CloudFunction.DockerRegistry.valueOf(dockerRegistry_); - return result == null - ? com.google.cloud.functions.v1.CloudFunction.DockerRegistry.UNRECOGNIZED - : result; + com.google.cloud.functions.v1.CloudFunction.DockerRegistry result = com.google.cloud.functions.v1.CloudFunction.DockerRegistry.valueOf(dockerRegistry_); + return result == null ? com.google.cloud.functions.v1.CloudFunction.DockerRegistry.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2984,7 +2660,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -3003,9 +2680,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (triggerCase_ == 6) { output.writeMessage(6, (com.google.cloud.functions.v1.EventTrigger) trigger_); } - if (status_ - != com.google.cloud.functions.v1.CloudFunctionStatus.CLOUD_FUNCTION_STATUS_UNSPECIFIED - .getNumber()) { + if (status_ != com.google.cloud.functions.v1.CloudFunctionStatus.CLOUD_FUNCTION_STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(7, status_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) { @@ -3026,12 +2701,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (versionId_ != 0L) { output.writeInt64(14, versionId_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 15); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 15); if (sourceCodeCase_ == 16) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, sourceCode_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -3048,15 +2728,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 22, vpcConnector_); } - if (vpcConnectorEgressSettings_ - != com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings - .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED - .getNumber()) { + if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { output.writeEnum(23, vpcConnectorEgressSettings_); } - if (ingressSettings_ - != com.google.cloud.functions.v1.CloudFunction.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED - .getNumber()) { + if (ingressSettings_ != com.google.cloud.functions.v1.CloudFunction.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { output.writeEnum(24, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { @@ -3068,7 +2743,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, buildId_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetBuildEnvironmentVariables(), BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -3091,9 +2767,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dockerRepository_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 34, dockerRepository_); } - if (dockerRegistry_ - != com.google.cloud.functions.v1.CloudFunction.DockerRegistry.DOCKER_REGISTRY_UNSPECIFIED - .getNumber()) { + if (dockerRegistry_ != com.google.cloud.functions.v1.CloudFunction.DockerRegistry.DOCKER_REGISTRY_UNSPECIFIED.getNumber()) { output.writeEnum(35, dockerRegistry_); } unknownFields.writeTo(output); @@ -3115,65 +2789,65 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceCode_); } if (sourceCodeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.functions.v1.SourceRepository) sourceCode_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.functions.v1.SourceRepository) sourceCode_); } if (triggerCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.functions.v1.HttpsTrigger) trigger_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.functions.v1.HttpsTrigger) trigger_); } if (triggerCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.functions.v1.EventTrigger) trigger_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.functions.v1.EventTrigger) trigger_); } - if (status_ - != com.google.cloud.functions.v1.CloudFunctionStatus.CLOUD_FUNCTION_STATUS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, status_); + if (status_ != com.google.cloud.functions.v1.CloudFunctionStatus.CLOUD_FUNCTION_STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, status_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, entryPoint_); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getTimeout()); } if (availableMemoryMb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, availableMemoryMb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(10, availableMemoryMb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, serviceAccountEmail_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getUpdateTime()); } if (versionId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, versionId_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, labels__); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(14, versionId_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, labels__); } if (sourceCodeCase_ == 16) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, sourceCode_); } - for (java.util.Map.Entry entry : - internalGetEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry environmentVariables__ = - EnvironmentVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, environmentVariables__); + for (java.util.Map.Entry entry + : internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, environmentVariables__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, network_); @@ -3182,22 +2856,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, runtime_); } if (maxInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(20, maxInstances_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(20, maxInstances_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, vpcConnector_); } - if (vpcConnectorEgressSettings_ - != com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings - .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(23, vpcConnectorEgressSettings_); + if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(23, vpcConnectorEgressSettings_); } - if (ingressSettings_ - != com.google.cloud.functions.v1.CloudFunction.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(24, ingressSettings_); + if (ingressSettings_ != com.google.cloud.functions.v1.CloudFunction.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(24, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, kmsKeyName_); @@ -3208,30 +2879,30 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, buildId_); } - for (java.util.Map.Entry entry : - internalGetBuildEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry buildEnvironmentVariables__ = - BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(28, buildEnvironmentVariables__); + for (java.util.Map.Entry entry + : internalGetBuildEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + buildEnvironmentVariables__ = BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(28, buildEnvironmentVariables__); } for (int i = 0; i < secretEnvironmentVariables_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 29, secretEnvironmentVariables_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, secretEnvironmentVariables_.get(i)); } for (int i = 0; i < secretVolumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, secretVolumes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, secretVolumes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, sourceToken_); } if (minInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(32, minInstances_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(32, minInstances_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, buildName_); @@ -3239,10 +2910,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dockerRepository_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(34, dockerRepository_); } - if (dockerRegistry_ - != com.google.cloud.functions.v1.CloudFunction.DockerRegistry.DOCKER_REGISTRY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, dockerRegistry_); + if (dockerRegistry_ != com.google.cloud.functions.v1.CloudFunction.DockerRegistry.DOCKER_REGISTRY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(35, dockerRegistry_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3252,61 +2922,84 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.CloudFunction)) { return super.equals(obj); } - com.google.cloud.functions.v1.CloudFunction other = - (com.google.cloud.functions.v1.CloudFunction) obj; + com.google.cloud.functions.v1.CloudFunction other = (com.google.cloud.functions.v1.CloudFunction) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (status_ != other.status_) return false; - if (!getEntryPoint().equals(other.getEntryPoint())) return false; - if (!getRuntime().equals(other.getRuntime())) return false; + if (!getEntryPoint() + .equals(other.getEntryPoint())) return false; + if (!getRuntime() + .equals(other.getRuntime())) return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout().equals(other.getTimeout())) return false; + if (!getTimeout() + .equals(other.getTimeout())) return false; } - if (getAvailableMemoryMb() != other.getAvailableMemoryMb()) return false; - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; + if (getAvailableMemoryMb() + != other.getAvailableMemoryMb()) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (getVersionId() != other.getVersionId()) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) - return false; - if (!internalGetBuildEnvironmentVariables() - .equals(other.internalGetBuildEnvironmentVariables())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (getMaxInstances() != other.getMaxInstances()) return false; - if (getMinInstances() != other.getMinInstances()) return false; - if (!getVpcConnector().equals(other.getVpcConnector())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (getVersionId() + != other.getVersionId()) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!internalGetEnvironmentVariables().equals( + other.internalGetEnvironmentVariables())) return false; + if (!internalGetBuildEnvironmentVariables().equals( + other.internalGetBuildEnvironmentVariables())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (getMaxInstances() + != other.getMaxInstances()) return false; + if (getMinInstances() + != other.getMinInstances()) return false; + if (!getVpcConnector() + .equals(other.getVpcConnector())) return false; if (vpcConnectorEgressSettings_ != other.vpcConnectorEgressSettings_) return false; if (ingressSettings_ != other.ingressSettings_) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; - if (!getBuildWorkerPool().equals(other.getBuildWorkerPool())) return false; - if (!getBuildId().equals(other.getBuildId())) return false; - if (!getBuildName().equals(other.getBuildName())) return false; - if (!getSecretEnvironmentVariablesList().equals(other.getSecretEnvironmentVariablesList())) - return false; - if (!getSecretVolumesList().equals(other.getSecretVolumesList())) return false; - if (!getSourceToken().equals(other.getSourceToken())) return false; - if (!getDockerRepository().equals(other.getDockerRepository())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!getBuildWorkerPool() + .equals(other.getBuildWorkerPool())) return false; + if (!getBuildId() + .equals(other.getBuildId())) return false; + if (!getBuildName() + .equals(other.getBuildName())) return false; + if (!getSecretEnvironmentVariablesList() + .equals(other.getSecretEnvironmentVariablesList())) return false; + if (!getSecretVolumesList() + .equals(other.getSecretVolumesList())) return false; + if (!getSourceToken() + .equals(other.getSourceToken())) return false; + if (!getDockerRepository() + .equals(other.getDockerRepository())) return false; if (dockerRegistry_ != other.dockerRegistry_) return false; if (!getSourceCodeCase().equals(other.getSourceCodeCase())) return false; switch (sourceCodeCase_) { case 3: - if (!getSourceArchiveUrl().equals(other.getSourceArchiveUrl())) return false; + if (!getSourceArchiveUrl() + .equals(other.getSourceArchiveUrl())) return false; break; case 4: - if (!getSourceRepository().equals(other.getSourceRepository())) return false; + if (!getSourceRepository() + .equals(other.getSourceRepository())) return false; break; case 16: - if (!getSourceUploadUrl().equals(other.getSourceUploadUrl())) return false; + if (!getSourceUploadUrl() + .equals(other.getSourceUploadUrl())) return false; break; case 0: default: @@ -3314,10 +3007,12 @@ public boolean equals(final java.lang.Object obj) { if (!getTriggerCase().equals(other.getTriggerCase())) return false; switch (triggerCase_) { case 5: - if (!getHttpsTrigger().equals(other.getHttpsTrigger())) return false; + if (!getHttpsTrigger() + .equals(other.getHttpsTrigger())) return false; break; case 6: - if (!getEventTrigger().equals(other.getEventTrigger())) return false; + if (!getEventTrigger() + .equals(other.getEventTrigger())) return false; break; case 0: default: @@ -3356,7 +3051,8 @@ public int hashCode() { hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (37 * hash) + VERSION_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersionId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersionId()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -3436,104 +3132,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.CloudFunction parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.CloudFunction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.CloudFunction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CloudFunction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.CloudFunction 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.v1.CloudFunction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.CloudFunction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.CloudFunction parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.CloudFunction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.CloudFunction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.CloudFunction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.CloudFunction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.CloudFunction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.CloudFunction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.CloudFunction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Describes a Cloud Function that contains user computation executed in
          * response to an event. It encapsulate function and triggers configurations.
      @@ -3541,17 +3230,18 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.functions.v1.CloudFunction}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.CloudFunction)
             com.google.cloud.functions.v1.CloudFunctionOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_CloudFunction_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_descriptor;
           }
       
           @SuppressWarnings({"rawtypes"})
      -    protected com.google.protobuf.MapField internalGetMapField(int number) {
      +    protected com.google.protobuf.MapField internalGetMapField(
      +        int number) {
             switch (number) {
               case 15:
                 return internalGetLabels();
      @@ -3560,12 +3250,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
               case 28:
                 return internalGetBuildEnvironmentVariables();
               default:
      -          throw new RuntimeException("Invalid map field number: " + number);
      +          throw new RuntimeException(
      +              "Invalid map field number: " + number);
             }
           }
      -
           @SuppressWarnings({"rawtypes"})
      -    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      +    protected com.google.protobuf.MapField internalGetMutableMapField(
      +        int number) {
             switch (number) {
               case 15:
                 return internalGetMutableLabels();
      @@ -3574,18 +3265,16 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
               case 28:
                 return internalGetMutableBuildEnvironmentVariables();
               default:
      -          throw new RuntimeException("Invalid map field number: " + number);
      +          throw new RuntimeException(
      +              "Invalid map field number: " + number);
             }
           }
      -
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.functions.v1.CloudFunction.class,
      -              com.google.cloud.functions.v1.CloudFunction.Builder.class);
      +              com.google.cloud.functions.v1.CloudFunction.class, com.google.cloud.functions.v1.CloudFunction.Builder.class);
           }
       
           // Construct using com.google.cloud.functions.v1.CloudFunction.newBuilder()
      @@ -3593,18 +3282,18 @@ private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
               getSecretEnvironmentVariablesFieldBuilder();
               getSecretVolumesFieldBuilder();
             }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -3685,9 +3374,9 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_CloudFunction_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_descriptor;
           }
       
           @java.lang.Override
      @@ -3706,8 +3395,7 @@ public com.google.cloud.functions.v1.CloudFunction build() {
       
           @java.lang.Override
           public com.google.cloud.functions.v1.CloudFunction buildPartial() {
      -      com.google.cloud.functions.v1.CloudFunction result =
      -          new com.google.cloud.functions.v1.CloudFunction(this);
      +      com.google.cloud.functions.v1.CloudFunction result = new com.google.cloud.functions.v1.CloudFunction(this);
             int from_bitField0_ = bitField0_;
             result.name_ = name_;
             result.description_ = description_;
      @@ -3772,8 +3460,7 @@ public com.google.cloud.functions.v1.CloudFunction buildPartial() {
             result.buildName_ = buildName_;
             if (secretEnvironmentVariablesBuilder_ == null) {
               if (((bitField0_ & 0x00000008) != 0)) {
      -          secretEnvironmentVariables_ =
      -              java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
      +          secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                 bitField0_ = (bitField0_ & ~0x00000008);
               }
               result.secretEnvironmentVariables_ = secretEnvironmentVariables_;
      @@ -3802,39 +3489,38 @@ public com.google.cloud.functions.v1.CloudFunction buildPartial() {
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        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) {
      +    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) {
      +    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) {
      +        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) {
      +        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) {
      -        return mergeFrom((com.google.cloud.functions.v1.CloudFunction) other);
      +        return mergeFrom((com.google.cloud.functions.v1.CloudFunction)other);
             } else {
               super.mergeFrom(other);
               return this;
      @@ -3878,10 +3564,12 @@ public Builder mergeFrom(com.google.cloud.functions.v1.CloudFunction other) {
             if (other.getVersionId() != 0L) {
               setVersionId(other.getVersionId());
             }
      -      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
      -      internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables());
      -      internalGetMutableBuildEnvironmentVariables()
      -          .mergeFrom(other.internalGetBuildEnvironmentVariables());
      +      internalGetMutableLabels().mergeFrom(
      +          other.internalGetLabels());
      +      internalGetMutableEnvironmentVariables().mergeFrom(
      +          other.internalGetEnvironmentVariables());
      +      internalGetMutableBuildEnvironmentVariables().mergeFrom(
      +          other.internalGetBuildEnvironmentVariables());
             if (!other.getNetwork().isEmpty()) {
               network_ = other.network_;
               onChanged();
      @@ -3936,10 +3624,9 @@ public Builder mergeFrom(com.google.cloud.functions.v1.CloudFunction other) {
                   secretEnvironmentVariablesBuilder_ = null;
                   secretEnvironmentVariables_ = other.secretEnvironmentVariables_;
                   bitField0_ = (bitField0_ & ~0x00000008);
      -            secretEnvironmentVariablesBuilder_ =
      -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
      -                    ? getSecretEnvironmentVariablesFieldBuilder()
      -                    : null;
      +            secretEnvironmentVariablesBuilder_ = 
      +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
      +                 getSecretEnvironmentVariablesFieldBuilder() : null;
                 } else {
                   secretEnvironmentVariablesBuilder_.addAllMessages(other.secretEnvironmentVariables_);
                 }
      @@ -3963,10 +3650,9 @@ public Builder mergeFrom(com.google.cloud.functions.v1.CloudFunction other) {
                   secretVolumesBuilder_ = null;
                   secretVolumes_ = other.secretVolumes_;
                   bitField0_ = (bitField0_ & ~0x00000010);
      -            secretVolumesBuilder_ =
      -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
      -                    ? getSecretVolumesFieldBuilder()
      -                    : null;
      +            secretVolumesBuilder_ = 
      +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
      +                 getSecretVolumesFieldBuilder() : null;
                 } else {
                   secretVolumesBuilder_.addAllMessages(other.secretVolumes_);
                 }
      @@ -3984,45 +3670,38 @@ public Builder mergeFrom(com.google.cloud.functions.v1.CloudFunction other) {
               setDockerRegistryValue(other.getDockerRegistryValue());
             }
             switch (other.getSourceCodeCase()) {
      -        case SOURCE_ARCHIVE_URL:
      -          {
      -            sourceCodeCase_ = 3;
      -            sourceCode_ = other.sourceCode_;
      -            onChanged();
      -            break;
      -          }
      -        case SOURCE_REPOSITORY:
      -          {
      -            mergeSourceRepository(other.getSourceRepository());
      -            break;
      -          }
      -        case SOURCE_UPLOAD_URL:
      -          {
      -            sourceCodeCase_ = 16;
      -            sourceCode_ = other.sourceCode_;
      -            onChanged();
      -            break;
      -          }
      -        case SOURCECODE_NOT_SET:
      -          {
      -            break;
      -          }
      +        case SOURCE_ARCHIVE_URL: {
      +          sourceCodeCase_ = 3;
      +          sourceCode_ = other.sourceCode_;
      +          onChanged();
      +          break;
      +        }
      +        case SOURCE_REPOSITORY: {
      +          mergeSourceRepository(other.getSourceRepository());
      +          break;
      +        }
      +        case SOURCE_UPLOAD_URL: {
      +          sourceCodeCase_ = 16;
      +          sourceCode_ = other.sourceCode_;
      +          onChanged();
      +          break;
      +        }
      +        case SOURCECODE_NOT_SET: {
      +          break;
      +        }
             }
             switch (other.getTriggerCase()) {
      -        case HTTPS_TRIGGER:
      -          {
      -            mergeHttpsTrigger(other.getHttpsTrigger());
      -            break;
      -          }
      -        case EVENT_TRIGGER:
      -          {
      -            mergeEventTrigger(other.getEventTrigger());
      -            break;
      -          }
      -        case TRIGGER_NOT_SET:
      -          {
      -            break;
      -          }
      +        case HTTPS_TRIGGER: {
      +          mergeHttpsTrigger(other.getHttpsTrigger());
      +          break;
      +        }
      +        case EVENT_TRIGGER: {
      +          mergeEventTrigger(other.getEventTrigger());
      +          break;
      +        }
      +        case TRIGGER_NOT_SET: {
      +          break;
      +        }
             }
             this.mergeUnknownFields(other.unknownFields);
             onChanged();
      @@ -4052,12 +3731,12 @@ public Builder mergeFrom(
             }
             return this;
           }
      -
           private int sourceCodeCase_ = 0;
           private java.lang.Object sourceCode_;
      -
      -    public SourceCodeCase getSourceCodeCase() {
      -      return SourceCodeCase.forNumber(sourceCodeCase_);
      +    public SourceCodeCase
      +        getSourceCodeCase() {
      +      return SourceCodeCase.forNumber(
      +          sourceCodeCase_);
           }
       
           public Builder clearSourceCode() {
      @@ -4069,9 +3748,10 @@ public Builder clearSourceCode() {
       
           private int triggerCase_ = 0;
           private java.lang.Object trigger_;
      -
      -    public TriggerCase getTriggerCase() {
      -      return TriggerCase.forNumber(triggerCase_);
      +    public TriggerCase
      +        getTriggerCase() {
      +      return TriggerCase.forNumber(
      +          triggerCase_);
           }
       
           public Builder clearTrigger() {
      @@ -4085,21 +3765,19 @@ public Builder clearTrigger() {
       
           private java.lang.Object name_ = "";
           /**
      -     *
      -     *
            * 
            * A user-defined name of the function. Function names must be unique
            * globally and match pattern `projects/*/locations/*/functions/*`
            * 
      * * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4108,22 +3786,21 @@ public java.lang.String getName() { } } /** - * - * *
            * A user-defined name of the function. Function names must be unique
            * globally and match pattern `projects/*/locations/*/functions/*`
            * 
      * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4131,64 +3808,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
            * A user-defined name of the function. Function names must be unique
            * globally and match pattern `projects/*/locations/*/functions/*`
            * 
      * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
            * A user-defined name of the function. Function names must be unique
            * globally and match pattern `projects/*/locations/*/functions/*`
            * 
      * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
            * A user-defined name of the function. Function names must be unique
            * globally and match pattern `projects/*/locations/*/functions/*`
            * 
      * * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -4196,20 +3866,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -4218,21 +3886,20 @@ public java.lang.String getDescription() { } } /** - * - * *
            * User-provided description of a function.
            * 
      * * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -4240,76 +3907,66 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
            * User-provided description of a function.
            * 
      * * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
            * User-provided description of a function.
            * 
      * * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
            * User-provided description of a function.
            * 
      * * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } /** - * - * *
            * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
            * archive which contains the function.
            * 
      * * string source_archive_url = 3; - * * @return Whether the sourceArchiveUrl field is set. */ @java.lang.Override @@ -4317,15 +3974,12 @@ public boolean hasSourceArchiveUrl() { return sourceCodeCase_ == 3; } /** - * - * *
            * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
            * archive which contains the function.
            * 
      * * string source_archive_url = 3; - * * @return The sourceArchiveUrl. */ @java.lang.Override @@ -4335,7 +3989,8 @@ public java.lang.String getSourceArchiveUrl() { ref = sourceCode_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 3) { sourceCode_ = s; @@ -4346,26 +4001,25 @@ public java.lang.String getSourceArchiveUrl() { } } /** - * - * *
            * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
            * archive which contains the function.
            * 
      * * string source_archive_url = 3; - * * @return The bytes for sourceArchiveUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceArchiveUrlBytes() { + public com.google.protobuf.ByteString + getSourceArchiveUrlBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 3) { ref = sourceCode_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCodeCase_ == 3) { sourceCode_ = b; } @@ -4375,37 +4029,32 @@ public com.google.protobuf.ByteString getSourceArchiveUrlBytes() { } } /** - * - * *
            * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
            * archive which contains the function.
            * 
      * * string source_archive_url = 3; - * * @param value The sourceArchiveUrl to set. * @return This builder for chaining. */ - public Builder setSourceArchiveUrl(java.lang.String value) { + public Builder setSourceArchiveUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCodeCase_ = 3; + throw new NullPointerException(); + } + sourceCodeCase_ = 3; sourceCode_ = value; onChanged(); return this; } /** - * - * *
            * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
            * archive which contains the function.
            * 
      * * string source_archive_url = 3; - * * @return This builder for chaining. */ public Builder clearSourceArchiveUrl() { @@ -4417,23 +4066,21 @@ public Builder clearSourceArchiveUrl() { return this; } /** - * - * *
            * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
            * archive which contains the function.
            * 
      * * string source_archive_url = 3; - * * @param value The bytes for sourceArchiveUrl to set. * @return This builder for chaining. */ - public Builder setSourceArchiveUrlBytes(com.google.protobuf.ByteString value) { + public Builder setSourceArchiveUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCodeCase_ = 3; sourceCode_ = value; onChanged(); @@ -4441,20 +4088,14 @@ public Builder setSourceArchiveUrlBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.SourceRepository, - com.google.cloud.functions.v1.SourceRepository.Builder, - com.google.cloud.functions.v1.SourceRepositoryOrBuilder> - sourceRepositoryBuilder_; + com.google.cloud.functions.v1.SourceRepository, com.google.cloud.functions.v1.SourceRepository.Builder, com.google.cloud.functions.v1.SourceRepositoryOrBuilder> sourceRepositoryBuilder_; /** - * - * *
            * **Beta Feature**
            * The source repository where a function is hosted.
            * 
      * * .google.cloud.functions.v1.SourceRepository source_repository = 4; - * * @return Whether the sourceRepository field is set. */ @java.lang.Override @@ -4462,15 +4103,12 @@ public boolean hasSourceRepository() { return sourceCodeCase_ == 4; } /** - * - * *
            * **Beta Feature**
            * The source repository where a function is hosted.
            * 
      * * .google.cloud.functions.v1.SourceRepository source_repository = 4; - * * @return The sourceRepository. */ @java.lang.Override @@ -4488,8 +4126,6 @@ public com.google.cloud.functions.v1.SourceRepository getSourceRepository() { } } /** - * - * *
            * **Beta Feature**
            * The source repository where a function is hosted.
      @@ -4511,8 +4147,6 @@ public Builder setSourceRepository(com.google.cloud.functions.v1.SourceRepositor
             return this;
           }
           /**
      -     *
      -     *
            * 
            * **Beta Feature**
            * The source repository where a function is hosted.
      @@ -4532,8 +4166,6 @@ public Builder setSourceRepository(
             return this;
           }
           /**
      -     *
      -     *
            * 
            * **Beta Feature**
            * The source repository where a function is hosted.
      @@ -4543,13 +4175,10 @@ public Builder setSourceRepository(
            */
           public Builder mergeSourceRepository(com.google.cloud.functions.v1.SourceRepository value) {
             if (sourceRepositoryBuilder_ == null) {
      -        if (sourceCodeCase_ == 4
      -            && sourceCode_ != com.google.cloud.functions.v1.SourceRepository.getDefaultInstance()) {
      -          sourceCode_ =
      -              com.google.cloud.functions.v1.SourceRepository.newBuilder(
      -                      (com.google.cloud.functions.v1.SourceRepository) sourceCode_)
      -                  .mergeFrom(value)
      -                  .buildPartial();
      +        if (sourceCodeCase_ == 4 &&
      +            sourceCode_ != com.google.cloud.functions.v1.SourceRepository.getDefaultInstance()) {
      +          sourceCode_ = com.google.cloud.functions.v1.SourceRepository.newBuilder((com.google.cloud.functions.v1.SourceRepository) sourceCode_)
      +              .mergeFrom(value).buildPartial();
               } else {
                 sourceCode_ = value;
               }
      @@ -4565,8 +4194,6 @@ public Builder mergeSourceRepository(com.google.cloud.functions.v1.SourceReposit
             return this;
           }
           /**
      -     *
      -     *
            * 
            * **Beta Feature**
            * The source repository where a function is hosted.
      @@ -4591,8 +4218,6 @@ public Builder clearSourceRepository() {
             return this;
           }
           /**
      -     *
      -     *
            * 
            * **Beta Feature**
            * The source repository where a function is hosted.
      @@ -4604,8 +4229,6 @@ public com.google.cloud.functions.v1.SourceRepository.Builder getSourceRepositor
             return getSourceRepositoryFieldBuilder().getBuilder();
           }
           /**
      -     *
      -     *
            * 
            * **Beta Feature**
            * The source repository where a function is hosted.
      @@ -4625,8 +4248,6 @@ public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceReposito
             }
           }
           /**
      -     *
      -     *
            * 
            * **Beta Feature**
            * The source repository where a function is hosted.
      @@ -4635,33 +4256,25 @@ public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceReposito
            * .google.cloud.functions.v1.SourceRepository source_repository = 4;
            */
           private com.google.protobuf.SingleFieldBuilderV3<
      -            com.google.cloud.functions.v1.SourceRepository,
      -            com.google.cloud.functions.v1.SourceRepository.Builder,
      -            com.google.cloud.functions.v1.SourceRepositoryOrBuilder>
      +        com.google.cloud.functions.v1.SourceRepository, com.google.cloud.functions.v1.SourceRepository.Builder, com.google.cloud.functions.v1.SourceRepositoryOrBuilder> 
               getSourceRepositoryFieldBuilder() {
             if (sourceRepositoryBuilder_ == null) {
               if (!(sourceCodeCase_ == 4)) {
                 sourceCode_ = com.google.cloud.functions.v1.SourceRepository.getDefaultInstance();
               }
      -        sourceRepositoryBuilder_ =
      -            new com.google.protobuf.SingleFieldBuilderV3<
      -                com.google.cloud.functions.v1.SourceRepository,
      -                com.google.cloud.functions.v1.SourceRepository.Builder,
      -                com.google.cloud.functions.v1.SourceRepositoryOrBuilder>(
      +        sourceRepositoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
      +            com.google.cloud.functions.v1.SourceRepository, com.google.cloud.functions.v1.SourceRepository.Builder, com.google.cloud.functions.v1.SourceRepositoryOrBuilder>(
                       (com.google.cloud.functions.v1.SourceRepository) sourceCode_,
                       getParentForChildren(),
                       isClean());
               sourceCode_ = null;
             }
             sourceCodeCase_ = 4;
      -      onChanged();
      -      ;
      +      onChanged();;
             return sourceRepositoryBuilder_;
           }
       
           /**
      -     *
      -     *
            * 
            * The Google Cloud Storage signed URL used for source uploading, generated
            * by calling [google.cloud.functions.v1.GenerateUploadUrl].
      @@ -4671,7 +4284,6 @@ public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceReposito
            * 
      * * string source_upload_url = 16; - * * @return Whether the sourceUploadUrl field is set. */ @java.lang.Override @@ -4679,8 +4291,6 @@ public boolean hasSourceUploadUrl() { return sourceCodeCase_ == 16; } /** - * - * *
            * The Google Cloud Storage signed URL used for source uploading, generated
            * by calling [google.cloud.functions.v1.GenerateUploadUrl].
      @@ -4690,7 +4300,6 @@ public boolean hasSourceUploadUrl() {
            * 
      * * string source_upload_url = 16; - * * @return The sourceUploadUrl. */ @java.lang.Override @@ -4700,7 +4309,8 @@ public java.lang.String getSourceUploadUrl() { ref = sourceCode_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 16) { sourceCode_ = s; @@ -4711,8 +4321,6 @@ public java.lang.String getSourceUploadUrl() { } } /** - * - * *
            * The Google Cloud Storage signed URL used for source uploading, generated
            * by calling [google.cloud.functions.v1.GenerateUploadUrl].
      @@ -4722,18 +4330,19 @@ public java.lang.String getSourceUploadUrl() {
            * 
      * * string source_upload_url = 16; - * * @return The bytes for sourceUploadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceUploadUrlBytes() { + public com.google.protobuf.ByteString + getSourceUploadUrlBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 16) { ref = sourceCode_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCodeCase_ == 16) { sourceCode_ = b; } @@ -4743,8 +4352,6 @@ public com.google.protobuf.ByteString getSourceUploadUrlBytes() { } } /** - * - * *
            * The Google Cloud Storage signed URL used for source uploading, generated
            * by calling [google.cloud.functions.v1.GenerateUploadUrl].
      @@ -4754,22 +4361,20 @@ public com.google.protobuf.ByteString getSourceUploadUrlBytes() {
            * 
      * * string source_upload_url = 16; - * * @param value The sourceUploadUrl to set. * @return This builder for chaining. */ - public Builder setSourceUploadUrl(java.lang.String value) { + public Builder setSourceUploadUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCodeCase_ = 16; + throw new NullPointerException(); + } + sourceCodeCase_ = 16; sourceCode_ = value; onChanged(); return this; } /** - * - * *
            * The Google Cloud Storage signed URL used for source uploading, generated
            * by calling [google.cloud.functions.v1.GenerateUploadUrl].
      @@ -4779,7 +4384,6 @@ public Builder setSourceUploadUrl(java.lang.String value) {
            * 
      * * string source_upload_url = 16; - * * @return This builder for chaining. */ public Builder clearSourceUploadUrl() { @@ -4791,8 +4395,6 @@ public Builder clearSourceUploadUrl() { return this; } /** - * - * *
            * The Google Cloud Storage signed URL used for source uploading, generated
            * by calling [google.cloud.functions.v1.GenerateUploadUrl].
      @@ -4802,15 +4404,15 @@ public Builder clearSourceUploadUrl() {
            * 
      * * string source_upload_url = 16; - * * @param value The bytes for sourceUploadUrl to set. * @return This builder for chaining. */ - public Builder setSourceUploadUrlBytes(com.google.protobuf.ByteString value) { + public Builder setSourceUploadUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCodeCase_ = 16; sourceCode_ = value; onChanged(); @@ -4818,19 +4420,13 @@ public Builder setSourceUploadUrlBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.HttpsTrigger, - com.google.cloud.functions.v1.HttpsTrigger.Builder, - com.google.cloud.functions.v1.HttpsTriggerOrBuilder> - httpsTriggerBuilder_; + com.google.cloud.functions.v1.HttpsTrigger, com.google.cloud.functions.v1.HttpsTrigger.Builder, com.google.cloud.functions.v1.HttpsTriggerOrBuilder> httpsTriggerBuilder_; /** - * - * *
            * An HTTPS endpoint type of source that can be triggered via URL.
            * 
      * * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; - * * @return Whether the httpsTrigger field is set. */ @java.lang.Override @@ -4838,14 +4434,11 @@ public boolean hasHttpsTrigger() { return triggerCase_ == 5; } /** - * - * *
            * An HTTPS endpoint type of source that can be triggered via URL.
            * 
      * * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; - * * @return The httpsTrigger. */ @java.lang.Override @@ -4863,8 +4456,6 @@ public com.google.cloud.functions.v1.HttpsTrigger getHttpsTrigger() { } } /** - * - * *
            * An HTTPS endpoint type of source that can be triggered via URL.
            * 
      @@ -4885,8 +4476,6 @@ public Builder setHttpsTrigger(com.google.cloud.functions.v1.HttpsTrigger value) return this; } /** - * - * *
            * An HTTPS endpoint type of source that can be triggered via URL.
            * 
      @@ -4905,8 +4494,6 @@ public Builder setHttpsTrigger( return this; } /** - * - * *
            * An HTTPS endpoint type of source that can be triggered via URL.
            * 
      @@ -4915,13 +4502,10 @@ public Builder setHttpsTrigger( */ public Builder mergeHttpsTrigger(com.google.cloud.functions.v1.HttpsTrigger value) { if (httpsTriggerBuilder_ == null) { - if (triggerCase_ == 5 - && trigger_ != com.google.cloud.functions.v1.HttpsTrigger.getDefaultInstance()) { - trigger_ = - com.google.cloud.functions.v1.HttpsTrigger.newBuilder( - (com.google.cloud.functions.v1.HttpsTrigger) trigger_) - .mergeFrom(value) - .buildPartial(); + if (triggerCase_ == 5 && + trigger_ != com.google.cloud.functions.v1.HttpsTrigger.getDefaultInstance()) { + trigger_ = com.google.cloud.functions.v1.HttpsTrigger.newBuilder((com.google.cloud.functions.v1.HttpsTrigger) trigger_) + .mergeFrom(value).buildPartial(); } else { trigger_ = value; } @@ -4937,8 +4521,6 @@ public Builder mergeHttpsTrigger(com.google.cloud.functions.v1.HttpsTrigger valu return this; } /** - * - * *
            * An HTTPS endpoint type of source that can be triggered via URL.
            * 
      @@ -4962,8 +4544,6 @@ public Builder clearHttpsTrigger() { return this; } /** - * - * *
            * An HTTPS endpoint type of source that can be triggered via URL.
            * 
      @@ -4974,8 +4554,6 @@ public com.google.cloud.functions.v1.HttpsTrigger.Builder getHttpsTriggerBuilder return getHttpsTriggerFieldBuilder().getBuilder(); } /** - * - * *
            * An HTTPS endpoint type of source that can be triggered via URL.
            * 
      @@ -4994,8 +4572,6 @@ public com.google.cloud.functions.v1.HttpsTriggerOrBuilder getHttpsTriggerOrBuil } } /** - * - * *
            * An HTTPS endpoint type of source that can be triggered via URL.
            * 
      @@ -5003,44 +4579,32 @@ public com.google.cloud.functions.v1.HttpsTriggerOrBuilder getHttpsTriggerOrBuil * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.HttpsTrigger, - com.google.cloud.functions.v1.HttpsTrigger.Builder, - com.google.cloud.functions.v1.HttpsTriggerOrBuilder> + com.google.cloud.functions.v1.HttpsTrigger, com.google.cloud.functions.v1.HttpsTrigger.Builder, com.google.cloud.functions.v1.HttpsTriggerOrBuilder> getHttpsTriggerFieldBuilder() { if (httpsTriggerBuilder_ == null) { if (!(triggerCase_ == 5)) { trigger_ = com.google.cloud.functions.v1.HttpsTrigger.getDefaultInstance(); } - httpsTriggerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.HttpsTrigger, - com.google.cloud.functions.v1.HttpsTrigger.Builder, - com.google.cloud.functions.v1.HttpsTriggerOrBuilder>( + httpsTriggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v1.HttpsTrigger, com.google.cloud.functions.v1.HttpsTrigger.Builder, com.google.cloud.functions.v1.HttpsTriggerOrBuilder>( (com.google.cloud.functions.v1.HttpsTrigger) trigger_, getParentForChildren(), isClean()); trigger_ = null; } triggerCase_ = 5; - onChanged(); - ; + onChanged();; return httpsTriggerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.EventTrigger, - com.google.cloud.functions.v1.EventTrigger.Builder, - com.google.cloud.functions.v1.EventTriggerOrBuilder> - eventTriggerBuilder_; + com.google.cloud.functions.v1.EventTrigger, com.google.cloud.functions.v1.EventTrigger.Builder, com.google.cloud.functions.v1.EventTriggerOrBuilder> eventTriggerBuilder_; /** - * - * *
            * A source that fires events in response to a condition in another service.
            * 
      * * .google.cloud.functions.v1.EventTrigger event_trigger = 6; - * * @return Whether the eventTrigger field is set. */ @java.lang.Override @@ -5048,14 +4612,11 @@ public boolean hasEventTrigger() { return triggerCase_ == 6; } /** - * - * *
            * A source that fires events in response to a condition in another service.
            * 
      * * .google.cloud.functions.v1.EventTrigger event_trigger = 6; - * * @return The eventTrigger. */ @java.lang.Override @@ -5073,8 +4634,6 @@ public com.google.cloud.functions.v1.EventTrigger getEventTrigger() { } } /** - * - * *
            * A source that fires events in response to a condition in another service.
            * 
      @@ -5095,8 +4654,6 @@ public Builder setEventTrigger(com.google.cloud.functions.v1.EventTrigger value) return this; } /** - * - * *
            * A source that fires events in response to a condition in another service.
            * 
      @@ -5115,8 +4672,6 @@ public Builder setEventTrigger( return this; } /** - * - * *
            * A source that fires events in response to a condition in another service.
            * 
      @@ -5125,13 +4680,10 @@ public Builder setEventTrigger( */ public Builder mergeEventTrigger(com.google.cloud.functions.v1.EventTrigger value) { if (eventTriggerBuilder_ == null) { - if (triggerCase_ == 6 - && trigger_ != com.google.cloud.functions.v1.EventTrigger.getDefaultInstance()) { - trigger_ = - com.google.cloud.functions.v1.EventTrigger.newBuilder( - (com.google.cloud.functions.v1.EventTrigger) trigger_) - .mergeFrom(value) - .buildPartial(); + if (triggerCase_ == 6 && + trigger_ != com.google.cloud.functions.v1.EventTrigger.getDefaultInstance()) { + trigger_ = com.google.cloud.functions.v1.EventTrigger.newBuilder((com.google.cloud.functions.v1.EventTrigger) trigger_) + .mergeFrom(value).buildPartial(); } else { trigger_ = value; } @@ -5147,8 +4699,6 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v1.EventTrigger valu return this; } /** - * - * *
            * A source that fires events in response to a condition in another service.
            * 
      @@ -5172,8 +4722,6 @@ public Builder clearEventTrigger() { return this; } /** - * - * *
            * A source that fires events in response to a condition in another service.
            * 
      @@ -5184,8 +4732,6 @@ public com.google.cloud.functions.v1.EventTrigger.Builder getEventTriggerBuilder return getEventTriggerFieldBuilder().getBuilder(); } /** - * - * *
            * A source that fires events in response to a condition in another service.
            * 
      @@ -5204,8 +4750,6 @@ public com.google.cloud.functions.v1.EventTriggerOrBuilder getEventTriggerOrBuil } } /** - * - * *
            * A source that fires events in response to a condition in another service.
            * 
      @@ -5213,101 +4757,71 @@ public com.google.cloud.functions.v1.EventTriggerOrBuilder getEventTriggerOrBuil * .google.cloud.functions.v1.EventTrigger event_trigger = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.EventTrigger, - com.google.cloud.functions.v1.EventTrigger.Builder, - com.google.cloud.functions.v1.EventTriggerOrBuilder> + com.google.cloud.functions.v1.EventTrigger, com.google.cloud.functions.v1.EventTrigger.Builder, com.google.cloud.functions.v1.EventTriggerOrBuilder> getEventTriggerFieldBuilder() { if (eventTriggerBuilder_ == null) { if (!(triggerCase_ == 6)) { trigger_ = com.google.cloud.functions.v1.EventTrigger.getDefaultInstance(); } - eventTriggerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.EventTrigger, - com.google.cloud.functions.v1.EventTrigger.Builder, - com.google.cloud.functions.v1.EventTriggerOrBuilder>( + eventTriggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v1.EventTrigger, com.google.cloud.functions.v1.EventTrigger.Builder, com.google.cloud.functions.v1.EventTriggerOrBuilder>( (com.google.cloud.functions.v1.EventTrigger) trigger_, getParentForChildren(), isClean()); trigger_ = null; } triggerCase_ = 6; - onChanged(); - ; + onChanged();; return eventTriggerBuilder_; } private int status_ = 0; /** - * - * *
            * Output only. Status of the function deployment.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for status. */ - @java.lang.Override - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * - * *
            * Output only. Status of the function deployment.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { - + status_ = value; onChanged(); return this; } /** - * - * *
            * Output only. Status of the function deployment.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunctionStatus getStatus() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunctionStatus result = - com.google.cloud.functions.v1.CloudFunctionStatus.valueOf(status_); - return result == null - ? com.google.cloud.functions.v1.CloudFunctionStatus.UNRECOGNIZED - : result; + com.google.cloud.functions.v1.CloudFunctionStatus result = com.google.cloud.functions.v1.CloudFunctionStatus.valueOf(status_); + return result == null ? com.google.cloud.functions.v1.CloudFunctionStatus.UNRECOGNIZED : result; } /** - * - * *
            * Output only. Status of the function deployment.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The status to set. * @return This builder for chaining. */ @@ -5315,26 +4829,21 @@ public Builder setStatus(com.google.cloud.functions.v1.CloudFunctionStatus value if (value == null) { throw new NullPointerException(); } - + status_ = value.getNumber(); onChanged(); return this; } /** - * - * *
            * Output only. Status of the function deployment.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearStatus() { - + status_ = 0; onChanged(); return this; @@ -5342,8 +4851,6 @@ public Builder clearStatus() { private java.lang.Object entryPoint_ = ""; /** - * - * *
            * The name of the function (as defined in source code) that will be
            * executed. Defaults to the resource name suffix, if not specified. For
      @@ -5354,13 +4861,13 @@ public Builder clearStatus() {
            * 
      * * string entry_point = 8; - * * @return The entryPoint. */ public java.lang.String getEntryPoint() { java.lang.Object ref = entryPoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; @@ -5369,8 +4876,6 @@ public java.lang.String getEntryPoint() { } } /** - * - * *
            * The name of the function (as defined in source code) that will be
            * executed. Defaults to the resource name suffix, if not specified. For
      @@ -5381,14 +4886,15 @@ public java.lang.String getEntryPoint() {
            * 
      * * string entry_point = 8; - * * @return The bytes for entryPoint. */ - public com.google.protobuf.ByteString getEntryPointBytes() { + public com.google.protobuf.ByteString + getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -5396,8 +4902,6 @@ public com.google.protobuf.ByteString getEntryPointBytes() { } } /** - * - * *
            * The name of the function (as defined in source code) that will be
            * executed. Defaults to the resource name suffix, if not specified. For
      @@ -5408,22 +4912,20 @@ public com.google.protobuf.ByteString getEntryPointBytes() {
            * 
      * * string entry_point = 8; - * * @param value The entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPoint(java.lang.String value) { + public Builder setEntryPoint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entryPoint_ = value; onChanged(); return this; } /** - * - * *
            * The name of the function (as defined in source code) that will be
            * executed. Defaults to the resource name suffix, if not specified. For
      @@ -5434,18 +4936,15 @@ public Builder setEntryPoint(java.lang.String value) {
            * 
      * * string entry_point = 8; - * * @return This builder for chaining. */ public Builder clearEntryPoint() { - + entryPoint_ = getDefaultInstance().getEntryPoint(); onChanged(); return this; } /** - * - * *
            * The name of the function (as defined in source code) that will be
            * executed. Defaults to the resource name suffix, if not specified. For
      @@ -5456,16 +4955,16 @@ public Builder clearEntryPoint() {
            * 
      * * string entry_point = 8; - * * @param value The bytes for entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPointBytes(com.google.protobuf.ByteString value) { + public Builder setEntryPointBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryPoint_ = value; onChanged(); return this; @@ -5473,8 +4972,6 @@ public Builder setEntryPointBytes(com.google.protobuf.ByteString value) { private java.lang.Object runtime_ = ""; /** - * - * *
            * The runtime in which to run the function. Required when deploying a new
            * function, optional when updating an existing function. For a complete
      @@ -5484,13 +4981,13 @@ public Builder setEntryPointBytes(com.google.protobuf.ByteString value) {
            * 
      * * string runtime = 19; - * * @return The runtime. */ public java.lang.String getRuntime() { java.lang.Object ref = runtime_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; @@ -5499,8 +4996,6 @@ public java.lang.String getRuntime() { } } /** - * - * *
            * The runtime in which to run the function. Required when deploying a new
            * function, optional when updating an existing function. For a complete
      @@ -5510,14 +5005,15 @@ public java.lang.String getRuntime() {
            * 
      * * string runtime = 19; - * * @return The bytes for runtime. */ - public com.google.protobuf.ByteString getRuntimeBytes() { + public com.google.protobuf.ByteString + getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); runtime_ = b; return b; } else { @@ -5525,8 +5021,6 @@ public com.google.protobuf.ByteString getRuntimeBytes() { } } /** - * - * *
            * The runtime in which to run the function. Required when deploying a new
            * function, optional when updating an existing function. For a complete
      @@ -5536,22 +5030,20 @@ public com.google.protobuf.ByteString getRuntimeBytes() {
            * 
      * * string runtime = 19; - * * @param value The runtime to set. * @return This builder for chaining. */ - public Builder setRuntime(java.lang.String value) { + public Builder setRuntime( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + runtime_ = value; onChanged(); return this; } /** - * - * *
            * The runtime in which to run the function. Required when deploying a new
            * function, optional when updating an existing function. For a complete
      @@ -5561,18 +5053,15 @@ public Builder setRuntime(java.lang.String value) {
            * 
      * * string runtime = 19; - * * @return This builder for chaining. */ public Builder clearRuntime() { - + runtime_ = getDefaultInstance().getRuntime(); onChanged(); return this; } /** - * - * *
            * The runtime in which to run the function. Required when deploying a new
            * function, optional when updating an existing function. For a complete
      @@ -5582,16 +5071,16 @@ public Builder clearRuntime() {
            * 
      * * string runtime = 19; - * * @param value The bytes for runtime to set. * @return This builder for chaining. */ - public Builder setRuntimeBytes(com.google.protobuf.ByteString value) { + public Builder setRuntimeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + runtime_ = value; onChanged(); return this; @@ -5599,13 +5088,8 @@ public Builder setRuntimeBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - timeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; /** - * - * *
            * The function execution timeout. Execution is considered failed and
            * can be terminated if the function is not completed at the end of the
      @@ -5613,15 +5097,12 @@ public Builder setRuntimeBytes(com.google.protobuf.ByteString value) {
            * 
      * * .google.protobuf.Duration timeout = 9; - * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** - * - * *
            * The function execution timeout. Execution is considered failed and
            * can be terminated if the function is not completed at the end of the
      @@ -5629,7 +5110,6 @@ public boolean hasTimeout() {
            * 
      * * .google.protobuf.Duration timeout = 9; - * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -5640,8 +5120,6 @@ public com.google.protobuf.Duration getTimeout() { } } /** - * - * *
            * The function execution timeout. Execution is considered failed and
            * can be terminated if the function is not completed at the end of the
      @@ -5664,8 +5142,6 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
             return this;
           }
           /**
      -     *
      -     *
            * 
            * The function execution timeout. Execution is considered failed and
            * can be terminated if the function is not completed at the end of the
      @@ -5674,7 +5150,8 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
            *
            * .google.protobuf.Duration timeout = 9;
            */
      -    public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) {
      +    public Builder setTimeout(
      +        com.google.protobuf.Duration.Builder builderForValue) {
             if (timeoutBuilder_ == null) {
               timeout_ = builderForValue.build();
               onChanged();
      @@ -5685,8 +5162,6 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
             return this;
           }
           /**
      -     *
      -     *
            * 
            * The function execution timeout. Execution is considered failed and
            * can be terminated if the function is not completed at the end of the
      @@ -5699,7 +5174,7 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
             if (timeoutBuilder_ == null) {
               if (timeout_ != null) {
                 timeout_ =
      -              com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial();
      +            com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial();
               } else {
                 timeout_ = value;
               }
      @@ -5711,8 +5186,6 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
             return this;
           }
           /**
      -     *
      -     *
            * 
            * The function execution timeout. Execution is considered failed and
            * can be terminated if the function is not completed at the end of the
      @@ -5733,8 +5206,6 @@ public Builder clearTimeout() {
             return this;
           }
           /**
      -     *
      -     *
            * 
            * The function execution timeout. Execution is considered failed and
            * can be terminated if the function is not completed at the end of the
      @@ -5744,13 +5215,11 @@ public Builder clearTimeout() {
            * .google.protobuf.Duration timeout = 9;
            */
           public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
      -
      +      
             onChanged();
             return getTimeoutFieldBuilder().getBuilder();
           }
           /**
      -     *
      -     *
            * 
            * The function execution timeout. Execution is considered failed and
            * can be terminated if the function is not completed at the end of the
      @@ -5763,12 +5232,11 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
             if (timeoutBuilder_ != null) {
               return timeoutBuilder_.getMessageOrBuilder();
             } else {
      -        return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
      +        return timeout_ == null ?
      +            com.google.protobuf.Duration.getDefaultInstance() : timeout_;
             }
           }
           /**
      -     *
      -     *
            * 
            * The function execution timeout. Execution is considered failed and
            * can be terminated if the function is not completed at the end of the
      @@ -5778,33 +5246,27 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
            * .google.protobuf.Duration timeout = 9;
            */
           private com.google.protobuf.SingleFieldBuilderV3<
      -            com.google.protobuf.Duration,
      -            com.google.protobuf.Duration.Builder,
      -            com.google.protobuf.DurationOrBuilder>
      +        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
               getTimeoutFieldBuilder() {
             if (timeoutBuilder_ == null) {
      -        timeoutBuilder_ =
      -            new com.google.protobuf.SingleFieldBuilderV3<
      -                com.google.protobuf.Duration,
      -                com.google.protobuf.Duration.Builder,
      -                com.google.protobuf.DurationOrBuilder>(
      -                getTimeout(), getParentForChildren(), isClean());
      +        timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
      +            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
      +                getTimeout(),
      +                getParentForChildren(),
      +                isClean());
               timeout_ = null;
             }
             return timeoutBuilder_;
           }
       
      -    private int availableMemoryMb_;
      +    private int availableMemoryMb_ ;
           /**
      -     *
      -     *
            * 
            * The amount of memory in MB available for a function.
            * Defaults to 256MB.
            * 
      * * int32 available_memory_mb = 10; - * * @return The availableMemoryMb. */ @java.lang.Override @@ -5812,38 +5274,32 @@ public int getAvailableMemoryMb() { return availableMemoryMb_; } /** - * - * *
            * The amount of memory in MB available for a function.
            * Defaults to 256MB.
            * 
      * * int32 available_memory_mb = 10; - * * @param value The availableMemoryMb to set. * @return This builder for chaining. */ public Builder setAvailableMemoryMb(int value) { - + availableMemoryMb_ = value; onChanged(); return this; } /** - * - * *
            * The amount of memory in MB available for a function.
            * Defaults to 256MB.
            * 
      * * int32 available_memory_mb = 10; - * * @return This builder for chaining. */ public Builder clearAvailableMemoryMb() { - + availableMemoryMb_ = 0; onChanged(); return this; @@ -5851,21 +5307,19 @@ public Builder clearAvailableMemoryMb() { private java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
            * The email of the function's service account. If empty, defaults to
            * `{project_id}@appspot.gserviceaccount.com`.
            * 
      * * string service_account_email = 11; - * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -5874,22 +5328,21 @@ public java.lang.String getServiceAccountEmail() { } } /** - * - * *
            * The email of the function's service account. If empty, defaults to
            * `{project_id}@appspot.gserviceaccount.com`.
            * 
      * * string service_account_email = 11; - * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -5897,64 +5350,57 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } } /** - * - * *
            * The email of the function's service account. If empty, defaults to
            * `{project_id}@appspot.gserviceaccount.com`.
            * 
      * * string service_account_email = 11; - * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail(java.lang.String value) { + public Builder setServiceAccountEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** - * - * *
            * The email of the function's service account. If empty, defaults to
            * `{project_id}@appspot.gserviceaccount.com`.
            * 
      * * string service_account_email = 11; - * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** - * - * *
            * The email of the function's service account. If empty, defaults to
            * `{project_id}@appspot.gserviceaccount.com`.
            * 
      * * string service_account_email = 11; - * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; @@ -5962,58 +5408,39 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
            * Output only. The last update timestamp of a Cloud Function.
            * 
      * - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
            * Output only. The last update timestamp of a Cloud Function.
            * 
      * - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
            * Output only. The last update timestamp of a Cloud Function.
            * 
      * - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -6029,17 +5456,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
            * Output only. The last update timestamp of a Cloud Function.
            * 
      * - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -6050,21 +5474,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
            * Output only. The last update timestamp of a Cloud Function.
            * 
      * - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -6076,15 +5496,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
            * Output only. The last update timestamp of a Cloud Function.
            * 
      * - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -6098,80 +5514,61 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
            * Output only. The last update timestamp of a Cloud Function.
            * 
      * - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
            * Output only. The last update timestamp of a Cloud Function.
            * 
      * - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
            * Output only. The last update timestamp of a Cloud Function.
            * 
      * - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private long versionId_; + private long versionId_ ; /** - * - * *
            * Output only. The version identifier of the Cloud Function. Each deployment attempt
            * results in a new version of a function being created.
            * 
      * * int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The versionId. */ @java.lang.Override @@ -6179,58 +5576,53 @@ public long getVersionId() { return versionId_; } /** - * - * *
            * Output only. The version identifier of the Cloud Function. Each deployment attempt
            * results in a new version of a function being created.
            * 
      * * int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The versionId to set. * @return This builder for chaining. */ public Builder setVersionId(long value) { - + versionId_ = value; onChanged(); return this; } /** - * - * *
            * Output only. The version identifier of the Cloud Function. Each deployment attempt
            * results in a new version of a function being created.
            * 
      * * int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVersionId() { - + versionId_ = 0L; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -6242,30 +5634,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
            * Labels associated with this Cloud Function.
            * 
      * * map<string, string> labels = 15; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
            * Labels associated with this Cloud Function.
            * 
      @@ -6273,12 +5663,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 15; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
            * Labels associated with this Cloud Function.
            * 
      @@ -6286,17 +5675,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 15; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
            * Labels associated with this Cloud Function.
            * 
      @@ -6304,11 +5692,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 15; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -6316,83 +5705,83 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
            * Labels associated with this Cloud Function.
            * 
      * * map<string, string> labels = 15; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
            * Labels associated with this Cloud Function.
            * 
      * * map<string, string> labels = 15; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
            * Labels associated with this Cloud Function.
            * 
      * * map<string, string> labels = 15; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.MapField environmentVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } - private com.google.protobuf.MapField - internalGetMutableEnvironmentVariables() { - onChanged(); - ; + internalGetMutableEnvironmentVariables() { + onChanged();; if (environmentVariables_ == null) { - environmentVariables_ = - com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); + environmentVariables_ = com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); @@ -6404,30 +5793,28 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** - * - * *
            * Environment variables that shall be available during function execution.
            * 
      * * map<string, string> environment_variables = 17; */ + @java.lang.Override - public boolean containsEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** - * - * *
            * Environment variables that shall be available during function execution.
            * 
      @@ -6435,12 +5822,11 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 17; */ @java.lang.Override + public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** - * - * *
            * Environment variables that shall be available during function execution.
            * 
      @@ -6448,18 +5834,16 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 17; */ @java.lang.Override + public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
            * Environment variables that shall be available during function execution.
            * 
      @@ -6467,10 +5851,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 17; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -6480,85 +5864,83 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { } public Builder clearEnvironmentVariables() { - internalGetMutableEnvironmentVariables().getMutableMap().clear(); + internalGetMutableEnvironmentVariables().getMutableMap() + .clear(); return this; } /** - * - * *
            * Environment variables that shall be available during function execution.
            * 
      * * map<string, string> environment_variables = 17; */ - public Builder removeEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableEnvironmentVariables().getMutableMap().remove(key); + + public Builder removeEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableEnvironmentVariables().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableEnvironmentVariables() { + public java.util.Map + getMutableEnvironmentVariables() { return internalGetMutableEnvironmentVariables().getMutableMap(); } /** - * - * *
            * Environment variables that shall be available during function execution.
            * 
      * * map<string, string> environment_variables = 17; */ - public Builder putEnvironmentVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putEnvironmentVariables( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableEnvironmentVariables().getMutableMap().put(key, value); + internalGetMutableEnvironmentVariables().getMutableMap() + .put(key, value); return this; } /** - * - * *
            * Environment variables that shall be available during function execution.
            * 
      * * map<string, string> environment_variables = 17; */ + public Builder putAllEnvironmentVariables( java.util.Map values) { - internalGetMutableEnvironmentVariables().getMutableMap().putAll(values); + internalGetMutableEnvironmentVariables().getMutableMap() + .putAll(values); return this; } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> buildEnvironmentVariables_; private com.google.protobuf.MapField - buildEnvironmentVariables_; - - private com.google.protobuf.MapField - internalGetBuildEnvironmentVariables() { + internalGetBuildEnvironmentVariables() { if (buildEnvironmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry); } return buildEnvironmentVariables_; } - private com.google.protobuf.MapField - internalGetMutableBuildEnvironmentVariables() { - onChanged(); - ; + internalGetMutableBuildEnvironmentVariables() { + onChanged();; if (buildEnvironmentVariables_ == null) { - buildEnvironmentVariables_ = - com.google.protobuf.MapField.newMapField( - BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry); + buildEnvironmentVariables_ = com.google.protobuf.MapField.newMapField( + BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!buildEnvironmentVariables_.isMutable()) { buildEnvironmentVariables_ = buildEnvironmentVariables_.copy(); @@ -6570,30 +5952,28 @@ public int getBuildEnvironmentVariablesCount() { return internalGetBuildEnvironmentVariables().getMap().size(); } /** - * - * *
            * Build environment variables that shall be available during build time.
            * 
      * * map<string, string> build_environment_variables = 28; */ + @java.lang.Override - public boolean containsBuildEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsBuildEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetBuildEnvironmentVariables().getMap().containsKey(key); } - /** Use {@link #getBuildEnvironmentVariablesMap()} instead. */ + /** + * Use {@link #getBuildEnvironmentVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getBuildEnvironmentVariables() { return getBuildEnvironmentVariablesMap(); } /** - * - * *
            * Build environment variables that shall be available during build time.
            * 
      @@ -6601,12 +5981,11 @@ public java.util.Map getBuildEnvironmentVari * map<string, string> build_environment_variables = 28; */ @java.lang.Override + public java.util.Map getBuildEnvironmentVariablesMap() { return internalGetBuildEnvironmentVariables().getMap(); } /** - * - * *
            * Build environment variables that shall be available during build time.
            * 
      @@ -6614,18 +5993,16 @@ public java.util.Map getBuildEnvironmentVari * map<string, string> build_environment_variables = 28; */ @java.lang.Override + public java.lang.String getBuildEnvironmentVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetBuildEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
            * Build environment variables that shall be available during build time.
            * 
      @@ -6633,10 +6010,10 @@ public java.lang.String getBuildEnvironmentVariablesOrDefault( * map<string, string> build_environment_variables = 28; */ @java.lang.Override - public java.lang.String getBuildEnvironmentVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getBuildEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetBuildEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -6646,69 +6023,69 @@ public java.lang.String getBuildEnvironmentVariablesOrThrow(java.lang.String key } public Builder clearBuildEnvironmentVariables() { - internalGetMutableBuildEnvironmentVariables().getMutableMap().clear(); + internalGetMutableBuildEnvironmentVariables().getMutableMap() + .clear(); return this; } /** - * - * *
            * Build environment variables that shall be available during build time.
            * 
      * * map<string, string> build_environment_variables = 28; */ - public Builder removeBuildEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableBuildEnvironmentVariables().getMutableMap().remove(key); + + public Builder removeBuildEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableBuildEnvironmentVariables().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableBuildEnvironmentVariables() { + public java.util.Map + getMutableBuildEnvironmentVariables() { return internalGetMutableBuildEnvironmentVariables().getMutableMap(); } /** - * - * *
            * Build environment variables that shall be available during build time.
            * 
      * * map<string, string> build_environment_variables = 28; */ - public Builder putBuildEnvironmentVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putBuildEnvironmentVariables( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableBuildEnvironmentVariables().getMutableMap().put(key, value); + internalGetMutableBuildEnvironmentVariables().getMutableMap() + .put(key, value); return this; } /** - * - * *
            * Build environment variables that shall be available during build time.
            * 
      * * map<string, string> build_environment_variables = 28; */ + public Builder putAllBuildEnvironmentVariables( java.util.Map values) { - internalGetMutableBuildEnvironmentVariables().getMutableMap().putAll(values); + internalGetMutableBuildEnvironmentVariables().getMutableMap() + .putAll(values); return this; } private java.lang.Object network_ = ""; /** - * - * *
            * The VPC Network that this cloud function can connect to. It can be
            * either the fully-qualified URI, or the short name of the network resource.
      @@ -6725,13 +6102,13 @@ public Builder putAllBuildEnvironmentVariables(
            * 
      * * string network = 18; - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -6740,8 +6117,6 @@ public java.lang.String getNetwork() { } } /** - * - * *
            * The VPC Network that this cloud function can connect to. It can be
            * either the fully-qualified URI, or the short name of the network resource.
      @@ -6758,14 +6133,15 @@ public java.lang.String getNetwork() {
            * 
      * * string network = 18; - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -6773,8 +6149,6 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
            * The VPC Network that this cloud function can connect to. It can be
            * either the fully-qualified URI, or the short name of the network resource.
      @@ -6791,22 +6165,20 @@ public com.google.protobuf.ByteString getNetworkBytes() {
            * 
      * * string network = 18; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { + public Builder setNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** - * - * *
            * The VPC Network that this cloud function can connect to. It can be
            * either the fully-qualified URI, or the short name of the network resource.
      @@ -6823,18 +6195,15 @@ public Builder setNetwork(java.lang.String value) {
            * 
      * * string network = 18; - * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** - * - * *
            * The VPC Network that this cloud function can connect to. It can be
            * either the fully-qualified URI, or the short name of the network resource.
      @@ -6851,25 +6220,23 @@ public Builder clearNetwork() {
            * 
      * * string network = 18; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; } - private int maxInstances_; + private int maxInstances_ ; /** - * - * *
            * The limit on the maximum number of function instances that may coexist at a
            * given time.
      @@ -6884,7 +6251,6 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
            * 
      * * int32 max_instances = 20; - * * @return The maxInstances. */ @java.lang.Override @@ -6892,8 +6258,6 @@ public int getMaxInstances() { return maxInstances_; } /** - * - * *
            * The limit on the maximum number of function instances that may coexist at a
            * given time.
      @@ -6908,19 +6272,16 @@ public int getMaxInstances() {
            * 
      * * int32 max_instances = 20; - * * @param value The maxInstances to set. * @return This builder for chaining. */ public Builder setMaxInstances(int value) { - + maxInstances_ = value; onChanged(); return this; } /** - * - * *
            * The limit on the maximum number of function instances that may coexist at a
            * given time.
      @@ -6935,27 +6296,23 @@ public Builder setMaxInstances(int value) {
            * 
      * * int32 max_instances = 20; - * * @return This builder for chaining. */ public Builder clearMaxInstances() { - + maxInstances_ = 0; onChanged(); return this; } - private int minInstances_; + private int minInstances_ ; /** - * - * *
            * A lower bound for the number function instances that may coexist at a
            * given time.
            * 
      * * int32 min_instances = 32; - * * @return The minInstances. */ @java.lang.Override @@ -6963,38 +6320,32 @@ public int getMinInstances() { return minInstances_; } /** - * - * *
            * A lower bound for the number function instances that may coexist at a
            * given time.
            * 
      * * int32 min_instances = 32; - * * @param value The minInstances to set. * @return This builder for chaining. */ public Builder setMinInstances(int value) { - + minInstances_ = value; onChanged(); return this; } /** - * - * *
            * A lower bound for the number function instances that may coexist at a
            * given time.
            * 
      * * int32 min_instances = 32; - * * @return This builder for chaining. */ public Builder clearMinInstances() { - + minInstances_ = 0; onChanged(); return this; @@ -7002,8 +6353,6 @@ public Builder clearMinInstances() { private java.lang.Object vpcConnector_ = ""; /** - * - * *
            * The VPC Network Connector that this cloud function can connect to. It can
            * be either the fully-qualified URI, or the short name of the network
      @@ -7016,13 +6365,13 @@ public Builder clearMinInstances() {
            * 
      * * string vpc_connector = 22; - * * @return The vpcConnector. */ public java.lang.String getVpcConnector() { java.lang.Object ref = vpcConnector_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; @@ -7031,8 +6380,6 @@ public java.lang.String getVpcConnector() { } } /** - * - * *
            * The VPC Network Connector that this cloud function can connect to. It can
            * be either the fully-qualified URI, or the short name of the network
      @@ -7045,14 +6392,15 @@ public java.lang.String getVpcConnector() {
            * 
      * * string vpc_connector = 22; - * * @return The bytes for vpcConnector. */ - public com.google.protobuf.ByteString getVpcConnectorBytes() { + public com.google.protobuf.ByteString + getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -7060,8 +6408,6 @@ public com.google.protobuf.ByteString getVpcConnectorBytes() { } } /** - * - * *
            * The VPC Network Connector that this cloud function can connect to. It can
            * be either the fully-qualified URI, or the short name of the network
      @@ -7074,22 +6420,20 @@ public com.google.protobuf.ByteString getVpcConnectorBytes() {
            * 
      * * string vpc_connector = 22; - * * @param value The vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnector(java.lang.String value) { + public Builder setVpcConnector( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vpcConnector_ = value; onChanged(); return this; } /** - * - * *
            * The VPC Network Connector that this cloud function can connect to. It can
            * be either the fully-qualified URI, or the short name of the network
      @@ -7102,18 +6446,15 @@ public Builder setVpcConnector(java.lang.String value) {
            * 
      * * string vpc_connector = 22; - * * @return This builder for chaining. */ public Builder clearVpcConnector() { - + vpcConnector_ = getDefaultInstance().getVpcConnector(); onChanged(); return this; } /** - * - * *
            * The VPC Network Connector that this cloud function can connect to. It can
            * be either the fully-qualified URI, or the short name of the network
      @@ -7126,16 +6467,16 @@ public Builder clearVpcConnector() {
            * 
      * * string vpc_connector = 22; - * * @param value The bytes for vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnectorBytes(com.google.protobuf.ByteString value) { + public Builder setVpcConnectorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcConnector_ = value; onChanged(); return this; @@ -7143,110 +6484,78 @@ public Builder setVpcConnectorBytes(com.google.protobuf.ByteString value) { private int vpcConnectorEgressSettings_ = 0; /** - * - * *
            * The egress settings for the connector, controlling what traffic is diverted
            * through it.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; - * - * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override - public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** - * - * *
            * The egress settings for the connector, controlling what traffic is diverted
            * through it.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; - * - * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; * @param value The enum numeric value on the wire for vpcConnectorEgressSettings to set. * @return This builder for chaining. */ public Builder setVpcConnectorEgressSettingsValue(int value) { - + vpcConnectorEgressSettings_ = value; onChanged(); return this; } /** - * - * *
            * The egress settings for the connector, controlling what traffic is diverted
            * through it.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; - * - * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; * @return The vpcConnectorEgressSettings. */ @java.lang.Override - public com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings - getVpcConnectorEgressSettings() { + public com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings result = - com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.valueOf( - vpcConnectorEgressSettings_); - return result == null - ? com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.UNRECOGNIZED - : result; + com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings result = com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); + return result == null ? com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.UNRECOGNIZED : result; } /** - * - * *
            * The egress settings for the connector, controlling what traffic is diverted
            * through it.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; - * - * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; * @param value The vpcConnectorEgressSettings to set. * @return This builder for chaining. */ - public Builder setVpcConnectorEgressSettings( - com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings value) { + public Builder setVpcConnectorEgressSettings(com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings value) { if (value == null) { throw new NullPointerException(); } - + vpcConnectorEgressSettings_ = value.getNumber(); onChanged(); return this; } /** - * - * *
            * The egress settings for the connector, controlling what traffic is diverted
            * through it.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; - * - * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; * @return This builder for chaining. */ public Builder clearVpcConnectorEgressSettings() { - + vpcConnectorEgressSettings_ = 0; onChanged(); return this; @@ -7254,98 +6563,78 @@ public Builder clearVpcConnectorEgressSettings() { private int ingressSettings_ = 0; /** - * - * *
            * The ingress settings for the function, controlling what traffic can reach
            * it.
            * 
      * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; - * * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override - public int getIngressSettingsValue() { + @java.lang.Override public int getIngressSettingsValue() { return ingressSettings_; } /** - * - * *
            * The ingress settings for the function, controlling what traffic can reach
            * it.
            * 
      * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; - * * @param value The enum numeric value on the wire for ingressSettings to set. * @return This builder for chaining. */ public Builder setIngressSettingsValue(int value) { - + ingressSettings_ = value; onChanged(); return this; } /** - * - * *
            * The ingress settings for the function, controlling what traffic can reach
            * it.
            * 
      * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; - * * @return The ingressSettings. */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunction.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunction.IngressSettings result = - com.google.cloud.functions.v1.CloudFunction.IngressSettings.valueOf(ingressSettings_); - return result == null - ? com.google.cloud.functions.v1.CloudFunction.IngressSettings.UNRECOGNIZED - : result; + com.google.cloud.functions.v1.CloudFunction.IngressSettings result = com.google.cloud.functions.v1.CloudFunction.IngressSettings.valueOf(ingressSettings_); + return result == null ? com.google.cloud.functions.v1.CloudFunction.IngressSettings.UNRECOGNIZED : result; } /** - * - * *
            * The ingress settings for the function, controlling what traffic can reach
            * it.
            * 
      * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; - * * @param value The ingressSettings to set. * @return This builder for chaining. */ - public Builder setIngressSettings( - com.google.cloud.functions.v1.CloudFunction.IngressSettings value) { + public Builder setIngressSettings(com.google.cloud.functions.v1.CloudFunction.IngressSettings value) { if (value == null) { throw new NullPointerException(); } - + ingressSettings_ = value.getNumber(); onChanged(); return this; } /** - * - * *
            * The ingress settings for the function, controlling what traffic can reach
            * it.
            * 
      * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; - * * @return This builder for chaining. */ public Builder clearIngressSettings() { - + ingressSettings_ = 0; onChanged(); return this; @@ -7353,8 +6642,6 @@ public Builder clearIngressSettings() { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
            * Resource name of a KMS crypto key (managed by the user) used to
            * encrypt/decrypt function resources.
      @@ -7383,13 +6670,13 @@ public Builder clearIngressSettings() {
            * 
      * * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -7398,8 +6685,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
            * Resource name of a KMS crypto key (managed by the user) used to
            * encrypt/decrypt function resources.
      @@ -7428,14 +6713,15 @@ public java.lang.String getKmsKeyName() {
            * 
      * * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -7443,8 +6729,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
            * Resource name of a KMS crypto key (managed by the user) used to
            * encrypt/decrypt function resources.
      @@ -7473,22 +6757,20 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
            * 
      * * 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) { + public Builder setKmsKeyName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** - * - * *
            * Resource name of a KMS crypto key (managed by the user) used to
            * encrypt/decrypt function resources.
      @@ -7517,18 +6799,15 @@ public Builder setKmsKeyName(java.lang.String value) {
            * 
      * * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** - * - * *
            * Resource name of a KMS crypto key (managed by the user) used to
            * encrypt/decrypt function resources.
      @@ -7557,16 +6836,16 @@ public Builder clearKmsKeyName() {
            * 
      * * 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) { + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; @@ -7574,8 +6853,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object buildWorkerPool_ = ""; /** - * - * *
            * Name of the Cloud Build Custom Worker Pool that should be used to build the
            * function. The format of this field is
      @@ -7591,13 +6868,13 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
            * 
      * * string build_worker_pool = 26; - * * @return The buildWorkerPool. */ public java.lang.String getBuildWorkerPool() { java.lang.Object ref = buildWorkerPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildWorkerPool_ = s; return s; @@ -7606,8 +6883,6 @@ public java.lang.String getBuildWorkerPool() { } } /** - * - * *
            * Name of the Cloud Build Custom Worker Pool that should be used to build the
            * function. The format of this field is
      @@ -7623,14 +6898,15 @@ public java.lang.String getBuildWorkerPool() {
            * 
      * * string build_worker_pool = 26; - * * @return The bytes for buildWorkerPool. */ - public com.google.protobuf.ByteString getBuildWorkerPoolBytes() { + public com.google.protobuf.ByteString + getBuildWorkerPoolBytes() { java.lang.Object ref = buildWorkerPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); buildWorkerPool_ = b; return b; } else { @@ -7638,8 +6914,6 @@ public com.google.protobuf.ByteString getBuildWorkerPoolBytes() { } } /** - * - * *
            * Name of the Cloud Build Custom Worker Pool that should be used to build the
            * function. The format of this field is
      @@ -7655,22 +6929,20 @@ public com.google.protobuf.ByteString getBuildWorkerPoolBytes() {
            * 
      * * string build_worker_pool = 26; - * * @param value The buildWorkerPool to set. * @return This builder for chaining. */ - public Builder setBuildWorkerPool(java.lang.String value) { + public Builder setBuildWorkerPool( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + buildWorkerPool_ = value; onChanged(); return this; } /** - * - * *
            * Name of the Cloud Build Custom Worker Pool that should be used to build the
            * function. The format of this field is
      @@ -7686,18 +6958,15 @@ public Builder setBuildWorkerPool(java.lang.String value) {
            * 
      * * string build_worker_pool = 26; - * * @return This builder for chaining. */ public Builder clearBuildWorkerPool() { - + buildWorkerPool_ = getDefaultInstance().getBuildWorkerPool(); onChanged(); return this; } /** - * - * *
            * Name of the Cloud Build Custom Worker Pool that should be used to build the
            * function. The format of this field is
      @@ -7713,16 +6982,16 @@ public Builder clearBuildWorkerPool() {
            * 
      * * string build_worker_pool = 26; - * * @param value The bytes for buildWorkerPool to set. * @return This builder for chaining. */ - public Builder setBuildWorkerPoolBytes(com.google.protobuf.ByteString value) { + public Builder setBuildWorkerPoolBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + buildWorkerPool_ = value; onChanged(); return this; @@ -7730,21 +6999,19 @@ public Builder setBuildWorkerPoolBytes(com.google.protobuf.ByteString value) { private java.lang.Object buildId_ = ""; /** - * - * *
            * Output only. The Cloud Build ID of the latest successful deployment of the
            * function.
            * 
      * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The buildId. */ public java.lang.String getBuildId() { java.lang.Object ref = buildId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildId_ = s; return s; @@ -7753,22 +7020,21 @@ public java.lang.String getBuildId() { } } /** - * - * *
            * Output only. The Cloud Build ID of the latest successful deployment of the
            * function.
            * 
      * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for buildId. */ - public com.google.protobuf.ByteString getBuildIdBytes() { + public com.google.protobuf.ByteString + getBuildIdBytes() { java.lang.Object ref = buildId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); buildId_ = b; return b; } else { @@ -7776,64 +7042,57 @@ public com.google.protobuf.ByteString getBuildIdBytes() { } } /** - * - * *
            * Output only. The Cloud Build ID of the latest successful deployment of the
            * function.
            * 
      * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The buildId to set. * @return This builder for chaining. */ - public Builder setBuildId(java.lang.String value) { + public Builder setBuildId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + buildId_ = value; onChanged(); return this; } /** - * - * *
            * Output only. The Cloud Build ID of the latest successful deployment of the
            * function.
            * 
      * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearBuildId() { - + buildId_ = getDefaultInstance().getBuildId(); onChanged(); return this; } /** - * - * *
            * Output only. The Cloud Build ID of the latest successful deployment of the
            * function.
            * 
      * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for buildId to set. * @return This builder for chaining. */ - public Builder setBuildIdBytes(com.google.protobuf.ByteString value) { + public Builder setBuildIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + buildId_ = value; onChanged(); return this; @@ -7841,21 +7100,19 @@ public Builder setBuildIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object buildName_ = ""; /** - * - * *
            * Output only. The Cloud Build Name of the function deployment.
            * `projects/<project-number>/locations/<region>/builds/<build-id>`.
            * 
      * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The buildName. */ public java.lang.String getBuildName() { java.lang.Object ref = buildName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildName_ = s; return s; @@ -7864,22 +7121,21 @@ public java.lang.String getBuildName() { } } /** - * - * *
            * Output only. The Cloud Build Name of the function deployment.
            * `projects/<project-number>/locations/<region>/builds/<build-id>`.
            * 
      * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for buildName. */ - public com.google.protobuf.ByteString getBuildNameBytes() { + public com.google.protobuf.ByteString + getBuildNameBytes() { java.lang.Object ref = buildName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); buildName_ = b; return b; } else { @@ -7887,99 +7143,82 @@ public com.google.protobuf.ByteString getBuildNameBytes() { } } /** - * - * *
            * Output only. The Cloud Build Name of the function deployment.
            * `projects/<project-number>/locations/<region>/builds/<build-id>`.
            * 
      * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The buildName to set. * @return This builder for chaining. */ - public Builder setBuildName(java.lang.String value) { + public Builder setBuildName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + buildName_ = value; onChanged(); return this; } /** - * - * *
            * Output only. The Cloud Build Name of the function deployment.
            * `projects/<project-number>/locations/<region>/builds/<build-id>`.
            * 
      * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearBuildName() { - + buildName_ = getDefaultInstance().getBuildName(); onChanged(); return this; } /** - * - * *
            * Output only. The Cloud Build Name of the function deployment.
            * `projects/<project-number>/locations/<region>/builds/<build-id>`.
            * 
      * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for buildName to set. * @return This builder for chaining. */ - public Builder setBuildNameBytes(com.google.protobuf.ByteString value) { + public Builder setBuildNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + buildName_ = value; onChanged(); return this; } private java.util.List secretEnvironmentVariables_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSecretEnvironmentVariablesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - secretEnvironmentVariables_ = - new java.util.ArrayList( - secretEnvironmentVariables_); + secretEnvironmentVariables_ = new java.util.ArrayList(secretEnvironmentVariables_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretEnvVar, - com.google.cloud.functions.v1.SecretEnvVar.Builder, - com.google.cloud.functions.v1.SecretEnvVarOrBuilder> - secretEnvironmentVariablesBuilder_; + com.google.cloud.functions.v1.SecretEnvVar, com.google.cloud.functions.v1.SecretEnvVar.Builder, com.google.cloud.functions.v1.SecretEnvVarOrBuilder> secretEnvironmentVariablesBuilder_; /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ - public java.util.List - getSecretEnvironmentVariablesList() { + public java.util.List getSecretEnvironmentVariablesList() { if (secretEnvironmentVariablesBuilder_ == null) { return java.util.Collections.unmodifiableList(secretEnvironmentVariables_); } else { @@ -7987,14 +7226,11 @@ private void ensureSecretEnvironmentVariablesIsMutable() { } } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ public int getSecretEnvironmentVariablesCount() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -8004,14 +7240,11 @@ public int getSecretEnvironmentVariablesCount() { } } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ public com.google.cloud.functions.v1.SecretEnvVar getSecretEnvironmentVariables(int index) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -8021,14 +7254,11 @@ public com.google.cloud.functions.v1.SecretEnvVar getSecretEnvironmentVariables( } } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v1.SecretEnvVar value) { @@ -8045,14 +7275,11 @@ public Builder setSecretEnvironmentVariables( return this; } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v1.SecretEnvVar.Builder builderForValue) { @@ -8066,14 +7293,11 @@ public Builder setSecretEnvironmentVariables( return this; } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ public Builder addSecretEnvironmentVariables(com.google.cloud.functions.v1.SecretEnvVar value) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -8089,14 +7313,11 @@ public Builder addSecretEnvironmentVariables(com.google.cloud.functions.v1.Secre return this; } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v1.SecretEnvVar value) { @@ -8113,14 +7334,11 @@ public Builder addSecretEnvironmentVariables( return this; } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ public Builder addSecretEnvironmentVariables( com.google.cloud.functions.v1.SecretEnvVar.Builder builderForValue) { @@ -8134,14 +7352,11 @@ public Builder addSecretEnvironmentVariables( return this; } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v1.SecretEnvVar.Builder builderForValue) { @@ -8155,20 +7370,18 @@ public Builder addSecretEnvironmentVariables( return this; } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ public Builder addAllSecretEnvironmentVariables( java.lang.Iterable values) { if (secretEnvironmentVariablesBuilder_ == null) { ensureSecretEnvironmentVariablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretEnvironmentVariables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secretEnvironmentVariables_); onChanged(); } else { secretEnvironmentVariablesBuilder_.addAllMessages(values); @@ -8176,14 +7389,11 @@ public Builder addAllSecretEnvironmentVariables( return this; } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ public Builder clearSecretEnvironmentVariables() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -8196,14 +7406,11 @@ public Builder clearSecretEnvironmentVariables() { return this; } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ public Builder removeSecretEnvironmentVariables(int index) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -8216,49 +7423,39 @@ public Builder removeSecretEnvironmentVariables(int index) { return this; } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ public com.google.cloud.functions.v1.SecretEnvVar.Builder getSecretEnvironmentVariablesBuilder( int index) { return getSecretEnvironmentVariablesFieldBuilder().getBuilder(index); } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ - public com.google.cloud.functions.v1.SecretEnvVarOrBuilder - getSecretEnvironmentVariablesOrBuilder(int index) { + public com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( + int index) { if (secretEnvironmentVariablesBuilder_ == null) { - return secretEnvironmentVariables_.get(index); - } else { + return secretEnvironmentVariables_.get(index); } else { return secretEnvironmentVariablesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ - public java.util.List - getSecretEnvironmentVariablesOrBuilderList() { + public java.util.List + getSecretEnvironmentVariablesOrBuilderList() { if (secretEnvironmentVariablesBuilder_ != null) { return secretEnvironmentVariablesBuilder_.getMessageOrBuilderList(); } else { @@ -8266,61 +7463,45 @@ public com.google.cloud.functions.v1.SecretEnvVar.Builder getSecretEnvironmentVa } } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ - public com.google.cloud.functions.v1.SecretEnvVar.Builder - addSecretEnvironmentVariablesBuilder() { - return getSecretEnvironmentVariablesFieldBuilder() - .addBuilder(com.google.cloud.functions.v1.SecretEnvVar.getDefaultInstance()); + public com.google.cloud.functions.v1.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder() { + return getSecretEnvironmentVariablesFieldBuilder().addBuilder( + com.google.cloud.functions.v1.SecretEnvVar.getDefaultInstance()); } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ public com.google.cloud.functions.v1.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder( int index) { - return getSecretEnvironmentVariablesFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v1.SecretEnvVar.getDefaultInstance()); + return getSecretEnvironmentVariablesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v1.SecretEnvVar.getDefaultInstance()); } /** - * - * *
            * Secret environment variables configuration.
            * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ - public java.util.List - getSecretEnvironmentVariablesBuilderList() { + public java.util.List + getSecretEnvironmentVariablesBuilderList() { return getSecretEnvironmentVariablesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretEnvVar, - com.google.cloud.functions.v1.SecretEnvVar.Builder, - com.google.cloud.functions.v1.SecretEnvVarOrBuilder> + com.google.cloud.functions.v1.SecretEnvVar, com.google.cloud.functions.v1.SecretEnvVar.Builder, com.google.cloud.functions.v1.SecretEnvVarOrBuilder> getSecretEnvironmentVariablesFieldBuilder() { if (secretEnvironmentVariablesBuilder_ == null) { - secretEnvironmentVariablesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretEnvVar, - com.google.cloud.functions.v1.SecretEnvVar.Builder, - com.google.cloud.functions.v1.SecretEnvVarOrBuilder>( + secretEnvironmentVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v1.SecretEnvVar, com.google.cloud.functions.v1.SecretEnvVar.Builder, com.google.cloud.functions.v1.SecretEnvVarOrBuilder>( secretEnvironmentVariables_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -8331,25 +7512,18 @@ public com.google.cloud.functions.v1.SecretEnvVar.Builder addSecretEnvironmentVa } private java.util.List secretVolumes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSecretVolumesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - secretVolumes_ = - new java.util.ArrayList(secretVolumes_); + secretVolumes_ = new java.util.ArrayList(secretVolumes_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretVolume, - com.google.cloud.functions.v1.SecretVolume.Builder, - com.google.cloud.functions.v1.SecretVolumeOrBuilder> - secretVolumesBuilder_; + com.google.cloud.functions.v1.SecretVolume, com.google.cloud.functions.v1.SecretVolume.Builder, com.google.cloud.functions.v1.SecretVolumeOrBuilder> secretVolumesBuilder_; /** - * - * *
            * Secret volumes configuration.
            * 
      @@ -8364,8 +7538,6 @@ public java.util.List getSecretVolum } } /** - * - * *
            * Secret volumes configuration.
            * 
      @@ -8380,8 +7552,6 @@ public int getSecretVolumesCount() { } } /** - * - * *
            * Secret volumes configuration.
            * 
      @@ -8396,15 +7566,14 @@ public com.google.cloud.functions.v1.SecretVolume getSecretVolumes(int index) { } } /** - * - * *
            * Secret volumes configuration.
            * 
      * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - public Builder setSecretVolumes(int index, com.google.cloud.functions.v1.SecretVolume value) { + public Builder setSecretVolumes( + int index, com.google.cloud.functions.v1.SecretVolume value) { if (secretVolumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8418,8 +7587,6 @@ public Builder setSecretVolumes(int index, com.google.cloud.functions.v1.SecretV return this; } /** - * - * *
            * Secret volumes configuration.
            * 
      @@ -8438,8 +7605,6 @@ public Builder setSecretVolumes( return this; } /** - * - * *
            * Secret volumes configuration.
            * 
      @@ -8460,15 +7625,14 @@ public Builder addSecretVolumes(com.google.cloud.functions.v1.SecretVolume value return this; } /** - * - * *
            * Secret volumes configuration.
            * 
      * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - public Builder addSecretVolumes(int index, com.google.cloud.functions.v1.SecretVolume value) { + public Builder addSecretVolumes( + int index, com.google.cloud.functions.v1.SecretVolume value) { if (secretVolumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8482,8 +7646,6 @@ public Builder addSecretVolumes(int index, com.google.cloud.functions.v1.SecretV return this; } /** - * - * *
            * Secret volumes configuration.
            * 
      @@ -8502,8 +7664,6 @@ public Builder addSecretVolumes( return this; } /** - * - * *
            * Secret volumes configuration.
            * 
      @@ -8522,8 +7682,6 @@ public Builder addSecretVolumes( return this; } /** - * - * *
            * Secret volumes configuration.
            * 
      @@ -8534,7 +7692,8 @@ public Builder addAllSecretVolumes( java.lang.Iterable values) { if (secretVolumesBuilder_ == null) { ensureSecretVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretVolumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secretVolumes_); onChanged(); } else { secretVolumesBuilder_.addAllMessages(values); @@ -8542,8 +7701,6 @@ public Builder addAllSecretVolumes( return this; } /** - * - * *
            * Secret volumes configuration.
            * 
      @@ -8561,8 +7718,6 @@ public Builder clearSecretVolumes() { return this; } /** - * - * *
            * Secret volumes configuration.
            * 
      @@ -8580,20 +7735,17 @@ public Builder removeSecretVolumes(int index) { return this; } /** - * - * *
            * Secret volumes configuration.
            * 
      * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - public com.google.cloud.functions.v1.SecretVolume.Builder getSecretVolumesBuilder(int index) { + public com.google.cloud.functions.v1.SecretVolume.Builder getSecretVolumesBuilder( + int index) { return getSecretVolumesFieldBuilder().getBuilder(index); } /** - * - * *
            * Secret volumes configuration.
            * 
      @@ -8603,22 +7755,19 @@ public com.google.cloud.functions.v1.SecretVolume.Builder getSecretVolumesBuilde public com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder( int index) { if (secretVolumesBuilder_ == null) { - return secretVolumes_.get(index); - } else { + return secretVolumes_.get(index); } else { return secretVolumesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * Secret volumes configuration.
            * 
      * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - public java.util.List - getSecretVolumesOrBuilderList() { + public java.util.List + getSecretVolumesOrBuilderList() { if (secretVolumesBuilder_ != null) { return secretVolumesBuilder_.getMessageOrBuilderList(); } else { @@ -8626,8 +7775,6 @@ public com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBui } } /** - * - * *
            * Secret volumes configuration.
            * 
      @@ -8635,47 +7782,38 @@ public com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBui * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ public com.google.cloud.functions.v1.SecretVolume.Builder addSecretVolumesBuilder() { - return getSecretVolumesFieldBuilder() - .addBuilder(com.google.cloud.functions.v1.SecretVolume.getDefaultInstance()); + return getSecretVolumesFieldBuilder().addBuilder( + com.google.cloud.functions.v1.SecretVolume.getDefaultInstance()); } /** - * - * *
            * Secret volumes configuration.
            * 
      * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - public com.google.cloud.functions.v1.SecretVolume.Builder addSecretVolumesBuilder(int index) { - return getSecretVolumesFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v1.SecretVolume.getDefaultInstance()); + public com.google.cloud.functions.v1.SecretVolume.Builder addSecretVolumesBuilder( + int index) { + return getSecretVolumesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v1.SecretVolume.getDefaultInstance()); } /** - * - * *
            * Secret volumes configuration.
            * 
      * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - public java.util.List - getSecretVolumesBuilderList() { + public java.util.List + getSecretVolumesBuilderList() { return getSecretVolumesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretVolume, - com.google.cloud.functions.v1.SecretVolume.Builder, - com.google.cloud.functions.v1.SecretVolumeOrBuilder> + com.google.cloud.functions.v1.SecretVolume, com.google.cloud.functions.v1.SecretVolume.Builder, com.google.cloud.functions.v1.SecretVolumeOrBuilder> getSecretVolumesFieldBuilder() { if (secretVolumesBuilder_ == null) { - secretVolumesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretVolume, - com.google.cloud.functions.v1.SecretVolume.Builder, - com.google.cloud.functions.v1.SecretVolumeOrBuilder>( + secretVolumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v1.SecretVolume, com.google.cloud.functions.v1.SecretVolume.Builder, com.google.cloud.functions.v1.SecretVolumeOrBuilder>( secretVolumes_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -8687,21 +7825,19 @@ public com.google.cloud.functions.v1.SecretVolume.Builder addSecretVolumesBuilde private java.lang.Object sourceToken_ = ""; /** - * - * *
            * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
            * supported for Firebase function deployments.
            * 
      * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The sourceToken. */ public java.lang.String getSourceToken() { java.lang.Object ref = sourceToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; @@ -8710,22 +7846,21 @@ public java.lang.String getSourceToken() { } } /** - * - * *
            * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
            * supported for Firebase function deployments.
            * 
      * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for sourceToken. */ - public com.google.protobuf.ByteString getSourceTokenBytes() { + public com.google.protobuf.ByteString + getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -8733,64 +7868,57 @@ public com.google.protobuf.ByteString getSourceTokenBytes() { } } /** - * - * *
            * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
            * supported for Firebase function deployments.
            * 
      * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceToken(java.lang.String value) { + public Builder setSourceToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceToken_ = value; onChanged(); return this; } /** - * - * *
            * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
            * supported for Firebase function deployments.
            * 
      * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSourceToken() { - + sourceToken_ = getDefaultInstance().getSourceToken(); onChanged(); return this; } /** - * - * *
            * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
            * supported for Firebase function deployments.
            * 
      * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { + public Builder setSourceTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceToken_ = value; onChanged(); return this; @@ -8798,8 +7926,6 @@ public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object dockerRepository_ = ""; /** - * - * *
            * User managed repository created in Artifact Registry optionally with a
            * customer managed encryption key. If specified, deployments will use
      @@ -8815,13 +7941,13 @@ public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) {
            * 
      * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } - * * @return The dockerRepository. */ public java.lang.String getDockerRepository() { java.lang.Object ref = dockerRepository_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; @@ -8830,8 +7956,6 @@ public java.lang.String getDockerRepository() { } } /** - * - * *
            * User managed repository created in Artifact Registry optionally with a
            * customer managed encryption key. If specified, deployments will use
      @@ -8847,14 +7971,15 @@ public java.lang.String getDockerRepository() {
            * 
      * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } - * * @return The bytes for dockerRepository. */ - public com.google.protobuf.ByteString getDockerRepositoryBytes() { + public com.google.protobuf.ByteString + getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -8862,8 +7987,6 @@ public com.google.protobuf.ByteString getDockerRepositoryBytes() { } } /** - * - * *
            * User managed repository created in Artifact Registry optionally with a
            * customer managed encryption key. If specified, deployments will use
      @@ -8879,22 +8002,20 @@ public com.google.protobuf.ByteString getDockerRepositoryBytes() {
            * 
      * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } - * * @param value The dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepository(java.lang.String value) { + public Builder setDockerRepository( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dockerRepository_ = value; onChanged(); return this; } /** - * - * *
            * User managed repository created in Artifact Registry optionally with a
            * customer managed encryption key. If specified, deployments will use
      @@ -8910,18 +8031,15 @@ public Builder setDockerRepository(java.lang.String value) {
            * 
      * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDockerRepository() { - + dockerRepository_ = getDefaultInstance().getDockerRepository(); onChanged(); return this; } /** - * - * *
            * User managed repository created in Artifact Registry optionally with a
            * customer managed encryption key. If specified, deployments will use
      @@ -8937,16 +8055,16 @@ public Builder clearDockerRepository() {
            * 
      * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value) { + public Builder setDockerRepositoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dockerRepository_ = value; onChanged(); return this; @@ -8954,8 +8072,6 @@ public Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value) { private int dockerRegistry_ = 0; /** - * - * *
            * Docker Registry to use for this deployment.
            * If `docker_repository` field is specified, this field will be automatically
      @@ -8965,16 +8081,12 @@ public Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value) {
            * 
      * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; - * * @return The enum numeric value on the wire for dockerRegistry. */ - @java.lang.Override - public int getDockerRegistryValue() { + @java.lang.Override public int getDockerRegistryValue() { return dockerRegistry_; } /** - * - * *
            * Docker Registry to use for this deployment.
            * If `docker_repository` field is specified, this field will be automatically
      @@ -8984,19 +8096,16 @@ public int getDockerRegistryValue() {
            * 
      * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; - * * @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; onChanged(); return this; } /** - * - * *
            * Docker Registry to use for this deployment.
            * If `docker_repository` field is specified, this field will be automatically
      @@ -9006,21 +8115,15 @@ public Builder setDockerRegistryValue(int value) {
            * 
      * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; - * * @return The dockerRegistry. */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunction.DockerRegistry getDockerRegistry() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunction.DockerRegistry result = - com.google.cloud.functions.v1.CloudFunction.DockerRegistry.valueOf(dockerRegistry_); - return result == null - ? com.google.cloud.functions.v1.CloudFunction.DockerRegistry.UNRECOGNIZED - : result; + com.google.cloud.functions.v1.CloudFunction.DockerRegistry result = com.google.cloud.functions.v1.CloudFunction.DockerRegistry.valueOf(dockerRegistry_); + return result == null ? com.google.cloud.functions.v1.CloudFunction.DockerRegistry.UNRECOGNIZED : result; } /** - * - * *
            * Docker Registry to use for this deployment.
            * If `docker_repository` field is specified, this field will be automatically
      @@ -9030,23 +8133,19 @@ public com.google.cloud.functions.v1.CloudFunction.DockerRegistry getDockerRegis
            * 
      * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; - * * @param value The dockerRegistry to set. * @return This builder for chaining. */ - public Builder setDockerRegistry( - com.google.cloud.functions.v1.CloudFunction.DockerRegistry value) { + public Builder setDockerRegistry(com.google.cloud.functions.v1.CloudFunction.DockerRegistry value) { if (value == null) { throw new NullPointerException(); } - + dockerRegistry_ = value.getNumber(); onChanged(); return this; } /** - * - * *
            * Docker Registry to use for this deployment.
            * If `docker_repository` field is specified, this field will be automatically
      @@ -9056,18 +8155,17 @@ public Builder setDockerRegistry(
            * 
      * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; - * * @return This builder for chaining. */ public Builder clearDockerRegistry() { - + dockerRegistry_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -9077,12 +8175,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.CloudFunction) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.CloudFunction) private static final com.google.cloud.functions.v1.CloudFunction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.CloudFunction(); } @@ -9091,16 +8189,16 @@ public static com.google.cloud.functions.v1.CloudFunction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudFunction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudFunction(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudFunction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudFunction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9115,4 +8213,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.CloudFunction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java similarity index 100% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java similarity index 86% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java index d0182ca1..a4f4f4a4 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java @@ -1,149 +1,107 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface CloudFunctionOrBuilder - extends +public interface CloudFunctionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.CloudFunction) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * A user-defined name of the function. Function names must be unique
          * globally and match pattern `projects/*/locations/*/functions/*`
          * 
      * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
          * A user-defined name of the function. Function names must be unique
          * globally and match pattern `projects/*/locations/*/functions/*`
          * 
      * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
          * User-provided description of a function.
          * 
      * * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
          * User-provided description of a function.
          * 
      * * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
          * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
          * archive which contains the function.
          * 
      * * string source_archive_url = 3; - * * @return Whether the sourceArchiveUrl field is set. */ boolean hasSourceArchiveUrl(); /** - * - * *
          * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
          * archive which contains the function.
          * 
      * * string source_archive_url = 3; - * * @return The sourceArchiveUrl. */ java.lang.String getSourceArchiveUrl(); /** - * - * *
          * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
          * archive which contains the function.
          * 
      * * string source_archive_url = 3; - * * @return The bytes for sourceArchiveUrl. */ - com.google.protobuf.ByteString getSourceArchiveUrlBytes(); + com.google.protobuf.ByteString + getSourceArchiveUrlBytes(); /** - * - * *
          * **Beta Feature**
          * The source repository where a function is hosted.
          * 
      * * .google.cloud.functions.v1.SourceRepository source_repository = 4; - * * @return Whether the sourceRepository field is set. */ boolean hasSourceRepository(); /** - * - * *
          * **Beta Feature**
          * The source repository where a function is hosted.
          * 
      * * .google.cloud.functions.v1.SourceRepository source_repository = 4; - * * @return The sourceRepository. */ com.google.cloud.functions.v1.SourceRepository getSourceRepository(); /** - * - * *
          * **Beta Feature**
          * The source repository where a function is hosted.
      @@ -154,8 +112,6 @@ public interface CloudFunctionOrBuilder
         com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceRepositoryOrBuilder();
       
         /**
      -   *
      -   *
          * 
          * The Google Cloud Storage signed URL used for source uploading, generated
          * by calling [google.cloud.functions.v1.GenerateUploadUrl].
      @@ -165,13 +121,10 @@ public interface CloudFunctionOrBuilder
          * 
      * * string source_upload_url = 16; - * * @return Whether the sourceUploadUrl field is set. */ boolean hasSourceUploadUrl(); /** - * - * *
          * The Google Cloud Storage signed URL used for source uploading, generated
          * by calling [google.cloud.functions.v1.GenerateUploadUrl].
      @@ -181,13 +134,10 @@ public interface CloudFunctionOrBuilder
          * 
      * * string source_upload_url = 16; - * * @return The sourceUploadUrl. */ java.lang.String getSourceUploadUrl(); /** - * - * *
          * The Google Cloud Storage signed URL used for source uploading, generated
          * by calling [google.cloud.functions.v1.GenerateUploadUrl].
      @@ -197,38 +147,30 @@ public interface CloudFunctionOrBuilder
          * 
      * * string source_upload_url = 16; - * * @return The bytes for sourceUploadUrl. */ - com.google.protobuf.ByteString getSourceUploadUrlBytes(); + com.google.protobuf.ByteString + getSourceUploadUrlBytes(); /** - * - * *
          * An HTTPS endpoint type of source that can be triggered via URL.
          * 
      * * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; - * * @return Whether the httpsTrigger field is set. */ boolean hasHttpsTrigger(); /** - * - * *
          * An HTTPS endpoint type of source that can be triggered via URL.
          * 
      * * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; - * * @return The httpsTrigger. */ com.google.cloud.functions.v1.HttpsTrigger getHttpsTrigger(); /** - * - * *
          * An HTTPS endpoint type of source that can be triggered via URL.
          * 
      @@ -238,32 +180,24 @@ public interface CloudFunctionOrBuilder com.google.cloud.functions.v1.HttpsTriggerOrBuilder getHttpsTriggerOrBuilder(); /** - * - * *
          * A source that fires events in response to a condition in another service.
          * 
      * * .google.cloud.functions.v1.EventTrigger event_trigger = 6; - * * @return Whether the eventTrigger field is set. */ boolean hasEventTrigger(); /** - * - * *
          * A source that fires events in response to a condition in another service.
          * 
      * * .google.cloud.functions.v1.EventTrigger event_trigger = 6; - * * @return The eventTrigger. */ com.google.cloud.functions.v1.EventTrigger getEventTrigger(); /** - * - * *
          * A source that fires events in response to a condition in another service.
          * 
      @@ -273,37 +207,25 @@ public interface CloudFunctionOrBuilder com.google.cloud.functions.v1.EventTriggerOrBuilder getEventTriggerOrBuilder(); /** - * - * *
          * Output only. Status of the function deployment.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * - * *
          * Output only. Status of the function deployment.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ com.google.cloud.functions.v1.CloudFunctionStatus getStatus(); /** - * - * *
          * The name of the function (as defined in source code) that will be
          * executed. Defaults to the resource name suffix, if not specified. For
      @@ -314,13 +236,10 @@ public interface CloudFunctionOrBuilder
          * 
      * * string entry_point = 8; - * * @return The entryPoint. */ java.lang.String getEntryPoint(); /** - * - * *
          * The name of the function (as defined in source code) that will be
          * executed. Defaults to the resource name suffix, if not specified. For
      @@ -331,14 +250,12 @@ public interface CloudFunctionOrBuilder
          * 
      * * string entry_point = 8; - * * @return The bytes for entryPoint. */ - com.google.protobuf.ByteString getEntryPointBytes(); + com.google.protobuf.ByteString + getEntryPointBytes(); /** - * - * *
          * The runtime in which to run the function. Required when deploying a new
          * function, optional when updating an existing function. For a complete
      @@ -348,13 +265,10 @@ public interface CloudFunctionOrBuilder
          * 
      * * string runtime = 19; - * * @return The runtime. */ java.lang.String getRuntime(); /** - * - * *
          * The runtime in which to run the function. Required when deploying a new
          * function, optional when updating an existing function. For a complete
      @@ -364,14 +278,12 @@ public interface CloudFunctionOrBuilder
          * 
      * * string runtime = 19; - * * @return The bytes for runtime. */ - com.google.protobuf.ByteString getRuntimeBytes(); + com.google.protobuf.ByteString + getRuntimeBytes(); /** - * - * *
          * The function execution timeout. Execution is considered failed and
          * can be terminated if the function is not completed at the end of the
      @@ -379,13 +291,10 @@ public interface CloudFunctionOrBuilder
          * 
      * * .google.protobuf.Duration timeout = 9; - * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** - * - * *
          * The function execution timeout. Execution is considered failed and
          * can be terminated if the function is not completed at the end of the
      @@ -393,13 +302,10 @@ public interface CloudFunctionOrBuilder
          * 
      * * .google.protobuf.Duration timeout = 9; - * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** - * - * *
          * The function execution timeout. Execution is considered failed and
          * can be terminated if the function is not completed at the end of the
      @@ -411,101 +317,77 @@ public interface CloudFunctionOrBuilder
         com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder();
       
         /**
      -   *
      -   *
          * 
          * The amount of memory in MB available for a function.
          * Defaults to 256MB.
          * 
      * * int32 available_memory_mb = 10; - * * @return The availableMemoryMb. */ int getAvailableMemoryMb(); /** - * - * *
          * The email of the function's service account. If empty, defaults to
          * `{project_id}@appspot.gserviceaccount.com`.
          * 
      * * string service_account_email = 11; - * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** - * - * *
          * The email of the function's service account. If empty, defaults to
          * `{project_id}@appspot.gserviceaccount.com`.
          * 
      * * string service_account_email = 11; - * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getServiceAccountEmailBytes(); /** - * - * *
          * Output only. The last update timestamp of a Cloud Function.
          * 
      * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
          * Output only. The last update timestamp of a Cloud Function.
          * 
      * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
          * Output only. The last update timestamp of a Cloud Function.
          * 
      * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
          * Output only. The version identifier of the Cloud Function. Each deployment attempt
          * results in a new version of a function being created.
          * 
      * * int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The versionId. */ long getVersionId(); /** - * - * *
          * Labels associated with this Cloud Function.
          * 
      @@ -514,31 +396,30 @@ public interface CloudFunctionOrBuilder */ int getLabelsCount(); /** - * - * *
          * Labels associated with this Cloud Function.
          * 
      * * map<string, string> labels = 15; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
          * Labels associated with this Cloud Function.
          * 
      * * map<string, string> labels = 15; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
          * Labels associated with this Cloud Function.
          * 
      @@ -547,24 +428,22 @@ public interface CloudFunctionOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
          * Labels associated with this Cloud Function.
          * 
      * * map<string, string> labels = 15; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
          * Environment variables that shall be available during function execution.
          * 
      @@ -573,31 +452,30 @@ java.lang.String getLabelsOrDefault( */ int getEnvironmentVariablesCount(); /** - * - * *
          * Environment variables that shall be available during function execution.
          * 
      * * map<string, string> environment_variables = 17; */ - boolean containsEnvironmentVariables(java.lang.String key); - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + boolean containsEnvironmentVariables( + java.lang.String key); + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getEnvironmentVariables(); + java.util.Map + getEnvironmentVariables(); /** - * - * *
          * Environment variables that shall be available during function execution.
          * 
      * * map<string, string> environment_variables = 17; */ - java.util.Map getEnvironmentVariablesMap(); + java.util.Map + getEnvironmentVariablesMap(); /** - * - * *
          * Environment variables that shall be available during function execution.
          * 
      @@ -606,24 +484,22 @@ java.lang.String getLabelsOrDefault( */ /* nullable */ - java.lang.String getEnvironmentVariablesOrDefault( +java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
          * Environment variables that shall be available during function execution.
          * 
      * * map<string, string> environment_variables = 17; */ - java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key); + + java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key); /** - * - * *
          * Build environment variables that shall be available during build time.
          * 
      @@ -632,31 +508,30 @@ java.lang.String getEnvironmentVariablesOrDefault( */ int getBuildEnvironmentVariablesCount(); /** - * - * *
          * Build environment variables that shall be available during build time.
          * 
      * * map<string, string> build_environment_variables = 28; */ - boolean containsBuildEnvironmentVariables(java.lang.String key); - /** Use {@link #getBuildEnvironmentVariablesMap()} instead. */ + boolean containsBuildEnvironmentVariables( + java.lang.String key); + /** + * Use {@link #getBuildEnvironmentVariablesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getBuildEnvironmentVariables(); + java.util.Map + getBuildEnvironmentVariables(); /** - * - * *
          * Build environment variables that shall be available during build time.
          * 
      * * map<string, string> build_environment_variables = 28; */ - java.util.Map getBuildEnvironmentVariablesMap(); + java.util.Map + getBuildEnvironmentVariablesMap(); /** - * - * *
          * Build environment variables that shall be available during build time.
          * 
      @@ -665,24 +540,22 @@ java.lang.String getEnvironmentVariablesOrDefault( */ /* nullable */ - java.lang.String getBuildEnvironmentVariablesOrDefault( +java.lang.String getBuildEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
          * Build environment variables that shall be available during build time.
          * 
      * * map<string, string> build_environment_variables = 28; */ - java.lang.String getBuildEnvironmentVariablesOrThrow(java.lang.String key); + + java.lang.String getBuildEnvironmentVariablesOrThrow( + java.lang.String key); /** - * - * *
          * The VPC Network that this cloud function can connect to. It can be
          * either the fully-qualified URI, or the short name of the network resource.
      @@ -699,13 +572,10 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
          * 
      * * string network = 18; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
          * The VPC Network that this cloud function can connect to. It can be
          * either the fully-qualified URI, or the short name of the network resource.
      @@ -722,14 +592,12 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
          * 
      * * string network = 18; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
          * The limit on the maximum number of function instances that may coexist at a
          * given time.
      @@ -744,28 +612,22 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
          * 
      * * int32 max_instances = 20; - * * @return The maxInstances. */ int getMaxInstances(); /** - * - * *
          * A lower bound for the number function instances that may coexist at a
          * given time.
          * 
      * * int32 min_instances = 32; - * * @return The minInstances. */ int getMinInstances(); /** - * - * *
          * The VPC Network Connector that this cloud function can connect to. It can
          * be either the fully-qualified URI, or the short name of the network
      @@ -778,13 +640,10 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
          * 
      * * string vpc_connector = 22; - * * @return The vpcConnector. */ java.lang.String getVpcConnector(); /** - * - * *
          * The VPC Network Connector that this cloud function can connect to. It can
          * be either the fully-qualified URI, or the short name of the network
      @@ -797,73 +656,54 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
          * 
      * * string vpc_connector = 22; - * * @return The bytes for vpcConnector. */ - com.google.protobuf.ByteString getVpcConnectorBytes(); + com.google.protobuf.ByteString + getVpcConnectorBytes(); /** - * - * *
          * The egress settings for the connector, controlling what traffic is diverted
          * through it.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; - * - * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ int getVpcConnectorEgressSettingsValue(); /** - * - * *
          * The egress settings for the connector, controlling what traffic is diverted
          * through it.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; - * - * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; * @return The vpcConnectorEgressSettings. */ - com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings - getVpcConnectorEgressSettings(); + com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings getVpcConnectorEgressSettings(); /** - * - * *
          * The ingress settings for the function, controlling what traffic can reach
          * it.
          * 
      * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; - * * @return The enum numeric value on the wire for ingressSettings. */ int getIngressSettingsValue(); /** - * - * *
          * The ingress settings for the function, controlling what traffic can reach
          * it.
          * 
      * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; - * * @return The ingressSettings. */ com.google.cloud.functions.v1.CloudFunction.IngressSettings getIngressSettings(); /** - * - * *
          * Resource name of a KMS crypto key (managed by the user) used to
          * encrypt/decrypt function resources.
      @@ -892,13 +732,10 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
          * 
      * * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
          * Resource name of a KMS crypto key (managed by the user) used to
          * encrypt/decrypt function resources.
      @@ -927,14 +764,12 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
          * 
      * * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
          * Name of the Cloud Build Custom Worker Pool that should be used to build the
          * function. The format of this field is
      @@ -950,13 +785,10 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
          * 
      * * string build_worker_pool = 26; - * * @return The buildWorkerPool. */ java.lang.String getBuildWorkerPool(); /** - * - * *
          * Name of the Cloud Build Custom Worker Pool that should be used to build the
          * function. The format of this field is
      @@ -972,136 +804,109 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
          * 
      * * string build_worker_pool = 26; - * * @return The bytes for buildWorkerPool. */ - com.google.protobuf.ByteString getBuildWorkerPoolBytes(); + com.google.protobuf.ByteString + getBuildWorkerPoolBytes(); /** - * - * *
          * Output only. The Cloud Build ID of the latest successful deployment of the
          * function.
          * 
      * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The buildId. */ java.lang.String getBuildId(); /** - * - * *
          * Output only. The Cloud Build ID of the latest successful deployment of the
          * function.
          * 
      * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for buildId. */ - com.google.protobuf.ByteString getBuildIdBytes(); + com.google.protobuf.ByteString + getBuildIdBytes(); /** - * - * *
          * Output only. The Cloud Build Name of the function deployment.
          * `projects/<project-number>/locations/<region>/builds/<build-id>`.
          * 
      * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The buildName. */ java.lang.String getBuildName(); /** - * - * *
          * Output only. The Cloud Build Name of the function deployment.
          * `projects/<project-number>/locations/<region>/builds/<build-id>`.
          * 
      * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for buildName. */ - com.google.protobuf.ByteString getBuildNameBytes(); + com.google.protobuf.ByteString + getBuildNameBytes(); /** - * - * *
          * Secret environment variables configuration.
          * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ - java.util.List getSecretEnvironmentVariablesList(); + java.util.List + getSecretEnvironmentVariablesList(); /** - * - * *
          * Secret environment variables configuration.
          * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ com.google.cloud.functions.v1.SecretEnvVar getSecretEnvironmentVariables(int index); /** - * - * *
          * Secret environment variables configuration.
          * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ int getSecretEnvironmentVariablesCount(); /** - * - * *
          * Secret environment variables configuration.
          * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ - java.util.List + java.util.List getSecretEnvironmentVariablesOrBuilderList(); /** - * - * *
          * Secret environment variables configuration.
          * 
      * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; - * + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; */ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( int index); /** - * - * *
          * Secret volumes configuration.
          * 
      * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - java.util.List getSecretVolumesList(); + java.util.List + getSecretVolumesList(); /** - * - * *
          * Secret volumes configuration.
          * 
      @@ -1110,8 +915,6 @@ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariable */ com.google.cloud.functions.v1.SecretVolume getSecretVolumes(int index); /** - * - * *
          * Secret volumes configuration.
          * 
      @@ -1120,57 +923,47 @@ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariable */ int getSecretVolumesCount(); /** - * - * *
          * Secret volumes configuration.
          * 
      * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - java.util.List + java.util.List getSecretVolumesOrBuilderList(); /** - * - * *
          * Secret volumes configuration.
          * 
      * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index); + com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder( + int index); /** - * - * *
          * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
          * supported for Firebase function deployments.
          * 
      * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The sourceToken. */ java.lang.String getSourceToken(); /** - * - * *
          * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
          * supported for Firebase function deployments.
          * 
      * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for sourceToken. */ - com.google.protobuf.ByteString getSourceTokenBytes(); + com.google.protobuf.ByteString + getSourceTokenBytes(); /** - * - * *
          * User managed repository created in Artifact Registry optionally with a
          * customer managed encryption key. If specified, deployments will use
      @@ -1186,13 +979,10 @@ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariable
          * 
      * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } - * * @return The dockerRepository. */ java.lang.String getDockerRepository(); /** - * - * *
          * User managed repository created in Artifact Registry optionally with a
          * customer managed encryption key. If specified, deployments will use
      @@ -1208,14 +998,12 @@ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariable
          * 
      * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } - * * @return The bytes for dockerRepository. */ - com.google.protobuf.ByteString getDockerRepositoryBytes(); + com.google.protobuf.ByteString + getDockerRepositoryBytes(); /** - * - * *
          * Docker Registry to use for this deployment.
          * If `docker_repository` field is specified, this field will be automatically
      @@ -1225,13 +1013,10 @@ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariable
          * 
      * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; - * * @return The enum numeric value on the wire for dockerRegistry. */ int getDockerRegistryValue(); /** - * - * *
          * Docker Registry to use for this deployment.
          * If `docker_repository` field is specified, this field will be automatically
      @@ -1241,7 +1026,6 @@ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariable
          * 
      * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; - * * @return The dockerRegistry. */ com.google.cloud.functions.v1.CloudFunction.DockerRegistry getDockerRegistry(); diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java similarity index 73% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java index fcca5fb1..eca4b4ee 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java @@ -1,36 +1,18 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Describes the current stage of a deployment.
        * 
      * * Protobuf enum {@code google.cloud.functions.v1.CloudFunctionStatus} */ -public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEnum { +public enum CloudFunctionStatus + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
          * Not specified. Invalid state.
          * 
      @@ -39,8 +21,6 @@ public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEn */ CLOUD_FUNCTION_STATUS_UNSPECIFIED(0), /** - * - * *
          * Function has been successfully deployed and is serving.
          * 
      @@ -49,8 +29,6 @@ public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEn */ ACTIVE(1), /** - * - * *
          * Function deployment failed and the function isn’t serving.
          * 
      @@ -59,8 +37,6 @@ public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEn */ OFFLINE(2), /** - * - * *
          * Function is being created or updated.
          * 
      @@ -69,8 +45,6 @@ public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEn */ DEPLOY_IN_PROGRESS(3), /** - * - * *
          * Function is being deleted.
          * 
      @@ -79,8 +53,6 @@ public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEn */ DELETE_IN_PROGRESS(4), /** - * - * *
          * Function deployment failed and the function serving state is undefined.
          * The function should be updated or deleted to move it out of this state.
      @@ -93,8 +65,6 @@ public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEn
         ;
       
         /**
      -   *
      -   *
          * 
          * Not specified. Invalid state.
          * 
      @@ -103,8 +73,6 @@ public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEn */ public static final int CLOUD_FUNCTION_STATUS_UNSPECIFIED_VALUE = 0; /** - * - * *
          * Function has been successfully deployed and is serving.
          * 
      @@ -113,8 +81,6 @@ public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEn */ public static final int ACTIVE_VALUE = 1; /** - * - * *
          * Function deployment failed and the function isn’t serving.
          * 
      @@ -123,8 +89,6 @@ public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEn */ public static final int OFFLINE_VALUE = 2; /** - * - * *
          * Function is being created or updated.
          * 
      @@ -133,8 +97,6 @@ public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEn */ public static final int DEPLOY_IN_PROGRESS_VALUE = 3; /** - * - * *
          * Function is being deleted.
          * 
      @@ -143,8 +105,6 @@ public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEn */ public static final int DELETE_IN_PROGRESS_VALUE = 4; /** - * - * *
          * Function deployment failed and the function serving state is undefined.
          * The function should be updated or deleted to move it out of this state.
      @@ -154,6 +114,7 @@ public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEn
          */
         public static final int UNKNOWN_VALUE = 5;
       
      +
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
      @@ -178,20 +139,13 @@ public static CloudFunctionStatus valueOf(int value) {
          */
         public static CloudFunctionStatus forNumber(int value) {
           switch (value) {
      -      case 0:
      -        return CLOUD_FUNCTION_STATUS_UNSPECIFIED;
      -      case 1:
      -        return ACTIVE;
      -      case 2:
      -        return OFFLINE;
      -      case 3:
      -        return DEPLOY_IN_PROGRESS;
      -      case 4:
      -        return DELETE_IN_PROGRESS;
      -      case 5:
      -        return UNKNOWN;
      -      default:
      -        return null;
      +      case 0: return CLOUD_FUNCTION_STATUS_UNSPECIFIED;
      +      case 1: return ACTIVE;
      +      case 2: return OFFLINE;
      +      case 3: return DEPLOY_IN_PROGRESS;
      +      case 4: return DELETE_IN_PROGRESS;
      +      case 5: return UNKNOWN;
      +      default: return null;
           }
         }
       
      @@ -199,28 +153,28 @@ public static CloudFunctionStatus forNumber(int value) {
             internalGetValueMap() {
           return internalValueMap;
         }
      -
      -  private static final com.google.protobuf.Internal.EnumLiteMap
      -      internalValueMap =
      -          new com.google.protobuf.Internal.EnumLiteMap() {
      -            public CloudFunctionStatus findValueByNumber(int number) {
      -              return CloudFunctionStatus.forNumber(number);
      -            }
      -          };
      -
      -  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      +  private static final com.google.protobuf.Internal.EnumLiteMap<
      +      CloudFunctionStatus> internalValueMap =
      +        new com.google.protobuf.Internal.EnumLiteMap() {
      +          public CloudFunctionStatus findValueByNumber(int number) {
      +            return CloudFunctionStatus.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() {
      +  public final com.google.protobuf.Descriptors.EnumDescriptor
      +      getDescriptorForType() {
           return getDescriptor();
         }
      -
      -  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      +  public static final com.google.protobuf.Descriptors.EnumDescriptor
      +      getDescriptor() {
           return com.google.cloud.functions.v1.FunctionsProto.getDescriptor().getEnumTypes().get(0);
         }
       
      @@ -229,7 +183,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
         public static CloudFunctionStatus valueOf(
             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
      -      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      +      throw new java.lang.IllegalArgumentException(
      +        "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
      @@ -245,3 +200,4 @@ private CloudFunctionStatus(int value) {
       
         // @@protoc_insertion_point(enum_scope:google.cloud.functions.v1.CloudFunctionStatus)
       }
      +
      diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java
      similarity index 62%
      rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java
      rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java
      index 4524013c..28a868ff 100644
      --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java
      +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java
      @@ -1,57 +1,40 @@
      -/*
      - * 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/v1/functions.proto
       
       package com.google.cloud.functions.v1;
       
       /**
      - *
      - *
        * 
        * Request for the `CreateFunction` method.
        * 
      * * Protobuf type {@code google.cloud.functions.v1.CreateFunctionRequest} */ -public final class CreateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.CreateFunctionRequest) CreateFunctionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFunctionRequest.newBuilder() to construct. private CreateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFunctionRequest() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private CreateFunctionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; + location_ = s; + break; + } + case 18: { + com.google.cloud.functions.v1.CloudFunction.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); } - case 18: - { - com.google.cloud.functions.v1.CloudFunction.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); - } - function_ = - input.readMessage( - com.google.cloud.functions.v1.CloudFunction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); - } - - break; + function_ = input.readMessage(com.google.cloud.functions.v1.CloudFunction.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,42 +86,35 @@ private CreateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.CreateFunctionRequest.class, - com.google.cloud.functions.v1.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v1.CreateFunctionRequest.class, com.google.cloud.functions.v1.CreateFunctionRequest.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** - * - * *
          * Required. The project and location in which the function should be created, specified
          * in the format `projects/*/locations/*`
          * 
      * - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The location. */ @java.lang.Override @@ -151,32 +123,30 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * *
          * Required. The project and location in which the function should be created, specified
          * in the format `projects/*/locations/*`
          * 
      * - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -187,16 +157,11 @@ public com.google.protobuf.ByteString getLocationBytes() { public static final int FUNCTION_FIELD_NUMBER = 2; private com.google.cloud.functions.v1.CloudFunction function_; /** - * - * *
          * Required. Function to be created.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ @java.lang.Override @@ -204,34 +169,23 @@ public boolean hasFunction() { return function_ != null; } /** - * - * *
          * Required. Function to be created.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunction getFunction() { - return function_ == null - ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() - : function_; + return function_ == null ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() : function_; } /** - * - * *
          * Required. Function to be created.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder() { @@ -239,7 +193,6 @@ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -271,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); } if (function_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFunction()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFunction()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -281,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.CreateFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.CreateFunctionRequest other = - (com.google.cloud.functions.v1.CreateFunctionRequest) obj; + com.google.cloud.functions.v1.CreateFunctionRequest other = (com.google.cloud.functions.v1.CreateFunctionRequest) obj; - if (!getLocation().equals(other.getLocation())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; if (hasFunction() != other.hasFunction()) return false; if (hasFunction()) { - if (!getFunction().equals(other.getFunction())) return false; + if (!getFunction() + .equals(other.getFunction())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -317,126 +273,117 @@ public int hashCode() { } public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CreateFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.CreateFunctionRequest 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.v1.CreateFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.CreateFunctionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.CreateFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.CreateFunctionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.CreateFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request for the `CreateFunction` method.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.CreateFunctionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.CreateFunctionRequest) com.google.cloud.functions.v1.CreateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.CreateFunctionRequest.class, - com.google.cloud.functions.v1.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v1.CreateFunctionRequest.class, com.google.cloud.functions.v1.CreateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.CreateFunctionRequest.newBuilder() @@ -444,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -468,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; } @java.lang.Override @@ -489,8 +437,7 @@ public com.google.cloud.functions.v1.CreateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v1.CreateFunctionRequest buildPartial() { - com.google.cloud.functions.v1.CreateFunctionRequest result = - new com.google.cloud.functions.v1.CreateFunctionRequest(this); + com.google.cloud.functions.v1.CreateFunctionRequest result = new com.google.cloud.functions.v1.CreateFunctionRequest(this); result.location_ = location_; if (functionBuilder_ == null) { result.function_ = function_; @@ -505,39 +452,38 @@ public com.google.cloud.functions.v1.CreateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.CreateFunctionRequest) other); + return mergeFrom((com.google.cloud.functions.v1.CreateFunctionRequest)other); } else { super.mergeFrom(other); return this; @@ -545,8 +491,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.CreateFunctionRequest other) { - if (other == com.google.cloud.functions.v1.CreateFunctionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.CreateFunctionRequest.getDefaultInstance()) return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -573,8 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v1.CreateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v1.CreateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -586,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** - * - * *
            * Required. The project and location in which the function should be created, specified
            * in the format `projects/*/locations/*`
            * 
      * - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -611,24 +551,21 @@ public java.lang.String getLocation() { } } /** - * - * *
            * Required. The project and location in which the function should be created, specified
            * in the format `projects/*/locations/*`
            * 
      * - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -636,70 +573,57 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
            * Required. The project and location in which the function should be created, specified
            * in the format `projects/*/locations/*`
            * 
      * - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { + public Builder setLocation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** - * - * *
            * Required. The project and location in which the function should be created, specified
            * in the format `projects/*/locations/*`
            * 
      * - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** - * - * *
            * Required. The project and location in which the function should be created, specified
            * in the format `projects/*/locations/*`
            * 
      * - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; @@ -707,58 +631,39 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { private com.google.cloud.functions.v1.CloudFunction function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, - com.google.cloud.functions.v1.CloudFunction.Builder, - com.google.cloud.functions.v1.CloudFunctionOrBuilder> - functionBuilder_; + com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder> functionBuilder_; /** - * - * *
            * Required. Function to be created.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** - * - * *
            * Required. Function to be created.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ public com.google.cloud.functions.v1.CloudFunction getFunction() { if (functionBuilder_ == null) { - return function_ == null - ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() - : function_; + return function_ == null ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() : function_; } else { return functionBuilder_.getMessage(); } } /** - * - * *
            * Required. Function to be created.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFunction(com.google.cloud.functions.v1.CloudFunction value) { if (functionBuilder_ == null) { @@ -774,15 +679,11 @@ public Builder setFunction(com.google.cloud.functions.v1.CloudFunction value) { return this; } /** - * - * *
            * Required. Function to be created.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFunction( com.google.cloud.functions.v1.CloudFunction.Builder builderForValue) { @@ -796,23 +697,17 @@ public Builder setFunction( return this; } /** - * - * *
            * Required. Function to be created.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFunction(com.google.cloud.functions.v1.CloudFunction value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v1.CloudFunction.newBuilder(function_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.functions.v1.CloudFunction.newBuilder(function_).mergeFrom(value).buildPartial(); } else { function_ = value; } @@ -824,15 +719,11 @@ public Builder mergeFunction(com.google.cloud.functions.v1.CloudFunction value) return this; } /** - * - * *
            * Required. Function to be created.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -846,71 +737,55 @@ public Builder clearFunction() { return this; } /** - * - * *
            * Required. Function to be created.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.functions.v1.CloudFunction.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** - * - * *
            * Required. Function to be created.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null - ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() - : function_; + return function_ == null ? + com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() : function_; } } /** - * - * *
            * Required. Function to be created.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, - com.google.cloud.functions.v1.CloudFunction.Builder, - com.google.cloud.functions.v1.CloudFunctionOrBuilder> + com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, - com.google.cloud.functions.v1.CloudFunction.Builder, - com.google.cloud.functions.v1.CloudFunctionOrBuilder>( - getFunction(), getParentForChildren(), isClean()); + functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder>( + getFunction(), + getParentForChildren(), + isClean()); function_ = null; } return functionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -920,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.CreateFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.CreateFunctionRequest) private static final com.google.cloud.functions.v1.CreateFunctionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.CreateFunctionRequest(); } @@ -934,16 +809,16 @@ public static com.google.cloud.functions.v1.CreateFunctionRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -958,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.CreateFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java new file mode 100644 index 00000000..cb01501d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v1/functions.proto + +package com.google.cloud.functions.v1; + +public interface CreateFunctionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.CreateFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Required. The project and location in which the function should be created, specified
      +   * in the format `projects/*/locations/*`
      +   * 
      + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The location. + */ + java.lang.String getLocation(); + /** + *
      +   * Required. The project and location in which the function should be created, specified
      +   * in the format `projects/*/locations/*`
      +   * 
      + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for location. + */ + com.google.protobuf.ByteString + getLocationBytes(); + + /** + *
      +   * Required. Function to be created.
      +   * 
      + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the function field is set. + */ + boolean hasFunction(); + /** + *
      +   * Required. Function to be created.
      +   * 
      + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The function. + */ + com.google.cloud.functions.v1.CloudFunction getFunction(); + /** + *
      +   * Required. Function to be created.
      +   * 
      + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder(); +} diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java similarity index 100% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java similarity index 64% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java index 4367a195..af4bc62c 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java @@ -1,57 +1,40 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Request for the `DeleteFunction` method.
        * 
      * * Protobuf type {@code google.cloud.functions.v1.DeleteFunctionRequest} */ -public final class DeleteFunctionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.DeleteFunctionRequest) DeleteFunctionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteFunctionRequest.newBuilder() to construct. private DeleteFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteFunctionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private DeleteFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.DeleteFunctionRequest.class, - com.google.cloud.functions.v1.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v1.DeleteFunctionRequest.class, com.google.cloud.functions.v1.DeleteFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
          * Required. The name of the function which should be deleted.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
          * Required. The name of the function which should be deleted.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.DeleteFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.DeleteFunctionRequest other = - (com.google.cloud.functions.v1.DeleteFunctionRequest) obj; + com.google.cloud.functions.v1.DeleteFunctionRequest other = (com.google.cloud.functions.v1.DeleteFunctionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,126 +204,117 @@ public int hashCode() { } public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DeleteFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.DeleteFunctionRequest 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.v1.DeleteFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.DeleteFunctionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.DeleteFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.DeleteFunctionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.DeleteFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request for the `DeleteFunction` method.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.DeleteFunctionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.DeleteFunctionRequest) com.google.cloud.functions.v1.DeleteFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.DeleteFunctionRequest.class, - com.google.cloud.functions.v1.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v1.DeleteFunctionRequest.class, com.google.cloud.functions.v1.DeleteFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.DeleteFunctionRequest.newBuilder() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.cloud.functions.v1.DeleteFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v1.DeleteFunctionRequest buildPartial() { - com.google.cloud.functions.v1.DeleteFunctionRequest result = - new com.google.cloud.functions.v1.DeleteFunctionRequest(this); + com.google.cloud.functions.v1.DeleteFunctionRequest result = new com.google.cloud.functions.v1.DeleteFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.cloud.functions.v1.DeleteFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.DeleteFunctionRequest) other); + return mergeFrom((com.google.cloud.functions.v1.DeleteFunctionRequest)other); } else { super.mergeFrom(other); return this; @@ -448,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.DeleteFunctionRequest other) { - if (other == com.google.cloud.functions.v1.DeleteFunctionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.DeleteFunctionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -473,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v1.DeleteFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v1.DeleteFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -486,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
            * Required. The name of the function which should be deleted.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -510,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
            * Required. The name of the function which should be deleted.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -534,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
            * Required. The name of the function which should be deleted.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
            * Required. The name of the function which should be deleted.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
            * Required. The name of the function which should be deleted.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -611,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.DeleteFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.DeleteFunctionRequest) private static final com.google.cloud.functions.v1.DeleteFunctionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.DeleteFunctionRequest(); } @@ -625,16 +566,16 @@ public static com.google.cloud.functions.v1.DeleteFunctionRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.DeleteFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java new file mode 100644 index 00000000..72025db3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v1/functions.proto + +package com.google.cloud.functions.v1; + +public interface DeleteFunctionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.DeleteFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Required. The name of the function which should be deleted.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
      +   * Required. The name of the function which should be deleted.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java similarity index 77% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java index a68d9845..4cb185d5 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java @@ -1,26 +1,9 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Describes EventTrigger, used to request events be sent from another
        * service.
      @@ -28,16 +11,15 @@
        *
        * Protobuf type {@code google.cloud.functions.v1.EventTrigger}
        */
      -public final class EventTrigger extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class EventTrigger extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.EventTrigger)
           EventTriggerOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use EventTrigger.newBuilder() to construct.
         private EventTrigger(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
         private EventTrigger() {
           eventType_ = "";
           resource_ = "";
      @@ -46,15 +28,16 @@ private EventTrigger() {
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new EventTrigger();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private EventTrigger(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -73,50 +56,44 @@ private EventTrigger(
                 case 0:
                   done = true;
                   break;
      -          case 10:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +          case 10: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              eventType_ = s;
      -              break;
      -            }
      -          case 18:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            eventType_ = s;
      +            break;
      +          }
      +          case 18: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              resource_ = s;
      -              break;
      -            }
      -          case 26:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            resource_ = s;
      +            break;
      +          }
      +          case 26: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              service_ = s;
      -              break;
      +            service_ = s;
      +            break;
      +          }
      +          case 42: {
      +            com.google.cloud.functions.v1.FailurePolicy.Builder subBuilder = null;
      +            if (failurePolicy_ != null) {
      +              subBuilder = failurePolicy_.toBuilder();
                   }
      -          case 42:
      -            {
      -              com.google.cloud.functions.v1.FailurePolicy.Builder subBuilder = null;
      -              if (failurePolicy_ != null) {
      -                subBuilder = failurePolicy_.toBuilder();
      -              }
      -              failurePolicy_ =
      -                  input.readMessage(
      -                      com.google.cloud.functions.v1.FailurePolicy.parser(), extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom(failurePolicy_);
      -                failurePolicy_ = subBuilder.buildPartial();
      -              }
      -
      -              break;
      +            failurePolicy_ = input.readMessage(com.google.cloud.functions.v1.FailurePolicy.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(failurePolicy_);
      +              failurePolicy_ = subBuilder.buildPartial();
                   }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -124,33 +101,29 @@ private EventTrigger(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             this.unknownFields = unknownFields.build();
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.functions.v1.FunctionsProto
      -        .internal_static_google_cloud_functions_v1_EventTrigger_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_EventTrigger_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.functions.v1.FunctionsProto
      -        .internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable
      +    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.functions.v1.EventTrigger.class,
      -            com.google.cloud.functions.v1.EventTrigger.Builder.class);
      +            com.google.cloud.functions.v1.EventTrigger.class, com.google.cloud.functions.v1.EventTrigger.Builder.class);
         }
       
         public static final int EVENT_TYPE_FIELD_NUMBER = 1;
         private volatile java.lang.Object eventType_;
         /**
      -   *
      -   *
          * 
          * Required. The type of event to observe. For example:
          * `providers/cloud.storage/eventTypes/object.change` and
      @@ -167,7 +140,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
      * * string event_type = 1; - * * @return The eventType. */ @java.lang.Override @@ -176,15 +148,14 @@ public java.lang.String getEventType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; } } /** - * - * *
          * Required. The type of event to observe. For example:
          * `providers/cloud.storage/eventTypes/object.change` and
      @@ -201,15 +172,16 @@ public java.lang.String getEventType() {
          * 
      * * string event_type = 1; - * * @return The bytes for eventType. */ @java.lang.Override - public com.google.protobuf.ByteString getEventTypeBytes() { + public com.google.protobuf.ByteString + getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); eventType_ = b; return b; } else { @@ -220,8 +192,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() { public static final int RESOURCE_FIELD_NUMBER = 2; private volatile java.lang.Object resource_; /** - * - * *
          * Required. The resource(s) from which to observe events, for example,
          * `projects/_/buckets/myBucket`.
      @@ -241,7 +211,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() {
          * 
      * * string resource = 2; - * * @return The resource. */ @java.lang.Override @@ -250,15 +219,14 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
          * Required. The resource(s) from which to observe events, for example,
          * `projects/_/buckets/myBucket`.
      @@ -278,15 +246,16 @@ public java.lang.String getResource() {
          * 
      * * string resource = 2; - * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -297,8 +266,6 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int SERVICE_FIELD_NUMBER = 3; private volatile java.lang.Object service_; /** - * - * *
          * The hostname of the service that should be observed.
          * If no string is provided, the default service implementing the API will
      @@ -307,7 +274,6 @@ public com.google.protobuf.ByteString getResourceBytes() {
          * 
      * * string service = 3; - * * @return The service. */ @java.lang.Override @@ -316,15 +282,14 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** - * - * *
          * The hostname of the service that should be observed.
          * If no string is provided, the default service implementing the API will
      @@ -333,15 +298,16 @@ public java.lang.String getService() {
          * 
      * * string service = 3; - * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -352,14 +318,11 @@ public com.google.protobuf.ByteString getServiceBytes() { public static final int FAILURE_POLICY_FIELD_NUMBER = 5; private com.google.cloud.functions.v1.FailurePolicy failurePolicy_; /** - * - * *
          * Specifies policy for failed executions.
          * 
      * * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; - * * @return Whether the failurePolicy field is set. */ @java.lang.Override @@ -367,25 +330,18 @@ public boolean hasFailurePolicy() { return failurePolicy_ != null; } /** - * - * *
          * Specifies policy for failed executions.
          * 
      * * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; - * * @return The failurePolicy. */ @java.lang.Override public com.google.cloud.functions.v1.FailurePolicy getFailurePolicy() { - return failurePolicy_ == null - ? com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance() - : failurePolicy_; + return failurePolicy_ == null ? com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance() : failurePolicy_; } /** - * - * *
          * Specifies policy for failed executions.
          * 
      @@ -398,7 +354,6 @@ public com.google.cloud.functions.v1.FailurePolicyOrBuilder getFailurePolicyOrBu } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -410,7 +365,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventType_); } @@ -442,7 +398,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, service_); } if (failurePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFailurePolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getFailurePolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -452,20 +409,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.EventTrigger)) { return super.equals(obj); } - com.google.cloud.functions.v1.EventTrigger other = - (com.google.cloud.functions.v1.EventTrigger) obj; + com.google.cloud.functions.v1.EventTrigger other = (com.google.cloud.functions.v1.EventTrigger) obj; - if (!getEventType().equals(other.getEventType())) return false; - if (!getResource().equals(other.getResource())) return false; - if (!getService().equals(other.getService())) return false; + if (!getEventType() + .equals(other.getEventType())) return false; + if (!getResource() + .equals(other.getResource())) return false; + if (!getService() + .equals(other.getService())) return false; if (hasFailurePolicy() != other.hasFailurePolicy()) return false; if (hasFailurePolicy()) { - if (!getFailurePolicy().equals(other.getFailurePolicy())) return false; + if (!getFailurePolicy() + .equals(other.getFailurePolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -493,104 +453,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.EventTrigger parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.EventTrigger parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.EventTrigger parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.EventTrigger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.EventTrigger 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.v1.EventTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.EventTrigger parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.EventTrigger parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.EventTrigger parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.EventTrigger parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.EventTrigger parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.EventTrigger parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.EventTrigger parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.EventTrigger parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.EventTrigger prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Describes EventTrigger, used to request events be sent from another
          * service.
      @@ -598,23 +551,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.functions.v1.EventTrigger}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.EventTrigger)
             com.google.cloud.functions.v1.EventTriggerOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_EventTrigger_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_EventTrigger_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.functions.v1.EventTrigger.class,
      -              com.google.cloud.functions.v1.EventTrigger.Builder.class);
      +              com.google.cloud.functions.v1.EventTrigger.class, com.google.cloud.functions.v1.EventTrigger.Builder.class);
           }
       
           // Construct using com.google.cloud.functions.v1.EventTrigger.newBuilder()
      @@ -622,15 +573,16 @@ private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
      +      }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -650,9 +602,9 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_EventTrigger_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_EventTrigger_descriptor;
           }
       
           @java.lang.Override
      @@ -671,8 +623,7 @@ public com.google.cloud.functions.v1.EventTrigger build() {
       
           @java.lang.Override
           public com.google.cloud.functions.v1.EventTrigger buildPartial() {
      -      com.google.cloud.functions.v1.EventTrigger result =
      -          new com.google.cloud.functions.v1.EventTrigger(this);
      +      com.google.cloud.functions.v1.EventTrigger result = new com.google.cloud.functions.v1.EventTrigger(this);
             result.eventType_ = eventType_;
             result.resource_ = resource_;
             result.service_ = service_;
      @@ -689,39 +640,38 @@ public com.google.cloud.functions.v1.EventTrigger buildPartial() {
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        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) {
      +    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) {
      +    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) {
      +        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) {
      +        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) {
      -        return mergeFrom((com.google.cloud.functions.v1.EventTrigger) other);
      +        return mergeFrom((com.google.cloud.functions.v1.EventTrigger)other);
             } else {
               super.mergeFrom(other);
               return this;
      @@ -776,8 +726,6 @@ public Builder mergeFrom(
       
           private java.lang.Object eventType_ = "";
           /**
      -     *
      -     *
            * 
            * Required. The type of event to observe. For example:
            * `providers/cloud.storage/eventTypes/object.change` and
      @@ -794,13 +742,13 @@ public Builder mergeFrom(
            * 
      * * string event_type = 1; - * * @return The eventType. */ public java.lang.String getEventType() { java.lang.Object ref = eventType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; @@ -809,8 +757,6 @@ public java.lang.String getEventType() { } } /** - * - * *
            * Required. The type of event to observe. For example:
            * `providers/cloud.storage/eventTypes/object.change` and
      @@ -827,14 +773,15 @@ public java.lang.String getEventType() {
            * 
      * * string event_type = 1; - * * @return The bytes for eventType. */ - public com.google.protobuf.ByteString getEventTypeBytes() { + public com.google.protobuf.ByteString + getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); eventType_ = b; return b; } else { @@ -842,8 +789,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() { } } /** - * - * *
            * Required. The type of event to observe. For example:
            * `providers/cloud.storage/eventTypes/object.change` and
      @@ -860,22 +805,20 @@ public com.google.protobuf.ByteString getEventTypeBytes() {
            * 
      * * string event_type = 1; - * * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType(java.lang.String value) { + public Builder setEventType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + eventType_ = value; onChanged(); return this; } /** - * - * *
            * Required. The type of event to observe. For example:
            * `providers/cloud.storage/eventTypes/object.change` and
      @@ -892,18 +835,15 @@ public Builder setEventType(java.lang.String value) {
            * 
      * * string event_type = 1; - * * @return This builder for chaining. */ public Builder clearEventType() { - + eventType_ = getDefaultInstance().getEventType(); onChanged(); return this; } /** - * - * *
            * Required. The type of event to observe. For example:
            * `providers/cloud.storage/eventTypes/object.change` and
      @@ -920,16 +860,16 @@ public Builder clearEventType() {
            * 
      * * string event_type = 1; - * * @param value The bytes for eventType to set. * @return This builder for chaining. */ - public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { + public Builder setEventTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventType_ = value; onChanged(); return this; @@ -937,8 +877,6 @@ public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object resource_ = ""; /** - * - * *
            * Required. The resource(s) from which to observe events, for example,
            * `projects/_/buckets/myBucket`.
      @@ -958,13 +896,13 @@ public Builder setEventTypeBytes(com.google.protobuf.ByteString value) {
            * 
      * * string resource = 2; - * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -973,8 +911,6 @@ public java.lang.String getResource() { } } /** - * - * *
            * Required. The resource(s) from which to observe events, for example,
            * `projects/_/buckets/myBucket`.
      @@ -994,14 +930,15 @@ public java.lang.String getResource() {
            * 
      * * string resource = 2; - * * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -1009,8 +946,6 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
            * Required. The resource(s) from which to observe events, for example,
            * `projects/_/buckets/myBucket`.
      @@ -1030,22 +965,20 @@ public com.google.protobuf.ByteString getResourceBytes() {
            * 
      * * string resource = 2; - * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { + public Builder setResource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** - * - * *
            * Required. The resource(s) from which to observe events, for example,
            * `projects/_/buckets/myBucket`.
      @@ -1065,18 +998,15 @@ public Builder setResource(java.lang.String value) {
            * 
      * * string resource = 2; - * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** - * - * *
            * Required. The resource(s) from which to observe events, for example,
            * `projects/_/buckets/myBucket`.
      @@ -1096,16 +1026,16 @@ public Builder clearResource() {
            * 
      * * string resource = 2; - * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -1113,8 +1043,6 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private java.lang.Object service_ = ""; /** - * - * *
            * The hostname of the service that should be observed.
            * If no string is provided, the default service implementing the API will
      @@ -1123,13 +1051,13 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) {
            * 
      * * string service = 3; - * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -1138,8 +1066,6 @@ 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
      @@ -1148,14 +1074,15 @@ public java.lang.String getService() {
            * 
      * * string service = 3; - * * @return The bytes for service. */ - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -1163,8 +1090,6 @@ 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
      @@ -1173,22 +1098,20 @@ public com.google.protobuf.ByteString getServiceBytes() {
            * 
      * * string service = 3; - * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService(java.lang.String value) { + public Builder setService( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + service_ = value; onChanged(); return this; } /** - * - * *
            * The hostname of the service that should be observed.
            * If no string is provided, the default service implementing the API will
      @@ -1197,18 +1120,15 @@ public Builder setService(java.lang.String value) {
            * 
      * * string service = 3; - * * @return This builder for chaining. */ public Builder clearService() { - + service_ = getDefaultInstance().getService(); onChanged(); return this; } /** - * - * *
            * The hostname of the service that should be observed.
            * If no string is provided, the default service implementing the API will
      @@ -1217,16 +1137,16 @@ public Builder clearService() {
            * 
      * * string service = 3; - * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes(com.google.protobuf.ByteString value) { + public Builder setServiceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; onChanged(); return this; @@ -1234,47 +1154,34 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) { private com.google.cloud.functions.v1.FailurePolicy failurePolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.FailurePolicy, - com.google.cloud.functions.v1.FailurePolicy.Builder, - com.google.cloud.functions.v1.FailurePolicyOrBuilder> - failurePolicyBuilder_; + com.google.cloud.functions.v1.FailurePolicy, com.google.cloud.functions.v1.FailurePolicy.Builder, com.google.cloud.functions.v1.FailurePolicyOrBuilder> failurePolicyBuilder_; /** - * - * *
            * Specifies policy for failed executions.
            * 
      * * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; - * * @return Whether the failurePolicy field is set. */ public boolean hasFailurePolicy() { return failurePolicyBuilder_ != null || failurePolicy_ != null; } /** - * - * *
            * Specifies policy for failed executions.
            * 
      * * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; - * * @return The failurePolicy. */ public com.google.cloud.functions.v1.FailurePolicy getFailurePolicy() { if (failurePolicyBuilder_ == null) { - return failurePolicy_ == null - ? com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance() - : failurePolicy_; + return failurePolicy_ == null ? com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance() : failurePolicy_; } else { return failurePolicyBuilder_.getMessage(); } } /** - * - * *
            * Specifies policy for failed executions.
            * 
      @@ -1295,8 +1202,6 @@ public Builder setFailurePolicy(com.google.cloud.functions.v1.FailurePolicy valu return this; } /** - * - * *
            * Specifies policy for failed executions.
            * 
      @@ -1315,8 +1220,6 @@ public Builder setFailurePolicy( return this; } /** - * - * *
            * Specifies policy for failed executions.
            * 
      @@ -1327,9 +1230,7 @@ public Builder mergeFailurePolicy(com.google.cloud.functions.v1.FailurePolicy va if (failurePolicyBuilder_ == null) { if (failurePolicy_ != null) { failurePolicy_ = - com.google.cloud.functions.v1.FailurePolicy.newBuilder(failurePolicy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.functions.v1.FailurePolicy.newBuilder(failurePolicy_).mergeFrom(value).buildPartial(); } else { failurePolicy_ = value; } @@ -1341,8 +1242,6 @@ public Builder mergeFailurePolicy(com.google.cloud.functions.v1.FailurePolicy va return this; } /** - * - * *
            * Specifies policy for failed executions.
            * 
      @@ -1361,8 +1260,6 @@ public Builder clearFailurePolicy() { return this; } /** - * - * *
            * Specifies policy for failed executions.
            * 
      @@ -1370,13 +1267,11 @@ public Builder clearFailurePolicy() { * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; */ public com.google.cloud.functions.v1.FailurePolicy.Builder getFailurePolicyBuilder() { - + onChanged(); return getFailurePolicyFieldBuilder().getBuilder(); } /** - * - * *
            * Specifies policy for failed executions.
            * 
      @@ -1387,14 +1282,11 @@ public com.google.cloud.functions.v1.FailurePolicyOrBuilder getFailurePolicyOrBu if (failurePolicyBuilder_ != null) { return failurePolicyBuilder_.getMessageOrBuilder(); } else { - return failurePolicy_ == null - ? com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance() - : failurePolicy_; + return failurePolicy_ == null ? + com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance() : failurePolicy_; } } /** - * - * *
            * Specifies policy for failed executions.
            * 
      @@ -1402,24 +1294,21 @@ public com.google.cloud.functions.v1.FailurePolicyOrBuilder getFailurePolicyOrBu * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.FailurePolicy, - com.google.cloud.functions.v1.FailurePolicy.Builder, - com.google.cloud.functions.v1.FailurePolicyOrBuilder> + com.google.cloud.functions.v1.FailurePolicy, com.google.cloud.functions.v1.FailurePolicy.Builder, com.google.cloud.functions.v1.FailurePolicyOrBuilder> getFailurePolicyFieldBuilder() { if (failurePolicyBuilder_ == null) { - failurePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.FailurePolicy, - com.google.cloud.functions.v1.FailurePolicy.Builder, - com.google.cloud.functions.v1.FailurePolicyOrBuilder>( - getFailurePolicy(), getParentForChildren(), isClean()); + failurePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v1.FailurePolicy, com.google.cloud.functions.v1.FailurePolicy.Builder, com.google.cloud.functions.v1.FailurePolicyOrBuilder>( + getFailurePolicy(), + getParentForChildren(), + isClean()); failurePolicy_ = null; } return failurePolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1429,12 +1318,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.EventTrigger) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.EventTrigger) private static final com.google.cloud.functions.v1.EventTrigger DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.EventTrigger(); } @@ -1443,16 +1332,16 @@ public static com.google.cloud.functions.v1.EventTrigger getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventTrigger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventTrigger(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventTrigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventTrigger(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1467,4 +1356,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.EventTrigger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java similarity index 85% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java index 48b6347b..9fd0888b 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface EventTriggerOrBuilder - extends +public interface EventTriggerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.EventTrigger) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. The type of event to observe. For example:
          * `providers/cloud.storage/eventTypes/object.change` and
      @@ -42,13 +24,10 @@ public interface EventTriggerOrBuilder
          * 
      * * string event_type = 1; - * * @return The eventType. */ java.lang.String getEventType(); /** - * - * *
          * Required. The type of event to observe. For example:
          * `providers/cloud.storage/eventTypes/object.change` and
      @@ -65,14 +44,12 @@ public interface EventTriggerOrBuilder
          * 
      * * string event_type = 1; - * * @return The bytes for eventType. */ - com.google.protobuf.ByteString getEventTypeBytes(); + com.google.protobuf.ByteString + getEventTypeBytes(); /** - * - * *
          * Required. The resource(s) from which to observe events, for example,
          * `projects/_/buckets/myBucket`.
      @@ -92,13 +69,10 @@ public interface EventTriggerOrBuilder
          * 
      * * string resource = 2; - * * @return The resource. */ java.lang.String getResource(); /** - * - * *
          * Required. The resource(s) from which to observe events, for example,
          * `projects/_/buckets/myBucket`.
      @@ -118,14 +92,12 @@ public interface EventTriggerOrBuilder
          * 
      * * string resource = 2; - * * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + 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
      @@ -134,13 +106,10 @@ public interface EventTriggerOrBuilder
          * 
      * * string service = 3; - * * @return The service. */ 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
      @@ -149,38 +118,30 @@ public interface EventTriggerOrBuilder
          * 
      * * string service = 3; - * * @return The bytes for service. */ - com.google.protobuf.ByteString getServiceBytes(); + com.google.protobuf.ByteString + getServiceBytes(); /** - * - * *
          * Specifies policy for failed executions.
          * 
      * * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; - * * @return Whether the failurePolicy field is set. */ boolean hasFailurePolicy(); /** - * - * *
          * Specifies policy for failed executions.
          * 
      * * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; - * * @return The failurePolicy. */ com.google.cloud.functions.v1.FailurePolicy getFailurePolicy(); /** - * - * *
          * Specifies policy for failed executions.
          * 
      diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java similarity index 71% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java index aa52cb70..0602ea1c 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java @@ -1,26 +1,9 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Describes the policy in case of function's execution failure.
        * If empty, then defaults to ignoring failures (i.e. not retrying them).
      @@ -28,29 +11,30 @@
        *
        * Protobuf type {@code google.cloud.functions.v1.FailurePolicy}
        */
      -public final class FailurePolicy extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class FailurePolicy extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.FailurePolicy)
           FailurePolicyOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use FailurePolicy.newBuilder() to construct.
         private FailurePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
      -  private FailurePolicy() {}
      +  private FailurePolicy() {
      +  }
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new FailurePolicy();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private FailurePolicy(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -69,31 +53,27 @@ private FailurePolicy(
                 case 0:
                   done = true;
                   break;
      -          case 10:
      -            {
      -              com.google.cloud.functions.v1.FailurePolicy.Retry.Builder subBuilder = null;
      -              if (actionCase_ == 1) {
      -                subBuilder =
      -                    ((com.google.cloud.functions.v1.FailurePolicy.Retry) action_).toBuilder();
      -              }
      -              action_ =
      -                  input.readMessage(
      -                      com.google.cloud.functions.v1.FailurePolicy.Retry.parser(),
      -                      extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom((com.google.cloud.functions.v1.FailurePolicy.Retry) action_);
      -                action_ = subBuilder.buildPartial();
      -              }
      -              actionCase_ = 1;
      -              break;
      +          case 10: {
      +            com.google.cloud.functions.v1.FailurePolicy.Retry.Builder subBuilder = null;
      +            if (actionCase_ == 1) {
      +              subBuilder = ((com.google.cloud.functions.v1.FailurePolicy.Retry) action_).toBuilder();
                   }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +            action_ =
      +                input.readMessage(com.google.cloud.functions.v1.FailurePolicy.Retry.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom((com.google.cloud.functions.v1.FailurePolicy.Retry) action_);
      +              action_ = subBuilder.buildPartial();
                   }
      +            actionCase_ = 1;
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
      +            }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -101,35 +81,31 @@ private FailurePolicy(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             this.unknownFields = unknownFields.build();
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.functions.v1.FunctionsProto
      -        .internal_static_google_cloud_functions_v1_FailurePolicy_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.functions.v1.FunctionsProto
      -        .internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable
      +    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.functions.v1.FailurePolicy.class,
      -            com.google.cloud.functions.v1.FailurePolicy.Builder.class);
      +            com.google.cloud.functions.v1.FailurePolicy.class, com.google.cloud.functions.v1.FailurePolicy.Builder.class);
         }
       
      -  public interface RetryOrBuilder
      -      extends
      +  public interface RetryOrBuilder extends
             // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.FailurePolicy.Retry)
      -      com.google.protobuf.MessageOrBuilder {}
      +      com.google.protobuf.MessageOrBuilder {
      +  }
         /**
      -   *
      -   *
          * 
          * Describes the retry policy in case of function's execution failure.
          * A function execution will be retried on any failure.
      @@ -140,29 +116,30 @@ public interface RetryOrBuilder
          *
          * Protobuf type {@code google.cloud.functions.v1.FailurePolicy.Retry}
          */
      -  public static final class Retry extends com.google.protobuf.GeneratedMessageV3
      -      implements
      +  public static final class Retry extends
      +      com.google.protobuf.GeneratedMessageV3 implements
             // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.FailurePolicy.Retry)
             RetryOrBuilder {
      -    private static final long serialVersionUID = 0L;
      +  private static final long serialVersionUID = 0L;
           // Use Retry.newBuilder() to construct.
           private Retry(com.google.protobuf.GeneratedMessageV3.Builder builder) {
             super(builder);
           }
      -
      -    private Retry() {}
      +    private Retry() {
      +    }
       
           @java.lang.Override
           @SuppressWarnings({"unused"})
      -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +    protected java.lang.Object newInstance(
      +        UnusedPrivateParameter unused) {
             return new Retry();
           }
       
           @java.lang.Override
      -    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +    public final com.google.protobuf.UnknownFieldSet
      +    getUnknownFields() {
             return this.unknownFields;
           }
      -
           private Retry(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -181,13 +158,13 @@ private Retry(
                   case 0:
                     done = true;
                     break;
      -            default:
      -              {
      -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                  done = true;
      -                }
      -                break;
      +            default: {
      +              if (!parseUnknownField(
      +                  input, unknownFields, extensionRegistry, tag)) {
      +                done = true;
                     }
      +              break;
      +            }
                 }
               }
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -195,30 +172,27 @@ private Retry(
             } catch (com.google.protobuf.UninitializedMessageException e) {
               throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
             } catch (java.io.IOException e) {
      -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +        throw new com.google.protobuf.InvalidProtocolBufferException(
      +            e).setUnfinishedMessage(this);
             } finally {
               this.unknownFields = unknownFields.build();
               makeExtensionsImmutable();
             }
           }
      -
      -    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;
      +    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;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.functions.v1.FailurePolicy.Retry.class,
      -              com.google.cloud.functions.v1.FailurePolicy.Retry.Builder.class);
      +              com.google.cloud.functions.v1.FailurePolicy.Retry.class, com.google.cloud.functions.v1.FailurePolicy.Retry.Builder.class);
           }
       
           private byte memoizedIsInitialized = -1;
      -
           @java.lang.Override
           public final boolean isInitialized() {
             byte isInitialized = memoizedIsInitialized;
      @@ -230,7 +204,8 @@ public final boolean isInitialized() {
           }
       
           @java.lang.Override
      -    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      +    public void writeTo(com.google.protobuf.CodedOutputStream output)
      +                        throws java.io.IOException {
             unknownFields.writeTo(output);
           }
       
      @@ -248,13 +223,12 @@ public int getSerializedSize() {
           @java.lang.Override
           public boolean equals(final java.lang.Object obj) {
             if (obj == this) {
      -        return true;
      +       return true;
             }
             if (!(obj instanceof com.google.cloud.functions.v1.FailurePolicy.Retry)) {
               return super.equals(obj);
             }
      -      com.google.cloud.functions.v1.FailurePolicy.Retry other =
      -          (com.google.cloud.functions.v1.FailurePolicy.Retry) obj;
      +      com.google.cloud.functions.v1.FailurePolicy.Retry other = (com.google.cloud.functions.v1.FailurePolicy.Retry) obj;
       
             if (!unknownFields.equals(other.unknownFields)) return false;
             return true;
      @@ -273,93 +247,87 @@ public int hashCode() {
           }
       
           public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
      -        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      +        java.nio.ByteBuffer data)
      +        throws com.google.protobuf.InvalidProtocolBufferException {
             return PARSER.parseFrom(data);
           }
      -
           public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
      -        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        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.v1.FailurePolicy.Retry parseFrom(
               com.google.protobuf.ByteString data)
               throws com.google.protobuf.InvalidProtocolBufferException {
             return PARSER.parseFrom(data);
           }
      -
           public static com.google.cloud.functions.v1.FailurePolicy.Retry 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.v1.FailurePolicy.Retry parseFrom(byte[] data)
               throws com.google.protobuf.InvalidProtocolBufferException {
             return PARSER.parseFrom(data);
           }
      -
           public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
      -        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        byte[] data,
      +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws com.google.protobuf.InvalidProtocolBufferException {
             return PARSER.parseFrom(data, extensionRegistry);
           }
      -
      -    public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
      -        java.io.InputStream input) throws java.io.IOException {
      -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      +    public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(java.io.InputStream input)
      +        throws java.io.IOException {
      +      return com.google.protobuf.GeneratedMessageV3
      +          .parseWithIOException(PARSER, input);
           }
      -
           public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
      -        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        java.io.InputStream input,
      +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
      -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
      -          PARSER, input, extensionRegistry);
      +      return com.google.protobuf.GeneratedMessageV3
      +          .parseWithIOException(PARSER, input, extensionRegistry);
           }
      -
      -    public static com.google.cloud.functions.v1.FailurePolicy.Retry parseDelimitedFrom(
      -        java.io.InputStream input) throws java.io.IOException {
      -      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      +    public static com.google.cloud.functions.v1.FailurePolicy.Retry parseDelimitedFrom(java.io.InputStream input)
      +        throws java.io.IOException {
      +      return com.google.protobuf.GeneratedMessageV3
      +          .parseDelimitedWithIOException(PARSER, input);
           }
      -
           public static com.google.cloud.functions.v1.FailurePolicy.Retry parseDelimitedFrom(
      -        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        java.io.InputStream input,
      +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
      -      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
      -          PARSER, input, extensionRegistry);
      +      return com.google.protobuf.GeneratedMessageV3
      +          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
           }
      -
           public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
      -        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      +        com.google.protobuf.CodedInputStream input)
      +        throws java.io.IOException {
      +      return com.google.protobuf.GeneratedMessageV3
      +          .parseWithIOException(PARSER, input);
           }
      -
           public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
      -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
      -          PARSER, input, extensionRegistry);
      +      return com.google.protobuf.GeneratedMessageV3
      +          .parseWithIOException(PARSER, input, extensionRegistry);
           }
       
           @java.lang.Override
      -    public Builder newBuilderForType() {
      -      return newBuilder();
      -    }
      -
      +    public Builder newBuilderForType() { return newBuilder(); }
           public static Builder newBuilder() {
             return DEFAULT_INSTANCE.toBuilder();
           }
      -
           public static Builder newBuilder(com.google.cloud.functions.v1.FailurePolicy.Retry prototype) {
             return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
           }
      -
           @java.lang.Override
           public Builder toBuilder() {
      -      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
      +      return this == DEFAULT_INSTANCE
      +          ? new Builder() : new Builder().mergeFrom(this);
           }
       
           @java.lang.Override
      @@ -369,8 +337,6 @@ protected Builder newBuilderForType(
             return builder;
           }
           /**
      -     *
      -     *
            * 
            * Describes the retry policy in case of function's execution failure.
            * A function execution will be retried on any failure.
      @@ -381,24 +347,21 @@ protected Builder newBuilderForType(
            *
            * Protobuf type {@code google.cloud.functions.v1.FailurePolicy.Retry}
            */
      -    public static final class Builder
      -        extends com.google.protobuf.GeneratedMessageV3.Builder
      -        implements
      +    public static final class Builder extends
      +        com.google.protobuf.GeneratedMessageV3.Builder implements
               // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.FailurePolicy.Retry)
               com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder {
      -      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;
      +      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;
             }
       
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
      -        return com.google.cloud.functions.v1.FunctionsProto
      -            .internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable
      +        return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
      -                com.google.cloud.functions.v1.FailurePolicy.Retry.class,
      -                com.google.cloud.functions.v1.FailurePolicy.Retry.Builder.class);
      +                com.google.cloud.functions.v1.FailurePolicy.Retry.class, com.google.cloud.functions.v1.FailurePolicy.Retry.Builder.class);
             }
       
             // Construct using com.google.cloud.functions.v1.FailurePolicy.Retry.newBuilder()
      @@ -406,15 +369,16 @@ private Builder() {
               maybeForceBuilderInitialization();
             }
       
      -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +      private Builder(
      +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
               super(parent);
               maybeForceBuilderInitialization();
             }
      -
             private void maybeForceBuilderInitialization() {
      -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      +        if (com.google.protobuf.GeneratedMessageV3
      +                .alwaysUseFieldBuilders) {
      +        }
             }
      -
             @java.lang.Override
             public Builder clear() {
               super.clear();
      @@ -422,9 +386,9 @@ public Builder clear() {
             }
       
             @java.lang.Override
      -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -        return com.google.cloud.functions.v1.FunctionsProto
      -            .internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor;
      +      public com.google.protobuf.Descriptors.Descriptor
      +          getDescriptorForType() {
      +        return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor;
             }
       
             @java.lang.Override
      @@ -443,8 +407,7 @@ public com.google.cloud.functions.v1.FailurePolicy.Retry build() {
       
             @java.lang.Override
             public com.google.cloud.functions.v1.FailurePolicy.Retry buildPartial() {
      -        com.google.cloud.functions.v1.FailurePolicy.Retry result =
      -            new com.google.cloud.functions.v1.FailurePolicy.Retry(this);
      +        com.google.cloud.functions.v1.FailurePolicy.Retry result = new com.google.cloud.functions.v1.FailurePolicy.Retry(this);
               onBuilt();
               return result;
             }
      @@ -453,41 +416,38 @@ public com.google.cloud.functions.v1.FailurePolicy.Retry buildPartial() {
             public Builder clone() {
               return super.clone();
             }
      -
             @java.lang.Override
             public Builder setField(
      -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +          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) {
      +      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) {
      +      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) {
      +          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) {
      +          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) {
      -          return mergeFrom((com.google.cloud.functions.v1.FailurePolicy.Retry) other);
      +          return mergeFrom((com.google.cloud.functions.v1.FailurePolicy.Retry)other);
               } else {
                 super.mergeFrom(other);
                 return this;
      @@ -495,8 +455,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
             }
       
             public Builder mergeFrom(com.google.cloud.functions.v1.FailurePolicy.Retry other) {
      -        if (other == com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance())
      -          return this;
      +        if (other == com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance()) return this;
               this.mergeUnknownFields(other.unknownFields);
               onChanged();
               return this;
      @@ -516,8 +475,7 @@ public Builder mergeFrom(
               try {
                 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      -          parsedMessage =
      -              (com.google.cloud.functions.v1.FailurePolicy.Retry) e.getUnfinishedMessage();
      +          parsedMessage = (com.google.cloud.functions.v1.FailurePolicy.Retry) e.getUnfinishedMessage();
                 throw e.unwrapIOException();
               } finally {
                 if (parsedMessage != null) {
      @@ -526,7 +484,6 @@ public Builder mergeFrom(
               }
               return this;
             }
      -
             @java.lang.Override
             public final Builder setUnknownFields(
                 final com.google.protobuf.UnknownFieldSet unknownFields) {
      @@ -539,12 +496,12 @@ public final Builder mergeUnknownFields(
               return super.mergeUnknownFields(unknownFields);
             }
       
      +
             // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.FailurePolicy.Retry)
           }
       
           // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.FailurePolicy.Retry)
           private static final com.google.cloud.functions.v1.FailurePolicy.Retry DEFAULT_INSTANCE;
      -
           static {
             DEFAULT_INSTANCE = new com.google.cloud.functions.v1.FailurePolicy.Retry();
           }
      @@ -553,16 +510,16 @@ public static com.google.cloud.functions.v1.FailurePolicy.Retry getDefaultInstan
             return DEFAULT_INSTANCE;
           }
       
      -    private static final com.google.protobuf.Parser PARSER =
      -        new com.google.protobuf.AbstractParser() {
      -          @java.lang.Override
      -          public Retry parsePartialFrom(
      -              com.google.protobuf.CodedInputStream input,
      -              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      -              throws com.google.protobuf.InvalidProtocolBufferException {
      -            return new Retry(input, extensionRegistry);
      -          }
      -        };
      +    private static final com.google.protobuf.Parser
      +        PARSER = new com.google.protobuf.AbstractParser() {
      +      @java.lang.Override
      +      public Retry parsePartialFrom(
      +          com.google.protobuf.CodedInputStream input,
      +          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +          throws com.google.protobuf.InvalidProtocolBufferException {
      +        return new Retry(input, extensionRegistry);
      +      }
      +    };
       
           public static com.google.protobuf.Parser parser() {
             return PARSER;
      @@ -577,19 +534,17 @@ public com.google.protobuf.Parser getParserForType() {
           public com.google.cloud.functions.v1.FailurePolicy.Retry getDefaultInstanceForType() {
             return DEFAULT_INSTANCE;
           }
      +
         }
       
         private int actionCase_ = 0;
         private java.lang.Object action_;
      -
         public enum ActionCase
      -      implements
      -          com.google.protobuf.Internal.EnumLite,
      +      implements com.google.protobuf.Internal.EnumLite,
                 com.google.protobuf.AbstractMessage.InternalOneOfEnum {
           RETRY(1),
           ACTION_NOT_SET(0);
           private final int value;
      -
           private ActionCase(int value) {
             this.value = value;
           }
      @@ -605,34 +560,29 @@ public static ActionCase valueOf(int value) {
       
           public static ActionCase forNumber(int value) {
             switch (value) {
      -        case 1:
      -          return RETRY;
      -        case 0:
      -          return ACTION_NOT_SET;
      -        default:
      -          return null;
      +        case 1: return RETRY;
      +        case 0: return ACTION_NOT_SET;
      +        default: return null;
             }
           }
      -
           public int getNumber() {
             return this.value;
           }
         };
       
      -  public ActionCase getActionCase() {
      -    return ActionCase.forNumber(actionCase_);
      +  public ActionCase
      +  getActionCase() {
      +    return ActionCase.forNumber(
      +        actionCase_);
         }
       
         public static final int RETRY_FIELD_NUMBER = 1;
         /**
      -   *
      -   *
          * 
          * If specified, then the function will be retried in case of a failure.
          * 
      * * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; - * * @return Whether the retry field is set. */ @java.lang.Override @@ -640,26 +590,21 @@ public boolean hasRetry() { return actionCase_ == 1; } /** - * - * *
          * If specified, then the function will be retried in case of a failure.
          * 
      * * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; - * * @return The retry. */ @java.lang.Override public com.google.cloud.functions.v1.FailurePolicy.Retry getRetry() { if (actionCase_ == 1) { - return (com.google.cloud.functions.v1.FailurePolicy.Retry) action_; + return (com.google.cloud.functions.v1.FailurePolicy.Retry) action_; } return com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance(); } /** - * - * *
          * If specified, then the function will be retried in case of a failure.
          * 
      @@ -669,13 +614,12 @@ public com.google.cloud.functions.v1.FailurePolicy.Retry getRetry() { @java.lang.Override public com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder getRetryOrBuilder() { if (actionCase_ == 1) { - return (com.google.cloud.functions.v1.FailurePolicy.Retry) action_; + return (com.google.cloud.functions.v1.FailurePolicy.Retry) action_; } return com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -687,7 +631,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (actionCase_ == 1) { output.writeMessage(1, (com.google.cloud.functions.v1.FailurePolicy.Retry) action_); } @@ -701,9 +646,8 @@ public int getSerializedSize() { size = 0; if (actionCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.functions.v1.FailurePolicy.Retry) action_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.functions.v1.FailurePolicy.Retry) action_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -713,18 +657,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.FailurePolicy)) { return super.equals(obj); } - com.google.cloud.functions.v1.FailurePolicy other = - (com.google.cloud.functions.v1.FailurePolicy) obj; + com.google.cloud.functions.v1.FailurePolicy other = (com.google.cloud.functions.v1.FailurePolicy) obj; if (!getActionCase().equals(other.getActionCase())) return false; switch (actionCase_) { case 1: - if (!getRetry().equals(other.getRetry())) return false; + if (!getRetry() + .equals(other.getRetry())) return false; break; case 0: default: @@ -753,104 +697,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.FailurePolicy parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.FailurePolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.FailurePolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.FailurePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.FailurePolicy 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.v1.FailurePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.FailurePolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.FailurePolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.FailurePolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.FailurePolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.FailurePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.FailurePolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.FailurePolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.FailurePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.FailurePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Describes the policy in case of function's execution failure.
          * If empty, then defaults to ignoring failures (i.e. not retrying them).
      @@ -858,23 +795,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.functions.v1.FailurePolicy}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.FailurePolicy)
             com.google.cloud.functions.v1.FailurePolicyOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_FailurePolicy_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.functions.v1.FailurePolicy.class,
      -              com.google.cloud.functions.v1.FailurePolicy.Builder.class);
      +              com.google.cloud.functions.v1.FailurePolicy.class, com.google.cloud.functions.v1.FailurePolicy.Builder.class);
           }
       
           // Construct using com.google.cloud.functions.v1.FailurePolicy.newBuilder()
      @@ -882,15 +817,16 @@ private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
      +      }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -900,9 +836,9 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_FailurePolicy_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_descriptor;
           }
       
           @java.lang.Override
      @@ -921,8 +857,7 @@ public com.google.cloud.functions.v1.FailurePolicy build() {
       
           @java.lang.Override
           public com.google.cloud.functions.v1.FailurePolicy buildPartial() {
      -      com.google.cloud.functions.v1.FailurePolicy result =
      -          new com.google.cloud.functions.v1.FailurePolicy(this);
      +      com.google.cloud.functions.v1.FailurePolicy result = new com.google.cloud.functions.v1.FailurePolicy(this);
             if (actionCase_ == 1) {
               if (retryBuilder_ == null) {
                 result.action_ = action_;
      @@ -939,39 +874,38 @@ public com.google.cloud.functions.v1.FailurePolicy buildPartial() {
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        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) {
      +    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) {
      +    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) {
      +        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) {
      +        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) {
      -        return mergeFrom((com.google.cloud.functions.v1.FailurePolicy) other);
      +        return mergeFrom((com.google.cloud.functions.v1.FailurePolicy)other);
             } else {
               super.mergeFrom(other);
               return this;
      @@ -981,15 +915,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
           public Builder mergeFrom(com.google.cloud.functions.v1.FailurePolicy other) {
             if (other == com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance()) return this;
             switch (other.getActionCase()) {
      -        case RETRY:
      -          {
      -            mergeRetry(other.getRetry());
      -            break;
      -          }
      -        case ACTION_NOT_SET:
      -          {
      -            break;
      -          }
      +        case RETRY: {
      +          mergeRetry(other.getRetry());
      +          break;
      +        }
      +        case ACTION_NOT_SET: {
      +          break;
      +        }
             }
             this.mergeUnknownFields(other.unknownFields);
             onChanged();
      @@ -1019,12 +951,12 @@ public Builder mergeFrom(
             }
             return this;
           }
      -
           private int actionCase_ = 0;
           private java.lang.Object action_;
      -
      -    public ActionCase getActionCase() {
      -      return ActionCase.forNumber(actionCase_);
      +    public ActionCase
      +        getActionCase() {
      +      return ActionCase.forNumber(
      +          actionCase_);
           }
       
           public Builder clearAction() {
      @@ -1034,20 +966,15 @@ public Builder clearAction() {
             return this;
           }
       
      +
           private com.google.protobuf.SingleFieldBuilderV3<
      -            com.google.cloud.functions.v1.FailurePolicy.Retry,
      -            com.google.cloud.functions.v1.FailurePolicy.Retry.Builder,
      -            com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder>
      -        retryBuilder_;
      +        com.google.cloud.functions.v1.FailurePolicy.Retry, com.google.cloud.functions.v1.FailurePolicy.Retry.Builder, com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder> retryBuilder_;
           /**
      -     *
      -     *
            * 
            * If specified, then the function will be retried in case of a failure.
            * 
      * * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; - * * @return Whether the retry field is set. */ @java.lang.Override @@ -1055,14 +982,11 @@ public boolean hasRetry() { return actionCase_ == 1; } /** - * - * *
            * If specified, then the function will be retried in case of a failure.
            * 
      * * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; - * * @return The retry. */ @java.lang.Override @@ -1080,8 +1004,6 @@ public com.google.cloud.functions.v1.FailurePolicy.Retry getRetry() { } } /** - * - * *
            * If specified, then the function will be retried in case of a failure.
            * 
      @@ -1102,8 +1024,6 @@ public Builder setRetry(com.google.cloud.functions.v1.FailurePolicy.Retry value) return this; } /** - * - * *
            * If specified, then the function will be retried in case of a failure.
            * 
      @@ -1122,8 +1042,6 @@ public Builder setRetry( return this; } /** - * - * *
            * If specified, then the function will be retried in case of a failure.
            * 
      @@ -1132,13 +1050,10 @@ public Builder setRetry( */ public Builder mergeRetry(com.google.cloud.functions.v1.FailurePolicy.Retry value) { if (retryBuilder_ == null) { - if (actionCase_ == 1 - && action_ != com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance()) { - action_ = - com.google.cloud.functions.v1.FailurePolicy.Retry.newBuilder( - (com.google.cloud.functions.v1.FailurePolicy.Retry) action_) - .mergeFrom(value) - .buildPartial(); + if (actionCase_ == 1 && + action_ != com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance()) { + action_ = com.google.cloud.functions.v1.FailurePolicy.Retry.newBuilder((com.google.cloud.functions.v1.FailurePolicy.Retry) action_) + .mergeFrom(value).buildPartial(); } else { action_ = value; } @@ -1154,8 +1069,6 @@ public Builder mergeRetry(com.google.cloud.functions.v1.FailurePolicy.Retry valu return this; } /** - * - * *
            * If specified, then the function will be retried in case of a failure.
            * 
      @@ -1179,8 +1092,6 @@ public Builder clearRetry() { return this; } /** - * - * *
            * If specified, then the function will be retried in case of a failure.
            * 
      @@ -1191,8 +1102,6 @@ public com.google.cloud.functions.v1.FailurePolicy.Retry.Builder getRetryBuilder return getRetryFieldBuilder().getBuilder(); } /** - * - * *
            * If specified, then the function will be retried in case of a failure.
            * 
      @@ -1211,8 +1120,6 @@ public com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder getRetryOrBuil } } /** - * - * *
            * If specified, then the function will be retried in case of a failure.
            * 
      @@ -1220,32 +1127,26 @@ public com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder getRetryOrBuil * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.FailurePolicy.Retry, - com.google.cloud.functions.v1.FailurePolicy.Retry.Builder, - com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder> + com.google.cloud.functions.v1.FailurePolicy.Retry, com.google.cloud.functions.v1.FailurePolicy.Retry.Builder, com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder> getRetryFieldBuilder() { if (retryBuilder_ == null) { if (!(actionCase_ == 1)) { action_ = com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance(); } - retryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.FailurePolicy.Retry, - com.google.cloud.functions.v1.FailurePolicy.Retry.Builder, - com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder>( + retryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v1.FailurePolicy.Retry, com.google.cloud.functions.v1.FailurePolicy.Retry.Builder, com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder>( (com.google.cloud.functions.v1.FailurePolicy.Retry) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 1; - onChanged(); - ; + onChanged();; return retryBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1255,12 +1156,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.FailurePolicy) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.FailurePolicy) private static final com.google.cloud.functions.v1.FailurePolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.FailurePolicy(); } @@ -1269,16 +1170,16 @@ public static com.google.cloud.functions.v1.FailurePolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FailurePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FailurePolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailurePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FailurePolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1293,4 +1194,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.FailurePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java similarity index 63% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java index d5beae9d..c0981d1d 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface FailurePolicyOrBuilder - extends +public interface FailurePolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.FailurePolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * If specified, then the function will be retried in case of a failure.
          * 
      * * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; - * * @return Whether the retry field is set. */ boolean hasRetry(); /** - * - * *
          * If specified, then the function will be retried in case of a failure.
          * 
      * * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; - * * @return The retry. */ com.google.cloud.functions.v1.FailurePolicy.Retry getRetry(); /** - * - * *
          * If specified, then the function will be retried in case of a failure.
          * 
      diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java new file mode 100644 index 00000000..a0ca1445 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v1/operations.proto + +package com.google.cloud.functions.v1; + +public final class FunctionsOperationsProto { + private FunctionsOperationsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/functions/v1/operations.p" + + "roto\022\031google.cloud.functions.v1\032\031google/" + + "protobuf/any.proto\032\037google/protobuf/time" + + "stamp.proto\"\205\002\n\023OperationMetadataV1\022\016\n\006t" + + "arget\030\001 \001(\t\0226\n\004type\030\002 \001(\0162(.google.cloud" + + ".functions.v1.OperationType\022%\n\007request\030\003" + + " \001(\0132\024.google.protobuf.Any\022\022\n\nversion_id" + + "\030\004 \001(\003\022/\n\013update_time\030\005 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022\020\n\010build_id\030\006 \001(\t\022\024\n\014sou" + + "rce_token\030\007 \001(\t\022\022\n\nbuild_name\030\010 \001(\t*i\n\rO" + + "perationType\022\031\n\025OPERATION_UNSPECIFIED\020\000\022" + + "\023\n\017CREATE_FUNCTION\020\001\022\023\n\017UPDATE_FUNCTION\020" + + "\002\022\023\n\017DELETE_FUNCTION\020\003B\177\n\035com.google.clo" + + "ud.functions.v1B\030FunctionsOperationsProt" + + "oP\001ZBgoogle.golang.org/genproto/googleap" + + "is/cloud/functions/v1;functionsb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor, + new java.lang.String[] { "Target", "Type", "Request", "VersionId", "UpdateTime", "BuildId", "SourceToken", "BuildName", }); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java new file mode 100644 index 00000000..5bf34e9e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java @@ -0,0 +1,515 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v1/functions.proto + +package com.google.cloud.functions.v1; + +public final class FunctionsProto { + private FunctionsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CloudFunction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_SourceRepository_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_EventTrigger_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_FailurePolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_SecretVolume_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/functions/v1/functions.pr" + + "oto\022\031google.cloud.functions.v1\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032\036google/iam/v1" + + "/iam_policy.proto\032\032google/iam/v1/policy." + + "proto\032#google/longrunning/operations.pro" + + "to\032\036google/protobuf/duration.proto\032 goog" + + "le/protobuf/field_mask.proto\032\037google/pro" + + "tobuf/timestamp.proto\"\347\021\n\rCloudFunction\022" + + "\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\034\n\022so" + + "urce_archive_url\030\003 \001(\tH\000\022H\n\021source_repos" + + "itory\030\004 \001(\0132+.google.cloud.functions.v1." + + "SourceRepositoryH\000\022\033\n\021source_upload_url\030" + + "\020 \001(\tH\000\022@\n\rhttps_trigger\030\005 \001(\0132\'.google." + + "cloud.functions.v1.HttpsTriggerH\001\022@\n\reve" + + "nt_trigger\030\006 \001(\0132\'.google.cloud.function" + + "s.v1.EventTriggerH\001\022C\n\006status\030\007 \001(\0162..go" + + "ogle.cloud.functions.v1.CloudFunctionSta" + + "tusB\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.protobu" + + "f.Duration\022\033\n\023available_memory_mb\030\n \001(\005\022" + + "\035\n\025service_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.CloudF" + + "unction.LabelsEntry\022a\n\025environment_varia" + + "bles\030\021 \003(\0132B.google.cloud.functions.v1.C" + + "loudFunction.EnvironmentVariablesEntry\022l" + + "\n\033build_environment_variables\030\034 \003(\0132G.go" + + "ogle.cloud.functions.v1.CloudFunction.Bu" + + "ildEnvironmentVariablesEntry\022\017\n\007network\030" + + "\022 \001(\t\022\025\n\rmax_instances\030\024 \001(\005\022\025\n\rmin_inst" + + "ances\030 \001(\005\022\025\n\rvpc_connector\030\026 \001(\t\022j\n\035vp" + + "c_connector_egress_settings\030\027 \001(\0162C.goog" + + "le.cloud.functions.v1.CloudFunction.VpcC" + + "onnectorEgressSettings\022R\n\020ingress_settin" + + "gs\030\030 \001(\01628.google.cloud.functions.v1.Clo" + + "udFunction.IngressSettings\022<\n\014kms_key_na" + + "me\030\031 \001(\tB&\372A#\n!cloudkms.googleapis.com/C" + + "ryptoKey\022\031\n\021build_worker_pool\030\032 \001(\t\022\025\n\010b" + + "uild_id\030\033 \001(\tB\003\340A\003\022\027\n\nbuild_name\030! \001(\tB\003" + + "\340A\003\022M\n\034secret_environment_variables\030\035 \003(" + + "\0132\'.google.cloud.functions.v1.SecretEnvV" + + "ar\022?\n\016secret_volumes\030\036 \003(\0132\'.google.clou" + + "d.functions.v1.SecretVolume\022\031\n\014source_to" + + "ken\030\037 \001(\tB\003\340A\004\022J\n\021docker_repository\030\" \001(" + + "\tB/\372A,\n*artifactregistry.googleapis.com/" + + "Repository\022P\n\017docker_registry\030# \001(\01627.go" + + "ogle.cloud.functions.v1.CloudFunction.Do" + + "ckerRegistry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\032;\n\031EnvironmentVariab" + + "lesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\032@\n\036BuildEnvironmentVariablesEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\032VpcConnect" + + "orEgressSettings\022-\n)VPC_CONNECTOR_EGRESS" + + "_SETTINGS_UNSPECIFIED\020\000\022\027\n\023PRIVATE_RANGE" + + "S_ONLY\020\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n\017IngressSett" + + "ings\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\016DockerReg" + + "istry\022\037\n\033DOCKER_REGISTRY_UNSPECIFIED\020\000\022\026" + + "\n\022CONTAINER_REGISTRY\020\001\022\025\n\021ARTIFACT_REGIS" + + "TRY\020\002:n\352Ak\n+cloudfunctions.googleapis.co" + + "m/CloudFunction\022\n\032GenerateD" + + "ownloadUrlRequest\022\014\n\004name\030\001 \001(\t\022\022\n\nversi" + + "on_id\030\002 \001(\004\"3\n\033GenerateDownloadUrlRespon" + + "se\022\024\n\014download_url\030\001 \001(\t*\222\001\n\023CloudFuncti" + + "onStatus\022%\n!CLOUD_FUNCTION_STATUS_UNSPEC" + + "IFIED\020\000\022\n\n\006ACTIVE\020\001\022\013\n\007OFFLINE\020\002\022\026\n\022DEPL" + + "OY_IN_PROGRESS\020\003\022\026\n\022DELETE_IN_PROGRESS\020\004" + + "\022\013\n\007UNKNOWN\020\0052\227\021\n\025CloudFunctionsService\022" + + "\251\001\n\rListFunctions\022/.google.cloud.functio" + + "ns.v1.ListFunctionsRequest\0320.google.clou" + + "d.functions.v1.ListFunctionsResponse\"5\202\323" + + "\344\223\002/\022-/v1/{parent=projects/*/locations/*" + + "}/functions\022\244\001\n\013GetFunction\022-.google.clo" + + "ud.functions.v1.GetFunctionRequest\032(.goo" + + "gle.cloud.functions.v1.CloudFunction\"<\202\323" + + "\344\223\002/\022-/v1/{name=projects/*/locations/*/f" + + "unctions/*}\332A\004name\022\337\001\n\016CreateFunction\0220." + + "google.cloud.functions.v1.CreateFunction" + + "Request\032\035.google.longrunning.Operation\"|" + + "\202\323\344\223\002;\"//v1/{location=projects/*/locatio" + + "ns/*}/functions:\010function\332A\021location,fun" + + "ction\312A$\n\rCloudFunction\022\023OperationMetada" + + "taV1\022\335\001\n\016UpdateFunction\0220.google.cloud.f" + + "unctions.v1.UpdateFunctionRequest\032\035.goog" + + "le.longrunning.Operation\"z\202\323\344\223\002B26/v1/{f" + + "unction.name=projects/*/locations/*/func" + + "tions/*}:\010function\332A\010function\312A$\n\rCloudF" + + "unction\022\023OperationMetadataV1\022\316\001\n\016DeleteF" + + "unction\0220.google.cloud.functions.v1.Dele" + + "teFunctionRequest\032\035.google.longrunning.O" + + "peration\"k\202\323\344\223\002/*-/v1/{name=projects/*/l" + + "ocations/*/functions/*}\332A\004name\312A,\n\025googl" + + "e.protobuf.Empty\022\023OperationMetadataV1\022\272\001" + + "\n\014CallFunction\022..google.cloud.functions." + + "v1.CallFunctionRequest\032/.google.cloud.fu" + + "nctions.v1.CallFunctionResponse\"I\202\323\344\223\0027\"" + + "2/v1/{name=projects/*/locations/*/functi" + + "ons/*}:call:\001*\332A\tname,data\022\312\001\n\021GenerateU" + + "ploadUrl\0223.google.cloud.functions.v1.Gen" + + "erateUploadUrlRequest\0324.google.cloud.fun" + + "ctions.v1.GenerateUploadUrlResponse\"J\202\323\344" + + "\223\002D\"?/v1/{parent=projects/*/locations/*}" + + "/functions:generateUploadUrl:\001*\022\322\001\n\023Gene" + + "rateDownloadUrl\0225.google.cloud.functions" + + ".v1.GenerateDownloadUrlRequest\0326.google." + + "cloud.functions.v1.GenerateDownloadUrlRe" + + "sponse\"L\202\323\344\223\002F\"A/v1/{name=projects/*/loc" + + "ations/*/functions/*}:generateDownloadUr" + + "l:\001*\022\224\001\n\014SetIamPolicy\022\".google.iam.v1.Se" + + "tIamPolicyRequest\032\025.google.iam.v1.Policy" + + "\"I\202\323\344\223\002C\">/v1/{resource=projects/*/locat" + + "ions/*/functions/*}:setIamPolicy:\001*\022\221\001\n\014" + + "GetIamPolicy\022\".google.iam.v1.GetIamPolic" + + "yRequest\032\025.google.iam.v1.Policy\"F\202\323\344\223\002@\022" + + ">/v1/{resource=projects/*/locations/*/fu" + + "nctions/*}:getIamPolicy\022\272\001\n\022TestIamPermi" + + "ssions\022(.google.iam.v1.TestIamPermission" + + "sRequest\032).google.iam.v1.TestIamPermissi" + + "onsResponse\"O\202\323\344\223\002I\"D/v1/{resource=proje" + + "cts/*/locations/*/functions/*}:testIamPe" + + "rmissions:\001*\032Q\312A\035cloudfunctions.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\350\002\n\035com.google.cloud.fun" + + "ctions.v1B\016FunctionsProtoP\001ZBgoogle.gola" + + "ng.org/genproto/googleapis/cloud/functio" + + "ns/v1;functions\242\002\003GCF\352Ao\n*artifactregist" + + "ry.googleapis.com/Repository\022Aprojects/{" + + "project}/locations/{location}/repositori" + + "es/{repository}\352Ax\n!cloudkms.googleapis." + + "com/CryptoKey\022Sprojects/{project}/locati" + + "ons/{location}/keyRings/{key_ring}/crypt" + + "oKeys/{crypto_key}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_functions_v1_CloudFunction_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CloudFunction_descriptor, + new java.lang.String[] { "Name", "Description", "SourceArchiveUrl", "SourceRepository", "SourceUploadUrl", "HttpsTrigger", "EventTrigger", "Status", "EntryPoint", "Runtime", "Timeout", "AvailableMemoryMb", "ServiceAccountEmail", "UpdateTime", "VersionId", "Labels", "EnvironmentVariables", "BuildEnvironmentVariables", "Network", "MaxInstances", "MinInstances", "VpcConnector", "VpcConnectorEgressSettings", "IngressSettings", "KmsKeyName", "BuildWorkerPool", "BuildId", "BuildName", "SecretEnvironmentVariables", "SecretVolumes", "SourceToken", "DockerRepository", "DockerRegistry", "SourceCode", "Trigger", }); + internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor = + internal_static_google_cloud_functions_v1_CloudFunction_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v1_CloudFunction_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v1_CloudFunction_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_functions_v1_SourceRepository_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_SourceRepository_descriptor, + new java.lang.String[] { "Url", "DeployedUrl", }); + internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor, + new java.lang.String[] { "Url", "SecurityLevel", }); + internal_static_google_cloud_functions_v1_EventTrigger_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_EventTrigger_descriptor, + new java.lang.String[] { "EventType", "Resource", "Service", "FailurePolicy", }); + internal_static_google_cloud_functions_v1_FailurePolicy_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_FailurePolicy_descriptor, + new java.lang.String[] { "Retry", "Action", }); + internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor = + internal_static_google_cloud_functions_v1_FailurePolicy_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor, + new java.lang.String[] { "Key", "ProjectId", "Secret", "Version", }); + internal_static_google_cloud_functions_v1_SecretVolume_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_SecretVolume_descriptor, + new java.lang.String[] { "MountPath", "ProjectId", "Secret", "Versions", }); + internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor = + internal_static_google_cloud_functions_v1_SecretVolume_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor, + new java.lang.String[] { "Version", "Path", }); + internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor, + new java.lang.String[] { "Location", "Function", }); + internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor, + new java.lang.String[] { "Function", "UpdateMask", }); + internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor, + new java.lang.String[] { "Functions", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor, + new java.lang.String[] { "Name", "Data", }); + internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor, + new java.lang.String[] { "ExecutionId", "Result", "Error", }); + internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor, + new java.lang.String[] { "Parent", "KmsKeyName", }); + internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor, + new java.lang.String[] { "UploadUrl", }); + internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor, + new java.lang.String[] { "Name", "VersionId", }); + internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor, + new java.lang.String[] { "DownloadUrl", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java similarity index 69% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java index 6d2617ce..90909e8e 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java @@ -1,57 +1,40 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Request of `GenerateDownloadUrl` method.
        * 
      * * Protobuf type {@code google.cloud.functions.v1.GenerateDownloadUrlRequest} */ -public final class GenerateDownloadUrlRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateDownloadUrlRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.GenerateDownloadUrlRequest) GenerateDownloadUrlRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlRequest.newBuilder() to construct. private GenerateDownloadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateDownloadUrlRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateDownloadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateDownloadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,25 +53,24 @@ private GenerateDownloadUrlRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - versionId_ = input.readUInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + case 16: { + + versionId_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,40 +78,35 @@ private GenerateDownloadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateDownloadUrlRequest.class, - com.google.cloud.functions.v1.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v1.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v1.GenerateDownloadUrlRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
          * The name of function for which source code Google Cloud Storage signed
          * URL should be generated.
          * 
      * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -138,30 +115,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
          * The name of function for which source code Google Cloud Storage signed
          * URL should be generated.
          * 
      * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -172,15 +149,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VERSION_ID_FIELD_NUMBER = 2; private long versionId_; /** - * - * *
          * The optional version of function. If not set, default, current version
          * is used.
          * 
      * * uint64 version_id = 2; - * * @return The versionId. */ @java.lang.Override @@ -189,7 +163,6 @@ public long getVersionId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +174,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -221,7 +195,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (versionId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, versionId_); + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, versionId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,16 +206,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.GenerateDownloadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.GenerateDownloadUrlRequest other = - (com.google.cloud.functions.v1.GenerateDownloadUrlRequest) obj; + com.google.cloud.functions.v1.GenerateDownloadUrlRequest other = (com.google.cloud.functions.v1.GenerateDownloadUrlRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getVersionId() != other.getVersionId()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getVersionId() + != other.getVersionId()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -255,134 +231,125 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersionId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersionId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest 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.v1.GenerateDownloadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v1.GenerateDownloadUrlRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v1.GenerateDownloadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request of `GenerateDownloadUrl` method.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.GenerateDownloadUrlRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.GenerateDownloadUrlRequest) com.google.cloud.functions.v1.GenerateDownloadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateDownloadUrlRequest.class, - com.google.cloud.functions.v1.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v1.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v1.GenerateDownloadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.GenerateDownloadUrlRequest.newBuilder() @@ -390,15 +357,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override @@ -431,8 +399,7 @@ public com.google.cloud.functions.v1.GenerateDownloadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v1.GenerateDownloadUrlRequest buildPartial() { - com.google.cloud.functions.v1.GenerateDownloadUrlRequest result = - new com.google.cloud.functions.v1.GenerateDownloadUrlRequest(this); + com.google.cloud.functions.v1.GenerateDownloadUrlRequest result = new com.google.cloud.functions.v1.GenerateDownloadUrlRequest(this); result.name_ = name_; result.versionId_ = versionId_; onBuilt(); @@ -443,39 +410,38 @@ public com.google.cloud.functions.v1.GenerateDownloadUrlRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.GenerateDownloadUrlRequest) other); + return mergeFrom((com.google.cloud.functions.v1.GenerateDownloadUrlRequest)other); } else { super.mergeFrom(other); return this; @@ -483,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.GenerateDownloadUrlRequest other) { - if (other == com.google.cloud.functions.v1.GenerateDownloadUrlRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.GenerateDownloadUrlRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -511,8 +476,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v1.GenerateDownloadUrlRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v1.GenerateDownloadUrlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -524,21 +488,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
            * The name of function for which source code Google Cloud Storage signed
            * URL should be generated.
            * 
      * * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -547,22 +509,21 @@ public java.lang.String getName() { } } /** - * - * *
            * The name of function for which source code Google Cloud Storage signed
            * URL should be generated.
            * 
      * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -570,80 +531,70 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
            * The name of function for which source code Google Cloud Storage signed
            * URL should be generated.
            * 
      * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
            * The name of function for which source code Google Cloud Storage signed
            * URL should be generated.
            * 
      * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
            * The name of function for which source code Google Cloud Storage signed
            * URL should be generated.
            * 
      * * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private long versionId_; + private long versionId_ ; /** - * - * *
            * The optional version of function. If not set, default, current version
            * is used.
            * 
      * * uint64 version_id = 2; - * * @return The versionId. */ @java.lang.Override @@ -651,45 +602,39 @@ public long getVersionId() { return versionId_; } /** - * - * *
            * The optional version of function. If not set, default, current version
            * is used.
            * 
      * * uint64 version_id = 2; - * * @param value The versionId to set. * @return This builder for chaining. */ public Builder setVersionId(long value) { - + versionId_ = value; onChanged(); return this; } /** - * - * *
            * The optional version of function. If not set, default, current version
            * is used.
            * 
      * * uint64 version_id = 2; - * * @return This builder for chaining. */ public Builder clearVersionId() { - + versionId_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -699,12 +644,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.GenerateDownloadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.GenerateDownloadUrlRequest) private static final com.google.cloud.functions.v1.GenerateDownloadUrlRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.GenerateDownloadUrlRequest(); } @@ -713,16 +658,16 @@ public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -737,4 +682,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.functions.v1.GenerateDownloadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java index 280969eb..af9d5f5c 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java @@ -1,65 +1,41 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface GenerateDownloadUrlRequestOrBuilder - extends +public interface GenerateDownloadUrlRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.GenerateDownloadUrlRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The name of function for which source code Google Cloud Storage signed
          * URL should be generated.
          * 
      * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
          * The name of function for which source code Google Cloud Storage signed
          * URL should be generated.
          * 
      * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
          * The optional version of function. If not set, default, current version
          * is used.
          * 
      * * uint64 version_id = 2; - * * @return The versionId. */ long getVersionId(); diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java similarity index 68% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java index 81310f6d..62510b71 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java @@ -1,57 +1,40 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Response of `GenerateDownloadUrl` method.
        * 
      * * Protobuf type {@code google.cloud.functions.v1.GenerateDownloadUrlResponse} */ -public final class GenerateDownloadUrlResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateDownloadUrlResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.GenerateDownloadUrlResponse) GenerateDownloadUrlResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlResponse.newBuilder() to construct. private GenerateDownloadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateDownloadUrlResponse() { downloadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateDownloadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateDownloadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GenerateDownloadUrlResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - downloadUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + downloadUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GenerateDownloadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateDownloadUrlResponse.class, - com.google.cloud.functions.v1.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v1.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v1.GenerateDownloadUrlResponse.Builder.class); } public static final int DOWNLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object downloadUrl_; /** - * - * *
          * The generated Google Cloud Storage signed URL that should be used for
          * function source code download.
          * 
      * * string download_url = 1; - * * @return The downloadUrl. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getDownloadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; } } /** - * - * *
          * The generated Google Cloud Storage signed URL that should be used for
          * function source code download.
          * 
      * * string download_url = 1; - * * @return The bytes for downloadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getDownloadUrlBytes() { + public com.google.protobuf.ByteString + getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getDownloadUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(downloadUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, downloadUrl_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.GenerateDownloadUrlResponse)) { return super.equals(obj); } - com.google.cloud.functions.v1.GenerateDownloadUrlResponse other = - (com.google.cloud.functions.v1.GenerateDownloadUrlResponse) obj; + com.google.cloud.functions.v1.GenerateDownloadUrlResponse other = (com.google.cloud.functions.v1.GenerateDownloadUrlResponse) obj; - if (!getDownloadUrl().equals(other.getDownloadUrl())) return false; + if (!getDownloadUrl() + .equals(other.getDownloadUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse 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.v1.GenerateDownloadUrlResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v1.GenerateDownloadUrlResponse prototype) { + public static Builder newBuilder(com.google.cloud.functions.v1.GenerateDownloadUrlResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Response of `GenerateDownloadUrl` method.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.GenerateDownloadUrlResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.GenerateDownloadUrlResponse) com.google.cloud.functions.v1.GenerateDownloadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateDownloadUrlResponse.class, - com.google.cloud.functions.v1.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v1.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v1.GenerateDownloadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v1.GenerateDownloadUrlResponse.newBuilder() @@ -357,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override @@ -396,8 +364,7 @@ public com.google.cloud.functions.v1.GenerateDownloadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v1.GenerateDownloadUrlResponse buildPartial() { - com.google.cloud.functions.v1.GenerateDownloadUrlResponse result = - new com.google.cloud.functions.v1.GenerateDownloadUrlResponse(this); + com.google.cloud.functions.v1.GenerateDownloadUrlResponse result = new com.google.cloud.functions.v1.GenerateDownloadUrlResponse(this); result.downloadUrl_ = downloadUrl_; onBuilt(); return result; @@ -407,39 +374,38 @@ public com.google.cloud.functions.v1.GenerateDownloadUrlResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.GenerateDownloadUrlResponse) other); + return mergeFrom((com.google.cloud.functions.v1.GenerateDownloadUrlResponse)other); } else { super.mergeFrom(other); return this; @@ -447,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.GenerateDownloadUrlResponse other) { - if (other == com.google.cloud.functions.v1.GenerateDownloadUrlResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.GenerateDownloadUrlResponse.getDefaultInstance()) return this; if (!other.getDownloadUrl().isEmpty()) { downloadUrl_ = other.downloadUrl_; onChanged(); @@ -472,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v1.GenerateDownloadUrlResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v1.GenerateDownloadUrlResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object downloadUrl_ = ""; /** - * - * *
            * The generated Google Cloud Storage signed URL that should be used for
            * function source code download.
            * 
      * * string download_url = 1; - * * @return The downloadUrl. */ public java.lang.String getDownloadUrl() { java.lang.Object ref = downloadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; @@ -508,22 +470,21 @@ public java.lang.String getDownloadUrl() { } } /** - * - * *
            * The generated Google Cloud Storage signed URL that should be used for
            * function source code download.
            * 
      * * string download_url = 1; - * * @return The bytes for downloadUrl. */ - public com.google.protobuf.ByteString getDownloadUrlBytes() { + public com.google.protobuf.ByteString + getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -531,71 +492,64 @@ public com.google.protobuf.ByteString getDownloadUrlBytes() { } } /** - * - * *
            * The generated Google Cloud Storage signed URL that should be used for
            * function source code download.
            * 
      * * string download_url = 1; - * * @param value The downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrl(java.lang.String value) { + public Builder setDownloadUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + downloadUrl_ = value; onChanged(); return this; } /** - * - * *
            * The generated Google Cloud Storage signed URL that should be used for
            * function source code download.
            * 
      * * string download_url = 1; - * * @return This builder for chaining. */ public Builder clearDownloadUrl() { - + downloadUrl_ = getDefaultInstance().getDownloadUrl(); onChanged(); return this; } /** - * - * *
            * The generated Google Cloud Storage signed URL that should be used for
            * function source code download.
            * 
      * * string download_url = 1; - * * @param value The bytes for downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrlBytes(com.google.protobuf.ByteString value) { + public Builder setDownloadUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + downloadUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -605,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.GenerateDownloadUrlResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.GenerateDownloadUrlResponse) private static final com.google.cloud.functions.v1.GenerateDownloadUrlResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.GenerateDownloadUrlResponse(); } @@ -619,16 +573,16 @@ public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +597,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.functions.v1.GenerateDownloadUrlResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java similarity index 51% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java index 3adfa02f..8fdf0708 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java @@ -1,52 +1,31 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface GenerateDownloadUrlResponseOrBuilder - extends +public interface GenerateDownloadUrlResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.GenerateDownloadUrlResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The generated Google Cloud Storage signed URL that should be used for
          * function source code download.
          * 
      * * string download_url = 1; - * * @return The downloadUrl. */ java.lang.String getDownloadUrl(); /** - * - * *
          * The generated Google Cloud Storage signed URL that should be used for
          * function source code download.
          * 
      * * string download_url = 1; - * * @return The bytes for downloadUrl. */ - com.google.protobuf.ByteString getDownloadUrlBytes(); + com.google.protobuf.ByteString + getDownloadUrlBytes(); } diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java similarity index 76% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java index acb370b5..706d8ba7 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java @@ -1,42 +1,24 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Request of `GenerateSourceUploadUrl` method.
        * 
      * * Protobuf type {@code google.cloud.functions.v1.GenerateUploadUrlRequest} */ -public final class GenerateUploadUrlRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateUploadUrlRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.GenerateUploadUrlRequest) GenerateUploadUrlRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateUploadUrlRequest.newBuilder() to construct. private GenerateUploadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateUploadUrlRequest() { parent_ = ""; kmsKeyName_ = ""; @@ -44,15 +26,16 @@ private GenerateUploadUrlRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateUploadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateUploadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private GenerateUploadUrlRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - kmsKeyName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + kmsKeyName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,40 +80,35 @@ private GenerateUploadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateUploadUrlRequest.class, - com.google.cloud.functions.v1.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v1.GenerateUploadUrlRequest.class, com.google.cloud.functions.v1.GenerateUploadUrlRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
          * The project and location in which the Google Cloud Storage signed URL
          * should be generated, specified in the format `projects/*/locations/*`.
          * 
      * * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -141,30 +117,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
          * The project and location in which the Google Cloud Storage signed URL
          * should be generated, specified in the format `projects/*/locations/*`.
          * 
      * * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -175,8 +151,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object kmsKeyName_; /** - * - * *
          * Resource name of a KMS crypto key (managed by the user) used to
          * encrypt/decrypt function source code objects in staging Cloud Storage
      @@ -196,7 +170,6 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
      * * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyName. */ @java.lang.Override @@ -205,15 +178,14 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** - * - * *
          * Resource name of a KMS crypto key (managed by the user) used to
          * encrypt/decrypt function source code objects in staging Cloud Storage
      @@ -233,15 +205,16 @@ public java.lang.String getKmsKeyName() {
          * 
      * * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -250,7 +223,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +234,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -292,16 +265,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.GenerateUploadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.GenerateUploadUrlRequest other = - (com.google.cloud.functions.v1.GenerateUploadUrlRequest) obj; + com.google.cloud.functions.v1.GenerateUploadUrlRequest other = (com.google.cloud.functions.v1.GenerateUploadUrlRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,127 +297,117 @@ public int hashCode() { } public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GenerateUploadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GenerateUploadUrlRequest 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.v1.GenerateUploadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v1.GenerateUploadUrlRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v1.GenerateUploadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request of `GenerateSourceUploadUrl` method.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.GenerateUploadUrlRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.GenerateUploadUrlRequest) com.google.cloud.functions.v1.GenerateUploadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateUploadUrlRequest.class, - com.google.cloud.functions.v1.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v1.GenerateUploadUrlRequest.class, com.google.cloud.functions.v1.GenerateUploadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.GenerateUploadUrlRequest.newBuilder() @@ -451,15 +415,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -471,9 +436,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; } @java.lang.Override @@ -492,8 +457,7 @@ public com.google.cloud.functions.v1.GenerateUploadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v1.GenerateUploadUrlRequest buildPartial() { - com.google.cloud.functions.v1.GenerateUploadUrlRequest result = - new com.google.cloud.functions.v1.GenerateUploadUrlRequest(this); + com.google.cloud.functions.v1.GenerateUploadUrlRequest result = new com.google.cloud.functions.v1.GenerateUploadUrlRequest(this); result.parent_ = parent_; result.kmsKeyName_ = kmsKeyName_; onBuilt(); @@ -504,39 +468,38 @@ public com.google.cloud.functions.v1.GenerateUploadUrlRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.GenerateUploadUrlRequest) other); + return mergeFrom((com.google.cloud.functions.v1.GenerateUploadUrlRequest)other); } else { super.mergeFrom(other); return this; @@ -544,8 +507,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.GenerateUploadUrlRequest other) { - if (other == com.google.cloud.functions.v1.GenerateUploadUrlRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.GenerateUploadUrlRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -573,8 +535,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v1.GenerateUploadUrlRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v1.GenerateUploadUrlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -586,21 +547,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
            * The project and location in which the Google Cloud Storage signed URL
            * should be generated, specified in the format `projects/*/locations/*`.
            * 
      * * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -609,22 +568,21 @@ public java.lang.String getParent() { } } /** - * - * *
            * The project and location in which the Google Cloud Storage signed URL
            * should be generated, specified in the format `projects/*/locations/*`.
            * 
      * * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -632,64 +590,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
            * The project and location in which the Google Cloud Storage signed URL
            * should be generated, specified in the format `projects/*/locations/*`.
            * 
      * * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
            * The project and location in which the Google Cloud Storage signed URL
            * should be generated, specified in the format `projects/*/locations/*`.
            * 
      * * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
            * The project and location in which the Google Cloud Storage signed URL
            * should be generated, specified in the format `projects/*/locations/*`.
            * 
      * * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -697,8 +648,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
            * Resource name of a KMS crypto key (managed by the user) used to
            * encrypt/decrypt function source code objects in staging Cloud Storage
      @@ -718,13 +667,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
            * 
      * * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -733,8 +682,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
            * Resource name of a KMS crypto key (managed by the user) used to
            * encrypt/decrypt function source code objects in staging Cloud Storage
      @@ -754,14 +701,15 @@ public java.lang.String getKmsKeyName() {
            * 
      * * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -769,8 +717,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
            * Resource name of a KMS crypto key (managed by the user) used to
            * encrypt/decrypt function source code objects in staging Cloud Storage
      @@ -790,22 +736,20 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
            * 
      * * 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) { + public Builder setKmsKeyName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** - * - * *
            * Resource name of a KMS crypto key (managed by the user) used to
            * encrypt/decrypt function source code objects in staging Cloud Storage
      @@ -825,18 +769,15 @@ public Builder setKmsKeyName(java.lang.String value) {
            * 
      * * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** - * - * *
            * Resource name of a KMS crypto key (managed by the user) used to
            * encrypt/decrypt function source code objects in staging Cloud Storage
      @@ -856,23 +797,23 @@ public Builder clearKmsKeyName() {
            * 
      * * 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) { + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -882,12 +823,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.GenerateUploadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.GenerateUploadUrlRequest) private static final com.google.cloud.functions.v1.GenerateUploadUrlRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.GenerateUploadUrlRequest(); } @@ -896,16 +837,16 @@ public static com.google.cloud.functions.v1.GenerateUploadUrlRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateUploadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateUploadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateUploadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateUploadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -920,4 +861,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.GenerateUploadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java similarity index 79% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java index 3de6432b..1ec1384a 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface GenerateUploadUrlRequestOrBuilder - extends +public interface GenerateUploadUrlRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.GenerateUploadUrlRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The project and location in which the Google Cloud Storage signed URL
          * should be generated, specified in the format `projects/*/locations/*`.
          * 
      * * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
          * The project and location in which the Google Cloud Storage signed URL
          * should be generated, specified in the format `projects/*/locations/*`.
          * 
      * * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
          * Resource name of a KMS crypto key (managed by the user) used to
          * encrypt/decrypt function source code objects in staging Cloud Storage
      @@ -72,13 +49,10 @@ public interface GenerateUploadUrlRequestOrBuilder
          * 
      * * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
          * Resource name of a KMS crypto key (managed by the user) used to
          * encrypt/decrypt function source code objects in staging Cloud Storage
      @@ -98,8 +72,8 @@ public interface GenerateUploadUrlRequestOrBuilder
          * 
      * * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); } diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java similarity index 69% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java index cd64f9e9..0cab847a 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java @@ -1,57 +1,40 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Response of `GenerateSourceUploadUrl` method.
        * 
      * * Protobuf type {@code google.cloud.functions.v1.GenerateUploadUrlResponse} */ -public final class GenerateUploadUrlResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateUploadUrlResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.GenerateUploadUrlResponse) GenerateUploadUrlResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateUploadUrlResponse.newBuilder() to construct. private GenerateUploadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateUploadUrlResponse() { uploadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateUploadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateUploadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GenerateUploadUrlResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uploadUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uploadUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GenerateUploadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateUploadUrlResponse.class, - com.google.cloud.functions.v1.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v1.GenerateUploadUrlResponse.class, com.google.cloud.functions.v1.GenerateUploadUrlResponse.Builder.class); } public static final int UPLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object uploadUrl_; /** - * - * *
          * The generated Google Cloud Storage signed URL that should be used for a
          * function source code upload. The uploaded file should be a zip archive
      @@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
      * * string upload_url = 1; - * * @return The uploadUrl. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getUploadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; } } /** - * - * *
          * The generated Google Cloud Storage signed URL that should be used for a
          * function source code upload. The uploaded file should be a zip archive
      @@ -150,15 +126,16 @@ public java.lang.String getUploadUrl() {
          * 
      * * string upload_url = 1; - * * @return The bytes for uploadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getUploadUrlBytes() { + public com.google.protobuf.ByteString + getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getUploadUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadUrl_); } @@ -203,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.GenerateUploadUrlResponse)) { return super.equals(obj); } - com.google.cloud.functions.v1.GenerateUploadUrlResponse other = - (com.google.cloud.functions.v1.GenerateUploadUrlResponse) obj; + com.google.cloud.functions.v1.GenerateUploadUrlResponse other = (com.google.cloud.functions.v1.GenerateUploadUrlResponse) obj; - if (!getUploadUrl().equals(other.getUploadUrl())) return false; + if (!getUploadUrl() + .equals(other.getUploadUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GenerateUploadUrlResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GenerateUploadUrlResponse 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.v1.GenerateUploadUrlResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v1.GenerateUploadUrlResponse prototype) { + public static Builder newBuilder(com.google.cloud.functions.v1.GenerateUploadUrlResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Response of `GenerateSourceUploadUrl` method.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.GenerateUploadUrlResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.GenerateUploadUrlResponse) com.google.cloud.functions.v1.GenerateUploadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateUploadUrlResponse.class, - com.google.cloud.functions.v1.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v1.GenerateUploadUrlResponse.class, com.google.cloud.functions.v1.GenerateUploadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v1.GenerateUploadUrlResponse.newBuilder() @@ -359,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; } @java.lang.Override @@ -398,8 +366,7 @@ public com.google.cloud.functions.v1.GenerateUploadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v1.GenerateUploadUrlResponse buildPartial() { - com.google.cloud.functions.v1.GenerateUploadUrlResponse result = - new com.google.cloud.functions.v1.GenerateUploadUrlResponse(this); + com.google.cloud.functions.v1.GenerateUploadUrlResponse result = new com.google.cloud.functions.v1.GenerateUploadUrlResponse(this); result.uploadUrl_ = uploadUrl_; onBuilt(); return result; @@ -409,39 +376,38 @@ public com.google.cloud.functions.v1.GenerateUploadUrlResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.GenerateUploadUrlResponse) other); + return mergeFrom((com.google.cloud.functions.v1.GenerateUploadUrlResponse)other); } else { super.mergeFrom(other); return this; @@ -449,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.GenerateUploadUrlResponse other) { - if (other == com.google.cloud.functions.v1.GenerateUploadUrlResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.GenerateUploadUrlResponse.getDefaultInstance()) return this; if (!other.getUploadUrl().isEmpty()) { uploadUrl_ = other.uploadUrl_; onChanged(); @@ -474,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v1.GenerateUploadUrlResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v1.GenerateUploadUrlResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object uploadUrl_ = ""; /** - * - * *
            * The generated Google Cloud Storage signed URL that should be used for a
            * function source code upload. The uploaded file should be a zip archive
      @@ -496,13 +458,13 @@ public Builder mergeFrom(
            * 
      * * string upload_url = 1; - * * @return The uploadUrl. */ public java.lang.String getUploadUrl() { java.lang.Object ref = uploadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; @@ -511,8 +473,6 @@ public java.lang.String getUploadUrl() { } } /** - * - * *
            * The generated Google Cloud Storage signed URL that should be used for a
            * function source code upload. The uploaded file should be a zip archive
      @@ -520,14 +480,15 @@ public java.lang.String getUploadUrl() {
            * 
      * * string upload_url = 1; - * * @return The bytes for uploadUrl. */ - public com.google.protobuf.ByteString getUploadUrlBytes() { + public com.google.protobuf.ByteString + getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -535,8 +496,6 @@ public com.google.protobuf.ByteString getUploadUrlBytes() { } } /** - * - * *
            * The generated Google Cloud Storage signed URL that should be used for a
            * function source code upload. The uploaded file should be a zip archive
      @@ -544,22 +503,20 @@ public com.google.protobuf.ByteString getUploadUrlBytes() {
            * 
      * * string upload_url = 1; - * * @param value The uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrl(java.lang.String value) { + public Builder setUploadUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uploadUrl_ = value; onChanged(); return this; } /** - * - * *
            * The generated Google Cloud Storage signed URL that should be used for a
            * function source code upload. The uploaded file should be a zip archive
      @@ -567,18 +524,15 @@ public Builder setUploadUrl(java.lang.String value) {
            * 
      * * string upload_url = 1; - * * @return This builder for chaining. */ public Builder clearUploadUrl() { - + uploadUrl_ = getDefaultInstance().getUploadUrl(); onChanged(); return this; } /** - * - * *
            * The generated Google Cloud Storage signed URL that should be used for a
            * function source code upload. The uploaded file should be a zip archive
      @@ -586,23 +540,23 @@ public Builder clearUploadUrl() {
            * 
      * * string upload_url = 1; - * * @param value The bytes for uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUploadUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uploadUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -612,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.GenerateUploadUrlResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.GenerateUploadUrlResponse) private static final com.google.cloud.functions.v1.GenerateUploadUrlResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.GenerateUploadUrlResponse(); } @@ -626,16 +580,16 @@ public static com.google.cloud.functions.v1.GenerateUploadUrlResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateUploadUrlResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateUploadUrlResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateUploadUrlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateUploadUrlResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.functions.v1.GenerateUploadUrlResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java similarity index 55% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java index 221db44e..723f04fe 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface GenerateUploadUrlResponseOrBuilder - extends +public interface GenerateUploadUrlResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.GenerateUploadUrlResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The generated Google Cloud Storage signed URL that should be used for a
          * function source code upload. The uploaded file should be a zip archive
      @@ -33,13 +15,10 @@ public interface GenerateUploadUrlResponseOrBuilder
          * 
      * * string upload_url = 1; - * * @return The uploadUrl. */ java.lang.String getUploadUrl(); /** - * - * *
          * The generated Google Cloud Storage signed URL that should be used for a
          * function source code upload. The uploaded file should be a zip archive
      @@ -47,8 +26,8 @@ public interface GenerateUploadUrlResponseOrBuilder
          * 
      * * string upload_url = 1; - * * @return The bytes for uploadUrl. */ - com.google.protobuf.ByteString getUploadUrlBytes(); + com.google.protobuf.ByteString + getUploadUrlBytes(); } diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java similarity index 65% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java index bb09005c..dc8c18f0 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java @@ -1,57 +1,40 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Request for the `GetFunction` method.
        * 
      * * Protobuf type {@code google.cloud.functions.v1.GetFunctionRequest} */ -public final class GetFunctionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.GetFunctionRequest) GetFunctionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFunctionRequest.newBuilder() to construct. private GetFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetFunctionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private GetFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GetFunctionRequest.class, - com.google.cloud.functions.v1.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v1.GetFunctionRequest.class, com.google.cloud.functions.v1.GetFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
          * Required. The name of the function which details should be obtained.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
          * Required. The name of the function which details should be obtained.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.GetFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.GetFunctionRequest other = - (com.google.cloud.functions.v1.GetFunctionRequest) obj; + com.google.cloud.functions.v1.GetFunctionRequest other = (com.google.cloud.functions.v1.GetFunctionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GetFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GetFunctionRequest 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.v1.GetFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.GetFunctionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.GetFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GetFunctionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.GetFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request for the `GetFunction` method.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.GetFunctionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.GetFunctionRequest) com.google.cloud.functions.v1.GetFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GetFunctionRequest.class, - com.google.cloud.functions.v1.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v1.GetFunctionRequest.class, com.google.cloud.functions.v1.GetFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.GetFunctionRequest.newBuilder() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.cloud.functions.v1.GetFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v1.GetFunctionRequest buildPartial() { - com.google.cloud.functions.v1.GetFunctionRequest result = - new com.google.cloud.functions.v1.GetFunctionRequest(this); + com.google.cloud.functions.v1.GetFunctionRequest result = new com.google.cloud.functions.v1.GetFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.cloud.functions.v1.GetFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.GetFunctionRequest) other); + return mergeFrom((com.google.cloud.functions.v1.GetFunctionRequest)other); } else { super.mergeFrom(other); return this; @@ -448,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.GetFunctionRequest other) { - if (other == com.google.cloud.functions.v1.GetFunctionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.GetFunctionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -485,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
            * Required. The name of the function which details should be obtained.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -509,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
            * Required. The name of the function which details should be obtained.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -533,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
            * Required. The name of the function which details should be obtained.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
            * Required. The name of the function which details should be obtained.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
            * Required. The name of the function which details should be obtained.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -610,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.GetFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.GetFunctionRequest) private static final com.google.cloud.functions.v1.GetFunctionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.GetFunctionRequest(); } @@ -624,16 +566,16 @@ public static com.google.cloud.functions.v1.GetFunctionRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.GetFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java new file mode 100644 index 00000000..42050ee8 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v1/functions.proto + +package com.google.cloud.functions.v1; + +public interface GetFunctionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.GetFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Required. The name of the function which details should be obtained.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
      +   * Required. The name of the function which details should be obtained.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java similarity index 70% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java index 523b34a7..5f3ef22c 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java @@ -1,42 +1,24 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Describes HttpsTrigger, could be used to connect web hooks to function.
        * 
      * * Protobuf type {@code google.cloud.functions.v1.HttpsTrigger} */ -public final class HttpsTrigger extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HttpsTrigger extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.HttpsTrigger) HttpsTriggerOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HttpsTrigger.newBuilder() to construct. private HttpsTrigger(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HttpsTrigger() { url_ = ""; securityLevel_ = 0; @@ -44,15 +26,16 @@ private HttpsTrigger() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HttpsTrigger(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HttpsTrigger( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private HttpsTrigger( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + url_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - securityLevel_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + securityLevel_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,31 +80,27 @@ private HttpsTrigger( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.HttpsTrigger.class, - com.google.cloud.functions.v1.HttpsTrigger.Builder.class); + com.google.cloud.functions.v1.HttpsTrigger.class, com.google.cloud.functions.v1.HttpsTrigger.Builder.class); } /** - * - * *
          * Available security level settings.
          * This controls the methods to enforce security (HTTPS) on a URL.
      @@ -132,10 +109,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          *
          * Protobuf enum {@code google.cloud.functions.v1.HttpsTrigger.SecurityLevel}
          */
      -  public enum SecurityLevel implements com.google.protobuf.ProtocolMessageEnum {
      +  public enum SecurityLevel
      +      implements com.google.protobuf.ProtocolMessageEnum {
           /**
      -     *
      -     *
            * 
            * Unspecified.
            * 
      @@ -144,8 +120,6 @@ public enum SecurityLevel implements com.google.protobuf.ProtocolMessageEnum { */ 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
      @@ -156,8 +130,6 @@ public enum SecurityLevel implements com.google.protobuf.ProtocolMessageEnum {
            */
           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
      @@ -171,8 +143,6 @@ public enum SecurityLevel implements com.google.protobuf.ProtocolMessageEnum {
           ;
       
           /**
      -     *
      -     *
            * 
            * Unspecified.
            * 
      @@ -181,8 +151,6 @@ public enum SecurityLevel implements com.google.protobuf.ProtocolMessageEnum { */ 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
      @@ -193,8 +161,6 @@ public enum SecurityLevel implements com.google.protobuf.ProtocolMessageEnum {
            */
           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
      @@ -205,6 +171,7 @@ public enum SecurityLevel implements com.google.protobuf.ProtocolMessageEnum {
            */
           public static final int SECURE_OPTIONAL_VALUE = 2;
       
      +
           public final int getNumber() {
             if (this == UNRECOGNIZED) {
               throw new java.lang.IllegalArgumentException(
      @@ -229,49 +196,49 @@ public static SecurityLevel valueOf(int 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;
      +        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() {
      +    public static com.google.protobuf.Internal.EnumLiteMap
      +        internalGetValueMap() {
             return internalValueMap;
           }
      +    private static final com.google.protobuf.Internal.EnumLiteMap<
      +        SecurityLevel> internalValueMap =
      +          new com.google.protobuf.Internal.EnumLiteMap() {
      +            public SecurityLevel findValueByNumber(int number) {
      +              return SecurityLevel.forNumber(number);
      +            }
      +          };
       
      -    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() {
      +    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() {
      +    public final com.google.protobuf.Descriptors.EnumDescriptor
      +        getDescriptorForType() {
             return getDescriptor();
           }
      -
      -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      +    public static final com.google.protobuf.Descriptors.EnumDescriptor
      +        getDescriptor() {
             return com.google.cloud.functions.v1.HttpsTrigger.getDescriptor().getEnumTypes().get(0);
           }
       
           private static final SecurityLevel[] VALUES = values();
       
      -    public static SecurityLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      +    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.");
      +        throw new java.lang.IllegalArgumentException(
      +          "EnumValueDescriptor is not for this type.");
             }
             if (desc.getIndex() == -1) {
               return UNRECOGNIZED;
      @@ -291,14 +258,11 @@ private SecurityLevel(int value) {
         public static final int URL_FIELD_NUMBER = 1;
         private volatile java.lang.Object url_;
         /**
      -   *
      -   *
          * 
          * Output only. The deployed url for the function.
          * 
      * * string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The url. */ @java.lang.Override @@ -307,29 +271,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -340,43 +304,31 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int SECURITY_LEVEL_FIELD_NUMBER = 2; private int securityLevel_; /** - * - * *
          * The security level for the function.
          * 
      * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; - * * @return The enum numeric value on the wire for securityLevel. */ - @java.lang.Override - public int getSecurityLevelValue() { + @java.lang.Override public int getSecurityLevelValue() { return securityLevel_; } /** - * - * *
          * The security level for the function.
          * 
      * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; - * * @return The securityLevel. */ - @java.lang.Override - public com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel getSecurityLevel() { + @java.lang.Override public com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel getSecurityLevel() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel result = - com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.valueOf(securityLevel_); - return result == null - ? com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.UNRECOGNIZED - : result; + com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel result = com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.valueOf(securityLevel_); + return result == null ? com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,13 +340,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } - if (securityLevel_ - != com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.SECURITY_LEVEL_UNSPECIFIED - .getNumber()) { + if (securityLevel_ != com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.SECURITY_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(2, securityLevel_); } unknownFields.writeTo(output); @@ -409,10 +360,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } - if (securityLevel_ - != com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.SECURITY_LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, securityLevel_); + if (securityLevel_ != com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.SECURITY_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, securityLevel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -422,15 +372,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.HttpsTrigger)) { return super.equals(obj); } - com.google.cloud.functions.v1.HttpsTrigger other = - (com.google.cloud.functions.v1.HttpsTrigger) obj; + com.google.cloud.functions.v1.HttpsTrigger other = (com.google.cloud.functions.v1.HttpsTrigger) obj; - if (!getUrl().equals(other.getUrl())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; if (securityLevel_ != other.securityLevel_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -452,127 +402,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.HttpsTrigger parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.HttpsTrigger parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.HttpsTrigger parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.HttpsTrigger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.HttpsTrigger 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.v1.HttpsTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.HttpsTrigger parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.HttpsTrigger parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.HttpsTrigger parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.HttpsTrigger parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.HttpsTrigger parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.HttpsTrigger parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.HttpsTrigger parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.HttpsTrigger parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.HttpsTrigger prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Describes HttpsTrigger, could be used to connect web hooks to function.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.HttpsTrigger} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.HttpsTrigger) com.google.cloud.functions.v1.HttpsTriggerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.HttpsTrigger.class, - com.google.cloud.functions.v1.HttpsTrigger.Builder.class); + com.google.cloud.functions.v1.HttpsTrigger.class, com.google.cloud.functions.v1.HttpsTrigger.Builder.class); } // Construct using com.google.cloud.functions.v1.HttpsTrigger.newBuilder() @@ -580,15 +521,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -600,9 +542,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; } @java.lang.Override @@ -621,8 +563,7 @@ public com.google.cloud.functions.v1.HttpsTrigger build() { @java.lang.Override public com.google.cloud.functions.v1.HttpsTrigger buildPartial() { - com.google.cloud.functions.v1.HttpsTrigger result = - new com.google.cloud.functions.v1.HttpsTrigger(this); + com.google.cloud.functions.v1.HttpsTrigger result = new com.google.cloud.functions.v1.HttpsTrigger(this); result.url_ = url_; result.securityLevel_ = securityLevel_; onBuilt(); @@ -633,39 +574,38 @@ public com.google.cloud.functions.v1.HttpsTrigger buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.HttpsTrigger) other); + return mergeFrom((com.google.cloud.functions.v1.HttpsTrigger)other); } else { super.mergeFrom(other); return this; @@ -712,20 +652,18 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** - * - * *
            * Output only. The deployed url for the function.
            * 
      * * string url = 1 [(.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -734,21 +672,20 @@ public java.lang.String getUrl() { } } /** - * - * *
            * Output only. The deployed url for the function.
            * 
      * * string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -756,61 +693,54 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
            * Output only. The deployed url for the function.
            * 
      * * string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
            * Output only. The deployed url for the function.
            * 
      * * string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
            * Output only. The deployed url for the function.
            * 
      * * string url = 1 [(.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) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; @@ -818,100 +748,80 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { private int securityLevel_ = 0; /** - * - * *
            * The security level for the function.
            * 
      * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; - * * @return The enum numeric value on the wire for securityLevel. */ - @java.lang.Override - public int getSecurityLevelValue() { + @java.lang.Override public int getSecurityLevelValue() { return securityLevel_; } /** - * - * *
            * The security level for the function.
            * 
      * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; - * * @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; onChanged(); return this; } /** - * - * *
            * The security level for the function.
            * 
      * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; - * * @return The securityLevel. */ @java.lang.Override public com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel getSecurityLevel() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel result = - com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.valueOf(securityLevel_); - return result == null - ? com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.UNRECOGNIZED - : result; + com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel result = com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.valueOf(securityLevel_); + return result == null ? com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.UNRECOGNIZED : result; } /** - * - * *
            * The security level for the function.
            * 
      * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; - * * @param value The securityLevel to set. * @return This builder for chaining. */ - public Builder setSecurityLevel( - com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel value) { + public Builder setSecurityLevel(com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel value) { if (value == null) { throw new NullPointerException(); } - + securityLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
            * The security level for the function.
            * 
      * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; - * * @return This builder for chaining. */ public Builder clearSecurityLevel() { - + securityLevel_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -921,12 +831,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.HttpsTrigger) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.HttpsTrigger) private static final com.google.cloud.functions.v1.HttpsTrigger DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.HttpsTrigger(); } @@ -935,16 +845,16 @@ public static com.google.cloud.functions.v1.HttpsTrigger getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpsTrigger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpsTrigger(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpsTrigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpsTrigger(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -959,4 +869,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.HttpsTrigger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java similarity index 62% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java index 6b44c857..d2e59b17 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java @@ -1,74 +1,47 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface HttpsTriggerOrBuilder - extends +public interface HttpsTriggerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.HttpsTrigger) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Output only. The deployed url for the function.
          * 
      * * string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
          * Output only. The deployed url for the function.
          * 
      * * string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
          * The security level for the function.
          * 
      * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; - * * @return The enum numeric value on the wire for securityLevel. */ int getSecurityLevelValue(); /** - * - * *
          * The security level for the function.
          * 
      * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; - * * @return The securityLevel. */ com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel getSecurityLevel(); diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java similarity index 74% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java index 34ca7d20..1ee9c136 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Request for the `ListFunctions` method.
        * 
      * * Protobuf type {@code google.cloud.functions.v1.ListFunctionsRequest} */ -public final class ListFunctionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFunctionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.ListFunctionsRequest) ListFunctionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFunctionsRequest.newBuilder() to construct. private ListFunctionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFunctionsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListFunctionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFunctionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFunctionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListFunctionsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,33 +85,29 @@ private ListFunctionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.ListFunctionsRequest.class, - com.google.cloud.functions.v1.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v1.ListFunctionsRequest.class, com.google.cloud.functions.v1.ListFunctionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
          * The project and location from which the function should be listed,
          * specified in the format `projects/*/locations/*`
      @@ -141,7 +118,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
      * * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return The parent. */ @java.lang.Override @@ -150,15 +126,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
          * The project and location from which the function should be listed,
          * specified in the format `projects/*/locations/*`
      @@ -169,15 +144,16 @@ public java.lang.String getParent() {
          * 
      * * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,14 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
          * Maximum number of functions to return per call.
          * 
      * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -206,8 +179,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
          * The value returned by the last
          * `ListFunctionsResponse`; indicates that
      @@ -216,7 +187,6 @@ public int getPageSize() {
          * 
      * * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -225,15 +195,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
          * The value returned by the last
          * `ListFunctionsResponse`; indicates that
      @@ -242,15 +211,16 @@ public java.lang.String getPageToken() {
          * 
      * * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -259,7 +229,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,7 +240,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -294,7 +264,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -307,17 +278,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.ListFunctionsRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.ListFunctionsRequest other = - (com.google.cloud.functions.v1.ListFunctionsRequest) obj; + com.google.cloud.functions.v1.ListFunctionsRequest other = (com.google.cloud.functions.v1.ListFunctionsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -341,126 +314,117 @@ public int hashCode() { } public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListFunctionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.ListFunctionsRequest 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.v1.ListFunctionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.ListFunctionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.ListFunctionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.ListFunctionsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.ListFunctionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request for the `ListFunctions` method.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.ListFunctionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.ListFunctionsRequest) com.google.cloud.functions.v1.ListFunctionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.ListFunctionsRequest.class, - com.google.cloud.functions.v1.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v1.ListFunctionsRequest.class, com.google.cloud.functions.v1.ListFunctionsRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.ListFunctionsRequest.newBuilder() @@ -468,15 +432,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +455,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; } @java.lang.Override @@ -511,8 +476,7 @@ public com.google.cloud.functions.v1.ListFunctionsRequest build() { @java.lang.Override public com.google.cloud.functions.v1.ListFunctionsRequest buildPartial() { - com.google.cloud.functions.v1.ListFunctionsRequest result = - new com.google.cloud.functions.v1.ListFunctionsRequest(this); + com.google.cloud.functions.v1.ListFunctionsRequest result = new com.google.cloud.functions.v1.ListFunctionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -524,39 +488,38 @@ public com.google.cloud.functions.v1.ListFunctionsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.ListFunctionsRequest) other); + return mergeFrom((com.google.cloud.functions.v1.ListFunctionsRequest)other); } else { super.mergeFrom(other); return this; @@ -564,8 +527,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.ListFunctionsRequest other) { - if (other == com.google.cloud.functions.v1.ListFunctionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.ListFunctionsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -596,8 +558,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v1.ListFunctionsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v1.ListFunctionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -609,8 +570,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
            * The project and location from which the function should be listed,
            * specified in the format `projects/*/locations/*`
      @@ -621,13 +580,13 @@ public Builder mergeFrom(
            * 
      * * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -636,8 +595,6 @@ public java.lang.String getParent() { } } /** - * - * *
            * The project and location from which the function should be listed,
            * specified in the format `projects/*/locations/*`
      @@ -648,14 +605,15 @@ public java.lang.String getParent() {
            * 
      * * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -663,8 +621,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
            * The project and location from which the function should be listed,
            * specified in the format `projects/*/locations/*`
      @@ -675,22 +631,20 @@ public com.google.protobuf.ByteString getParentBytes() {
            * 
      * * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
            * The project and location from which the function should be listed,
            * specified in the format `projects/*/locations/*`
      @@ -701,18 +655,15 @@ public Builder setParent(java.lang.String value) {
            * 
      * * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
            * The project and location from which the function should be listed,
            * specified in the format `projects/*/locations/*`
      @@ -723,31 +674,28 @@ public Builder clearParent() {
            * 
      * * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
            * Maximum number of functions to return per call.
            * 
      * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -755,36 +703,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
            * Maximum number of functions to return per call.
            * 
      * * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
            * Maximum number of functions to return per call.
            * 
      * * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -792,8 +734,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
            * The value returned by the last
            * `ListFunctionsResponse`; indicates that
      @@ -802,13 +742,13 @@ public Builder clearPageSize() {
            * 
      * * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -817,8 +757,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
            * The value returned by the last
            * `ListFunctionsResponse`; indicates that
      @@ -827,14 +765,15 @@ public java.lang.String getPageToken() {
            * 
      * * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -842,8 +781,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
            * The value returned by the last
            * `ListFunctionsResponse`; indicates that
      @@ -852,22 +789,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
            * 
      * * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
            * The value returned by the last
            * `ListFunctionsResponse`; indicates that
      @@ -876,18 +811,15 @@ public Builder setPageToken(java.lang.String value) {
            * 
      * * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
            * The value returned by the last
            * `ListFunctionsResponse`; indicates that
      @@ -896,23 +828,23 @@ public Builder clearPageToken() {
            * 
      * * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -922,12 +854,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.ListFunctionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.ListFunctionsRequest) private static final com.google.cloud.functions.v1.ListFunctionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.ListFunctionsRequest(); } @@ -936,16 +868,16 @@ public static com.google.cloud.functions.v1.ListFunctionsRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -960,4 +892,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.ListFunctionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java index b1f834f8..7a3e7009 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface ListFunctionsRequestOrBuilder - extends +public interface ListFunctionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.ListFunctionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The project and location from which the function should be listed,
          * specified in the format `projects/*/locations/*`
      @@ -36,13 +18,10 @@ public interface ListFunctionsRequestOrBuilder
          * 
      * * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
          * The project and location from which the function should be listed,
          * specified in the format `projects/*/locations/*`
      @@ -53,27 +32,22 @@ public interface ListFunctionsRequestOrBuilder
          * 
      * * string parent = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
          * Maximum number of functions to return per call.
          * 
      * * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
          * The value returned by the last
          * `ListFunctionsResponse`; indicates that
      @@ -82,13 +56,10 @@ public interface ListFunctionsRequestOrBuilder
          * 
      * * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
          * The value returned by the last
          * `ListFunctionsResponse`; indicates that
      @@ -97,8 +68,8 @@ public interface ListFunctionsRequestOrBuilder
          * 
      * * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java similarity index 75% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java index 47650bc0..91a1d1a5 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Response for the `ListFunctions` method.
        * 
      * * Protobuf type {@code google.cloud.functions.v1.ListFunctionsResponse} */ -public final class ListFunctionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFunctionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.ListFunctionsResponse) ListFunctionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFunctionsResponse.newBuilder() to construct. private ListFunctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFunctionsResponse() { functions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListFunctionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFunctionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFunctionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListFunctionsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - functions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - functions_.add( - input.readMessage( - com.google.cloud.functions.v1.CloudFunction.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + functions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + functions_.add( + input.readMessage(com.google.cloud.functions.v1.CloudFunction.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListFunctionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { functions_ = java.util.Collections.unmodifiableList(functions_); @@ -127,27 +107,22 @@ private ListFunctionsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.ListFunctionsResponse.class, - com.google.cloud.functions.v1.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v1.ListFunctionsResponse.class, com.google.cloud.functions.v1.ListFunctionsResponse.Builder.class); } public static final int FUNCTIONS_FIELD_NUMBER = 1; private java.util.List functions_; /** - * - * *
          * The functions that match the request.
          * 
      @@ -159,8 +134,6 @@ public java.util.List getFunctionsL return functions_; } /** - * - * *
          * The functions that match the request.
          * 
      @@ -168,13 +141,11 @@ public java.util.List getFunctionsL * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFunctionsOrBuilderList() { return functions_; } /** - * - * *
          * The functions that match the request.
          * 
      @@ -186,8 +157,6 @@ public int getFunctionsCount() { return functions_.size(); } /** - * - * *
          * The functions that match the request.
          * 
      @@ -199,8 +168,6 @@ public com.google.cloud.functions.v1.CloudFunction getFunctions(int index) { return functions_.get(index); } /** - * - * *
          * The functions that match the request.
          * 
      @@ -208,15 +175,14 @@ public com.google.cloud.functions.v1.CloudFunction getFunctions(int index) { * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ @java.lang.Override - public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder(int index) { + public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder( + int index) { return functions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
          * If not empty, indicates that there may be more functions that match
          * the request; this value should be passed in a new
      @@ -225,7 +191,6 @@ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilde
          * 
      * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -234,15 +199,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
          * If not empty, indicates that there may be more functions that match
          * the request; this value should be passed in a new
      @@ -251,15 +215,16 @@ public java.lang.String getNextPageToken() {
          * 
      * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -270,45 +235,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
          * Locations that could not be reached. The response does not include any
          * functions from these locations.
          * 
      * * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
          * Locations that could not be reached. The response does not include any
          * functions from these locations.
          * 
      * * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
          * Locations that could not be reached. The response does not include any
          * functions from these locations.
          * 
      * * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -316,24 +273,21 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
          * Locations that could not be reached. The response does not include any
          * functions from these locations.
          * 
      * * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -345,7 +299,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < functions_.size(); i++) { output.writeMessage(1, functions_.get(i)); } @@ -365,7 +320,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < functions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, functions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, functions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -386,17 +342,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.ListFunctionsResponse)) { return super.equals(obj); } - com.google.cloud.functions.v1.ListFunctionsResponse other = - (com.google.cloud.functions.v1.ListFunctionsResponse) obj; + com.google.cloud.functions.v1.ListFunctionsResponse other = (com.google.cloud.functions.v1.ListFunctionsResponse) obj; - if (!getFunctionsList().equals(other.getFunctionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getFunctionsList() + .equals(other.getFunctionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -424,126 +382,117 @@ public int hashCode() { } public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListFunctionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.ListFunctionsResponse 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.v1.ListFunctionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.ListFunctionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.ListFunctionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.ListFunctionsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.ListFunctionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Response for the `ListFunctions` method.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.ListFunctionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.ListFunctionsResponse) com.google.cloud.functions.v1.ListFunctionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.ListFunctionsResponse.class, - com.google.cloud.functions.v1.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v1.ListFunctionsResponse.class, com.google.cloud.functions.v1.ListFunctionsResponse.Builder.class); } // Construct using com.google.cloud.functions.v1.ListFunctionsResponse.newBuilder() @@ -551,17 +500,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFunctionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -579,9 +528,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; } @java.lang.Override @@ -600,8 +549,7 @@ public com.google.cloud.functions.v1.ListFunctionsResponse build() { @java.lang.Override public com.google.cloud.functions.v1.ListFunctionsResponse buildPartial() { - com.google.cloud.functions.v1.ListFunctionsResponse result = - new com.google.cloud.functions.v1.ListFunctionsResponse(this); + com.google.cloud.functions.v1.ListFunctionsResponse result = new com.google.cloud.functions.v1.ListFunctionsResponse(this); int from_bitField0_ = bitField0_; if (functionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -626,39 +574,38 @@ public com.google.cloud.functions.v1.ListFunctionsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListFunctionsResponse) { - return mergeFrom((com.google.cloud.functions.v1.ListFunctionsResponse) other); + return mergeFrom((com.google.cloud.functions.v1.ListFunctionsResponse)other); } else { super.mergeFrom(other); return this; @@ -666,8 +613,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.ListFunctionsResponse other) { - if (other == com.google.cloud.functions.v1.ListFunctionsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.ListFunctionsResponse.getDefaultInstance()) return this; if (functionsBuilder_ == null) { if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { @@ -686,10 +632,9 @@ public Builder mergeFrom(com.google.cloud.functions.v1.ListFunctionsResponse oth functionsBuilder_ = null; functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000001); - functionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFunctionsFieldBuilder() - : null; + functionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFunctionsFieldBuilder() : null; } else { functionsBuilder_.addAllMessages(other.functions_); } @@ -728,8 +673,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v1.ListFunctionsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v1.ListFunctionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -738,29 +682,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List functions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFunctionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - functions_ = - new java.util.ArrayList(functions_); + functions_ = new java.util.ArrayList(functions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, - com.google.cloud.functions.v1.CloudFunction.Builder, - com.google.cloud.functions.v1.CloudFunctionOrBuilder> - functionsBuilder_; + com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder> functionsBuilder_; /** - * - * *
            * The functions that match the request.
            * 
      @@ -775,8 +711,6 @@ public java.util.List getFunctionsL } } /** - * - * *
            * The functions that match the request.
            * 
      @@ -791,8 +725,6 @@ public int getFunctionsCount() { } } /** - * - * *
            * The functions that match the request.
            * 
      @@ -807,15 +739,14 @@ public com.google.cloud.functions.v1.CloudFunction getFunctions(int index) { } } /** - * - * *
            * The functions that match the request.
            * 
      * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public Builder setFunctions(int index, com.google.cloud.functions.v1.CloudFunction value) { + public Builder setFunctions( + int index, com.google.cloud.functions.v1.CloudFunction value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -829,8 +760,6 @@ public Builder setFunctions(int index, com.google.cloud.functions.v1.CloudFuncti return this; } /** - * - * *
            * The functions that match the request.
            * 
      @@ -849,8 +778,6 @@ public Builder setFunctions( return this; } /** - * - * *
            * The functions that match the request.
            * 
      @@ -871,15 +798,14 @@ public Builder addFunctions(com.google.cloud.functions.v1.CloudFunction value) { return this; } /** - * - * *
            * The functions that match the request.
            * 
      * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public Builder addFunctions(int index, com.google.cloud.functions.v1.CloudFunction value) { + public Builder addFunctions( + int index, com.google.cloud.functions.v1.CloudFunction value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -893,8 +819,6 @@ public Builder addFunctions(int index, com.google.cloud.functions.v1.CloudFuncti return this; } /** - * - * *
            * The functions that match the request.
            * 
      @@ -913,8 +837,6 @@ public Builder addFunctions( return this; } /** - * - * *
            * The functions that match the request.
            * 
      @@ -933,8 +855,6 @@ public Builder addFunctions( return this; } /** - * - * *
            * The functions that match the request.
            * 
      @@ -945,7 +865,8 @@ public Builder addAllFunctions( java.lang.Iterable values) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, functions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, functions_); onChanged(); } else { functionsBuilder_.addAllMessages(values); @@ -953,8 +874,6 @@ public Builder addAllFunctions( return this; } /** - * - * *
            * The functions that match the request.
            * 
      @@ -972,8 +891,6 @@ public Builder clearFunctions() { return this; } /** - * - * *
            * The functions that match the request.
            * 
      @@ -991,44 +908,39 @@ public Builder removeFunctions(int index) { return this; } /** - * - * *
            * The functions that match the request.
            * 
      * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public com.google.cloud.functions.v1.CloudFunction.Builder getFunctionsBuilder(int index) { + public com.google.cloud.functions.v1.CloudFunction.Builder getFunctionsBuilder( + int index) { return getFunctionsFieldBuilder().getBuilder(index); } /** - * - * *
            * The functions that match the request.
            * 
      * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder(int index) { + public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder( + int index) { if (functionsBuilder_ == null) { - return functions_.get(index); - } else { + return functions_.get(index); } else { return functionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * The functions that match the request.
            * 
      * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public java.util.List - getFunctionsOrBuilderList() { + public java.util.List + getFunctionsOrBuilderList() { if (functionsBuilder_ != null) { return functionsBuilder_.getMessageOrBuilderList(); } else { @@ -1036,8 +948,6 @@ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilde } } /** - * - * *
            * The functions that match the request.
            * 
      @@ -1045,48 +955,42 @@ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilde * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ public com.google.cloud.functions.v1.CloudFunction.Builder addFunctionsBuilder() { - return getFunctionsFieldBuilder() - .addBuilder(com.google.cloud.functions.v1.CloudFunction.getDefaultInstance()); + return getFunctionsFieldBuilder().addBuilder( + com.google.cloud.functions.v1.CloudFunction.getDefaultInstance()); } /** - * - * *
            * The functions that match the request.
            * 
      * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public com.google.cloud.functions.v1.CloudFunction.Builder addFunctionsBuilder(int index) { - return getFunctionsFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v1.CloudFunction.getDefaultInstance()); + public com.google.cloud.functions.v1.CloudFunction.Builder addFunctionsBuilder( + int index) { + return getFunctionsFieldBuilder().addBuilder( + index, com.google.cloud.functions.v1.CloudFunction.getDefaultInstance()); } /** - * - * *
            * The functions that match the request.
            * 
      * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public java.util.List - getFunctionsBuilderList() { + public java.util.List + getFunctionsBuilderList() { return getFunctionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, - com.google.cloud.functions.v1.CloudFunction.Builder, - com.google.cloud.functions.v1.CloudFunctionOrBuilder> + com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder> getFunctionsFieldBuilder() { if (functionsBuilder_ == null) { - functionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, - com.google.cloud.functions.v1.CloudFunction.Builder, - com.google.cloud.functions.v1.CloudFunctionOrBuilder>( - functions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + functionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder>( + functions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); functions_ = null; } return functionsBuilder_; @@ -1094,8 +998,6 @@ public com.google.cloud.functions.v1.CloudFunction.Builder addFunctionsBuilder(i private java.lang.Object nextPageToken_ = ""; /** - * - * *
            * If not empty, indicates that there may be more functions that match
            * the request; this value should be passed in a new
      @@ -1104,13 +1006,13 @@ public com.google.cloud.functions.v1.CloudFunction.Builder addFunctionsBuilder(i
            * 
      * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1119,8 +1021,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
            * If not empty, indicates that there may be more functions that match
            * the request; this value should be passed in a new
      @@ -1129,14 +1029,15 @@ public java.lang.String getNextPageToken() {
            * 
      * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1144,8 +1045,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
            * If not empty, indicates that there may be more functions that match
            * the request; this value should be passed in a new
      @@ -1154,22 +1053,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
            * 
      * * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
            * If not empty, indicates that there may be more functions that match
            * the request; this value should be passed in a new
      @@ -1178,18 +1075,15 @@ public Builder setNextPageToken(java.lang.String value) {
            * 
      * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
            * If not empty, indicates that there may be more functions that match
            * the request; this value should be passed in a new
      @@ -1198,70 +1092,60 @@ public Builder clearNextPageToken() {
            * 
      * * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
            * Locations that could not be reached. The response does not include any
            * functions from these locations.
            * 
      * * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
            * Locations that could not be reached. The response does not include any
            * functions from these locations.
            * 
      * * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
            * Locations that could not be reached. The response does not include any
            * functions from these locations.
            * 
      * * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1269,95 +1153,85 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
            * Locations that could not be reached. The response does not include any
            * functions from these locations.
            * 
      * * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
            * Locations that could not be reached. The response does not include any
            * functions from these locations.
            * 
      * * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
            * Locations that could not be reached. The response does not include any
            * functions from these locations.
            * 
      * * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
            * Locations that could not be reached. The response does not include any
            * functions from these locations.
            * 
      * * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
            * Locations that could not be reached. The response does not include any
            * functions from these locations.
            * 
      * * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1367,31 +1241,29 @@ public Builder clearUnreachable() { return this; } /** - * - * *
            * Locations that could not be reached. The response does not include any
            * functions from these locations.
            * 
      * * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1401,12 +1273,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.ListFunctionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.ListFunctionsResponse) private static final com.google.cloud.functions.v1.ListFunctionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.ListFunctionsResponse(); } @@ -1415,16 +1287,16 @@ public static com.google.cloud.functions.v1.ListFunctionsResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1439,4 +1311,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.ListFunctionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java similarity index 75% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java index 1557cf8c..3b6ce8ff 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface ListFunctionsResponseOrBuilder - extends +public interface ListFunctionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.ListFunctionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The functions that match the request.
          * 
      * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - java.util.List getFunctionsList(); + java.util.List + getFunctionsList(); /** - * - * *
          * The functions that match the request.
          * 
      @@ -44,8 +25,6 @@ public interface ListFunctionsResponseOrBuilder */ com.google.cloud.functions.v1.CloudFunction getFunctions(int index); /** - * - * *
          * The functions that match the request.
          * 
      @@ -54,30 +33,25 @@ public interface ListFunctionsResponseOrBuilder */ int getFunctionsCount(); /** - * - * *
          * The functions that match the request.
          * 
      * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - java.util.List + java.util.List getFunctionsOrBuilderList(); /** - * - * *
          * The functions that match the request.
          * 
      * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder(int index); + com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder( + int index); /** - * - * *
          * If not empty, indicates that there may be more functions that match
          * the request; this value should be passed in a new
      @@ -86,13 +60,10 @@ public interface ListFunctionsResponseOrBuilder
          * 
      * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
          * If not empty, indicates that there may be more functions that match
          * the request; this value should be passed in a new
      @@ -101,63 +72,53 @@ public interface ListFunctionsResponseOrBuilder
          * 
      * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
          * Locations that could not be reached. The response does not include any
          * functions from these locations.
          * 
      * * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
          * Locations that could not be reached. The response does not include any
          * functions from these locations.
          * 
      * * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
          * Locations that could not be reached. The response does not include any
          * functions from these locations.
          * 
      * * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
          * Locations that could not be reached. The response does not include any
          * functions from these locations.
          * 
      * * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/LocationName.java similarity index 100% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/LocationName.java diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java similarity index 74% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java index 834c9473..47eb9943 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java @@ -1,42 +1,24 @@ -/* - * 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/v1/operations.proto package com.google.cloud.functions.v1; /** - * - * *
        * Metadata describing an [Operation][google.longrunning.Operation]
        * 
      * * Protobuf type {@code google.cloud.functions.v1.OperationMetadataV1} */ -public final class OperationMetadataV1 extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadataV1 extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.OperationMetadataV1) OperationMetadataV1OrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadataV1.newBuilder() to construct. private OperationMetadataV1(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadataV1() { target_ = ""; type_ = 0; @@ -47,15 +29,16 @@ private OperationMetadataV1() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadataV1(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadataV1( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,82 +57,74 @@ private OperationMetadataV1( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + target_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; + type_ = rawValue; + break; + } + case 26: { + com.google.protobuf.Any.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); } - case 26: - { - com.google.protobuf.Any.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - - break; + request_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); } - case 32: - { - versionId_ = input.readInt64(); - break; + + break; + } + case 32: { + + versionId_ = input.readInt64(); + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - buildId_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - sourceToken_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + buildId_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - buildName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sourceToken_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + buildName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -157,40 +132,35 @@ private OperationMetadataV1( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsOperationsProto - .internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsOperationsProto.internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsOperationsProto - .internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsOperationsProto.internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.OperationMetadataV1.class, - com.google.cloud.functions.v1.OperationMetadataV1.Builder.class); + com.google.cloud.functions.v1.OperationMetadataV1.class, com.google.cloud.functions.v1.OperationMetadataV1.Builder.class); } public static final int TARGET_FIELD_NUMBER = 1; private volatile java.lang.Object target_; /** - * - * *
          * Target of the operation - for example
          * `projects/project-1/locations/region-1/functions/function-1`
          * 
      * * string target = 1; - * * @return The target. */ @java.lang.Override @@ -199,30 +169,30 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
          * Target of the operation - for example
          * `projects/project-1/locations/region-1/functions/function-1`
          * 
      * * string target = 1; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -233,50 +203,38 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * - * *
          * Type of operation.
          * 
      * * .google.cloud.functions.v1.OperationType type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
          * Type of operation.
          * 
      * * .google.cloud.functions.v1.OperationType type = 2; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.functions.v1.OperationType getType() { + @java.lang.Override public com.google.cloud.functions.v1.OperationType getType() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.OperationType result = - com.google.cloud.functions.v1.OperationType.valueOf(type_); + com.google.cloud.functions.v1.OperationType result = com.google.cloud.functions.v1.OperationType.valueOf(type_); return result == null ? com.google.cloud.functions.v1.OperationType.UNRECOGNIZED : result; } public static final int REQUEST_FIELD_NUMBER = 3; private com.google.protobuf.Any request_; /** - * - * *
          * The original request that started the operation.
          * 
      * * .google.protobuf.Any request = 3; - * * @return Whether the request field is set. */ @java.lang.Override @@ -284,14 +242,11 @@ public boolean hasRequest() { return request_ != null; } /** - * - * *
          * The original request that started the operation.
          * 
      * * .google.protobuf.Any request = 3; - * * @return The request. */ @java.lang.Override @@ -299,8 +254,6 @@ public com.google.protobuf.Any getRequest() { return request_ == null ? com.google.protobuf.Any.getDefaultInstance() : request_; } /** - * - * *
          * The original request that started the operation.
          * 
      @@ -315,15 +268,12 @@ public com.google.protobuf.AnyOrBuilder getRequestOrBuilder() { public static final int VERSION_ID_FIELD_NUMBER = 4; private long versionId_; /** - * - * *
          * Version id of the function created or updated by an API call.
          * This field is only populated for Create and Update operations.
          * 
      * * int64 version_id = 4; - * * @return The versionId. */ @java.lang.Override @@ -334,14 +284,11 @@ public long getVersionId() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
          * The last update timestamp of the operation.
          * 
      * * .google.protobuf.Timestamp update_time = 5; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -349,14 +296,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
          * The last update timestamp of the operation.
          * 
      * * .google.protobuf.Timestamp update_time = 5; - * * @return The updateTime. */ @java.lang.Override @@ -364,8 +308,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
          * The last update timestamp of the operation.
          * 
      @@ -380,15 +322,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int BUILD_ID_FIELD_NUMBER = 6; private volatile java.lang.Object buildId_; /** - * - * *
          * The Cloud Build ID of the function created or updated by an API call.
          * This field is only populated for Create and Update operations.
          * 
      * * string build_id = 6; - * * @return The buildId. */ @java.lang.Override @@ -397,30 +336,30 @@ public java.lang.String getBuildId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildId_ = s; return s; } } /** - * - * *
          * The Cloud Build ID of the function created or updated by an API call.
          * This field is only populated for Create and Update operations.
          * 
      * * string build_id = 6; - * * @return The bytes for buildId. */ @java.lang.Override - public com.google.protobuf.ByteString getBuildIdBytes() { + public com.google.protobuf.ByteString + getBuildIdBytes() { java.lang.Object ref = buildId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); buildId_ = b; return b; } else { @@ -431,15 +370,12 @@ public com.google.protobuf.ByteString getBuildIdBytes() { public static final int SOURCE_TOKEN_FIELD_NUMBER = 7; private volatile java.lang.Object sourceToken_; /** - * - * *
          * An identifier for Firebase function sources. Disclaimer: This field is only
          * supported for Firebase function deployments.
          * 
      * * string source_token = 7; - * * @return The sourceToken. */ @java.lang.Override @@ -448,30 +384,30 @@ public java.lang.String getSourceToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; } } /** - * - * *
          * An identifier for Firebase function sources. Disclaimer: This field is only
          * supported for Firebase function deployments.
          * 
      * * string source_token = 7; - * * @return The bytes for sourceToken. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceTokenBytes() { + public com.google.protobuf.ByteString + getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -482,8 +418,6 @@ public com.google.protobuf.ByteString getSourceTokenBytes() { public static final int BUILD_NAME_FIELD_NUMBER = 8; private volatile java.lang.Object buildName_; /** - * - * *
          * The Cloud Build Name of the function deployment.
          * This field is only populated for Create and Update operations.
      @@ -491,7 +425,6 @@ public com.google.protobuf.ByteString getSourceTokenBytes() {
          * 
      * * string build_name = 8; - * * @return The buildName. */ @java.lang.Override @@ -500,15 +433,14 @@ public java.lang.String getBuildName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildName_ = s; return s; } } /** - * - * *
          * The Cloud Build Name of the function deployment.
          * This field is only populated for Create and Update operations.
      @@ -516,15 +448,16 @@ public java.lang.String getBuildName() {
          * 
      * * string build_name = 8; - * * @return The bytes for buildName. */ @java.lang.Override - public com.google.protobuf.ByteString getBuildNameBytes() { + public com.google.protobuf.ByteString + getBuildNameBytes() { java.lang.Object ref = buildName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); buildName_ = b; return b; } else { @@ -533,7 +466,6 @@ public com.google.protobuf.ByteString getBuildNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -545,7 +477,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, target_); } @@ -583,16 +516,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, target_); } if (type_ != com.google.cloud.functions.v1.OperationType.OPERATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } if (request_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequest()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRequest()); } if (versionId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, versionId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, versionId_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, buildId_); @@ -611,28 +548,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.OperationMetadataV1)) { return super.equals(obj); } - com.google.cloud.functions.v1.OperationMetadataV1 other = - (com.google.cloud.functions.v1.OperationMetadataV1) obj; + com.google.cloud.functions.v1.OperationMetadataV1 other = (com.google.cloud.functions.v1.OperationMetadataV1) obj; - if (!getTarget().equals(other.getTarget())) return false; + if (!getTarget() + .equals(other.getTarget())) return false; if (type_ != other.type_) return false; if (hasRequest() != other.hasRequest()) return false; if (hasRequest()) { - if (!getRequest().equals(other.getRequest())) return false; + if (!getRequest() + .equals(other.getRequest())) return false; } - if (getVersionId() != other.getVersionId()) return false; + if (getVersionId() + != other.getVersionId()) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getBuildId().equals(other.getBuildId())) return false; - if (!getSourceToken().equals(other.getSourceToken())) return false; - if (!getBuildName().equals(other.getBuildName())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getBuildId() + .equals(other.getBuildId())) return false; + if (!getSourceToken() + .equals(other.getSourceToken())) return false; + if (!getBuildName() + .equals(other.getBuildName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -653,7 +596,8 @@ public int hashCode() { hash = (53 * hash) + getRequest().hashCode(); } hash = (37 * hash) + VERSION_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersionId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersionId()); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); @@ -670,126 +614,117 @@ public int hashCode() { } public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.OperationMetadataV1 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.OperationMetadataV1 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.v1.OperationMetadataV1 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.OperationMetadataV1 parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.OperationMetadataV1 parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.OperationMetadataV1 parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.OperationMetadataV1 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Metadata describing an [Operation][google.longrunning.Operation]
          * 
      * * Protobuf type {@code google.cloud.functions.v1.OperationMetadataV1} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.OperationMetadataV1) com.google.cloud.functions.v1.OperationMetadataV1OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsOperationsProto - .internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsOperationsProto.internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsOperationsProto - .internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsOperationsProto.internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.OperationMetadataV1.class, - com.google.cloud.functions.v1.OperationMetadataV1.Builder.class); + com.google.cloud.functions.v1.OperationMetadataV1.class, com.google.cloud.functions.v1.OperationMetadataV1.Builder.class); } // Construct using com.google.cloud.functions.v1.OperationMetadataV1.newBuilder() @@ -797,15 +732,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -837,9 +773,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsOperationsProto - .internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsOperationsProto.internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; } @java.lang.Override @@ -858,8 +794,7 @@ public com.google.cloud.functions.v1.OperationMetadataV1 build() { @java.lang.Override public com.google.cloud.functions.v1.OperationMetadataV1 buildPartial() { - com.google.cloud.functions.v1.OperationMetadataV1 result = - new com.google.cloud.functions.v1.OperationMetadataV1(this); + com.google.cloud.functions.v1.OperationMetadataV1 result = new com.google.cloud.functions.v1.OperationMetadataV1(this); result.target_ = target_; result.type_ = type_; if (requestBuilder_ == null) { @@ -884,39 +819,38 @@ public com.google.cloud.functions.v1.OperationMetadataV1 buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.OperationMetadataV1) other); + return mergeFrom((com.google.cloud.functions.v1.OperationMetadataV1)other); } else { super.mergeFrom(other); return this; @@ -924,8 +858,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.OperationMetadataV1 other) { - if (other == com.google.cloud.functions.v1.OperationMetadataV1.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.OperationMetadataV1.getDefaultInstance()) return this; if (!other.getTarget().isEmpty()) { target_ = other.target_; onChanged(); @@ -973,8 +906,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v1.OperationMetadataV1) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v1.OperationMetadataV1) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -986,21 +918,19 @@ public Builder mergeFrom( private java.lang.Object target_ = ""; /** - * - * *
            * Target of the operation - for example
            * `projects/project-1/locations/region-1/functions/function-1`
            * 
      * * string target = 1; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1009,22 +939,21 @@ public java.lang.String getTarget() { } } /** - * - * *
            * Target of the operation - for example
            * `projects/project-1/locations/region-1/functions/function-1`
            * 
      * * string target = 1; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1032,64 +961,57 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
            * Target of the operation - for example
            * `projects/project-1/locations/region-1/functions/function-1`
            * 
      * * string target = 1; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
            * Target of the operation - for example
            * `projects/project-1/locations/region-1/functions/function-1`
            * 
      * * string target = 1; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
            * Target of the operation - for example
            * `projects/project-1/locations/region-1/functions/function-1`
            * 
      * * string target = 1; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1097,65 +1019,51 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
            * Type of operation.
            * 
      * * .google.cloud.functions.v1.OperationType type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
            * Type of operation.
            * 
      * * .google.cloud.functions.v1.OperationType type = 2; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
            * Type of operation.
            * 
      * * .google.cloud.functions.v1.OperationType type = 2; - * * @return The type. */ @java.lang.Override public com.google.cloud.functions.v1.OperationType getType() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.OperationType result = - com.google.cloud.functions.v1.OperationType.valueOf(type_); + com.google.cloud.functions.v1.OperationType result = com.google.cloud.functions.v1.OperationType.valueOf(type_); return result == null ? com.google.cloud.functions.v1.OperationType.UNRECOGNIZED : result; } /** - * - * *
            * Type of operation.
            * 
      * * .google.cloud.functions.v1.OperationType type = 2; - * * @param value The type to set. * @return This builder for chaining. */ @@ -1163,24 +1071,21 @@ public Builder setType(com.google.cloud.functions.v1.OperationType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
            * Type of operation.
            * 
      * * .google.cloud.functions.v1.OperationType type = 2; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1188,33 +1093,24 @@ public Builder clearType() { private com.google.protobuf.Any request_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> - requestBuilder_; + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> requestBuilder_; /** - * - * *
            * The original request that started the operation.
            * 
      * * .google.protobuf.Any request = 3; - * * @return Whether the request field is set. */ public boolean hasRequest() { return requestBuilder_ != null || request_ != null; } /** - * - * *
            * The original request that started the operation.
            * 
      * * .google.protobuf.Any request = 3; - * * @return The request. */ public com.google.protobuf.Any getRequest() { @@ -1225,8 +1121,6 @@ public com.google.protobuf.Any getRequest() { } } /** - * - * *
            * The original request that started the operation.
            * 
      @@ -1247,15 +1141,14 @@ public Builder setRequest(com.google.protobuf.Any value) { return this; } /** - * - * *
            * The original request that started the operation.
            * 
      * * .google.protobuf.Any request = 3; */ - public Builder setRequest(com.google.protobuf.Any.Builder builderForValue) { + public Builder setRequest( + com.google.protobuf.Any.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); onChanged(); @@ -1266,8 +1159,6 @@ public Builder setRequest(com.google.protobuf.Any.Builder builderForValue) { return this; } /** - * - * *
            * The original request that started the operation.
            * 
      @@ -1277,7 +1168,8 @@ public Builder setRequest(com.google.protobuf.Any.Builder builderForValue) { public Builder mergeRequest(com.google.protobuf.Any value) { if (requestBuilder_ == null) { if (request_ != null) { - request_ = com.google.protobuf.Any.newBuilder(request_).mergeFrom(value).buildPartial(); + request_ = + com.google.protobuf.Any.newBuilder(request_).mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -1289,8 +1181,6 @@ public Builder mergeRequest(com.google.protobuf.Any value) { return this; } /** - * - * *
            * The original request that started the operation.
            * 
      @@ -1309,8 +1199,6 @@ public Builder clearRequest() { return this; } /** - * - * *
            * The original request that started the operation.
            * 
      @@ -1318,13 +1206,11 @@ public Builder clearRequest() { * .google.protobuf.Any request = 3; */ public com.google.protobuf.Any.Builder getRequestBuilder() { - + onChanged(); return getRequestFieldBuilder().getBuilder(); } /** - * - * *
            * The original request that started the operation.
            * 
      @@ -1335,12 +1221,11 @@ public com.google.protobuf.AnyOrBuilder getRequestOrBuilder() { if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { - return request_ == null ? com.google.protobuf.Any.getDefaultInstance() : request_; + return request_ == null ? + com.google.protobuf.Any.getDefaultInstance() : request_; } } /** - * - * *
            * The original request that started the operation.
            * 
      @@ -1348,32 +1233,27 @@ public com.google.protobuf.AnyOrBuilder getRequestOrBuilder() { * .google.protobuf.Any request = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { - requestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder>(getRequest(), getParentForChildren(), isClean()); + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( + getRequest(), + getParentForChildren(), + isClean()); request_ = null; } return requestBuilder_; } - private long versionId_; + private long versionId_ ; /** - * - * *
            * Version id of the function created or updated by an API call.
            * This field is only populated for Create and Update operations.
            * 
      * * int64 version_id = 4; - * * @return The versionId. */ @java.lang.Override @@ -1381,38 +1261,32 @@ public long getVersionId() { return versionId_; } /** - * - * *
            * Version id of the function created or updated by an API call.
            * This field is only populated for Create and Update operations.
            * 
      * * int64 version_id = 4; - * * @param value The versionId to set. * @return This builder for chaining. */ public Builder setVersionId(long value) { - + versionId_ = value; onChanged(); return this; } /** - * - * *
            * Version id of the function created or updated by an API call.
            * This field is only populated for Create and Update operations.
            * 
      * * int64 version_id = 4; - * * @return This builder for chaining. */ public Builder clearVersionId() { - + versionId_ = 0L; onChanged(); return this; @@ -1420,47 +1294,34 @@ public Builder clearVersionId() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
            * The last update timestamp of the operation.
            * 
      * * .google.protobuf.Timestamp update_time = 5; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
            * The last update timestamp of the operation.
            * 
      * * .google.protobuf.Timestamp update_time = 5; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
            * The last update timestamp of the operation.
            * 
      @@ -1481,15 +1342,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
            * The last update timestamp of the operation.
            * 
      * * .google.protobuf.Timestamp update_time = 5; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1500,8 +1360,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
            * The last update timestamp of the operation.
            * 
      @@ -1512,7 +1370,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1524,8 +1382,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
            * The last update timestamp of the operation.
            * 
      @@ -1544,8 +1400,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
            * The last update timestamp of the operation.
            * 
      @@ -1553,13 +1407,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 5; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
            * The last update timestamp of the operation.
            * 
      @@ -1570,14 +1422,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
            * The last update timestamp of the operation.
            * 
      @@ -1585,17 +1434,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1603,21 +1449,19 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object buildId_ = ""; /** - * - * *
            * The Cloud Build ID of the function created or updated by an API call.
            * This field is only populated for Create and Update operations.
            * 
      * * string build_id = 6; - * * @return The buildId. */ public java.lang.String getBuildId() { java.lang.Object ref = buildId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildId_ = s; return s; @@ -1626,22 +1470,21 @@ public java.lang.String getBuildId() { } } /** - * - * *
            * The Cloud Build ID of the function created or updated by an API call.
            * This field is only populated for Create and Update operations.
            * 
      * * string build_id = 6; - * * @return The bytes for buildId. */ - public com.google.protobuf.ByteString getBuildIdBytes() { + public com.google.protobuf.ByteString + getBuildIdBytes() { java.lang.Object ref = buildId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); buildId_ = b; return b; } else { @@ -1649,64 +1492,57 @@ public com.google.protobuf.ByteString getBuildIdBytes() { } } /** - * - * *
            * The Cloud Build ID of the function created or updated by an API call.
            * This field is only populated for Create and Update operations.
            * 
      * * string build_id = 6; - * * @param value The buildId to set. * @return This builder for chaining. */ - public Builder setBuildId(java.lang.String value) { + public Builder setBuildId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + buildId_ = value; onChanged(); return this; } /** - * - * *
            * The Cloud Build ID of the function created or updated by an API call.
            * This field is only populated for Create and Update operations.
            * 
      * * string build_id = 6; - * * @return This builder for chaining. */ public Builder clearBuildId() { - + buildId_ = getDefaultInstance().getBuildId(); onChanged(); return this; } /** - * - * *
            * The Cloud Build ID of the function created or updated by an API call.
            * This field is only populated for Create and Update operations.
            * 
      * * string build_id = 6; - * * @param value The bytes for buildId to set. * @return This builder for chaining. */ - public Builder setBuildIdBytes(com.google.protobuf.ByteString value) { + public Builder setBuildIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + buildId_ = value; onChanged(); return this; @@ -1714,21 +1550,19 @@ public Builder setBuildIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceToken_ = ""; /** - * - * *
            * An identifier for Firebase function sources. Disclaimer: This field is only
            * supported for Firebase function deployments.
            * 
      * * string source_token = 7; - * * @return The sourceToken. */ public java.lang.String getSourceToken() { java.lang.Object ref = sourceToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; @@ -1737,22 +1571,21 @@ public java.lang.String getSourceToken() { } } /** - * - * *
            * An identifier for Firebase function sources. Disclaimer: This field is only
            * supported for Firebase function deployments.
            * 
      * * string source_token = 7; - * * @return The bytes for sourceToken. */ - public com.google.protobuf.ByteString getSourceTokenBytes() { + public com.google.protobuf.ByteString + getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -1760,64 +1593,57 @@ public com.google.protobuf.ByteString getSourceTokenBytes() { } } /** - * - * *
            * An identifier for Firebase function sources. Disclaimer: This field is only
            * supported for Firebase function deployments.
            * 
      * * string source_token = 7; - * * @param value The sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceToken(java.lang.String value) { + public Builder setSourceToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceToken_ = value; onChanged(); return this; } /** - * - * *
            * An identifier for Firebase function sources. Disclaimer: This field is only
            * supported for Firebase function deployments.
            * 
      * * string source_token = 7; - * * @return This builder for chaining. */ public Builder clearSourceToken() { - + sourceToken_ = getDefaultInstance().getSourceToken(); onChanged(); return this; } /** - * - * *
            * An identifier for Firebase function sources. Disclaimer: This field is only
            * supported for Firebase function deployments.
            * 
      * * string source_token = 7; - * * @param value The bytes for sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { + public Builder setSourceTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceToken_ = value; onChanged(); return this; @@ -1825,8 +1651,6 @@ public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object buildName_ = ""; /** - * - * *
            * The Cloud Build Name of the function deployment.
            * This field is only populated for Create and Update operations.
      @@ -1834,13 +1658,13 @@ public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) {
            * 
      * * string build_name = 8; - * * @return The buildName. */ public java.lang.String getBuildName() { java.lang.Object ref = buildName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildName_ = s; return s; @@ -1849,8 +1673,6 @@ public java.lang.String getBuildName() { } } /** - * - * *
            * The Cloud Build Name of the function deployment.
            * This field is only populated for Create and Update operations.
      @@ -1858,14 +1680,15 @@ public java.lang.String getBuildName() {
            * 
      * * string build_name = 8; - * * @return The bytes for buildName. */ - public com.google.protobuf.ByteString getBuildNameBytes() { + public com.google.protobuf.ByteString + getBuildNameBytes() { java.lang.Object ref = buildName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); buildName_ = b; return b; } else { @@ -1873,8 +1696,6 @@ public com.google.protobuf.ByteString getBuildNameBytes() { } } /** - * - * *
            * The Cloud Build Name of the function deployment.
            * This field is only populated for Create and Update operations.
      @@ -1882,22 +1703,20 @@ public com.google.protobuf.ByteString getBuildNameBytes() {
            * 
      * * string build_name = 8; - * * @param value The buildName to set. * @return This builder for chaining. */ - public Builder setBuildName(java.lang.String value) { + public Builder setBuildName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + buildName_ = value; onChanged(); return this; } /** - * - * *
            * The Cloud Build Name of the function deployment.
            * This field is only populated for Create and Update operations.
      @@ -1905,18 +1724,15 @@ public Builder setBuildName(java.lang.String value) {
            * 
      * * string build_name = 8; - * * @return This builder for chaining. */ public Builder clearBuildName() { - + buildName_ = getDefaultInstance().getBuildName(); onChanged(); return this; } /** - * - * *
            * The Cloud Build Name of the function deployment.
            * This field is only populated for Create and Update operations.
      @@ -1924,23 +1740,23 @@ public Builder clearBuildName() {
            * 
      * * string build_name = 8; - * * @param value The bytes for buildName to set. * @return This builder for chaining. */ - public Builder setBuildNameBytes(com.google.protobuf.ByteString value) { + public Builder setBuildNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + buildName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1950,12 +1766,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.OperationMetadataV1) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.OperationMetadataV1) private static final com.google.cloud.functions.v1.OperationMetadataV1 DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.OperationMetadataV1(); } @@ -1964,16 +1780,16 @@ public static com.google.cloud.functions.v1.OperationMetadataV1 getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadataV1 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadataV1(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadataV1 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadataV1(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1988,4 +1804,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.OperationMetadataV1 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java similarity index 80% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java index ded4fd8f..80a23193 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java @@ -1,107 +1,72 @@ -/* - * 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/v1/operations.proto package com.google.cloud.functions.v1; -public interface OperationMetadataV1OrBuilder - extends +public interface OperationMetadataV1OrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.OperationMetadataV1) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Target of the operation - for example
          * `projects/project-1/locations/region-1/functions/function-1`
          * 
      * * string target = 1; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
          * Target of the operation - for example
          * `projects/project-1/locations/region-1/functions/function-1`
          * 
      * * string target = 1; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
          * Type of operation.
          * 
      * * .google.cloud.functions.v1.OperationType type = 2; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
          * Type of operation.
          * 
      * * .google.cloud.functions.v1.OperationType type = 2; - * * @return The type. */ com.google.cloud.functions.v1.OperationType getType(); /** - * - * *
          * The original request that started the operation.
          * 
      * * .google.protobuf.Any request = 3; - * * @return Whether the request field is set. */ boolean hasRequest(); /** - * - * *
          * The original request that started the operation.
          * 
      * * .google.protobuf.Any request = 3; - * * @return The request. */ com.google.protobuf.Any getRequest(); /** - * - * *
          * The original request that started the operation.
          * 
      @@ -111,46 +76,35 @@ public interface OperationMetadataV1OrBuilder com.google.protobuf.AnyOrBuilder getRequestOrBuilder(); /** - * - * *
          * Version id of the function created or updated by an API call.
          * This field is only populated for Create and Update operations.
          * 
      * * int64 version_id = 4; - * * @return The versionId. */ long getVersionId(); /** - * - * *
          * The last update timestamp of the operation.
          * 
      * * .google.protobuf.Timestamp update_time = 5; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
          * The last update timestamp of the operation.
          * 
      * * .google.protobuf.Timestamp update_time = 5; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
          * The last update timestamp of the operation.
          * 
      @@ -160,62 +114,50 @@ public interface OperationMetadataV1OrBuilder com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
          * The Cloud Build ID of the function created or updated by an API call.
          * This field is only populated for Create and Update operations.
          * 
      * * string build_id = 6; - * * @return The buildId. */ java.lang.String getBuildId(); /** - * - * *
          * The Cloud Build ID of the function created or updated by an API call.
          * This field is only populated for Create and Update operations.
          * 
      * * string build_id = 6; - * * @return The bytes for buildId. */ - com.google.protobuf.ByteString getBuildIdBytes(); + com.google.protobuf.ByteString + getBuildIdBytes(); /** - * - * *
          * An identifier for Firebase function sources. Disclaimer: This field is only
          * supported for Firebase function deployments.
          * 
      * * string source_token = 7; - * * @return The sourceToken. */ java.lang.String getSourceToken(); /** - * - * *
          * An identifier for Firebase function sources. Disclaimer: This field is only
          * supported for Firebase function deployments.
          * 
      * * string source_token = 7; - * * @return The bytes for sourceToken. */ - com.google.protobuf.ByteString getSourceTokenBytes(); + com.google.protobuf.ByteString + getSourceTokenBytes(); /** - * - * *
          * The Cloud Build Name of the function deployment.
          * This field is only populated for Create and Update operations.
      @@ -223,13 +165,10 @@ public interface OperationMetadataV1OrBuilder
          * 
      * * string build_name = 8; - * * @return The buildName. */ java.lang.String getBuildName(); /** - * - * *
          * The Cloud Build Name of the function deployment.
          * This field is only populated for Create and Update operations.
      @@ -237,8 +176,8 @@ public interface OperationMetadataV1OrBuilder
          * 
      * * string build_name = 8; - * * @return The bytes for buildName. */ - com.google.protobuf.ByteString getBuildNameBytes(); + com.google.protobuf.ByteString + getBuildNameBytes(); } diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationType.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationType.java similarity index 66% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationType.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationType.java index 69f5376e..d2ee7a30 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationType.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationType.java @@ -1,36 +1,18 @@ -/* - * 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/v1/operations.proto package com.google.cloud.functions.v1; /** - * - * *
        * A type of an operation.
        * 
      * * Protobuf enum {@code google.cloud.functions.v1.OperationType} */ -public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { +public enum OperationType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
          * Unknown operation type.
          * 
      @@ -39,8 +21,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_UNSPECIFIED(0), /** - * - * *
          * Triggered by CreateFunction call
          * 
      @@ -49,8 +29,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ CREATE_FUNCTION(1), /** - * - * *
          * Triggered by UpdateFunction call
          * 
      @@ -59,8 +37,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ UPDATE_FUNCTION(2), /** - * - * *
          * Triggered by DeleteFunction call.
          * 
      @@ -72,8 +48,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
          * Unknown operation type.
          * 
      @@ -82,8 +56,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_UNSPECIFIED_VALUE = 0; /** - * - * *
          * Triggered by CreateFunction call
          * 
      @@ -92,8 +64,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATE_FUNCTION_VALUE = 1; /** - * - * *
          * Triggered by UpdateFunction call
          * 
      @@ -102,8 +72,6 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATE_FUNCTION_VALUE = 2; /** - * - * *
          * Triggered by DeleteFunction call.
          * 
      @@ -112,6 +80,7 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETE_FUNCTION_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,53 +105,50 @@ public static OperationType valueOf(int value) { */ public static OperationType forNumber(int value) { switch (value) { - case 0: - return OPERATION_UNSPECIFIED; - case 1: - return CREATE_FUNCTION; - case 2: - return UPDATE_FUNCTION; - case 3: - return DELETE_FUNCTION; - default: - return null; + case 0: return OPERATION_UNSPECIFIED; + case 1: return CREATE_FUNCTION; + case 2: return UPDATE_FUNCTION; + case 3: return DELETE_FUNCTION; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 OperationType findValueByNumber(int number) { - return OperationType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + OperationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperationType findValueByNumber(int number) { + return OperationType.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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsOperationsProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsOperationsProto.getDescriptor().getEnumTypes().get(0); } private static final OperationType[] VALUES = values(); - public static OperationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static OperationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -198,3 +164,4 @@ private OperationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.functions.v1.OperationType) } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java similarity index 73% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java index 2d15134c..ec0aa53f 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java @@ -1,26 +1,9 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Configuration for a secret environment variable. It has the information
        * necessary to fetch the secret value from secret manager and expose it as an
      @@ -29,16 +12,15 @@
        *
        * Protobuf type {@code google.cloud.functions.v1.SecretEnvVar}
        */
      -public final class SecretEnvVar extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class SecretEnvVar extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.SecretEnvVar)
           SecretEnvVarOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use SecretEnvVar.newBuilder() to construct.
         private SecretEnvVar(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
         private SecretEnvVar() {
           key_ = "";
           projectId_ = "";
      @@ -48,15 +30,16 @@ private SecretEnvVar() {
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new SecretEnvVar();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private SecretEnvVar(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -75,41 +58,37 @@ private SecretEnvVar(
                 case 0:
                   done = true;
                   break;
      -          case 10:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +          case 10: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              key_ = s;
      -              break;
      -            }
      -          case 18:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            key_ = s;
      +            break;
      +          }
      +          case 18: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              projectId_ = s;
      -              break;
      -            }
      -          case 26:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            projectId_ = s;
      +            break;
      +          }
      +          case 26: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              secret_ = s;
      -              break;
      -            }
      -          case 34:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            secret_ = s;
      +            break;
      +          }
      +          case 34: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              version_ = s;
      -              break;
      -            }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +            version_ = s;
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -117,39 +96,34 @@ private SecretEnvVar(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             this.unknownFields = unknownFields.build();
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.functions.v1.FunctionsProto
      -        .internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.functions.v1.FunctionsProto
      -        .internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable
      +    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.functions.v1.SecretEnvVar.class,
      -            com.google.cloud.functions.v1.SecretEnvVar.Builder.class);
      +            com.google.cloud.functions.v1.SecretEnvVar.class, com.google.cloud.functions.v1.SecretEnvVar.Builder.class);
         }
       
         public static final int KEY_FIELD_NUMBER = 1;
         private volatile java.lang.Object key_;
         /**
      -   *
      -   *
          * 
          * Name of the environment variable.
          * 
      * * string key = 1; - * * @return The key. */ @java.lang.Override @@ -158,29 +132,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
          * Name of the environment variable.
          * 
      * * string key = 1; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -191,8 +165,6 @@ public com.google.protobuf.ByteString getKeyBytes() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** - * - * *
          * Project identifier (preferrably project number but can also be the project
          * ID) of the project that contains the secret. If not set, it will be
      @@ -201,7 +173,6 @@ public com.google.protobuf.ByteString getKeyBytes() {
          * 
      * * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -210,15 +181,14 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
          * Project identifier (preferrably project number but can also be the project
          * ID) of the project that contains the secret. If not set, it will be
      @@ -227,15 +197,16 @@ public java.lang.String getProjectId() {
          * 
      * * string project_id = 2; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -246,14 +217,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** - * - * *
          * Name of the secret in secret manager (not the full resource name).
          * 
      * * string secret = 3; - * * @return The secret. */ @java.lang.Override @@ -262,29 +230,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** - * - * *
          * Name of the secret in secret manager (not the full resource name).
          * 
      * * string secret = 3; - * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString getSecretBytes() { + public com.google.protobuf.ByteString + getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secret_ = b; return b; } else { @@ -295,8 +263,6 @@ public com.google.protobuf.ByteString getSecretBytes() { public static final int VERSION_FIELD_NUMBER = 4; private volatile java.lang.Object version_; /** - * - * *
          * Version of the secret (version number or the string 'latest'). It is
          * recommended to use a numeric version for secret environment variables as
      @@ -304,7 +270,6 @@ public com.google.protobuf.ByteString getSecretBytes() {
          * 
      * * string version = 4; - * * @return The version. */ @java.lang.Override @@ -313,15 +278,14 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
          * Version of the secret (version number or the string 'latest'). It is
          * recommended to use a numeric version for secret environment variables as
      @@ -329,15 +293,16 @@ public java.lang.String getVersion() {
          * 
      * * string version = 4; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -346,7 +311,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,7 +322,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -400,18 +365,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.SecretEnvVar)) { return super.equals(obj); } - com.google.cloud.functions.v1.SecretEnvVar other = - (com.google.cloud.functions.v1.SecretEnvVar) obj; - - if (!getKey().equals(other.getKey())) return false; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getSecret().equals(other.getSecret())) return false; - if (!getVersion().equals(other.getVersion())) return false; + com.google.cloud.functions.v1.SecretEnvVar other = (com.google.cloud.functions.v1.SecretEnvVar) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getSecret() + .equals(other.getSecret())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -436,104 +404,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.SecretEnvVar parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.SecretEnvVar parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.SecretEnvVar parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.SecretEnvVar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.SecretEnvVar 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.v1.SecretEnvVar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.SecretEnvVar parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.SecretEnvVar parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.SecretEnvVar parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.SecretEnvVar parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.SecretEnvVar parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.SecretEnvVar parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.SecretEnvVar parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.SecretEnvVar parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.SecretEnvVar prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Configuration for a secret environment variable. It has the information
          * necessary to fetch the secret value from secret manager and expose it as an
      @@ -542,23 +503,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.functions.v1.SecretEnvVar}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.SecretEnvVar)
             com.google.cloud.functions.v1.SecretEnvVarOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.functions.v1.SecretEnvVar.class,
      -              com.google.cloud.functions.v1.SecretEnvVar.Builder.class);
      +              com.google.cloud.functions.v1.SecretEnvVar.class, com.google.cloud.functions.v1.SecretEnvVar.Builder.class);
           }
       
           // Construct using com.google.cloud.functions.v1.SecretEnvVar.newBuilder()
      @@ -566,15 +525,16 @@ private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
      +      }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -590,9 +550,9 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor;
           }
       
           @java.lang.Override
      @@ -611,8 +571,7 @@ public com.google.cloud.functions.v1.SecretEnvVar build() {
       
           @java.lang.Override
           public com.google.cloud.functions.v1.SecretEnvVar buildPartial() {
      -      com.google.cloud.functions.v1.SecretEnvVar result =
      -          new com.google.cloud.functions.v1.SecretEnvVar(this);
      +      com.google.cloud.functions.v1.SecretEnvVar result = new com.google.cloud.functions.v1.SecretEnvVar(this);
             result.key_ = key_;
             result.projectId_ = projectId_;
             result.secret_ = secret_;
      @@ -625,39 +584,38 @@ public com.google.cloud.functions.v1.SecretEnvVar buildPartial() {
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        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) {
      +    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) {
      +    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) {
      +        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) {
      +        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) {
      -        return mergeFrom((com.google.cloud.functions.v1.SecretEnvVar) other);
      +        return mergeFrom((com.google.cloud.functions.v1.SecretEnvVar)other);
             } else {
               super.mergeFrom(other);
               return this;
      @@ -713,20 +671,18 @@ public Builder mergeFrom(
       
           private java.lang.Object key_ = "";
           /**
      -     *
      -     *
            * 
            * Name of the environment variable.
            * 
      * * string key = 1; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -735,21 +691,20 @@ public java.lang.String getKey() { } } /** - * - * *
            * Name of the environment variable.
            * 
      * * string key = 1; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -757,61 +712,54 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
            * Name of the environment variable.
            * 
      * * string key = 1; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { + public Builder setKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** - * - * *
            * Name of the environment variable.
            * 
      * * string key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** - * - * *
            * Name of the environment variable.
            * 
      * * string key = 1; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -819,8 +767,6 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * *
            * Project identifier (preferrably project number but can also be the project
            * ID) of the project that contains the secret. If not set, it will be
      @@ -829,13 +775,13 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) {
            * 
      * * string project_id = 2; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -844,8 +790,6 @@ public java.lang.String getProjectId() { } } /** - * - * *
            * Project identifier (preferrably project number but can also be the project
            * ID) of the project that contains the secret. If not set, it will be
      @@ -854,14 +798,15 @@ public java.lang.String getProjectId() {
            * 
      * * string project_id = 2; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -869,8 +814,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
            * Project identifier (preferrably project number but can also be the project
            * ID) of the project that contains the secret. If not set, it will be
      @@ -879,22 +822,20 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
            * 
      * * string project_id = 2; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
            * Project identifier (preferrably project number but can also be the project
            * ID) of the project that contains the secret. If not set, it will be
      @@ -903,18 +844,15 @@ public Builder setProjectId(java.lang.String value) {
            * 
      * * string project_id = 2; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
            * Project identifier (preferrably project number but can also be the project
            * ID) of the project that contains the secret. If not set, it will be
      @@ -923,16 +861,16 @@ public Builder clearProjectId() {
            * 
      * * string project_id = 2; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -940,20 +878,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object secret_ = ""; /** - * - * *
            * Name of the secret in secret manager (not the full resource name).
            * 
      * * string secret = 3; - * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -962,21 +898,20 @@ public java.lang.String getSecret() { } } /** - * - * *
            * Name of the secret in secret manager (not the full resource name).
            * 
      * * string secret = 3; - * * @return The bytes for secret. */ - public com.google.protobuf.ByteString getSecretBytes() { + public com.google.protobuf.ByteString + getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secret_ = b; return b; } else { @@ -984,61 +919,54 @@ public com.google.protobuf.ByteString getSecretBytes() { } } /** - * - * *
            * Name of the secret in secret manager (not the full resource name).
            * 
      * * string secret = 3; - * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret(java.lang.String value) { + public Builder setSecret( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** - * - * *
            * Name of the secret in secret manager (not the full resource name).
            * 
      * * string secret = 3; - * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** - * - * *
            * Name of the secret in secret manager (not the full resource name).
            * 
      * * string secret = 3; - * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes(com.google.protobuf.ByteString value) { + public Builder setSecretBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; @@ -1046,8 +974,6 @@ public Builder setSecretBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
            * Version of the secret (version number or the string 'latest'). It is
            * recommended to use a numeric version for secret environment variables as
      @@ -1055,13 +981,13 @@ public Builder setSecretBytes(com.google.protobuf.ByteString value) {
            * 
      * * string version = 4; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1070,8 +996,6 @@ public java.lang.String getVersion() { } } /** - * - * *
            * Version of the secret (version number or the string 'latest'). It is
            * recommended to use a numeric version for secret environment variables as
      @@ -1079,14 +1003,15 @@ public java.lang.String getVersion() {
            * 
      * * string version = 4; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -1094,8 +1019,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
            * Version of the secret (version number or the string 'latest'). It is
            * recommended to use a numeric version for secret environment variables as
      @@ -1103,22 +1026,20 @@ public com.google.protobuf.ByteString getVersionBytes() {
            * 
      * * string version = 4; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
            * Version of the secret (version number or the string 'latest'). It is
            * recommended to use a numeric version for secret environment variables as
      @@ -1126,18 +1047,15 @@ public Builder setVersion(java.lang.String value) {
            * 
      * * string version = 4; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
            * Version of the secret (version number or the string 'latest'). It is
            * recommended to use a numeric version for secret environment variables as
      @@ -1145,23 +1063,23 @@ public Builder clearVersion() {
            * 
      * * string version = 4; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1171,12 +1089,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.SecretEnvVar) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.SecretEnvVar) private static final com.google.cloud.functions.v1.SecretEnvVar DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.SecretEnvVar(); } @@ -1185,16 +1103,16 @@ public static com.google.cloud.functions.v1.SecretEnvVar getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretEnvVar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretEnvVar(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretEnvVar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretEnvVar(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1209,4 +1127,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.SecretEnvVar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java similarity index 72% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java index 0d77c938..582dd501 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java @@ -1,56 +1,33 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface SecretEnvVarOrBuilder - extends +public interface SecretEnvVarOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.SecretEnvVar) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Name of the environment variable.
          * 
      * * string key = 1; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
          * Name of the environment variable.
          * 
      * * string key = 1; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
          * Project identifier (preferrably project number but can also be the project
          * ID) of the project that contains the secret. If not set, it will be
      @@ -59,13 +36,10 @@ public interface SecretEnvVarOrBuilder
          * 
      * * string project_id = 2; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
          * Project identifier (preferrably project number but can also be the project
          * ID) of the project that contains the secret. If not set, it will be
      @@ -74,39 +48,32 @@ public interface SecretEnvVarOrBuilder
          * 
      * * string project_id = 2; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
          * Name of the secret in secret manager (not the full resource name).
          * 
      * * string secret = 3; - * * @return The secret. */ java.lang.String getSecret(); /** - * - * *
          * Name of the secret in secret manager (not the full resource name).
          * 
      * * string secret = 3; - * * @return The bytes for secret. */ - com.google.protobuf.ByteString getSecretBytes(); + com.google.protobuf.ByteString + getSecretBytes(); /** - * - * *
          * Version of the secret (version number or the string 'latest'). It is
          * recommended to use a numeric version for secret environment variables as
      @@ -114,13 +81,10 @@ public interface SecretEnvVarOrBuilder
          * 
      * * string version = 4; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
          * Version of the secret (version number or the string 'latest'). It is
          * recommended to use a numeric version for secret environment variables as
      @@ -128,8 +92,8 @@ public interface SecretEnvVarOrBuilder
          * 
      * * string version = 4; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); } diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java similarity index 77% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java index ea376595..feac160b 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java @@ -1,26 +1,9 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Configuration for a secret volume. It has the information necessary to fetch
        * the secret value from secret manager and make it available as files mounted
      @@ -31,16 +14,15 @@
        *
        * Protobuf type {@code google.cloud.functions.v1.SecretVolume}
        */
      -public final class SecretVolume extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class SecretVolume extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.SecretVolume)
           SecretVolumeOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use SecretVolume.newBuilder() to construct.
         private SecretVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
         private SecretVolume() {
           mountPath_ = "";
           projectId_ = "";
      @@ -50,15 +32,16 @@ private SecretVolume() {
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new SecretVolume();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private SecretVolume(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -78,48 +61,40 @@ private SecretVolume(
                 case 0:
                   done = true;
                   break;
      -          case 10:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +          case 10: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              mountPath_ = s;
      -              break;
      -            }
      -          case 18:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            mountPath_ = s;
      +            break;
      +          }
      +          case 18: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              projectId_ = s;
      -              break;
      -            }
      -          case 26:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            projectId_ = s;
      +            break;
      +          }
      +          case 26: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              secret_ = s;
      -              break;
      -            }
      -          case 34:
      -            {
      -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      -                versions_ =
      -                    new java.util.ArrayList<
      -                        com.google.cloud.functions.v1.SecretVolume.SecretVersion>();
      -                mutable_bitField0_ |= 0x00000001;
      -              }
      -              versions_.add(
      -                  input.readMessage(
      -                      com.google.cloud.functions.v1.SecretVolume.SecretVersion.parser(),
      -                      extensionRegistry));
      -              break;
      +            secret_ = s;
      +            break;
      +          }
      +          case 34: {
      +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      +              versions_ = new java.util.ArrayList();
      +              mutable_bitField0_ |= 0x00000001;
                   }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +            versions_.add(
      +                input.readMessage(com.google.cloud.functions.v1.SecretVolume.SecretVersion.parser(), extensionRegistry));
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -127,7 +102,8 @@ private SecretVolume(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             if (((mutable_bitField0_ & 0x00000001) != 0)) {
               versions_ = java.util.Collections.unmodifiableList(versions_);
      @@ -136,30 +112,24 @@ private SecretVolume(
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.functions.v1.FunctionsProto
      -        .internal_static_google_cloud_functions_v1_SecretVolume_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.functions.v1.FunctionsProto
      -        .internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable
      +    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.functions.v1.SecretVolume.class,
      -            com.google.cloud.functions.v1.SecretVolume.Builder.class);
      +            com.google.cloud.functions.v1.SecretVolume.class, com.google.cloud.functions.v1.SecretVolume.Builder.class);
         }
       
      -  public interface SecretVersionOrBuilder
      -      extends
      +  public interface SecretVersionOrBuilder extends
             // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.SecretVolume.SecretVersion)
             com.google.protobuf.MessageOrBuilder {
       
           /**
      -     *
      -     *
            * 
            * Version of the secret (version number or the string 'latest'). It is
            * preferrable to use `latest` version with secret volumes as secret value
      @@ -167,13 +137,10 @@ public interface SecretVersionOrBuilder
            * 
      * * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
            * Version of the secret (version number or the string 'latest'). It is
            * preferrable to use `latest` version with secret volumes as secret value
      @@ -181,14 +148,12 @@ public interface SecretVersionOrBuilder
            * 
      * * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
            * Relative path of the file under the mount path where the secret value for
            * this version will be fetched and made available. For example, setting the
      @@ -197,13 +162,10 @@ public interface SecretVersionOrBuilder
            * 
      * * string path = 2; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
            * Relative path of the file under the mount path where the secret value for
            * this version will be fetched and made available. For example, setting the
      @@ -212,30 +174,27 @@ public interface SecretVersionOrBuilder
            * 
      * * string path = 2; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); } /** - * - * *
          * Configuration for a single version.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.SecretVolume.SecretVersion} */ - public static final class SecretVersion extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SecretVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.SecretVolume.SecretVersion) SecretVersionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SecretVersion.newBuilder() to construct. private SecretVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SecretVersion() { version_ = ""; path_ = ""; @@ -243,15 +202,16 @@ private SecretVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SecretVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SecretVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -270,27 +230,25 @@ private SecretVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + version_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - path_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + path_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -298,33 +256,29 @@ private SecretVersion( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.SecretVolume.SecretVersion.class, - com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v1.SecretVolume.SecretVersion.class, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
            * Version of the secret (version number or the string 'latest'). It is
            * preferrable to use `latest` version with secret volumes as secret value
      @@ -332,7 +286,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            * 
      * * string version = 1; - * * @return The version. */ @java.lang.Override @@ -341,15 +294,14 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
            * Version of the secret (version number or the string 'latest'). It is
            * preferrable to use `latest` version with secret volumes as secret value
      @@ -357,15 +309,16 @@ public java.lang.String getVersion() {
            * 
      * * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -376,8 +329,6 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** - * - * *
            * Relative path of the file under the mount path where the secret value for
            * this version will be fetched and made available. For example, setting the
      @@ -386,7 +337,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
            * 
      * * string path = 2; - * * @return The path. */ @java.lang.Override @@ -395,15 +345,14 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** - * - * *
            * Relative path of the file under the mount path where the secret value for
            * this version will be fetched and made available. For example, setting the
      @@ -412,15 +361,16 @@ public java.lang.String getPath() {
            * 
      * * string path = 2; - * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -429,7 +379,6 @@ public com.google.protobuf.ByteString getPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -441,7 +390,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } @@ -471,16 +421,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.SecretVolume.SecretVersion)) { return super.equals(obj); } - com.google.cloud.functions.v1.SecretVolume.SecretVersion other = - (com.google.cloud.functions.v1.SecretVolume.SecretVersion) obj; + com.google.cloud.functions.v1.SecretVolume.SecretVersion other = (com.google.cloud.functions.v1.SecretVolume.SecretVersion) obj; - if (!getVersion().equals(other.getVersion())) return false; - if (!getPath().equals(other.getPath())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getPath() + .equals(other.getPath())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -502,94 +453,87 @@ public int hashCode() { } public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.SecretVolume.SecretVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.SecretVolume.SecretVersion 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.v1.SecretVolume.SecretVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v1.SecretVolume.SecretVersion prototype) { + public static Builder newBuilder(com.google.cloud.functions.v1.SecretVolume.SecretVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -599,32 +543,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
            * Configuration for a single version.
            * 
      * * Protobuf type {@code google.cloud.functions.v1.SecretVolume.SecretVersion} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.SecretVolume.SecretVersion) com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder { - 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; + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.SecretVolume.SecretVersion.class, - com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v1.SecretVolume.SecretVersion.class, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder.class); } // Construct using com.google.cloud.functions.v1.SecretVolume.SecretVersion.newBuilder() @@ -632,15 +571,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -652,9 +592,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor; } @java.lang.Override @@ -673,8 +613,7 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion build() { @java.lang.Override public com.google.cloud.functions.v1.SecretVolume.SecretVersion buildPartial() { - com.google.cloud.functions.v1.SecretVolume.SecretVersion result = - new com.google.cloud.functions.v1.SecretVolume.SecretVersion(this); + com.google.cloud.functions.v1.SecretVolume.SecretVersion result = new com.google.cloud.functions.v1.SecretVolume.SecretVersion(this); result.version_ = version_; result.path_ = path_; onBuilt(); @@ -685,41 +624,38 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.SecretVolume.SecretVersion) other); + return mergeFrom((com.google.cloud.functions.v1.SecretVolume.SecretVersion)other); } else { super.mergeFrom(other); return this; @@ -727,8 +663,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.SecretVolume.SecretVersion other) { - if (other == com.google.cloud.functions.v1.SecretVolume.SecretVersion.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.SecretVolume.SecretVersion.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -756,8 +691,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v1.SecretVolume.SecretVersion) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v1.SecretVolume.SecretVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -769,8 +703,6 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** - * - * *
              * Version of the secret (version number or the string 'latest'). It is
              * preferrable to use `latest` version with secret volumes as secret value
      @@ -778,13 +710,13 @@ public Builder mergeFrom(
              * 
      * * string version = 1; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -793,8 +725,6 @@ public java.lang.String getVersion() { } } /** - * - * *
              * Version of the secret (version number or the string 'latest'). It is
              * preferrable to use `latest` version with secret volumes as secret value
      @@ -802,14 +732,15 @@ public java.lang.String getVersion() {
              * 
      * * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -817,8 +748,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
              * Version of the secret (version number or the string 'latest'). It is
              * preferrable to use `latest` version with secret volumes as secret value
      @@ -826,22 +755,20 @@ public com.google.protobuf.ByteString getVersionBytes() {
              * 
      * * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
              * Version of the secret (version number or the string 'latest'). It is
              * preferrable to use `latest` version with secret volumes as secret value
      @@ -849,18 +776,15 @@ public Builder setVersion(java.lang.String value) {
              * 
      * * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
              * Version of the secret (version number or the string 'latest'). It is
              * preferrable to use `latest` version with secret volumes as secret value
      @@ -868,16 +792,16 @@ public Builder clearVersion() {
              * 
      * * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -885,8 +809,6 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object path_ = ""; /** - * - * *
              * Relative path of the file under the mount path where the secret value for
              * this version will be fetched and made available. For example, setting the
      @@ -895,13 +817,13 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
              * 
      * * string path = 2; - * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -910,8 +832,6 @@ public java.lang.String getPath() { } } /** - * - * *
              * Relative path of the file under the mount path where the secret value for
              * this version will be fetched and made available. For example, setting the
      @@ -920,14 +840,15 @@ public java.lang.String getPath() {
              * 
      * * string path = 2; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -935,8 +856,6 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
              * Relative path of the file under the mount path where the secret value for
              * this version will be fetched and made available. For example, setting the
      @@ -945,22 +864,20 @@ public com.google.protobuf.ByteString getPathBytes() {
              * 
      * * string path = 2; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { + public Builder setPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** - * - * *
              * Relative path of the file under the mount path where the secret value for
              * this version will be fetched and made available. For example, setting the
      @@ -969,18 +886,15 @@ public Builder setPath(java.lang.String value) {
              * 
      * * string path = 2; - * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** - * - * *
              * Relative path of the file under the mount path where the secret value for
              * this version will be fetched and made available. For example, setting the
      @@ -989,21 +903,20 @@ public Builder clearPath() {
              * 
      * * string path = 2; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { + public Builder setPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1016,12 +929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.SecretVolume.SecretVersion) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.SecretVolume.SecretVersion) private static final com.google.cloud.functions.v1.SecretVolume.SecretVersion DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.SecretVolume.SecretVersion(); } @@ -1030,16 +943,16 @@ public static com.google.cloud.functions.v1.SecretVolume.SecretVersion getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1054,13 +967,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.SecretVolume.SecretVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int MOUNT_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object mountPath_; /** - * - * *
          * The path within the container to mount the secret volume. For example,
          * setting the mount_path as `/etc/secrets` would mount the secret value files
      @@ -1071,7 +983,6 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion getDefaultInstan
          * 
      * * string mount_path = 1; - * * @return The mountPath. */ @java.lang.Override @@ -1080,15 +991,14 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** - * - * *
          * The path within the container to mount the secret volume. For example,
          * setting the mount_path as `/etc/secrets` would mount the secret value files
      @@ -1099,15 +1009,16 @@ public java.lang.String getMountPath() {
          * 
      * * string mount_path = 1; - * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1118,8 +1029,6 @@ public com.google.protobuf.ByteString getMountPathBytes() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** - * - * *
          * Project identifier (preferrably project number but can also be the project
          * ID) of the project that contains the secret. If not set, it will be
      @@ -1128,7 +1037,6 @@ public com.google.protobuf.ByteString getMountPathBytes() {
          * 
      * * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -1137,15 +1045,14 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
          * Project identifier (preferrably project number but can also be the project
          * ID) of the project that contains the secret. If not set, it will be
      @@ -1154,15 +1061,16 @@ public java.lang.String getProjectId() {
          * 
      * * string project_id = 2; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1173,14 +1081,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** - * - * *
          * Name of the secret in secret manager (not the full resource name).
          * 
      * * string secret = 3; - * * @return The secret. */ @java.lang.Override @@ -1189,29 +1094,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** - * - * *
          * Name of the secret in secret manager (not the full resource name).
          * 
      * * string secret = 3; - * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString getSecretBytes() { + public com.google.protobuf.ByteString + getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secret_ = b; return b; } else { @@ -1222,8 +1127,6 @@ public com.google.protobuf.ByteString getSecretBytes() { public static final int VERSIONS_FIELD_NUMBER = 4; private java.util.List versions_; /** - * - * *
          * List of secret versions to mount for this secret. If empty, the `latest`
          * version of the secret will be made available in a file named after the
      @@ -1233,13 +1136,10 @@ public com.google.protobuf.ByteString getSecretBytes() {
          * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
          */
         @java.lang.Override
      -  public java.util.List
      -      getVersionsList() {
      +  public java.util.List getVersionsList() {
           return versions_;
         }
         /**
      -   *
      -   *
          * 
          * List of secret versions to mount for this secret. If empty, the `latest`
          * version of the secret will be made available in a file named after the
      @@ -1249,13 +1149,11 @@ public com.google.protobuf.ByteString getSecretBytes() {
          * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
          */
         @java.lang.Override
      -  public java.util.List
      +  public java.util.List 
             getVersionsOrBuilderList() {
           return versions_;
         }
         /**
      -   *
      -   *
          * 
          * List of secret versions to mount for this secret. If empty, the `latest`
          * version of the secret will be made available in a file named after the
      @@ -1269,8 +1167,6 @@ public int getVersionsCount() {
           return versions_.size();
         }
         /**
      -   *
      -   *
          * 
          * List of secret versions to mount for this secret. If empty, the `latest`
          * version of the secret will be made available in a file named after the
      @@ -1284,8 +1180,6 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion getVersions(int
           return versions_.get(index);
         }
         /**
      -   *
      -   *
          * 
          * List of secret versions to mount for this secret. If empty, the `latest`
          * version of the secret will be made available in a file named after the
      @@ -1301,7 +1195,6 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVers
         }
       
         private byte memoizedIsInitialized = -1;
      -
         @java.lang.Override
         public final boolean isInitialized() {
           byte isInitialized = memoizedIsInitialized;
      @@ -1313,7 +1206,8 @@ public final boolean isInitialized() {
         }
       
         @java.lang.Override
      -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      +  public void writeTo(com.google.protobuf.CodedOutputStream output)
      +                      throws java.io.IOException {
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_);
           }
      @@ -1345,7 +1239,8 @@ public int getSerializedSize() {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secret_);
           }
           for (int i = 0; i < versions_.size(); i++) {
      -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, versions_.get(i));
      +      size += com.google.protobuf.CodedOutputStream
      +        .computeMessageSize(4, versions_.get(i));
           }
           size += unknownFields.getSerializedSize();
           memoizedSize = size;
      @@ -1355,18 +1250,21 @@ public int getSerializedSize() {
         @java.lang.Override
         public boolean equals(final java.lang.Object obj) {
           if (obj == this) {
      -      return true;
      +     return true;
           }
           if (!(obj instanceof com.google.cloud.functions.v1.SecretVolume)) {
             return super.equals(obj);
           }
      -    com.google.cloud.functions.v1.SecretVolume other =
      -        (com.google.cloud.functions.v1.SecretVolume) obj;
      +    com.google.cloud.functions.v1.SecretVolume other = (com.google.cloud.functions.v1.SecretVolume) obj;
       
      -    if (!getMountPath().equals(other.getMountPath())) return false;
      -    if (!getProjectId().equals(other.getProjectId())) return false;
      -    if (!getSecret().equals(other.getSecret())) return false;
      -    if (!getVersionsList().equals(other.getVersionsList())) return false;
      +    if (!getMountPath()
      +        .equals(other.getMountPath())) return false;
      +    if (!getProjectId()
      +        .equals(other.getProjectId())) return false;
      +    if (!getSecret()
      +        .equals(other.getSecret())) return false;
      +    if (!getVersionsList()
      +        .equals(other.getVersionsList())) return false;
           if (!unknownFields.equals(other.unknownFields)) return false;
           return true;
         }
      @@ -1393,104 +1291,97 @@ public int hashCode() {
           return hash;
         }
       
      -  public static com.google.cloud.functions.v1.SecretVolume parseFrom(java.nio.ByteBuffer data)
      +  public static com.google.cloud.functions.v1.SecretVolume parseFrom(
      +      java.nio.ByteBuffer data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
      -
         public static com.google.cloud.functions.v1.SecretVolume parseFrom(
      -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      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.v1.SecretVolume parseFrom(
             com.google.protobuf.ByteString data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
      -
         public static com.google.cloud.functions.v1.SecretVolume 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.v1.SecretVolume parseFrom(byte[] data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
      -
         public static com.google.cloud.functions.v1.SecretVolume parseFrom(
      -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      byte[] data,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
      -
         public static com.google.cloud.functions.v1.SecretVolume parseFrom(java.io.InputStream input)
             throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input);
         }
      -
         public static com.google.cloud.functions.v1.SecretVolume parseFrom(
      -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      java.io.InputStream input,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
      -        PARSER, input, extensionRegistry);
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input, extensionRegistry);
         }
      -
      -  public static com.google.cloud.functions.v1.SecretVolume parseDelimitedFrom(
      -      java.io.InputStream input) throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      +  public static com.google.cloud.functions.v1.SecretVolume parseDelimitedFrom(java.io.InputStream input)
      +      throws java.io.IOException {
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseDelimitedWithIOException(PARSER, input);
         }
      -
         public static com.google.cloud.functions.v1.SecretVolume parseDelimitedFrom(
      -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      java.io.InputStream input,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
      -        PARSER, input, extensionRegistry);
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
         }
      -
         public static com.google.cloud.functions.v1.SecretVolume parseFrom(
      -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      +      com.google.protobuf.CodedInputStream input)
      +      throws java.io.IOException {
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input);
         }
      -
         public static com.google.cloud.functions.v1.SecretVolume parseFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
      -        PARSER, input, extensionRegistry);
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input, extensionRegistry);
         }
       
         @java.lang.Override
      -  public Builder newBuilderForType() {
      -    return newBuilder();
      -  }
      -
      +  public Builder newBuilderForType() { return newBuilder(); }
         public static Builder newBuilder() {
           return DEFAULT_INSTANCE.toBuilder();
         }
      -
         public static Builder newBuilder(com.google.cloud.functions.v1.SecretVolume prototype) {
           return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
         }
      -
         @java.lang.Override
         public Builder toBuilder() {
      -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
      +    return this == DEFAULT_INSTANCE
      +        ? new Builder() : new Builder().mergeFrom(this);
         }
       
         @java.lang.Override
      -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +  protected Builder newBuilderForType(
      +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           Builder builder = new Builder(parent);
           return builder;
         }
         /**
      -   *
      -   *
          * 
          * Configuration for a secret volume. It has the information necessary to fetch
          * the secret value from secret manager and make it available as files mounted
      @@ -1501,23 +1392,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.functions.v1.SecretVolume}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.SecretVolume)
             com.google.cloud.functions.v1.SecretVolumeOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_SecretVolume_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.functions.v1.SecretVolume.class,
      -              com.google.cloud.functions.v1.SecretVolume.Builder.class);
      +              com.google.cloud.functions.v1.SecretVolume.class, com.google.cloud.functions.v1.SecretVolume.Builder.class);
           }
       
           // Construct using com.google.cloud.functions.v1.SecretVolume.newBuilder()
      @@ -1525,17 +1414,17 @@ private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
               getVersionsFieldBuilder();
             }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -1555,9 +1444,9 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_SecretVolume_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_descriptor;
           }
       
           @java.lang.Override
      @@ -1576,8 +1465,7 @@ public com.google.cloud.functions.v1.SecretVolume build() {
       
           @java.lang.Override
           public com.google.cloud.functions.v1.SecretVolume buildPartial() {
      -      com.google.cloud.functions.v1.SecretVolume result =
      -          new com.google.cloud.functions.v1.SecretVolume(this);
      +      com.google.cloud.functions.v1.SecretVolume result = new com.google.cloud.functions.v1.SecretVolume(this);
             int from_bitField0_ = bitField0_;
             result.mountPath_ = mountPath_;
             result.projectId_ = projectId_;
      @@ -1599,39 +1487,38 @@ public com.google.cloud.functions.v1.SecretVolume buildPartial() {
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        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) {
      +    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) {
      +    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) {
      +        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) {
      +        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) {
      -        return mergeFrom((com.google.cloud.functions.v1.SecretVolume) other);
      +        return mergeFrom((com.google.cloud.functions.v1.SecretVolume)other);
             } else {
               super.mergeFrom(other);
               return this;
      @@ -1670,10 +1557,9 @@ public Builder mergeFrom(com.google.cloud.functions.v1.SecretVolume other) {
                   versionsBuilder_ = null;
                   versions_ = other.versions_;
                   bitField0_ = (bitField0_ & ~0x00000001);
      -            versionsBuilder_ =
      -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
      -                    ? getVersionsFieldBuilder()
      -                    : null;
      +            versionsBuilder_ = 
      +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
      +                 getVersionsFieldBuilder() : null;
                 } else {
                   versionsBuilder_.addAllMessages(other.versions_);
                 }
      @@ -1707,13 +1593,10 @@ public Builder mergeFrom(
             }
             return this;
           }
      -
           private int bitField0_;
       
           private java.lang.Object mountPath_ = "";
           /**
      -     *
      -     *
            * 
            * The path within the container to mount the secret volume. For example,
            * setting the mount_path as `/etc/secrets` would mount the secret value files
      @@ -1724,13 +1607,13 @@ public Builder mergeFrom(
            * 
      * * string mount_path = 1; - * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -1739,8 +1622,6 @@ public java.lang.String getMountPath() { } } /** - * - * *
            * The path within the container to mount the secret volume. For example,
            * setting the mount_path as `/etc/secrets` would mount the secret value files
      @@ -1751,14 +1632,15 @@ public java.lang.String getMountPath() {
            * 
      * * string mount_path = 1; - * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1766,8 +1648,6 @@ public com.google.protobuf.ByteString getMountPathBytes() { } } /** - * - * *
            * The path within the container to mount the secret volume. For example,
            * setting the mount_path as `/etc/secrets` would mount the secret value files
      @@ -1778,22 +1658,20 @@ public com.google.protobuf.ByteString getMountPathBytes() {
            * 
      * * string mount_path = 1; - * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath(java.lang.String value) { + public Builder setMountPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mountPath_ = value; onChanged(); return this; } /** - * - * *
            * The path within the container to mount the secret volume. For example,
            * setting the mount_path as `/etc/secrets` would mount the secret value files
      @@ -1804,18 +1682,15 @@ public Builder setMountPath(java.lang.String value) {
            * 
      * * string mount_path = 1; - * * @return This builder for chaining. */ public Builder clearMountPath() { - + mountPath_ = getDefaultInstance().getMountPath(); onChanged(); return this; } /** - * - * *
            * The path within the container to mount the secret volume. For example,
            * setting the mount_path as `/etc/secrets` would mount the secret value files
      @@ -1826,16 +1701,16 @@ public Builder clearMountPath() {
            * 
      * * string mount_path = 1; - * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes(com.google.protobuf.ByteString value) { + public Builder setMountPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mountPath_ = value; onChanged(); return this; @@ -1843,8 +1718,6 @@ public Builder setMountPathBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * *
            * Project identifier (preferrably project number but can also be the project
            * ID) of the project that contains the secret. If not set, it will be
      @@ -1853,13 +1726,13 @@ public Builder setMountPathBytes(com.google.protobuf.ByteString value) {
            * 
      * * string project_id = 2; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1868,8 +1741,6 @@ public java.lang.String getProjectId() { } } /** - * - * *
            * Project identifier (preferrably project number but can also be the project
            * ID) of the project that contains the secret. If not set, it will be
      @@ -1878,14 +1749,15 @@ public java.lang.String getProjectId() {
            * 
      * * string project_id = 2; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1893,8 +1765,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
            * Project identifier (preferrably project number but can also be the project
            * ID) of the project that contains the secret. If not set, it will be
      @@ -1903,22 +1773,20 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
            * 
      * * string project_id = 2; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
            * Project identifier (preferrably project number but can also be the project
            * ID) of the project that contains the secret. If not set, it will be
      @@ -1927,18 +1795,15 @@ public Builder setProjectId(java.lang.String value) {
            * 
      * * string project_id = 2; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
            * Project identifier (preferrably project number but can also be the project
            * ID) of the project that contains the secret. If not set, it will be
      @@ -1947,16 +1812,16 @@ public Builder clearProjectId() {
            * 
      * * string project_id = 2; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1964,20 +1829,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object secret_ = ""; /** - * - * *
            * Name of the secret in secret manager (not the full resource name).
            * 
      * * string secret = 3; - * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -1986,21 +1849,20 @@ public java.lang.String getSecret() { } } /** - * - * *
            * Name of the secret in secret manager (not the full resource name).
            * 
      * * string secret = 3; - * * @return The bytes for secret. */ - public com.google.protobuf.ByteString getSecretBytes() { + public com.google.protobuf.ByteString + getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secret_ = b; return b; } else { @@ -2008,87 +1870,72 @@ public com.google.protobuf.ByteString getSecretBytes() { } } /** - * - * *
            * Name of the secret in secret manager (not the full resource name).
            * 
      * * string secret = 3; - * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret(java.lang.String value) { + public Builder setSecret( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** - * - * *
            * Name of the secret in secret manager (not the full resource name).
            * 
      * * string secret = 3; - * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** - * - * *
            * Name of the secret in secret manager (not the full resource name).
            * 
      * * string secret = 3; - * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes(com.google.protobuf.ByteString value) { + public Builder setSecretBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; } private java.util.List versions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - versions_ = - new java.util.ArrayList( - versions_); + versions_ = new java.util.ArrayList(versions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretVolume.SecretVersion, - com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder, - com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder> - versionsBuilder_; + com.google.cloud.functions.v1.SecretVolume.SecretVersion, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder> versionsBuilder_; /** - * - * *
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2097,8 +1944,7 @@ private void ensureVersionsIsMutable() {
            *
            * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
            */
      -    public java.util.List
      -        getVersionsList() {
      +    public java.util.List getVersionsList() {
             if (versionsBuilder_ == null) {
               return java.util.Collections.unmodifiableList(versions_);
             } else {
      @@ -2106,8 +1952,6 @@ private void ensureVersionsIsMutable() {
             }
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2124,8 +1968,6 @@ public int getVersionsCount() {
             }
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2142,8 +1984,6 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion getVersions(int
             }
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2167,8 +2007,6 @@ public Builder setVersions(
             return this;
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2178,8 +2016,7 @@ public Builder setVersions(
            * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
            */
           public Builder setVersions(
      -        int index,
      -        com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder builderForValue) {
      +        int index, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder builderForValue) {
             if (versionsBuilder_ == null) {
               ensureVersionsIsMutable();
               versions_.set(index, builderForValue.build());
      @@ -2190,8 +2027,6 @@ public Builder setVersions(
             return this;
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2214,8 +2049,6 @@ public Builder addVersions(com.google.cloud.functions.v1.SecretVolume.SecretVers
             return this;
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2239,8 +2072,6 @@ public Builder addVersions(
             return this;
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2261,8 +2092,6 @@ public Builder addVersions(
             return this;
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2272,8 +2101,7 @@ public Builder addVersions(
            * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
            */
           public Builder addVersions(
      -        int index,
      -        com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder builderForValue) {
      +        int index, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder builderForValue) {
             if (versionsBuilder_ == null) {
               ensureVersionsIsMutable();
               versions_.add(index, builderForValue.build());
      @@ -2284,8 +2112,6 @@ public Builder addVersions(
             return this;
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2295,11 +2121,11 @@ public Builder addVersions(
            * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
            */
           public Builder addAllVersions(
      -        java.lang.Iterable
      -            values) {
      +        java.lang.Iterable values) {
             if (versionsBuilder_ == null) {
               ensureVersionsIsMutable();
      -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versions_);
      +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
      +            values, versions_);
               onChanged();
             } else {
               versionsBuilder_.addAllMessages(values);
      @@ -2307,8 +2133,6 @@ public Builder addAllVersions(
             return this;
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2328,8 +2152,6 @@ public Builder clearVersions() {
             return this;
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2349,8 +2171,6 @@ public Builder removeVersions(int index) {
             return this;
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2364,8 +2184,6 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder getVersi
             return getVersionsFieldBuilder().getBuilder(index);
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2377,14 +2195,11 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder getVersi
           public com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(
               int index) {
             if (versionsBuilder_ == null) {
      -        return versions_.get(index);
      -      } else {
      +        return versions_.get(index);  } else {
               return versionsBuilder_.getMessageOrBuilder(index);
             }
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2393,9 +2208,8 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVers
            *
            * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
            */
      -    public java.util.List<
      -            ? extends com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder>
      -        getVersionsOrBuilderList() {
      +    public java.util.List 
      +         getVersionsOrBuilderList() {
             if (versionsBuilder_ != null) {
               return versionsBuilder_.getMessageOrBuilderList();
             } else {
      @@ -2403,8 +2217,6 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVers
             }
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2414,13 +2226,10 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVers
            * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
            */
           public com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder addVersionsBuilder() {
      -      return getVersionsFieldBuilder()
      -          .addBuilder(
      -              com.google.cloud.functions.v1.SecretVolume.SecretVersion.getDefaultInstance());
      +      return getVersionsFieldBuilder().addBuilder(
      +          com.google.cloud.functions.v1.SecretVolume.SecretVersion.getDefaultInstance());
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2431,13 +2240,10 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder addVersi
            */
           public com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder addVersionsBuilder(
               int index) {
      -      return getVersionsFieldBuilder()
      -          .addBuilder(
      -              index, com.google.cloud.functions.v1.SecretVolume.SecretVersion.getDefaultInstance());
      +      return getVersionsFieldBuilder().addBuilder(
      +          index, com.google.cloud.functions.v1.SecretVolume.SecretVersion.getDefaultInstance());
           }
           /**
      -     *
      -     *
            * 
            * List of secret versions to mount for this secret. If empty, the `latest`
            * version of the secret will be made available in a file named after the
      @@ -2446,30 +2252,27 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder addVersi
            *
            * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
            */
      -    public java.util.List
      -        getVersionsBuilderList() {
      +    public java.util.List 
      +         getVersionsBuilderList() {
             return getVersionsFieldBuilder().getBuilderList();
           }
      -
           private com.google.protobuf.RepeatedFieldBuilderV3<
      -            com.google.cloud.functions.v1.SecretVolume.SecretVersion,
      -            com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder,
      -            com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder>
      +        com.google.cloud.functions.v1.SecretVolume.SecretVersion, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder> 
               getVersionsFieldBuilder() {
             if (versionsBuilder_ == null) {
      -        versionsBuilder_ =
      -            new com.google.protobuf.RepeatedFieldBuilderV3<
      -                com.google.cloud.functions.v1.SecretVolume.SecretVersion,
      -                com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder,
      -                com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder>(
      -                versions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
      +        versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
      +            com.google.cloud.functions.v1.SecretVolume.SecretVersion, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder>(
      +                versions_,
      +                ((bitField0_ & 0x00000001) != 0),
      +                getParentForChildren(),
      +                isClean());
               versions_ = null;
             }
             return versionsBuilder_;
           }
      -
           @java.lang.Override
      -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      +    public final Builder setUnknownFields(
      +        final com.google.protobuf.UnknownFieldSet unknownFields) {
             return super.setUnknownFields(unknownFields);
           }
       
      @@ -2479,12 +2282,12 @@ public final Builder mergeUnknownFields(
             return super.mergeUnknownFields(unknownFields);
           }
       
      +
           // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.SecretVolume)
         }
       
         // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.SecretVolume)
         private static final com.google.cloud.functions.v1.SecretVolume DEFAULT_INSTANCE;
      -
         static {
           DEFAULT_INSTANCE = new com.google.cloud.functions.v1.SecretVolume();
         }
      @@ -2493,16 +2296,16 @@ public static com.google.cloud.functions.v1.SecretVolume getDefaultInstance() {
           return DEFAULT_INSTANCE;
         }
       
      -  private static final com.google.protobuf.Parser PARSER =
      -      new com.google.protobuf.AbstractParser() {
      -        @java.lang.Override
      -        public SecretVolume parsePartialFrom(
      -            com.google.protobuf.CodedInputStream input,
      -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      -            throws com.google.protobuf.InvalidProtocolBufferException {
      -          return new SecretVolume(input, extensionRegistry);
      -        }
      -      };
      +  private static final com.google.protobuf.Parser
      +      PARSER = new com.google.protobuf.AbstractParser() {
      +    @java.lang.Override
      +    public SecretVolume parsePartialFrom(
      +        com.google.protobuf.CodedInputStream input,
      +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        throws com.google.protobuf.InvalidProtocolBufferException {
      +      return new SecretVolume(input, extensionRegistry);
      +    }
      +  };
       
         public static com.google.protobuf.Parser parser() {
           return PARSER;
      @@ -2517,4 +2320,6 @@ public com.google.protobuf.Parser getParserForType() {
         public com.google.cloud.functions.v1.SecretVolume getDefaultInstanceForType() {
           return DEFAULT_INSTANCE;
         }
      +
       }
      +
      diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java
      similarity index 81%
      rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java
      rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java
      index 1b656146..84403738 100644
      --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java
      +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java
      @@ -1,31 +1,13 @@
      -/*
      - * 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/v1/functions.proto
       
       package com.google.cloud.functions.v1;
       
      -public interface SecretVolumeOrBuilder
      -    extends
      +public interface SecretVolumeOrBuilder extends
           // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.SecretVolume)
           com.google.protobuf.MessageOrBuilder {
       
         /**
      -   *
      -   *
          * 
          * The path within the container to mount the secret volume. For example,
          * setting the mount_path as `/etc/secrets` would mount the secret value files
      @@ -36,13 +18,10 @@ public interface SecretVolumeOrBuilder
          * 
      * * string mount_path = 1; - * * @return The mountPath. */ java.lang.String getMountPath(); /** - * - * *
          * The path within the container to mount the secret volume. For example,
          * setting the mount_path as `/etc/secrets` would mount the secret value files
      @@ -53,14 +32,12 @@ public interface SecretVolumeOrBuilder
          * 
      * * string mount_path = 1; - * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString getMountPathBytes(); + com.google.protobuf.ByteString + getMountPathBytes(); /** - * - * *
          * Project identifier (preferrably project number but can also be the project
          * ID) of the project that contains the secret. If not set, it will be
      @@ -69,13 +46,10 @@ public interface SecretVolumeOrBuilder
          * 
      * * string project_id = 2; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
          * Project identifier (preferrably project number but can also be the project
          * ID) of the project that contains the secret. If not set, it will be
      @@ -84,39 +58,32 @@ public interface SecretVolumeOrBuilder
          * 
      * * string project_id = 2; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
          * Name of the secret in secret manager (not the full resource name).
          * 
      * * string secret = 3; - * * @return The secret. */ java.lang.String getSecret(); /** - * - * *
          * Name of the secret in secret manager (not the full resource name).
          * 
      * * string secret = 3; - * * @return The bytes for secret. */ - com.google.protobuf.ByteString getSecretBytes(); + com.google.protobuf.ByteString + getSecretBytes(); /** - * - * *
          * List of secret versions to mount for this secret. If empty, the `latest`
          * version of the secret will be made available in a file named after the
      @@ -125,10 +92,9 @@ public interface SecretVolumeOrBuilder
          *
          * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
          */
      -  java.util.List getVersionsList();
      +  java.util.List 
      +      getVersionsList();
         /**
      -   *
      -   *
          * 
          * List of secret versions to mount for this secret. If empty, the `latest`
          * version of the secret will be made available in a file named after the
      @@ -139,8 +105,6 @@ public interface SecretVolumeOrBuilder
          */
         com.google.cloud.functions.v1.SecretVolume.SecretVersion getVersions(int index);
         /**
      -   *
      -   *
          * 
          * List of secret versions to mount for this secret. If empty, the `latest`
          * version of the secret will be made available in a file named after the
      @@ -151,8 +115,6 @@ public interface SecretVolumeOrBuilder
          */
         int getVersionsCount();
         /**
      -   *
      -   *
          * 
          * List of secret versions to mount for this secret. If empty, the `latest`
          * version of the secret will be made available in a file named after the
      @@ -161,11 +123,9 @@ public interface SecretVolumeOrBuilder
          *
          * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
          */
      -  java.util.List
      +  java.util.List 
             getVersionsOrBuilderList();
         /**
      -   *
      -   *
          * 
          * List of secret versions to mount for this secret. If empty, the `latest`
          * version of the secret will be made available in a file named after the
      @@ -174,5 +134,6 @@ public interface SecretVolumeOrBuilder
          *
          * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
          */
      -  com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(int index);
      +  com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(
      +      int index);
       }
      diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java
      similarity index 76%
      rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java
      rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java
      index fb2f4c39..b678592a 100644
      --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java
      +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java
      @@ -1,26 +1,9 @@
      -/*
      - * 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/v1/functions.proto
       
       package com.google.cloud.functions.v1;
       
       /**
      - *
      - *
        * 
        * Describes SourceRepository, used to represent parameters related to
        * source repository where a function is hosted.
      @@ -28,16 +11,15 @@
        *
        * Protobuf type {@code google.cloud.functions.v1.SourceRepository}
        */
      -public final class SourceRepository extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class SourceRepository extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.SourceRepository)
           SourceRepositoryOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use SourceRepository.newBuilder() to construct.
         private SourceRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
         private SourceRepository() {
           url_ = "";
           deployedUrl_ = "";
      @@ -45,15 +27,16 @@ private SourceRepository() {
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new SourceRepository();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private SourceRepository(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -72,27 +55,25 @@ private SourceRepository(
                 case 0:
                   done = true;
                   break;
      -          case 10:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +          case 10: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              url_ = s;
      -              break;
      -            }
      -          case 18:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            url_ = s;
      +            break;
      +          }
      +          case 18: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              deployedUrl_ = s;
      -              break;
      -            }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +            deployedUrl_ = s;
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -100,33 +81,29 @@ private SourceRepository(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             this.unknownFields = unknownFields.build();
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.functions.v1.FunctionsProto
      -        .internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.functions.v1.FunctionsProto
      -        .internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable
      +    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.functions.v1.SourceRepository.class,
      -            com.google.cloud.functions.v1.SourceRepository.Builder.class);
      +            com.google.cloud.functions.v1.SourceRepository.class, com.google.cloud.functions.v1.SourceRepository.Builder.class);
         }
       
         public static final int URL_FIELD_NUMBER = 1;
         private volatile java.lang.Object url_;
         /**
      -   *
      -   *
          * 
          * The URL pointing to the hosted repository where the function is defined.
          * There are supported Cloud Source Repository URLs in the following
      @@ -142,7 +119,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
      * * string url = 1; - * * @return The url. */ @java.lang.Override @@ -151,15 +127,14 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
          * The URL pointing to the hosted repository where the function is defined.
          * There are supported Cloud Source Repository URLs in the following
      @@ -175,15 +150,16 @@ public java.lang.String getUrl() {
          * 
      * * string url = 1; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -194,8 +170,6 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int DEPLOYED_URL_FIELD_NUMBER = 2; private volatile java.lang.Object deployedUrl_; /** - * - * *
          * Output only. The URL pointing to the hosted repository where the function
          * were defined at the time of deployment. It always points to a specific
      @@ -203,7 +177,6 @@ public com.google.protobuf.ByteString getUrlBytes() {
          * 
      * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The deployedUrl. */ @java.lang.Override @@ -212,15 +185,14 @@ public java.lang.String getDeployedUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deployedUrl_ = s; return s; } } /** - * - * *
          * Output only. The URL pointing to the hosted repository where the function
          * were defined at the time of deployment. It always points to a specific
      @@ -228,15 +200,16 @@ public java.lang.String getDeployedUrl() {
          * 
      * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for deployedUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getDeployedUrlBytes() { + public com.google.protobuf.ByteString + getDeployedUrlBytes() { java.lang.Object ref = deployedUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); deployedUrl_ = b; return b; } else { @@ -245,7 +218,6 @@ public com.google.protobuf.ByteString getDeployedUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -287,16 +260,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.SourceRepository)) { return super.equals(obj); } - com.google.cloud.functions.v1.SourceRepository other = - (com.google.cloud.functions.v1.SourceRepository) obj; + com.google.cloud.functions.v1.SourceRepository other = (com.google.cloud.functions.v1.SourceRepository) obj; - if (!getUrl().equals(other.getUrl())) return false; - if (!getDeployedUrl().equals(other.getDeployedUrl())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; + if (!getDeployedUrl() + .equals(other.getDeployedUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -317,104 +291,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.SourceRepository parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.SourceRepository parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.SourceRepository parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.SourceRepository parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.SourceRepository 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.v1.SourceRepository parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.SourceRepository parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.SourceRepository parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.SourceRepository parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.SourceRepository parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.SourceRepository parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.SourceRepository parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.SourceRepository parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.SourceRepository parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.SourceRepository prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Describes SourceRepository, used to represent parameters related to
          * source repository where a function is hosted.
      @@ -422,23 +389,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.functions.v1.SourceRepository}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.SourceRepository)
             com.google.cloud.functions.v1.SourceRepositoryOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.functions.v1.SourceRepository.class,
      -              com.google.cloud.functions.v1.SourceRepository.Builder.class);
      +              com.google.cloud.functions.v1.SourceRepository.class, com.google.cloud.functions.v1.SourceRepository.Builder.class);
           }
       
           // Construct using com.google.cloud.functions.v1.SourceRepository.newBuilder()
      @@ -446,15 +411,16 @@ private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
      +      }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -466,9 +432,9 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.functions.v1.FunctionsProto
      -          .internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
           }
       
           @java.lang.Override
      @@ -487,8 +453,7 @@ public com.google.cloud.functions.v1.SourceRepository build() {
       
           @java.lang.Override
           public com.google.cloud.functions.v1.SourceRepository buildPartial() {
      -      com.google.cloud.functions.v1.SourceRepository result =
      -          new com.google.cloud.functions.v1.SourceRepository(this);
      +      com.google.cloud.functions.v1.SourceRepository result = new com.google.cloud.functions.v1.SourceRepository(this);
             result.url_ = url_;
             result.deployedUrl_ = deployedUrl_;
             onBuilt();
      @@ -499,39 +464,38 @@ public com.google.cloud.functions.v1.SourceRepository buildPartial() {
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        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) {
      +    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) {
      +    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) {
      +        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) {
      +        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) {
      -        return mergeFrom((com.google.cloud.functions.v1.SourceRepository) other);
      +        return mergeFrom((com.google.cloud.functions.v1.SourceRepository)other);
             } else {
               super.mergeFrom(other);
               return this;
      @@ -579,8 +543,6 @@ public Builder mergeFrom(
       
           private java.lang.Object url_ = "";
           /**
      -     *
      -     *
            * 
            * The URL pointing to the hosted repository where the function is defined.
            * There are supported Cloud Source Repository URLs in the following
      @@ -596,13 +558,13 @@ public Builder mergeFrom(
            * 
      * * string url = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -611,8 +573,6 @@ 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
      @@ -628,14 +588,15 @@ public java.lang.String getUrl() {
            * 
      * * string url = 1; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -643,8 +604,6 @@ 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
      @@ -660,22 +619,20 @@ public com.google.protobuf.ByteString getUrlBytes() {
            * 
      * * string url = 1; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
            * The URL pointing to the hosted repository where the function is defined.
            * There are supported Cloud Source Repository URLs in the following
      @@ -691,18 +648,15 @@ public Builder setUrl(java.lang.String value) {
            * 
      * * string url = 1; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
            * The URL pointing to the hosted repository where the function is defined.
            * There are supported Cloud Source Repository URLs in the following
      @@ -718,16 +672,16 @@ public Builder clearUrl() {
            * 
      * * string url = 1; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; @@ -735,8 +689,6 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object deployedUrl_ = ""; /** - * - * *
            * Output only. The URL pointing to the hosted repository where the function
            * were defined at the time of deployment. It always points to a specific
      @@ -744,13 +696,13 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) {
            * 
      * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The deployedUrl. */ public java.lang.String getDeployedUrl() { java.lang.Object ref = deployedUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deployedUrl_ = s; return s; @@ -759,8 +711,6 @@ public java.lang.String getDeployedUrl() { } } /** - * - * *
            * Output only. The URL pointing to the hosted repository where the function
            * were defined at the time of deployment. It always points to a specific
      @@ -768,14 +718,15 @@ public java.lang.String getDeployedUrl() {
            * 
      * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for deployedUrl. */ - public com.google.protobuf.ByteString getDeployedUrlBytes() { + public com.google.protobuf.ByteString + getDeployedUrlBytes() { java.lang.Object ref = deployedUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); deployedUrl_ = b; return b; } else { @@ -783,8 +734,6 @@ public com.google.protobuf.ByteString getDeployedUrlBytes() { } } /** - * - * *
            * Output only. The URL pointing to the hosted repository where the function
            * were defined at the time of deployment. It always points to a specific
      @@ -792,22 +741,20 @@ public com.google.protobuf.ByteString getDeployedUrlBytes() {
            * 
      * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The deployedUrl to set. * @return This builder for chaining. */ - public Builder setDeployedUrl(java.lang.String value) { + public Builder setDeployedUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deployedUrl_ = value; onChanged(); return this; } /** - * - * *
            * Output only. The URL pointing to the hosted repository where the function
            * were defined at the time of deployment. It always points to a specific
      @@ -815,18 +762,15 @@ public Builder setDeployedUrl(java.lang.String value) {
            * 
      * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDeployedUrl() { - + deployedUrl_ = getDefaultInstance().getDeployedUrl(); onChanged(); return this; } /** - * - * *
            * Output only. The URL pointing to the hosted repository where the function
            * were defined at the time of deployment. It always points to a specific
      @@ -834,23 +778,23 @@ public Builder clearDeployedUrl() {
            * 
      * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for deployedUrl to set. * @return This builder for chaining. */ - public Builder setDeployedUrlBytes(com.google.protobuf.ByteString value) { + public Builder setDeployedUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deployedUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -860,12 +804,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.SourceRepository) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.SourceRepository) private static final com.google.cloud.functions.v1.SourceRepository DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.SourceRepository(); } @@ -874,16 +818,16 @@ public static com.google.cloud.functions.v1.SourceRepository getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceRepository parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SourceRepository(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceRepository parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SourceRepository(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -898,4 +842,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.SourceRepository getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java similarity index 77% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java index 9cd5604d..458ec63a 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface SourceRepositoryOrBuilder - extends +public interface SourceRepositoryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.SourceRepository) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The URL pointing to the hosted repository where the function is defined.
          * There are supported Cloud Source Repository URLs in the following
      @@ -41,13 +23,10 @@ public interface SourceRepositoryOrBuilder
          * 
      * * string url = 1; - * * @return The url. */ 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
      @@ -63,14 +42,12 @@ public interface SourceRepositoryOrBuilder
          * 
      * * string url = 1; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
          * Output only. The URL pointing to the hosted repository where the function
          * were defined at the time of deployment. It always points to a specific
      @@ -78,13 +55,10 @@ public interface SourceRepositoryOrBuilder
          * 
      * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The deployedUrl. */ java.lang.String getDeployedUrl(); /** - * - * *
          * Output only. The URL pointing to the hosted repository where the function
          * were defined at the time of deployment. It always points to a specific
      @@ -92,8 +66,8 @@ public interface SourceRepositoryOrBuilder
          * 
      * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for deployedUrl. */ - com.google.protobuf.ByteString getDeployedUrlBytes(); + com.google.protobuf.ByteString + getDeployedUrlBytes(); } diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java similarity index 65% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java index cf6a6c63..dd358632 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java @@ -1,55 +1,39 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; /** - * - * *
        * Request for the `UpdateFunction` method.
        * 
      * * Protobuf type {@code google.cloud.functions.v1.UpdateFunctionRequest} */ -public final class UpdateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.UpdateFunctionRequest) UpdateFunctionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateFunctionRequest.newBuilder() to construct. private UpdateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateFunctionRequest() {} + private UpdateFunctionRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateFunctionRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.functions.v1.CloudFunction.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); - } - function_ = - input.readMessage( - com.google.cloud.functions.v1.CloudFunction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.functions.v1.CloudFunction.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); + } + function_ = input.readMessage(com.google.cloud.functions.v1.CloudFunction.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,41 +92,34 @@ private UpdateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.UpdateFunctionRequest.class, - com.google.cloud.functions.v1.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v1.UpdateFunctionRequest.class, com.google.cloud.functions.v1.UpdateFunctionRequest.Builder.class); } public static final int FUNCTION_FIELD_NUMBER = 1; private com.google.cloud.functions.v1.CloudFunction function_; /** - * - * *
          * Required. New version of the function.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ @java.lang.Override @@ -155,34 +127,23 @@ public boolean hasFunction() { return function_ != null; } /** - * - * *
          * Required. New version of the function.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunction getFunction() { - return function_ == null - ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() - : function_; + return function_ == null ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() : function_; } /** - * - * *
          * Required. New version of the function.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder() { @@ -192,14 +153,11 @@ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
          * Required. The list of fields in `CloudFunction` that have to be updated.
          * 
      * * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -207,14 +165,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
          * Required. The list of fields in `CloudFunction` that have to be updated.
          * 
      * * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -222,8 +177,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
          * Required. The list of fields in `CloudFunction` that have to be updated.
          * 
      @@ -236,7 +189,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (function_ != null) { output.writeMessage(1, getFunction()); } @@ -265,10 +218,12 @@ public int getSerializedSize() { size = 0; if (function_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunction()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFunction()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -278,21 +233,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.UpdateFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.UpdateFunctionRequest other = - (com.google.cloud.functions.v1.UpdateFunctionRequest) obj; + com.google.cloud.functions.v1.UpdateFunctionRequest other = (com.google.cloud.functions.v1.UpdateFunctionRequest) obj; if (hasFunction() != other.hasFunction()) return false; if (hasFunction()) { - if (!getFunction().equals(other.getFunction())) return false; + if (!getFunction() + .equals(other.getFunction())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -319,126 +275,117 @@ public int hashCode() { } public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.UpdateFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.UpdateFunctionRequest 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.v1.UpdateFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v1.UpdateFunctionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v1.UpdateFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.UpdateFunctionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.UpdateFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request for the `UpdateFunction` method.
          * 
      * * Protobuf type {@code google.cloud.functions.v1.UpdateFunctionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.UpdateFunctionRequest) com.google.cloud.functions.v1.UpdateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.UpdateFunctionRequest.class, - com.google.cloud.functions.v1.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v1.UpdateFunctionRequest.class, com.google.cloud.functions.v1.UpdateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.UpdateFunctionRequest.newBuilder() @@ -446,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto - .internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; } @java.lang.Override @@ -495,8 +443,7 @@ public com.google.cloud.functions.v1.UpdateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v1.UpdateFunctionRequest buildPartial() { - com.google.cloud.functions.v1.UpdateFunctionRequest result = - new com.google.cloud.functions.v1.UpdateFunctionRequest(this); + com.google.cloud.functions.v1.UpdateFunctionRequest result = new com.google.cloud.functions.v1.UpdateFunctionRequest(this); if (functionBuilder_ == null) { result.function_ = function_; } else { @@ -515,39 +462,38 @@ public com.google.cloud.functions.v1.UpdateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.UpdateFunctionRequest) other); + return mergeFrom((com.google.cloud.functions.v1.UpdateFunctionRequest)other); } else { super.mergeFrom(other); return this; @@ -555,8 +501,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.UpdateFunctionRequest other) { - if (other == com.google.cloud.functions.v1.UpdateFunctionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v1.UpdateFunctionRequest.getDefaultInstance()) return this; if (other.hasFunction()) { mergeFunction(other.getFunction()); } @@ -582,8 +527,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v1.UpdateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v1.UpdateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -595,58 +539,39 @@ public Builder mergeFrom( private com.google.cloud.functions.v1.CloudFunction function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, - com.google.cloud.functions.v1.CloudFunction.Builder, - com.google.cloud.functions.v1.CloudFunctionOrBuilder> - functionBuilder_; + com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder> functionBuilder_; /** - * - * *
            * Required. New version of the function.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** - * - * *
            * Required. New version of the function.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ public com.google.cloud.functions.v1.CloudFunction getFunction() { if (functionBuilder_ == null) { - return function_ == null - ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() - : function_; + return function_ == null ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() : function_; } else { return functionBuilder_.getMessage(); } } /** - * - * *
            * Required. New version of the function.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFunction(com.google.cloud.functions.v1.CloudFunction value) { if (functionBuilder_ == null) { @@ -662,15 +587,11 @@ public Builder setFunction(com.google.cloud.functions.v1.CloudFunction value) { return this; } /** - * - * *
            * Required. New version of the function.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFunction( com.google.cloud.functions.v1.CloudFunction.Builder builderForValue) { @@ -684,23 +605,17 @@ public Builder setFunction( return this; } /** - * - * *
            * Required. New version of the function.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFunction(com.google.cloud.functions.v1.CloudFunction value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v1.CloudFunction.newBuilder(function_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.functions.v1.CloudFunction.newBuilder(function_).mergeFrom(value).buildPartial(); } else { function_ = value; } @@ -712,15 +627,11 @@ public Builder mergeFunction(com.google.cloud.functions.v1.CloudFunction value) return this; } /** - * - * *
            * Required. New version of the function.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -734,64 +645,48 @@ public Builder clearFunction() { return this; } /** - * - * *
            * Required. New version of the function.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.functions.v1.CloudFunction.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** - * - * *
            * Required. New version of the function.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null - ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() - : function_; + return function_ == null ? + com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() : function_; } } /** - * - * *
            * Required. New version of the function.
            * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, - com.google.cloud.functions.v1.CloudFunction.Builder, - com.google.cloud.functions.v1.CloudFunctionOrBuilder> + com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, - com.google.cloud.functions.v1.CloudFunction.Builder, - com.google.cloud.functions.v1.CloudFunctionOrBuilder>( - getFunction(), getParentForChildren(), isClean()); + functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder>( + getFunction(), + getParentForChildren(), + isClean()); function_ = null; } return functionBuilder_; @@ -799,47 +694,34 @@ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
            * Required. The list of fields in `CloudFunction` that have to be updated.
            * 
      * * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
            * Required. The list of fields in `CloudFunction` that have to be updated.
            * 
      * * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
            * Required. The list of fields in `CloudFunction` that have to be updated.
            * 
      @@ -860,15 +742,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
            * Required. The list of fields in `CloudFunction` that have to be updated.
            * 
      * * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -879,8 +760,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
            * Required. The list of fields in `CloudFunction` that have to be updated.
            * 
      @@ -891,7 +770,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -903,8 +782,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
            * Required. The list of fields in `CloudFunction` that have to be updated.
            * 
      @@ -923,8 +800,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
            * Required. The list of fields in `CloudFunction` that have to be updated.
            * 
      @@ -932,13 +807,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
            * Required. The list of fields in `CloudFunction` that have to be updated.
            * 
      @@ -949,14 +822,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
            * Required. The list of fields in `CloudFunction` that have to be updated.
            * 
      @@ -964,24 +834,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -991,12 +858,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.UpdateFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.UpdateFunctionRequest) private static final com.google.cloud.functions.v1.UpdateFunctionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.UpdateFunctionRequest(); } @@ -1005,16 +872,16 @@ public static com.google.cloud.functions.v1.UpdateFunctionRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1029,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.UpdateFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java index 12f10a98..3be86e50 100644 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java @@ -1,96 +1,58 @@ -/* - * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface UpdateFunctionRequestOrBuilder - extends +public interface UpdateFunctionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.UpdateFunctionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. New version of the function.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ boolean hasFunction(); /** - * - * *
          * Required. New version of the function.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ com.google.cloud.functions.v1.CloudFunction getFunction(); /** - * - * *
          * Required. New version of the function.
          * 
      * - * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder(); /** - * - * *
          * Required. The list of fields in `CloudFunction` that have to be updated.
          * 
      * * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
          * Required. The list of fields in `CloudFunction` that have to be updated.
          * 
      * * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
          * Required. The list of fields in `CloudFunction` that have to be updated.
          * 
      diff --git a/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/functions.proto b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/functions.proto similarity index 100% rename from proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/functions.proto rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/functions.proto diff --git a/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/operations.proto b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/operations.proto similarity index 100% rename from proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/operations.proto rename to owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/operations.proto diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/AsyncCallFunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/AsyncCallFunction.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/AsyncCallFunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/AsyncCallFunction.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunction.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunction.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionCloudfunctionnameString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionCloudfunctionnameString.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionCloudfunctionnameString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionCloudfunctionnameString.java index d6402f88..9b0ec755 100644 --- a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionCloudfunctionnameString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionCloudfunctionnameString.java @@ -16,8 +16,7 @@ package com.google.cloud.functions.v1.samples; -// [START -// functions_v1_generated_cloudfunctionsserviceclient_callfunction_cloudfunctionnamestring_sync] +// [START functions_v1_generated_cloudfunctionsserviceclient_callfunction_cloudfunctionnamestring_sync] import com.google.cloud.functions.v1.CallFunctionResponse; import com.google.cloud.functions.v1.CloudFunctionName; import com.google.cloud.functions.v1.CloudFunctionsServiceClient; @@ -39,5 +38,4 @@ public static void syncCallFunctionCloudfunctionnameString() throws Exception { } } } -// [END -// functions_v1_generated_cloudfunctionsserviceclient_callfunction_cloudfunctionnamestring_sync] +// [END functions_v1_generated_cloudfunctionsserviceclient_callfunction_cloudfunctionnamestring_sync] diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionStringString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionStringString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionStringString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionStringString.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunction.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunction.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunctionLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunctionLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunctionLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunctionLRO.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunction.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunction.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionLocationnameCloudfunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionLocationnameCloudfunction.java similarity index 87% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionLocationnameCloudfunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionLocationnameCloudfunction.java index 42f34f94..e6bf3251 100644 --- a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionLocationnameCloudfunction.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionLocationnameCloudfunction.java @@ -16,8 +16,7 @@ package com.google.cloud.functions.v1.samples; -// [START -// functions_v1_generated_cloudfunctionsserviceclient_createfunction_locationnamecloudfunction_sync] +// [START functions_v1_generated_cloudfunctionsserviceclient_createfunction_locationnamecloudfunction_sync] import com.google.cloud.functions.v1.CloudFunction; import com.google.cloud.functions.v1.CloudFunctionsServiceClient; import com.google.cloud.functions.v1.LocationName; @@ -40,5 +39,4 @@ public static void syncCreateFunctionLocationnameCloudfunction() throws Exceptio } } } -// [END -// functions_v1_generated_cloudfunctionsserviceclient_createfunction_locationnamecloudfunction_sync] +// [END functions_v1_generated_cloudfunctionsserviceclient_createfunction_locationnamecloudfunction_sync] diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionStringCloudfunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionStringCloudfunction.java similarity index 94% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionStringCloudfunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionStringCloudfunction.java index 89770276..378bbb1f 100644 --- a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionStringCloudfunction.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionStringCloudfunction.java @@ -16,8 +16,7 @@ package com.google.cloud.functions.v1.samples; -// [START -// functions_v1_generated_cloudfunctionsserviceclient_createfunction_stringcloudfunction_sync] +// [START functions_v1_generated_cloudfunctionsserviceclient_createfunction_stringcloudfunction_sync] import com.google.cloud.functions.v1.CloudFunction; import com.google.cloud.functions.v1.CloudFunctionsServiceClient; import com.google.cloud.functions.v1.LocationName; diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunction.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunction.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunctionLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunctionLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunctionLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunctionLRO.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunction.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunction.java index 89b80149..28a1076b 100644 --- a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunction.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunction.java @@ -20,6 +20,7 @@ import com.google.cloud.functions.v1.CloudFunctionName; import com.google.cloud.functions.v1.CloudFunctionsServiceClient; import com.google.cloud.functions.v1.DeleteFunctionRequest; +import com.google.protobuf.Empty; public class SyncDeleteFunction { diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionCloudfunctionname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionCloudfunctionname.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionCloudfunctionname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionCloudfunctionname.java index df111f77..4cbd62fd 100644 --- a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionCloudfunctionname.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionCloudfunctionname.java @@ -19,6 +19,7 @@ // [START functions_v1_generated_cloudfunctionsserviceclient_deletefunction_cloudfunctionname_sync] import com.google.cloud.functions.v1.CloudFunctionName; import com.google.cloud.functions.v1.CloudFunctionsServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteFunctionCloudfunctionname { diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionString.java index 97b54cda..96c8d12c 100644 --- a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionString.java @@ -19,6 +19,7 @@ // [START functions_v1_generated_cloudfunctionsserviceclient_deletefunction_string_sync] import com.google.cloud.functions.v1.CloudFunctionName; import com.google.cloud.functions.v1.CloudFunctionsServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteFunctionString { diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/SyncGenerateUploadUrl.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/SyncGenerateUploadUrl.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/SyncGenerateUploadUrl.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/SyncGenerateUploadUrl.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/AsyncGetFunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/AsyncGetFunction.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/AsyncGetFunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/AsyncGetFunction.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunction.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunction.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionCloudfunctionname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionCloudfunctionname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionCloudfunctionname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionCloudfunctionname.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionString.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/AsyncGetIamPolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/AsyncGetIamPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/SyncGetIamPolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/SyncGetIamPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctions.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctionsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctionsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctionsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctionsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/SyncListFunctions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/SyncListFunctions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/SyncListFunctions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/SyncListFunctions.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/AsyncSetIamPolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/AsyncSetIamPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/SyncSetIamPolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/SyncSetIamPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/AsyncTestIamPermissions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/AsyncTestIamPermissions.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/SyncTestIamPermissions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/SyncTestIamPermissions.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunction.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunction.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunctionLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunctionLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunctionLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunctionLRO.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunction.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunction.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunctionCloudfunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunctionCloudfunction.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunctionCloudfunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunctionCloudfunction.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservicesettings/getfunction/SyncGetFunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservicesettings/getfunction/SyncGetFunction.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservicesettings/getfunction/SyncGetFunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservicesettings/getfunction/SyncGetFunction.java diff --git a/samples/snippets/generated/com/google/cloud/functions/v1/stub/cloudfunctionsservicestubsettings/getfunction/SyncGetFunction.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/stub/cloudfunctionsservicestubsettings/getfunction/SyncGetFunction.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/functions/v1/stub/cloudfunctionsservicestubsettings/getfunction/SyncGetFunction.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/stub/cloudfunctionsservicestubsettings/getfunction/SyncGetFunction.java diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java new file mode 100644 index 00000000..def0257a --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java @@ -0,0 +1,1570 @@ +/* + * 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.v2; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.functions.v2.stub.FunctionServiceStub; +import com.google.cloud.functions.v2.stub.FunctionServiceStubSettings; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Google Cloud Functions is used to deploy functions that are executed by + * Google in response to various events. Data connected with that event is passed to a function as + * the input data. + * + *

      A **function** is a resource which describes a function that should be + * executed and how it is triggered. + * + *

      This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

      {@code
      + * // This snippet has been automatically generated for illustrative purposes only.
      + * // It may require modifications to work in your environment.
      + * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      + *   FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]");
      + *   Function response = functionServiceClient.getFunction(name);
      + * }
      + * }
      + * + *

      Note: close() needs to be called on the FunctionServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *

      The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

        + *
      1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
      2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
      3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
      + * + *

      See the individual methods for example code. + * + *

      Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

      This class can be customized by passing in a custom instance of FunctionServiceSettings to + * create(). For example: + * + *

      To customize credentials: + * + *

      {@code
      + * // This snippet has been automatically generated for illustrative purposes only.
      + * // It may require modifications to work in your environment.
      + * FunctionServiceSettings functionServiceSettings =
      + *     FunctionServiceSettings.newBuilder()
      + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      + *         .build();
      + * FunctionServiceClient functionServiceClient =
      + *     FunctionServiceClient.create(functionServiceSettings);
      + * }
      + * + *

      To customize the endpoint: + * + *

      {@code
      + * // This snippet has been automatically generated for illustrative purposes only.
      + * // It may require modifications to work in your environment.
      + * FunctionServiceSettings functionServiceSettings =
      + *     FunctionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
      + * FunctionServiceClient functionServiceClient =
      + *     FunctionServiceClient.create(functionServiceSettings);
      + * }
      + * + *

      To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

      {@code
      + * // This snippet has been automatically generated for illustrative purposes only.
      + * // It may require modifications to work in your environment.
      + * FunctionServiceSettings functionServiceSettings =
      + *     FunctionServiceSettings.newBuilder()
      + *         .setTransportChannelProvider(
      + *             FunctionServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
      + *         .build();
      + * FunctionServiceClient functionServiceClient =
      + *     FunctionServiceClient.create(functionServiceSettings);
      + * }
      + * + *

      Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class FunctionServiceClient implements BackgroundResource { + private final FunctionServiceSettings settings; + private final FunctionServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of FunctionServiceClient with default settings. */ + public static final FunctionServiceClient create() throws IOException { + return create(FunctionServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of FunctionServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final FunctionServiceClient create(FunctionServiceSettings settings) + throws IOException { + return new FunctionServiceClient(settings); + } + + /** + * Constructs an instance of FunctionServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(FunctionServiceSettings). + */ + public static final FunctionServiceClient create(FunctionServiceStub stub) { + return new FunctionServiceClient(stub); + } + + /** + * Constructs an instance of FunctionServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected FunctionServiceClient(FunctionServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((FunctionServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected FunctionServiceClient(FunctionServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final FunctionServiceSettings getSettings() { + return settings; + } + + public FunctionServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a function with the given name from the requested project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]");
      +   *   Function response = functionServiceClient.getFunction(name);
      +   * }
      +   * }
      + * + * @param name Required. The name of the function which details should be obtained. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Function getFunction(FunctionName name) { + GetFunctionRequest request = + GetFunctionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getFunction(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a function with the given name from the requested project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   String name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString();
      +   *   Function response = functionServiceClient.getFunction(name);
      +   * }
      +   * }
      + * + * @param name Required. The name of the function which details should be obtained. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Function getFunction(String name) { + GetFunctionRequest request = GetFunctionRequest.newBuilder().setName(name).build(); + return getFunction(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a function with the given name from the requested project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   GetFunctionRequest request =
      +   *       GetFunctionRequest.newBuilder()
      +   *           .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
      +   *           .build();
      +   *   Function response = functionServiceClient.getFunction(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Function getFunction(GetFunctionRequest request) { + return getFunctionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a function with the given name from the requested project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   GetFunctionRequest request =
      +   *       GetFunctionRequest.newBuilder()
      +   *           .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
      +   *           .build();
      +   *   ApiFuture future = functionServiceClient.getFunctionCallable().futureCall(request);
      +   *   // Do something.
      +   *   Function response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getFunctionCallable() { + return stub.getFunctionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of functions that belong to the requested project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      +   *   for (Function element : functionServiceClient.listFunctions(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFunctionsPagedResponse listFunctions(LocationName parent) { + ListFunctionsRequest request = + ListFunctionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFunctions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of functions that belong to the requested project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   for (Function element : functionServiceClient.listFunctions(parent).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param parent 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFunctionsPagedResponse listFunctions(String parent) { + ListFunctionsRequest request = ListFunctionsRequest.newBuilder().setParent(parent).build(); + return listFunctions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of functions that belong to the requested project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   ListFunctionsRequest request =
      +   *       ListFunctionsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   for (Function element : functionServiceClient.listFunctions(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFunctionsPagedResponse listFunctions(ListFunctionsRequest request) { + return listFunctionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of functions that belong to the requested project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   ListFunctionsRequest request =
      +   *       ListFunctionsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       functionServiceClient.listFunctionsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Function element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listFunctionsPagedCallable() { + return stub.listFunctionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of functions that belong to the requested project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   ListFunctionsRequest request =
      +   *       ListFunctionsRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .setFilter("filter-1274492040")
      +   *           .setOrderBy("orderBy-1207110587")
      +   *           .build();
      +   *   while (true) {
      +   *     ListFunctionsResponse response =
      +   *         functionServiceClient.listFunctionsCallable().call(request);
      +   *     for (Function element : response.getFunctionsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listFunctionsCallable() { + return stub.listFunctionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new function. If a function with the given name already exists in the specified + * project, the long running operation will return `ALREADY_EXISTS` error. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      +   *   Function function = Function.newBuilder().build();
      +   *   String functionId = "functionId-62789869";
      +   *   Function response =
      +   *       functionServiceClient.createFunctionAsync(parent, function, functionId).get();
      +   * }
      +   * }
      + * + * @param parent Required. The project and location in which the function should be created, + * specified in the format `projects/*/locations/*` + * @param function Required. Function to be created. + * @param functionId 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]-/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFunctionAsync( + LocationName parent, Function function, String functionId) { + CreateFunctionRequest request = + CreateFunctionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFunction(function) + .setFunctionId(functionId) + .build(); + return createFunctionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new function. If a function with the given name already exists in the specified + * project, the long running operation will return `ALREADY_EXISTS` error. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   Function function = Function.newBuilder().build();
      +   *   String functionId = "functionId-62789869";
      +   *   Function response =
      +   *       functionServiceClient.createFunctionAsync(parent, function, functionId).get();
      +   * }
      +   * }
      + * + * @param parent Required. The project and location in which the function should be created, + * specified in the format `projects/*/locations/*` + * @param function Required. Function to be created. + * @param functionId 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]-/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFunctionAsync( + String parent, Function function, String functionId) { + CreateFunctionRequest request = + CreateFunctionRequest.newBuilder() + .setParent(parent) + .setFunction(function) + .setFunctionId(functionId) + .build(); + return createFunctionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new function. If a function with the given name already exists in the specified + * project, the long running operation will return `ALREADY_EXISTS` error. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   CreateFunctionRequest request =
      +   *       CreateFunctionRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setFunction(Function.newBuilder().build())
      +   *           .setFunctionId("functionId-62789869")
      +   *           .build();
      +   *   Function response = functionServiceClient.createFunctionAsync(request).get();
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFunctionAsync( + CreateFunctionRequest request) { + return createFunctionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new function. If a function with the given name already exists in the specified + * project, the long running operation will return `ALREADY_EXISTS` error. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   CreateFunctionRequest request =
      +   *       CreateFunctionRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setFunction(Function.newBuilder().build())
      +   *           .setFunctionId("functionId-62789869")
      +   *           .build();
      +   *   OperationFuture future =
      +   *       functionServiceClient.createFunctionOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Function response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + createFunctionOperationCallable() { + return stub.createFunctionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new function. If a function with the given name already exists in the specified + * project, the long running operation will return `ALREADY_EXISTS` error. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   CreateFunctionRequest request =
      +   *       CreateFunctionRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setFunction(Function.newBuilder().build())
      +   *           .setFunctionId("functionId-62789869")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       functionServiceClient.createFunctionCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable createFunctionCallable() { + return stub.createFunctionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates existing function. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   Function function = Function.newBuilder().build();
      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
      +   *   Function response = functionServiceClient.updateFunctionAsync(function, updateMask).get();
      +   * }
      +   * }
      + * + * @param function Required. New version of the function. + * @param updateMask The list of fields to be updated. If no field mask is provided, all provided + * fields in the request will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateFunctionAsync( + Function function, FieldMask updateMask) { + UpdateFunctionRequest request = + UpdateFunctionRequest.newBuilder().setFunction(function).setUpdateMask(updateMask).build(); + return updateFunctionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates existing function. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   UpdateFunctionRequest request =
      +   *       UpdateFunctionRequest.newBuilder()
      +   *           .setFunction(Function.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   Function response = functionServiceClient.updateFunctionAsync(request).get();
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateFunctionAsync( + UpdateFunctionRequest request) { + return updateFunctionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates existing function. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   UpdateFunctionRequest request =
      +   *       UpdateFunctionRequest.newBuilder()
      +   *           .setFunction(Function.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   OperationFuture future =
      +   *       functionServiceClient.updateFunctionOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   Function response = future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + updateFunctionOperationCallable() { + return stub.updateFunctionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates existing function. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   UpdateFunctionRequest request =
      +   *       UpdateFunctionRequest.newBuilder()
      +   *           .setFunction(Function.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       functionServiceClient.updateFunctionCallable().futureCall(request);
      +   *   // Do something.
      +   *   Operation response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable updateFunctionCallable() { + return stub.updateFunctionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a function with the given name from the specified project. If the given function is + * used by some trigger, the trigger will be updated to remove this function. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]");
      +   *   functionServiceClient.deleteFunctionAsync(name).get();
      +   * }
      +   * }
      + * + * @param name Required. The name of the function which should be deleted. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFunctionAsync(FunctionName name) { + DeleteFunctionRequest request = + DeleteFunctionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteFunctionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a function with the given name from the specified project. If the given function is + * used by some trigger, the trigger will be updated to remove this function. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   String name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString();
      +   *   functionServiceClient.deleteFunctionAsync(name).get();
      +   * }
      +   * }
      + * + * @param name Required. The name of the function which should be deleted. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFunctionAsync(String name) { + DeleteFunctionRequest request = DeleteFunctionRequest.newBuilder().setName(name).build(); + return deleteFunctionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a function with the given name from the specified project. If the given function is + * used by some trigger, the trigger will be updated to remove this function. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   DeleteFunctionRequest request =
      +   *       DeleteFunctionRequest.newBuilder()
      +   *           .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
      +   *           .build();
      +   *   functionServiceClient.deleteFunctionAsync(request).get();
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFunctionAsync( + DeleteFunctionRequest request) { + return deleteFunctionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a function with the given name from the specified project. If the given function is + * used by some trigger, the trigger will be updated to remove this function. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   DeleteFunctionRequest request =
      +   *       DeleteFunctionRequest.newBuilder()
      +   *           .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
      +   *           .build();
      +   *   OperationFuture future =
      +   *       functionServiceClient.deleteFunctionOperationCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final OperationCallable + deleteFunctionOperationCallable() { + return stub.deleteFunctionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a function with the given name from the specified project. If the given function is + * used by some trigger, the trigger will be updated to remove this function. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   DeleteFunctionRequest request =
      +   *       DeleteFunctionRequest.newBuilder()
      +   *           .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       functionServiceClient.deleteFunctionCallable().futureCall(request);
      +   *   // Do something.
      +   *   future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable deleteFunctionCallable() { + return stub.deleteFunctionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a signed URL for uploading a function source code. For more information about the + * signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once + * the function source code upload is complete, the used signed URL should be provided in + * CreateFunction or UpdateFunction request as a reference to the function source code. + * + *

      When uploading source code to the generated signed URL, please follow these restrictions: + * + *

        + *
      • Source file type should be a zip file. + *
      • No credentials should be attached - the signed URLs provide access to the target bucket + * using internal service identity; if credentials were attached, the identity from the + * credentials would be used, but that identity does not have permissions to upload files to + * the URL. + *
      + * + *

      When making a HTTP PUT request, these two headers need to be specified: + * + *

        + *
      • `content-type: application/zip` + *
      + * + *

      And this header SHOULD NOT be specified: + * + *

        + *
      • `Authorization: Bearer YOUR_TOKEN` + *
      + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   GenerateUploadUrlRequest request =
      +   *       GenerateUploadUrlRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .build();
      +   *   GenerateUploadUrlResponse response = functionServiceClient.generateUploadUrl(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlRequest request) { + return generateUploadUrlCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a signed URL for uploading a function source code. For more information about the + * signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once + * the function source code upload is complete, the used signed URL should be provided in + * CreateFunction or UpdateFunction request as a reference to the function source code. + * + *

      When uploading source code to the generated signed URL, please follow these restrictions: + * + *

        + *
      • Source file type should be a zip file. + *
      • No credentials should be attached - the signed URLs provide access to the target bucket + * using internal service identity; if credentials were attached, the identity from the + * credentials would be used, but that identity does not have permissions to upload files to + * the URL. + *
      + * + *

      When making a HTTP PUT request, these two headers need to be specified: + * + *

        + *
      • `content-type: application/zip` + *
      + * + *

      And this header SHOULD NOT be specified: + * + *

        + *
      • `Authorization: Bearer YOUR_TOKEN` + *
      + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   GenerateUploadUrlRequest request =
      +   *       GenerateUploadUrlRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       functionServiceClient.generateUploadUrlCallable().futureCall(request);
      +   *   // Do something.
      +   *   GenerateUploadUrlResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + generateUploadUrlCallable() { + return stub.generateUploadUrlCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a signed URL for downloading deployed function source code. The URL is only valid for a + * limited period and should be used within 30 minutes of generation. For more information about + * the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   GenerateDownloadUrlRequest request =
      +   *       GenerateDownloadUrlRequest.newBuilder()
      +   *           .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
      +   *           .build();
      +   *   GenerateDownloadUrlResponse response = functionServiceClient.generateDownloadUrl(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateDownloadUrlResponse generateDownloadUrl(GenerateDownloadUrlRequest request) { + return generateDownloadUrlCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a signed URL for downloading deployed function source code. The URL is only valid for a + * limited period and should be used within 30 minutes of generation. For more information about + * the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   GenerateDownloadUrlRequest request =
      +   *       GenerateDownloadUrlRequest.newBuilder()
      +   *           .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       functionServiceClient.generateDownloadUrlCallable().futureCall(request);
      +   *   // Do something.
      +   *   GenerateDownloadUrlResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + generateDownloadUrlCallable() { + return stub.generateDownloadUrlCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of runtimes that are supported for the requested project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
      +   *   ListRuntimesResponse response = functionServiceClient.listRuntimes(parent);
      +   * }
      +   * }
      + * + * @param parent Required. The project and location from which the runtimes should be listed, + * specified in the format `projects/*/locations/*` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRuntimesResponse listRuntimes(LocationName parent) { + ListRuntimesRequest request = + ListRuntimesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listRuntimes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of runtimes that are supported for the requested project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
      +   *   ListRuntimesResponse response = functionServiceClient.listRuntimes(parent);
      +   * }
      +   * }
      + * + * @param parent Required. The project and location from which the runtimes should be listed, + * specified in the format `projects/*/locations/*` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRuntimesResponse listRuntimes(String parent) { + ListRuntimesRequest request = ListRuntimesRequest.newBuilder().setParent(parent).build(); + return listRuntimes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of runtimes that are supported for the requested project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   ListRuntimesRequest request =
      +   *       ListRuntimesRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setFilter("filter-1274492040")
      +   *           .build();
      +   *   ListRuntimesResponse response = functionServiceClient.listRuntimes(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRuntimesResponse listRuntimes(ListRuntimesRequest request) { + return listRuntimesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of runtimes that are supported for the requested project. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   ListRuntimesRequest request =
      +   *       ListRuntimesRequest.newBuilder()
      +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
      +   *           .setFilter("filter-1274492040")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       functionServiceClient.listRuntimesCallable().futureCall(request);
      +   *   // Do something.
      +   *   ListRuntimesResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable listRuntimesCallable() { + return stub.listRuntimesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   for (Location element : functionServiceClient.listLocations(request).iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   ApiFuture future =
      +   *       functionServiceClient.listLocationsPagedCallable().futureCall(request);
      +   *   // Do something.
      +   *   for (Location element : future.get().iterateAll()) {
      +   *     // doThingsWith(element);
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   ListLocationsRequest request =
      +   *       ListLocationsRequest.newBuilder()
      +   *           .setName("name3373707")
      +   *           .setFilter("filter-1274492040")
      +   *           .setPageSize(883849137)
      +   *           .setPageToken("pageToken873572522")
      +   *           .build();
      +   *   while (true) {
      +   *     ListLocationsResponse response =
      +   *         functionServiceClient.listLocationsCallable().call(request);
      +   *     for (Location element : response.getLocationsList()) {
      +   *       // doThingsWith(element);
      +   *     }
      +   *     String nextPageToken = response.getNextPageToken();
      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
      +   *     } else {
      +   *       break;
      +   *     }
      +   *   }
      +   * }
      +   * }
      + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   SetIamPolicyRequest request =
      +   *       SetIamPolicyRequest.newBuilder()
      +   *           .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
      +   *           .setPolicy(Policy.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   Policy response = functionServiceClient.setIamPolicy(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

      Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   SetIamPolicyRequest request =
      +   *       SetIamPolicyRequest.newBuilder()
      +   *           .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
      +   *           .setPolicy(Policy.newBuilder().build())
      +   *           .setUpdateMask(FieldMask.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = functionServiceClient.setIamPolicyCallable().futureCall(request);
      +   *   // Do something.
      +   *   Policy response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   GetIamPolicyRequest request =
      +   *       GetIamPolicyRequest.newBuilder()
      +   *           .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
      +   *           .setOptions(GetPolicyOptions.newBuilder().build())
      +   *           .build();
      +   *   Policy response = functionServiceClient.getIamPolicy(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   GetIamPolicyRequest request =
      +   *       GetIamPolicyRequest.newBuilder()
      +   *           .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
      +   *           .setOptions(GetPolicyOptions.newBuilder().build())
      +   *           .build();
      +   *   ApiFuture future = functionServiceClient.getIamPolicyCallable().futureCall(request);
      +   *   // Do something.
      +   *   Policy response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

      Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   TestIamPermissionsRequest request =
      +   *       TestIamPermissionsRequest.newBuilder()
      +   *           .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
      +   *           .addAllPermissions(new ArrayList())
      +   *           .build();
      +   *   TestIamPermissionsResponse response = functionServiceClient.testIamPermissions(request);
      +   * }
      +   * }
      + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

      Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

      Sample code: + * + *

      {@code
      +   * // This snippet has been automatically generated for illustrative purposes only.
      +   * // It may require modifications to work in your environment.
      +   * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      +   *   TestIamPermissionsRequest request =
      +   *       TestIamPermissionsRequest.newBuilder()
      +   *           .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
      +   *           .addAllPermissions(new ArrayList())
      +   *           .build();
      +   *   ApiFuture future =
      +   *       functionServiceClient.testIamPermissionsCallable().futureCall(request);
      +   *   // Do something.
      +   *   TestIamPermissionsResponse response = future.get();
      +   * }
      +   * }
      + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListFunctionsPagedResponse + extends AbstractPagedListResponse< + ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage, + ListFunctionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListFunctionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListFunctionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListFunctionsPagedResponse(ListFunctionsPage page) { + super(page, ListFunctionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListFunctionsPage + extends AbstractPage< + ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage> { + + private ListFunctionsPage( + PageContext context, + ListFunctionsResponse response) { + super(context, response); + } + + private static ListFunctionsPage createEmptyPage() { + return new ListFunctionsPage(null, null); + } + + @Override + protected ListFunctionsPage createPage( + PageContext context, + ListFunctionsResponse response) { + return new ListFunctionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListFunctionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage, + ListFunctionsFixedSizeCollection> { + + private ListFunctionsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListFunctionsFixedSizeCollection createEmptyCollection() { + return new ListFunctionsFixedSizeCollection(null, 0); + } + + @Override + protected ListFunctionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListFunctionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java new file mode 100644 index 00000000..6be620be --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java @@ -0,0 +1,377 @@ +/* + * 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.v2; + +import static com.google.cloud.functions.v2.FunctionServiceClient.ListFunctionsPagedResponse; +import static com.google.cloud.functions.v2.FunctionServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.functions.v2.stub.FunctionServiceStubSettings; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link FunctionServiceClient}. + * + *

      The default instance has everything set to sensible defaults: + * + *

        + *
      • The default service address (cloudfunctions.googleapis.com) and default port (443) are + * used. + *
      • Credentials are acquired automatically through Application Default Credentials. + *
      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
      + * + *

      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

      For example, to set the total timeout of getFunction to 30 seconds: + * + *

      {@code
      + * // This snippet has been automatically generated for illustrative purposes only.
      + * // It may require modifications to work in your environment.
      + * FunctionServiceSettings.Builder functionServiceSettingsBuilder =
      + *     FunctionServiceSettings.newBuilder();
      + * functionServiceSettingsBuilder
      + *     .getFunctionSettings()
      + *     .setRetrySettings(
      + *         functionServiceSettingsBuilder
      + *             .getFunctionSettings()
      + *             .getRetrySettings()
      + *             .toBuilder()
      + *             .setTotalTimeout(Duration.ofSeconds(30))
      + *             .build());
      + * FunctionServiceSettings functionServiceSettings = functionServiceSettingsBuilder.build();
      + * }
      + */ +@Generated("by gapic-generator-java") +public class FunctionServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getFunction. */ + public UnaryCallSettings getFunctionSettings() { + return ((FunctionServiceStubSettings) getStubSettings()).getFunctionSettings(); + } + + /** Returns the object with the settings used for calls to listFunctions. */ + public PagedCallSettings + listFunctionsSettings() { + return ((FunctionServiceStubSettings) getStubSettings()).listFunctionsSettings(); + } + + /** Returns the object with the settings used for calls to createFunction. */ + public UnaryCallSettings createFunctionSettings() { + return ((FunctionServiceStubSettings) getStubSettings()).createFunctionSettings(); + } + + /** Returns the object with the settings used for calls to createFunction. */ + public OperationCallSettings + createFunctionOperationSettings() { + return ((FunctionServiceStubSettings) getStubSettings()).createFunctionOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateFunction. */ + public UnaryCallSettings updateFunctionSettings() { + return ((FunctionServiceStubSettings) getStubSettings()).updateFunctionSettings(); + } + + /** Returns the object with the settings used for calls to updateFunction. */ + public OperationCallSettings + updateFunctionOperationSettings() { + return ((FunctionServiceStubSettings) getStubSettings()).updateFunctionOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteFunction. */ + public UnaryCallSettings deleteFunctionSettings() { + return ((FunctionServiceStubSettings) getStubSettings()).deleteFunctionSettings(); + } + + /** Returns the object with the settings used for calls to deleteFunction. */ + public OperationCallSettings + deleteFunctionOperationSettings() { + return ((FunctionServiceStubSettings) getStubSettings()).deleteFunctionOperationSettings(); + } + + /** Returns the object with the settings used for calls to generateUploadUrl. */ + public UnaryCallSettings + generateUploadUrlSettings() { + return ((FunctionServiceStubSettings) getStubSettings()).generateUploadUrlSettings(); + } + + /** Returns the object with the settings used for calls to generateDownloadUrl. */ + public UnaryCallSettings + generateDownloadUrlSettings() { + return ((FunctionServiceStubSettings) getStubSettings()).generateDownloadUrlSettings(); + } + + /** Returns the object with the settings used for calls to listRuntimes. */ + public UnaryCallSettings listRuntimesSettings() { + return ((FunctionServiceStubSettings) getStubSettings()).listRuntimesSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((FunctionServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((FunctionServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((FunctionServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((FunctionServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final FunctionServiceSettings create(FunctionServiceStubSettings stub) + throws IOException { + return new FunctionServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return FunctionServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return FunctionServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return FunctionServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return FunctionServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return FunctionServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return FunctionServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return FunctionServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return FunctionServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected FunctionServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for FunctionServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(FunctionServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(FunctionServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(FunctionServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(FunctionServiceStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(FunctionServiceStubSettings.newHttpJsonBuilder()); + } + + public FunctionServiceStubSettings.Builder getStubSettingsBuilder() { + return ((FunctionServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getFunction. */ + public UnaryCallSettings.Builder getFunctionSettings() { + return getStubSettingsBuilder().getFunctionSettings(); + } + + /** Returns the builder for the settings used for calls to listFunctions. */ + public PagedCallSettings.Builder< + ListFunctionsRequest, ListFunctionsResponse, ListFunctionsPagedResponse> + listFunctionsSettings() { + return getStubSettingsBuilder().listFunctionsSettings(); + } + + /** Returns the builder for the settings used for calls to createFunction. */ + public UnaryCallSettings.Builder createFunctionSettings() { + return getStubSettingsBuilder().createFunctionSettings(); + } + + /** Returns the builder for the settings used for calls to createFunction. */ + public OperationCallSettings.Builder + createFunctionOperationSettings() { + return getStubSettingsBuilder().createFunctionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateFunction. */ + public UnaryCallSettings.Builder updateFunctionSettings() { + return getStubSettingsBuilder().updateFunctionSettings(); + } + + /** Returns the builder for the settings used for calls to updateFunction. */ + public OperationCallSettings.Builder + updateFunctionOperationSettings() { + return getStubSettingsBuilder().updateFunctionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFunction. */ + public UnaryCallSettings.Builder deleteFunctionSettings() { + return getStubSettingsBuilder().deleteFunctionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFunction. */ + public OperationCallSettings.Builder + deleteFunctionOperationSettings() { + return getStubSettingsBuilder().deleteFunctionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to generateUploadUrl. */ + public UnaryCallSettings.Builder + generateUploadUrlSettings() { + return getStubSettingsBuilder().generateUploadUrlSettings(); + } + + /** Returns the builder for the settings used for calls to generateDownloadUrl. */ + public UnaryCallSettings.Builder + generateDownloadUrlSettings() { + return getStubSettingsBuilder().generateDownloadUrlSettings(); + } + + /** Returns the builder for the settings used for calls to listRuntimes. */ + public UnaryCallSettings.Builder + listRuntimesSettings() { + return getStubSettingsBuilder().listRuntimesSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public FunctionServiceSettings build() throws IOException { + return new FunctionServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/gapic_metadata.json b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/gapic_metadata.json new file mode 100644 index 00000000..97bf66fa --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/gapic_metadata.json @@ -0,0 +1,54 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.functions.v2", + "libraryPackage": "com.google.cloud.functions.v2", + "services": { + "FunctionService": { + "clients": { + "grpc": { + "libraryClient": "FunctionServiceClient", + "rpcs": { + "CreateFunction": { + "methods": ["createFunctionAsync", "createFunctionAsync", "createFunctionAsync", "createFunctionOperationCallable", "createFunctionCallable"] + }, + "DeleteFunction": { + "methods": ["deleteFunctionAsync", "deleteFunctionAsync", "deleteFunctionAsync", "deleteFunctionOperationCallable", "deleteFunctionCallable"] + }, + "GenerateDownloadUrl": { + "methods": ["generateDownloadUrl", "generateDownloadUrlCallable"] + }, + "GenerateUploadUrl": { + "methods": ["generateUploadUrl", "generateUploadUrlCallable"] + }, + "GetFunction": { + "methods": ["getFunction", "getFunction", "getFunction", "getFunctionCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "ListFunctions": { + "methods": ["listFunctions", "listFunctions", "listFunctions", "listFunctionsPagedCallable", "listFunctionsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListRuntimes": { + "methods": ["listRuntimes", "listRuntimes", "listRuntimes", "listRuntimesCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateFunction": { + "methods": ["updateFunctionAsync", "updateFunctionAsync", "updateFunctionOperationCallable", "updateFunctionCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/package-info.java b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/package-info.java new file mode 100644 index 00000000..5fa55e94 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/package-info.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +/** + * A client to Cloud Functions API + * + *

      The interfaces provided are listed below, along with usage samples. + * + *

      ======================= FunctionServiceClient ======================= + * + *

      Service Description: Google Cloud Functions is used to deploy functions that are executed by + * Google in response to various events. Data connected with that event is passed to a function as + * the input data. + * + *

      A **function** is a resource which describes a function that should be + * executed and how it is triggered. + * + *

      Sample for FunctionServiceClient: + * + *

      {@code
      + * // This snippet has been automatically generated for illustrative purposes only.
      + * // It may require modifications to work in your environment.
      + * try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) {
      + *   FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]");
      + *   Function response = functionServiceClient.getFunction(name);
      + * }
      + * }
      + */ +@Generated("by gapic-generator-java") +package com.google.cloud.functions.v2; + +import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStub.java b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStub.java new file mode 100644 index 00000000..f29a7aa8 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStub.java @@ -0,0 +1,146 @@ +/* + * 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.v2.stub; + +import static com.google.cloud.functions.v2.FunctionServiceClient.ListFunctionsPagedResponse; +import static com.google.cloud.functions.v2.FunctionServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.functions.v2.CreateFunctionRequest; +import com.google.cloud.functions.v2.DeleteFunctionRequest; +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.GenerateDownloadUrlRequest; +import com.google.cloud.functions.v2.GenerateDownloadUrlResponse; +import com.google.cloud.functions.v2.GenerateUploadUrlRequest; +import com.google.cloud.functions.v2.GenerateUploadUrlResponse; +import com.google.cloud.functions.v2.GetFunctionRequest; +import com.google.cloud.functions.v2.ListFunctionsRequest; +import com.google.cloud.functions.v2.ListFunctionsResponse; +import com.google.cloud.functions.v2.ListRuntimesRequest; +import com.google.cloud.functions.v2.ListRuntimesResponse; +import com.google.cloud.functions.v2.OperationMetadata; +import com.google.cloud.functions.v2.UpdateFunctionRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the FunctionService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class FunctionServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable getFunctionCallable() { + throw new UnsupportedOperationException("Not implemented: getFunctionCallable()"); + } + + public UnaryCallable + listFunctionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listFunctionsPagedCallable()"); + } + + public UnaryCallable listFunctionsCallable() { + throw new UnsupportedOperationException("Not implemented: listFunctionsCallable()"); + } + + public OperationCallable + createFunctionOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createFunctionOperationCallable()"); + } + + public UnaryCallable createFunctionCallable() { + throw new UnsupportedOperationException("Not implemented: createFunctionCallable()"); + } + + public OperationCallable + updateFunctionOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateFunctionOperationCallable()"); + } + + public UnaryCallable updateFunctionCallable() { + throw new UnsupportedOperationException("Not implemented: updateFunctionCallable()"); + } + + public OperationCallable + deleteFunctionOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFunctionOperationCallable()"); + } + + public UnaryCallable deleteFunctionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFunctionCallable()"); + } + + public UnaryCallable + generateUploadUrlCallable() { + throw new UnsupportedOperationException("Not implemented: generateUploadUrlCallable()"); + } + + public UnaryCallable + generateDownloadUrlCallable() { + throw new UnsupportedOperationException("Not implemented: generateDownloadUrlCallable()"); + } + + public UnaryCallable listRuntimesCallable() { + throw new UnsupportedOperationException("Not implemented: listRuntimesCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java new file mode 100644 index 00000000..226a32af --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java @@ -0,0 +1,864 @@ +/* + * 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.v2.stub; + +import static com.google.cloud.functions.v2.FunctionServiceClient.ListFunctionsPagedResponse; +import static com.google.cloud.functions.v2.FunctionServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.functions.v2.CreateFunctionRequest; +import com.google.cloud.functions.v2.DeleteFunctionRequest; +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.GenerateDownloadUrlRequest; +import com.google.cloud.functions.v2.GenerateDownloadUrlResponse; +import com.google.cloud.functions.v2.GenerateUploadUrlRequest; +import com.google.cloud.functions.v2.GenerateUploadUrlResponse; +import com.google.cloud.functions.v2.GetFunctionRequest; +import com.google.cloud.functions.v2.ListFunctionsRequest; +import com.google.cloud.functions.v2.ListFunctionsResponse; +import com.google.cloud.functions.v2.ListRuntimesRequest; +import com.google.cloud.functions.v2.ListRuntimesResponse; +import com.google.cloud.functions.v2.OperationMetadata; +import com.google.cloud.functions.v2.UpdateFunctionRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link FunctionServiceStub}. + * + *

      The default instance has everything set to sensible defaults: + * + *

        + *
      • The default service address (cloudfunctions.googleapis.com) and default port (443) are + * used. + *
      • Credentials are acquired automatically through Application Default Credentials. + *
      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
      + * + *

      The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

      For example, to set the total timeout of getFunction to 30 seconds: + * + *

      {@code
      + * // This snippet has been automatically generated for illustrative purposes only.
      + * // It may require modifications to work in your environment.
      + * FunctionServiceStubSettings.Builder functionServiceSettingsBuilder =
      + *     FunctionServiceStubSettings.newBuilder();
      + * functionServiceSettingsBuilder
      + *     .getFunctionSettings()
      + *     .setRetrySettings(
      + *         functionServiceSettingsBuilder
      + *             .getFunctionSettings()
      + *             .getRetrySettings()
      + *             .toBuilder()
      + *             .setTotalTimeout(Duration.ofSeconds(30))
      + *             .build());
      + * FunctionServiceStubSettings functionServiceSettings = functionServiceSettingsBuilder.build();
      + * }
      + */ +@Generated("by gapic-generator-java") +public class FunctionServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings getFunctionSettings; + private final PagedCallSettings< + ListFunctionsRequest, ListFunctionsResponse, ListFunctionsPagedResponse> + listFunctionsSettings; + private final UnaryCallSettings createFunctionSettings; + private final OperationCallSettings + createFunctionOperationSettings; + private final UnaryCallSettings updateFunctionSettings; + private final OperationCallSettings + updateFunctionOperationSettings; + private final UnaryCallSettings deleteFunctionSettings; + private final OperationCallSettings + deleteFunctionOperationSettings; + private final UnaryCallSettings + generateUploadUrlSettings; + private final UnaryCallSettings + generateDownloadUrlSettings; + private final UnaryCallSettings listRuntimesSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor + LIST_FUNCTIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListFunctionsRequest injectToken(ListFunctionsRequest payload, String token) { + return ListFunctionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListFunctionsRequest injectPageSize(ListFunctionsRequest payload, int pageSize) { + return ListFunctionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListFunctionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListFunctionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListFunctionsResponse payload) { + return payload.getFunctionsList() == null + ? ImmutableList.of() + : payload.getFunctionsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListFunctionsRequest, ListFunctionsResponse, ListFunctionsPagedResponse> + LIST_FUNCTIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListFunctionsRequest, ListFunctionsResponse, ListFunctionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListFunctionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_FUNCTIONS_PAGE_STR_DESC, request, context); + return ListFunctionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getFunction. */ + public UnaryCallSettings getFunctionSettings() { + return getFunctionSettings; + } + + /** Returns the object with the settings used for calls to listFunctions. */ + public PagedCallSettings + listFunctionsSettings() { + return listFunctionsSettings; + } + + /** Returns the object with the settings used for calls to createFunction. */ + public UnaryCallSettings createFunctionSettings() { + return createFunctionSettings; + } + + /** Returns the object with the settings used for calls to createFunction. */ + public OperationCallSettings + createFunctionOperationSettings() { + return createFunctionOperationSettings; + } + + /** Returns the object with the settings used for calls to updateFunction. */ + public UnaryCallSettings updateFunctionSettings() { + return updateFunctionSettings; + } + + /** Returns the object with the settings used for calls to updateFunction. */ + public OperationCallSettings + updateFunctionOperationSettings() { + return updateFunctionOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteFunction. */ + public UnaryCallSettings deleteFunctionSettings() { + return deleteFunctionSettings; + } + + /** Returns the object with the settings used for calls to deleteFunction. */ + public OperationCallSettings + deleteFunctionOperationSettings() { + return deleteFunctionOperationSettings; + } + + /** Returns the object with the settings used for calls to generateUploadUrl. */ + public UnaryCallSettings + generateUploadUrlSettings() { + return generateUploadUrlSettings; + } + + /** Returns the object with the settings used for calls to generateDownloadUrl. */ + public UnaryCallSettings + generateDownloadUrlSettings() { + return generateDownloadUrlSettings; + } + + /** Returns the object with the settings used for calls to listRuntimes. */ + public UnaryCallSettings listRuntimesSettings() { + return listRuntimesSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public FunctionServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcFunctionServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonFunctionServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "cloudfunctions.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "cloudfunctions.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(FunctionServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(FunctionServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return FunctionServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected FunctionServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getFunctionSettings = settingsBuilder.getFunctionSettings().build(); + listFunctionsSettings = settingsBuilder.listFunctionsSettings().build(); + createFunctionSettings = settingsBuilder.createFunctionSettings().build(); + createFunctionOperationSettings = settingsBuilder.createFunctionOperationSettings().build(); + updateFunctionSettings = settingsBuilder.updateFunctionSettings().build(); + updateFunctionOperationSettings = settingsBuilder.updateFunctionOperationSettings().build(); + deleteFunctionSettings = settingsBuilder.deleteFunctionSettings().build(); + deleteFunctionOperationSettings = settingsBuilder.deleteFunctionOperationSettings().build(); + generateUploadUrlSettings = settingsBuilder.generateUploadUrlSettings().build(); + generateDownloadUrlSettings = settingsBuilder.generateDownloadUrlSettings().build(); + listRuntimesSettings = settingsBuilder.listRuntimesSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for FunctionServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getFunctionSettings; + private final PagedCallSettings.Builder< + ListFunctionsRequest, ListFunctionsResponse, ListFunctionsPagedResponse> + listFunctionsSettings; + private final UnaryCallSettings.Builder + createFunctionSettings; + private final OperationCallSettings.Builder + createFunctionOperationSettings; + private final UnaryCallSettings.Builder + updateFunctionSettings; + private final OperationCallSettings.Builder + updateFunctionOperationSettings; + private final UnaryCallSettings.Builder + deleteFunctionSettings; + private final OperationCallSettings.Builder + deleteFunctionOperationSettings; + private final UnaryCallSettings.Builder + generateUploadUrlSettings; + private final UnaryCallSettings.Builder + generateDownloadUrlSettings; + private final UnaryCallSettings.Builder + listRuntimesSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getFunctionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listFunctionsSettings = PagedCallSettings.newBuilder(LIST_FUNCTIONS_PAGE_STR_FACT); + createFunctionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createFunctionOperationSettings = OperationCallSettings.newBuilder(); + updateFunctionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFunctionOperationSettings = OperationCallSettings.newBuilder(); + deleteFunctionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFunctionOperationSettings = OperationCallSettings.newBuilder(); + generateUploadUrlSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + generateDownloadUrlSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listRuntimesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getFunctionSettings, + listFunctionsSettings, + createFunctionSettings, + updateFunctionSettings, + deleteFunctionSettings, + generateUploadUrlSettings, + generateDownloadUrlSettings, + listRuntimesSettings, + listLocationsSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(FunctionServiceStubSettings settings) { + super(settings); + + getFunctionSettings = settings.getFunctionSettings.toBuilder(); + listFunctionsSettings = settings.listFunctionsSettings.toBuilder(); + createFunctionSettings = settings.createFunctionSettings.toBuilder(); + createFunctionOperationSettings = settings.createFunctionOperationSettings.toBuilder(); + updateFunctionSettings = settings.updateFunctionSettings.toBuilder(); + updateFunctionOperationSettings = settings.updateFunctionOperationSettings.toBuilder(); + deleteFunctionSettings = settings.deleteFunctionSettings.toBuilder(); + deleteFunctionOperationSettings = settings.deleteFunctionOperationSettings.toBuilder(); + generateUploadUrlSettings = settings.generateUploadUrlSettings.toBuilder(); + generateDownloadUrlSettings = settings.generateDownloadUrlSettings.toBuilder(); + listRuntimesSettings = settings.listRuntimesSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getFunctionSettings, + listFunctionsSettings, + createFunctionSettings, + updateFunctionSettings, + deleteFunctionSettings, + generateUploadUrlSettings, + generateDownloadUrlSettings, + listRuntimesSettings, + listLocationsSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getFunctionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listFunctionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createFunctionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateFunctionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteFunctionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .generateUploadUrlSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .generateDownloadUrlSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listRuntimesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createFunctionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Function.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateFunctionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Function.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteFunctionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

      Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getFunction. */ + public UnaryCallSettings.Builder getFunctionSettings() { + return getFunctionSettings; + } + + /** Returns the builder for the settings used for calls to listFunctions. */ + public PagedCallSettings.Builder< + ListFunctionsRequest, ListFunctionsResponse, ListFunctionsPagedResponse> + listFunctionsSettings() { + return listFunctionsSettings; + } + + /** Returns the builder for the settings used for calls to createFunction. */ + public UnaryCallSettings.Builder createFunctionSettings() { + return createFunctionSettings; + } + + /** Returns the builder for the settings used for calls to createFunction. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createFunctionOperationSettings() { + return createFunctionOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateFunction. */ + public UnaryCallSettings.Builder updateFunctionSettings() { + return updateFunctionSettings; + } + + /** Returns the builder for the settings used for calls to updateFunction. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateFunctionOperationSettings() { + return updateFunctionOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteFunction. */ + public UnaryCallSettings.Builder deleteFunctionSettings() { + return deleteFunctionSettings; + } + + /** Returns the builder for the settings used for calls to deleteFunction. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteFunctionOperationSettings() { + return deleteFunctionOperationSettings; + } + + /** Returns the builder for the settings used for calls to generateUploadUrl. */ + public UnaryCallSettings.Builder + generateUploadUrlSettings() { + return generateUploadUrlSettings; + } + + /** Returns the builder for the settings used for calls to generateDownloadUrl. */ + public UnaryCallSettings.Builder + generateDownloadUrlSettings() { + return generateDownloadUrlSettings; + } + + /** Returns the builder for the settings used for calls to listRuntimes. */ + public UnaryCallSettings.Builder + listRuntimesSettings() { + return listRuntimesSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public FunctionServiceStubSettings build() throws IOException { + return new FunctionServiceStubSettings(this); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceCallableFactory.java b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceCallableFactory.java new file mode 100644 index 00000000..e575ade6 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * 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.v2.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the FunctionService service API. + * + *

      This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcFunctionServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceStub.java b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceStub.java new file mode 100644 index 00000000..bd24e13a --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceStub.java @@ -0,0 +1,585 @@ +/* + * 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.v2.stub; + +import static com.google.cloud.functions.v2.FunctionServiceClient.ListFunctionsPagedResponse; +import static com.google.cloud.functions.v2.FunctionServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.functions.v2.CreateFunctionRequest; +import com.google.cloud.functions.v2.DeleteFunctionRequest; +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.GenerateDownloadUrlRequest; +import com.google.cloud.functions.v2.GenerateDownloadUrlResponse; +import com.google.cloud.functions.v2.GenerateUploadUrlRequest; +import com.google.cloud.functions.v2.GenerateUploadUrlResponse; +import com.google.cloud.functions.v2.GetFunctionRequest; +import com.google.cloud.functions.v2.ListFunctionsRequest; +import com.google.cloud.functions.v2.ListFunctionsResponse; +import com.google.cloud.functions.v2.ListRuntimesRequest; +import com.google.cloud.functions.v2.ListRuntimesResponse; +import com.google.cloud.functions.v2.OperationMetadata; +import com.google.cloud.functions.v2.UpdateFunctionRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the FunctionService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcFunctionServiceStub extends FunctionServiceStub { + private static final MethodDescriptor getFunctionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.functions.v2.FunctionService/GetFunction") + .setRequestMarshaller(ProtoUtils.marshaller(GetFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Function.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listFunctionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.functions.v2.FunctionService/ListFunctions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListFunctionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListFunctionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createFunctionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.functions.v2.FunctionService/CreateFunction") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateFunctionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.functions.v2.FunctionService/UpdateFunction") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteFunctionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.functions.v2.FunctionService/DeleteFunction") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + generateUploadUrlMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.functions.v2.FunctionService/GenerateUploadUrl") + .setRequestMarshaller( + ProtoUtils.marshaller(GenerateUploadUrlRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GenerateUploadUrlResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + generateDownloadUrlMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.functions.v2.FunctionService/GenerateDownloadUrl") + .setRequestMarshaller( + ProtoUtils.marshaller(GenerateDownloadUrlRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GenerateDownloadUrlResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listRuntimesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.functions.v2.FunctionService/ListRuntimes") + .setRequestMarshaller(ProtoUtils.marshaller(ListRuntimesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListRuntimesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable getFunctionCallable; + private final UnaryCallable listFunctionsCallable; + private final UnaryCallable + listFunctionsPagedCallable; + private final UnaryCallable createFunctionCallable; + private final OperationCallable + createFunctionOperationCallable; + private final UnaryCallable updateFunctionCallable; + private final OperationCallable + updateFunctionOperationCallable; + private final UnaryCallable deleteFunctionCallable; + private final OperationCallable + deleteFunctionOperationCallable; + private final UnaryCallable + generateUploadUrlCallable; + private final UnaryCallable + generateDownloadUrlCallable; + private final UnaryCallable listRuntimesCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcFunctionServiceStub create(FunctionServiceStubSettings settings) + throws IOException { + return new GrpcFunctionServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcFunctionServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcFunctionServiceStub( + FunctionServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcFunctionServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcFunctionServiceStub( + FunctionServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcFunctionServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcFunctionServiceStub( + FunctionServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcFunctionServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcFunctionServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcFunctionServiceStub( + FunctionServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getFunctionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getFunctionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listFunctionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listFunctionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings createFunctionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFunctionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateFunctionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFunctionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("function.name", String.valueOf(request.getFunction().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteFunctionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFunctionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + generateUploadUrlTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(generateUploadUrlMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + generateDownloadUrlTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(generateDownloadUrlMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listRuntimesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listRuntimesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + + this.getFunctionCallable = + callableFactory.createUnaryCallable( + getFunctionTransportSettings, settings.getFunctionSettings(), clientContext); + this.listFunctionsCallable = + callableFactory.createUnaryCallable( + listFunctionsTransportSettings, settings.listFunctionsSettings(), clientContext); + this.listFunctionsPagedCallable = + callableFactory.createPagedCallable( + listFunctionsTransportSettings, settings.listFunctionsSettings(), clientContext); + this.createFunctionCallable = + callableFactory.createUnaryCallable( + createFunctionTransportSettings, settings.createFunctionSettings(), clientContext); + this.createFunctionOperationCallable = + callableFactory.createOperationCallable( + createFunctionTransportSettings, + settings.createFunctionOperationSettings(), + clientContext, + operationsStub); + this.updateFunctionCallable = + callableFactory.createUnaryCallable( + updateFunctionTransportSettings, settings.updateFunctionSettings(), clientContext); + this.updateFunctionOperationCallable = + callableFactory.createOperationCallable( + updateFunctionTransportSettings, + settings.updateFunctionOperationSettings(), + clientContext, + operationsStub); + this.deleteFunctionCallable = + callableFactory.createUnaryCallable( + deleteFunctionTransportSettings, settings.deleteFunctionSettings(), clientContext); + this.deleteFunctionOperationCallable = + callableFactory.createOperationCallable( + deleteFunctionTransportSettings, + settings.deleteFunctionOperationSettings(), + clientContext, + operationsStub); + this.generateUploadUrlCallable = + callableFactory.createUnaryCallable( + generateUploadUrlTransportSettings, + settings.generateUploadUrlSettings(), + clientContext); + this.generateDownloadUrlCallable = + callableFactory.createUnaryCallable( + generateDownloadUrlTransportSettings, + settings.generateDownloadUrlSettings(), + clientContext); + this.listRuntimesCallable = + callableFactory.createUnaryCallable( + listRuntimesTransportSettings, settings.listRuntimesSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getFunctionCallable() { + return getFunctionCallable; + } + + @Override + public UnaryCallable listFunctionsCallable() { + return listFunctionsCallable; + } + + @Override + public UnaryCallable + listFunctionsPagedCallable() { + return listFunctionsPagedCallable; + } + + @Override + public UnaryCallable createFunctionCallable() { + return createFunctionCallable; + } + + @Override + public OperationCallable + createFunctionOperationCallable() { + return createFunctionOperationCallable; + } + + @Override + public UnaryCallable updateFunctionCallable() { + return updateFunctionCallable; + } + + @Override + public OperationCallable + updateFunctionOperationCallable() { + return updateFunctionOperationCallable; + } + + @Override + public UnaryCallable deleteFunctionCallable() { + return deleteFunctionCallable; + } + + @Override + public OperationCallable + deleteFunctionOperationCallable() { + return deleteFunctionOperationCallable; + } + + @Override + public UnaryCallable + generateUploadUrlCallable() { + return generateUploadUrlCallable; + } + + @Override + public UnaryCallable + generateDownloadUrlCallable() { + return generateDownloadUrlCallable; + } + + @Override + public UnaryCallable listRuntimesCallable() { + return listRuntimesCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceCallableFactory.java b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceCallableFactory.java new file mode 100644 index 00000000..c2ddf23e --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * 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.v2.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the FunctionService service API. + * + *

      This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonFunctionServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceStub.java b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceStub.java new file mode 100644 index 00000000..6a802c2c --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceStub.java @@ -0,0 +1,876 @@ +/* + * 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.v2.stub; + +import static com.google.cloud.functions.v2.FunctionServiceClient.ListFunctionsPagedResponse; +import static com.google.cloud.functions.v2.FunctionServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.functions.v2.CreateFunctionRequest; +import com.google.cloud.functions.v2.DeleteFunctionRequest; +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.GenerateDownloadUrlRequest; +import com.google.cloud.functions.v2.GenerateDownloadUrlResponse; +import com.google.cloud.functions.v2.GenerateUploadUrlRequest; +import com.google.cloud.functions.v2.GenerateUploadUrlResponse; +import com.google.cloud.functions.v2.GetFunctionRequest; +import com.google.cloud.functions.v2.ListFunctionsRequest; +import com.google.cloud.functions.v2.ListFunctionsResponse; +import com.google.cloud.functions.v2.ListRuntimesRequest; +import com.google.cloud.functions.v2.ListRuntimesResponse; +import com.google.cloud.functions.v2.OperationMetadata; +import com.google.cloud.functions.v2.UpdateFunctionRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the FunctionService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonFunctionServiceStub extends FunctionServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(Function.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + getFunctionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.functions.v2.FunctionService/GetFunction") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/functions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Function.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listFunctionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.functions.v2.FunctionService/ListFunctions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/functions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListFunctionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createFunctionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.functions.v2.FunctionService/CreateFunction") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/functions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "functionId", request.getFunctionId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("function", request.getFunction())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateFunctionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateFunctionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.functions.v2.FunctionService/UpdateFunction") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{function.name=projects/*/locations/*/functions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "function.name", request.getFunction().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("function", request.getFunction())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateFunctionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteFunctionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.functions.v2.FunctionService/DeleteFunction") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/functions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteFunctionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + generateUploadUrlMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.functions.v2.FunctionService/GenerateUploadUrl") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/functions:generateUploadUrl", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GenerateUploadUrlResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + generateDownloadUrlMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.functions.v2.FunctionService/GenerateDownloadUrl") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/functions/*}:generateDownloadUrl", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GenerateDownloadUrlResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listRuntimesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.functions.v2.FunctionService/ListRuntimes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/runtimes", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListRuntimesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{resource=projects/*/locations/*/functions/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{resource=projects/*/locations/*/functions/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{resource=projects/*/locations/*/functions/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getFunctionCallable; + private final UnaryCallable listFunctionsCallable; + private final UnaryCallable + listFunctionsPagedCallable; + private final UnaryCallable createFunctionCallable; + private final OperationCallable + createFunctionOperationCallable; + private final UnaryCallable updateFunctionCallable; + private final OperationCallable + updateFunctionOperationCallable; + private final UnaryCallable deleteFunctionCallable; + private final OperationCallable + deleteFunctionOperationCallable; + private final UnaryCallable + generateUploadUrlCallable; + private final UnaryCallable + generateDownloadUrlCallable; + private final UnaryCallable listRuntimesCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonFunctionServiceStub create(FunctionServiceStubSettings settings) + throws IOException { + return new HttpJsonFunctionServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonFunctionServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonFunctionServiceStub( + FunctionServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonFunctionServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonFunctionServiceStub( + FunctionServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonFunctionServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonFunctionServiceStub( + FunctionServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonFunctionServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonFunctionServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonFunctionServiceStub( + FunctionServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings getFunctionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getFunctionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listFunctionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listFunctionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createFunctionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createFunctionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateFunctionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateFunctionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteFunctionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteFunctionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + generateUploadUrlTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(generateUploadUrlMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + generateDownloadUrlTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(generateDownloadUrlMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listRuntimesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listRuntimesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.getFunctionCallable = + callableFactory.createUnaryCallable( + getFunctionTransportSettings, settings.getFunctionSettings(), clientContext); + this.listFunctionsCallable = + callableFactory.createUnaryCallable( + listFunctionsTransportSettings, settings.listFunctionsSettings(), clientContext); + this.listFunctionsPagedCallable = + callableFactory.createPagedCallable( + listFunctionsTransportSettings, settings.listFunctionsSettings(), clientContext); + this.createFunctionCallable = + callableFactory.createUnaryCallable( + createFunctionTransportSettings, settings.createFunctionSettings(), clientContext); + this.createFunctionOperationCallable = + callableFactory.createOperationCallable( + createFunctionTransportSettings, + settings.createFunctionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateFunctionCallable = + callableFactory.createUnaryCallable( + updateFunctionTransportSettings, settings.updateFunctionSettings(), clientContext); + this.updateFunctionOperationCallable = + callableFactory.createOperationCallable( + updateFunctionTransportSettings, + settings.updateFunctionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteFunctionCallable = + callableFactory.createUnaryCallable( + deleteFunctionTransportSettings, settings.deleteFunctionSettings(), clientContext); + this.deleteFunctionOperationCallable = + callableFactory.createOperationCallable( + deleteFunctionTransportSettings, + settings.deleteFunctionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.generateUploadUrlCallable = + callableFactory.createUnaryCallable( + generateUploadUrlTransportSettings, + settings.generateUploadUrlSettings(), + clientContext); + this.generateDownloadUrlCallable = + callableFactory.createUnaryCallable( + generateDownloadUrlTransportSettings, + settings.generateDownloadUrlSettings(), + clientContext); + this.listRuntimesCallable = + callableFactory.createUnaryCallable( + listRuntimesTransportSettings, settings.listRuntimesSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getFunctionMethodDescriptor); + methodDescriptors.add(listFunctionsMethodDescriptor); + methodDescriptors.add(createFunctionMethodDescriptor); + methodDescriptors.add(updateFunctionMethodDescriptor); + methodDescriptors.add(deleteFunctionMethodDescriptor); + methodDescriptors.add(generateUploadUrlMethodDescriptor); + methodDescriptors.add(generateDownloadUrlMethodDescriptor); + methodDescriptors.add(listRuntimesMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getFunctionCallable() { + return getFunctionCallable; + } + + @Override + public UnaryCallable listFunctionsCallable() { + return listFunctionsCallable; + } + + @Override + public UnaryCallable + listFunctionsPagedCallable() { + return listFunctionsPagedCallable; + } + + @Override + public UnaryCallable createFunctionCallable() { + return createFunctionCallable; + } + + @Override + public OperationCallable + createFunctionOperationCallable() { + return createFunctionOperationCallable; + } + + @Override + public UnaryCallable updateFunctionCallable() { + return updateFunctionCallable; + } + + @Override + public OperationCallable + updateFunctionOperationCallable() { + return updateFunctionOperationCallable; + } + + @Override + public UnaryCallable deleteFunctionCallable() { + return deleteFunctionCallable; + } + + @Override + public OperationCallable + deleteFunctionOperationCallable() { + return deleteFunctionOperationCallable; + } + + @Override + public UnaryCallable + generateUploadUrlCallable() { + return generateUploadUrlCallable; + } + + @Override + public UnaryCallable + generateDownloadUrlCallable() { + return generateDownloadUrlCallable; + } + + @Override + public UnaryCallable listRuntimesCallable() { + return listRuntimesCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientHttpJsonTest.java b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientHttpJsonTest.java new file mode 100644 index 00000000..ecee9e1f --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientHttpJsonTest.java @@ -0,0 +1,1006 @@ +/* + * 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.v2; + +import static com.google.cloud.functions.v2.FunctionServiceClient.ListFunctionsPagedResponse; +import static com.google.cloud.functions.v2.FunctionServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.functions.v2.stub.HttpJsonFunctionServiceStub; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class FunctionServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static FunctionServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonFunctionServiceStub.getMethodDescriptors(), + FunctionServiceSettings.getDefaultEndpoint()); + FunctionServiceSettings settings = + FunctionServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + FunctionServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = FunctionServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + 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()) + .setEventTrigger(EventTrigger.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllStateMessages(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]"); + + Function actualResponse = client.getFunction(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getFunctionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]"); + client.getFunction(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + 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()) + .setEventTrigger(EventTrigger.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllStateMessages(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-129/locations/location-129/functions/function-129"; + + Function actualResponse = client.getFunction(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getFunctionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-129/locations/location-129/functions/function-129"; + client.getFunction(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFunctionsTest() throws Exception { + Function responsesElement = Function.newBuilder().build(); + ListFunctionsResponse expectedResponse = + ListFunctionsResponse.newBuilder() + .setNextPageToken("") + .addAllFunctions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFunctionsPagedResponse pagedListResponse = client.listFunctions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFunctionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listFunctionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFunctions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFunctionsTest2() throws Exception { + Function responsesElement = Function.newBuilder().build(); + ListFunctionsResponse expectedResponse = + ListFunctionsResponse.newBuilder() + .setNextPageToken("") + .addAllFunctions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListFunctionsPagedResponse pagedListResponse = client.listFunctions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFunctionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listFunctionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listFunctions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + 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()) + .setEventTrigger(EventTrigger.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllStateMessages(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFunctionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Function function = Function.newBuilder().build(); + String functionId = "functionId-62789869"; + + Function actualResponse = client.createFunctionAsync(parent, function, functionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFunctionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Function function = Function.newBuilder().build(); + String functionId = "functionId-62789869"; + client.createFunctionAsync(parent, function, functionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + 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()) + .setEventTrigger(EventTrigger.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllStateMessages(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFunctionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Function function = Function.newBuilder().build(); + String functionId = "functionId-62789869"; + + Function actualResponse = client.createFunctionAsync(parent, function, functionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFunctionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Function function = Function.newBuilder().build(); + String functionId = "functionId-62789869"; + client.createFunctionAsync(parent, function, functionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + 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()) + .setEventTrigger(EventTrigger.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllStateMessages(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateFunctionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + 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()) + .setEventTrigger(EventTrigger.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllStateMessages(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Function actualResponse = client.updateFunctionAsync(function, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateFunctionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + 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()) + .setEventTrigger(EventTrigger.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllStateMessages(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFunctionAsync(function, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteFunctionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFunctionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]"); + + client.deleteFunctionAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFunctionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]"); + client.deleteFunctionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteFunctionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFunctionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-129/locations/location-129/functions/function-129"; + + client.deleteFunctionAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteFunctionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-129/locations/location-129/functions/function-129"; + client.deleteFunctionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void generateUploadUrlTest() throws Exception { + GenerateUploadUrlResponse expectedResponse = + GenerateUploadUrlResponse.newBuilder() + .setUploadUrl("uploadUrl1239085998") + .setStorageSource(StorageSource.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GenerateUploadUrlRequest request = + GenerateUploadUrlRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + + GenerateUploadUrlResponse actualResponse = client.generateUploadUrl(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void generateUploadUrlExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GenerateUploadUrlRequest request = + GenerateUploadUrlRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + client.generateUploadUrl(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateDownloadUrlTest() throws Exception { + GenerateDownloadUrlResponse expectedResponse = + GenerateDownloadUrlResponse.newBuilder().setDownloadUrl("downloadUrl-1211148345").build(); + mockService.addResponse(expectedResponse); + + GenerateDownloadUrlRequest request = + GenerateDownloadUrlRequest.newBuilder() + .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .build(); + + GenerateDownloadUrlResponse actualResponse = client.generateDownloadUrl(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void generateDownloadUrlExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GenerateDownloadUrlRequest request = + GenerateDownloadUrlRequest.newBuilder() + .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .build(); + client.generateDownloadUrl(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRuntimesTest() throws Exception { + ListRuntimesResponse expectedResponse = + ListRuntimesResponse.newBuilder() + .addAllRuntimes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListRuntimesResponse actualResponse = client.listRuntimes(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listRuntimesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listRuntimes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRuntimesTest2() throws Exception { + ListRuntimesResponse expectedResponse = + ListRuntimesResponse.newBuilder() + .addAllRuntimes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListRuntimesResponse actualResponse = client.listRuntimes(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listRuntimesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listRuntimes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientTest.java b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientTest.java new file mode 100644 index 00000000..b16a30f9 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientTest.java @@ -0,0 +1,918 @@ +/* + * 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.v2; + +import static com.google.cloud.functions.v2.FunctionServiceClient.ListFunctionsPagedResponse; +import static com.google.cloud.functions.v2.FunctionServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class FunctionServiceClientTest { + private static MockFunctionService mockFunctionService; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private FunctionServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockFunctionService = new MockFunctionService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockFunctionService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + FunctionServiceSettings settings = + FunctionServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = FunctionServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + 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()) + .setEventTrigger(EventTrigger.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllStateMessages(new ArrayList()) + .build(); + mockFunctionService.addResponse(expectedResponse); + + FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]"); + + Function actualResponse = client.getFunction(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFunctionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFunctionRequest actualRequest = ((GetFunctionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFunctionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFunctionService.addException(exception); + + try { + FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]"); + client.getFunction(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + 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()) + .setEventTrigger(EventTrigger.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllStateMessages(new ArrayList()) + .build(); + mockFunctionService.addResponse(expectedResponse); + + String name = "name3373707"; + + Function actualResponse = client.getFunction(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFunctionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFunctionRequest actualRequest = ((GetFunctionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFunctionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFunctionService.addException(exception); + + try { + String name = "name3373707"; + client.getFunction(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFunctionsTest() throws Exception { + Function responsesElement = Function.newBuilder().build(); + ListFunctionsResponse expectedResponse = + ListFunctionsResponse.newBuilder() + .setNextPageToken("") + .addAllFunctions(Arrays.asList(responsesElement)) + .build(); + mockFunctionService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFunctionsPagedResponse pagedListResponse = client.listFunctions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFunctionsList().get(0), resources.get(0)); + + List actualRequests = mockFunctionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFunctionsRequest actualRequest = ((ListFunctionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFunctionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFunctionService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFunctions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFunctionsTest2() throws Exception { + Function responsesElement = Function.newBuilder().build(); + ListFunctionsResponse expectedResponse = + ListFunctionsResponse.newBuilder() + .setNextPageToken("") + .addAllFunctions(Arrays.asList(responsesElement)) + .build(); + mockFunctionService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListFunctionsPagedResponse pagedListResponse = client.listFunctions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFunctionsList().get(0), resources.get(0)); + + List actualRequests = mockFunctionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFunctionsRequest actualRequest = ((ListFunctionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFunctionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFunctionService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listFunctions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + 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()) + .setEventTrigger(EventTrigger.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllStateMessages(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFunctionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFunctionService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Function function = Function.newBuilder().build(); + String functionId = "functionId-62789869"; + + Function actualResponse = client.createFunctionAsync(parent, function, functionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFunctionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFunctionRequest actualRequest = ((CreateFunctionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(function, actualRequest.getFunction()); + Assert.assertEquals(functionId, actualRequest.getFunctionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFunctionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFunctionService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Function function = Function.newBuilder().build(); + String functionId = "functionId-62789869"; + client.createFunctionAsync(parent, function, functionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + 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()) + .setEventTrigger(EventTrigger.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllStateMessages(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFunctionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFunctionService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Function function = Function.newBuilder().build(); + String functionId = "functionId-62789869"; + + Function actualResponse = client.createFunctionAsync(parent, function, functionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFunctionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFunctionRequest actualRequest = ((CreateFunctionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(function, actualRequest.getFunction()); + Assert.assertEquals(functionId, actualRequest.getFunctionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFunctionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFunctionService.addException(exception); + + try { + String parent = "parent-995424086"; + Function function = Function.newBuilder().build(); + String functionId = "functionId-62789869"; + client.createFunctionAsync(parent, function, functionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + 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()) + .setEventTrigger(EventTrigger.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllStateMessages(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateFunctionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFunctionService.addResponse(resultOperation); + + Function function = Function.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Function actualResponse = client.updateFunctionAsync(function, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFunctionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFunctionRequest actualRequest = ((UpdateFunctionRequest) actualRequests.get(0)); + + Assert.assertEquals(function, actualRequest.getFunction()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFunctionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFunctionService.addException(exception); + + try { + Function function = Function.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFunctionAsync(function, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteFunctionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFunctionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFunctionService.addResponse(resultOperation); + + FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]"); + + client.deleteFunctionAsync(name).get(); + + List actualRequests = mockFunctionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFunctionRequest actualRequest = ((DeleteFunctionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFunctionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFunctionService.addException(exception); + + try { + FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]"); + client.deleteFunctionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteFunctionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFunctionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFunctionService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteFunctionAsync(name).get(); + + List actualRequests = mockFunctionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFunctionRequest actualRequest = ((DeleteFunctionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFunctionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFunctionService.addException(exception); + + try { + String name = "name3373707"; + client.deleteFunctionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void generateUploadUrlTest() throws Exception { + GenerateUploadUrlResponse expectedResponse = + GenerateUploadUrlResponse.newBuilder() + .setUploadUrl("uploadUrl1239085998") + .setStorageSource(StorageSource.newBuilder().build()) + .build(); + mockFunctionService.addResponse(expectedResponse); + + GenerateUploadUrlRequest request = + GenerateUploadUrlRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + + GenerateUploadUrlResponse actualResponse = client.generateUploadUrl(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFunctionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateUploadUrlRequest actualRequest = ((GenerateUploadUrlRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateUploadUrlExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFunctionService.addException(exception); + + try { + GenerateUploadUrlRequest request = + GenerateUploadUrlRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + client.generateUploadUrl(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateDownloadUrlTest() throws Exception { + GenerateDownloadUrlResponse expectedResponse = + GenerateDownloadUrlResponse.newBuilder().setDownloadUrl("downloadUrl-1211148345").build(); + mockFunctionService.addResponse(expectedResponse); + + GenerateDownloadUrlRequest request = + GenerateDownloadUrlRequest.newBuilder() + .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .build(); + + GenerateDownloadUrlResponse actualResponse = client.generateDownloadUrl(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFunctionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateDownloadUrlRequest actualRequest = ((GenerateDownloadUrlRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateDownloadUrlExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFunctionService.addException(exception); + + try { + GenerateDownloadUrlRequest request = + GenerateDownloadUrlRequest.newBuilder() + .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .build(); + client.generateDownloadUrl(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRuntimesTest() throws Exception { + ListRuntimesResponse expectedResponse = + ListRuntimesResponse.newBuilder() + .addAllRuntimes(new ArrayList()) + .build(); + mockFunctionService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListRuntimesResponse actualResponse = client.listRuntimes(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFunctionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRuntimesRequest actualRequest = ((ListRuntimesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRuntimesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFunctionService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listRuntimes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRuntimesTest2() throws Exception { + ListRuntimesResponse expectedResponse = + ListRuntimesResponse.newBuilder() + .addAllRuntimes(new ArrayList()) + .build(); + mockFunctionService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListRuntimesResponse actualResponse = client.listRuntimes(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFunctionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRuntimesRequest actualRequest = ((ListRuntimesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRuntimesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFunctionService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listRuntimes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionService.java b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionService.java new file mode 100644 index 00000000..1819bb65 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionService.java @@ -0,0 +1,59 @@ +/* + * 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.v2; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockFunctionService implements MockGrpcService { + private final MockFunctionServiceImpl serviceImpl; + + public MockFunctionService() { + serviceImpl = new MockFunctionServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionServiceImpl.java b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionServiceImpl.java new file mode 100644 index 00000000..2baf20d1 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionServiceImpl.java @@ -0,0 +1,230 @@ +/* + * 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.v2; + +import com.google.api.core.BetaApi; +import com.google.cloud.functions.v2.FunctionServiceGrpc.FunctionServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockFunctionServiceImpl extends FunctionServiceImplBase { + private List requests; + private Queue responses; + + public MockFunctionServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getFunction(GetFunctionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Function) { + requests.add(request); + responseObserver.onNext(((Function) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetFunction, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Function.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listFunctions( + ListFunctionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListFunctionsResponse) { + requests.add(request); + responseObserver.onNext(((ListFunctionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListFunctions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListFunctionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createFunction( + CreateFunctionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateFunction, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateFunction( + UpdateFunctionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateFunction, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteFunction( + DeleteFunctionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteFunction, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateUploadUrl( + GenerateUploadUrlRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateUploadUrlResponse) { + requests.add(request); + responseObserver.onNext(((GenerateUploadUrlResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GenerateUploadUrl, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GenerateUploadUrlResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateDownloadUrl( + GenerateDownloadUrlRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateDownloadUrlResponse) { + requests.add(request); + responseObserver.onNext(((GenerateDownloadUrlResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GenerateDownloadUrl, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GenerateDownloadUrlResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listRuntimes( + ListRuntimesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRuntimesResponse) { + requests.add(request); + responseObserver.onNext(((ListRuntimesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListRuntimes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListRuntimesResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicy.java b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicy.java new file mode 100644 index 00000000..117aa5d3 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicy.java @@ -0,0 +1,59 @@ +/* + * 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.v2; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIAMPolicy implements MockGrpcService { + private final MockIAMPolicyImpl serviceImpl; + + public MockIAMPolicy() { + serviceImpl = new MockIAMPolicyImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicyImpl.java b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicyImpl.java new file mode 100644 index 00000000..61650cd9 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicyImpl.java @@ -0,0 +1,127 @@ +/* + * 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.v2; + +import com.google.api.core.BetaApi; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIAMPolicyImpl extends IAMPolicyImplBase { + private List requests; + private Queue responses; + + public MockIAMPolicyImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext(((TestIamPermissionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocations.java b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocations.java new file mode 100644 index 00000000..01eafbeb --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocations.java @@ -0,0 +1,59 @@ +/* + * 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.v2; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocationsImpl.java b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocationsImpl.java new file mode 100644 index 00000000..9fa73b67 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocationsImpl.java @@ -0,0 +1,83 @@ +/* + * 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.v2; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v2/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java new file mode 100644 index 00000000..a6620025 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java @@ -0,0 +1,1021 @@ +package com.google.cloud.functions.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
      + * Google Cloud Functions is used to deploy functions that are executed by
      + * Google in response to various events. Data connected with that event is
      + * passed to a function as the input data.
      + * A **function** is a resource which describes a function that should be
      + * executed and how it is triggered.
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/functions/v2/functions.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class FunctionServiceGrpc { + + private FunctionServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.functions.v2.FunctionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFunction", + requestType = com.google.cloud.functions.v2.GetFunctionRequest.class, + responseType = com.google.cloud.functions.v2.Function.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFunctionMethod() { + io.grpc.MethodDescriptor getGetFunctionMethod; + if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { + FunctionServiceGrpc.getGetFunctionMethod = getGetFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.GetFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.Function.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GetFunction")) + .build(); + } + } + } + return getGetFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFunctionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFunctions", + requestType = com.google.cloud.functions.v2.ListFunctionsRequest.class, + responseType = com.google.cloud.functions.v2.ListFunctionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFunctionsMethod() { + io.grpc.MethodDescriptor getListFunctionsMethod; + if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { + FunctionServiceGrpc.getListFunctionsMethod = getListFunctionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.ListFunctionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.ListFunctionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListFunctions")) + .build(); + } + } + } + return getListFunctionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFunction", + requestType = com.google.cloud.functions.v2.CreateFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFunctionMethod() { + io.grpc.MethodDescriptor getCreateFunctionMethod; + if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { + FunctionServiceGrpc.getCreateFunctionMethod = getCreateFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.CreateFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("CreateFunction")) + .build(); + } + } + } + return getCreateFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFunction", + requestType = com.google.cloud.functions.v2.UpdateFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateFunctionMethod() { + io.grpc.MethodDescriptor getUpdateFunctionMethod; + if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { + FunctionServiceGrpc.getUpdateFunctionMethod = getUpdateFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.UpdateFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("UpdateFunction")) + .build(); + } + } + } + return getUpdateFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFunction", + requestType = com.google.cloud.functions.v2.DeleteFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteFunctionMethod() { + io.grpc.MethodDescriptor getDeleteFunctionMethod; + if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { + FunctionServiceGrpc.getDeleteFunctionMethod = getDeleteFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.DeleteFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("DeleteFunction")) + .build(); + } + } + } + return getDeleteFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateUploadUrlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateUploadUrl", + requestType = com.google.cloud.functions.v2.GenerateUploadUrlRequest.class, + responseType = com.google.cloud.functions.v2.GenerateUploadUrlResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateUploadUrlMethod() { + io.grpc.MethodDescriptor getGenerateUploadUrlMethod; + if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { + FunctionServiceGrpc.getGenerateUploadUrlMethod = getGenerateUploadUrlMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.GenerateUploadUrlRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.GenerateUploadUrlResponse.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GenerateUploadUrl")) + .build(); + } + } + } + return getGenerateUploadUrlMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateDownloadUrl", + requestType = com.google.cloud.functions.v2.GenerateDownloadUrlRequest.class, + responseType = com.google.cloud.functions.v2.GenerateDownloadUrlResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateDownloadUrlMethod() { + io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; + if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { + FunctionServiceGrpc.getGenerateDownloadUrlMethod = getGenerateDownloadUrlMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.GenerateDownloadUrlRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.GenerateDownloadUrlResponse.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GenerateDownloadUrl")) + .build(); + } + } + } + return getGenerateDownloadUrlMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRuntimesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", + requestType = com.google.cloud.functions.v2.ListRuntimesRequest.class, + responseType = com.google.cloud.functions.v2.ListRuntimesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRuntimesMethod() { + io.grpc.MethodDescriptor getListRuntimesMethod; + if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { + FunctionServiceGrpc.getListRuntimesMethod = getListRuntimesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.ListRuntimesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.ListRuntimesResponse.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListRuntimes")) + .build(); + } + } + } + return getListRuntimesMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static FunctionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceStub(channel, callOptions); + } + }; + return FunctionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static FunctionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceBlockingStub(channel, callOptions); + } + }; + return FunctionServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static FunctionServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceFutureStub(channel, callOptions); + } + }; + return FunctionServiceFutureStub.newStub(factory, channel); + } + + /** + *
      +   * Google Cloud Functions is used to deploy functions that are executed by
      +   * Google in response to various events. Data connected with that event is
      +   * passed to a function as the input data.
      +   * A **function** is a resource which describes a function that should be
      +   * executed and how it is triggered.
      +   * 
      + */ + public static abstract class FunctionServiceImplBase implements io.grpc.BindableService { + + /** + *
      +     * Returns a function with the given name from the requested project.
      +     * 
      + */ + public void getFunction(com.google.cloud.functions.v2.GetFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFunctionMethod(), responseObserver); + } + + /** + *
      +     * Returns a list of functions that belong to the requested project.
      +     * 
      + */ + public void listFunctions(com.google.cloud.functions.v2.ListFunctionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFunctionsMethod(), responseObserver); + } + + /** + *
      +     * 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.
      +     * 
      + */ + public void createFunction(com.google.cloud.functions.v2.CreateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFunctionMethod(), responseObserver); + } + + /** + *
      +     * Updates existing function.
      +     * 
      + */ + public void updateFunction(com.google.cloud.functions.v2.UpdateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFunctionMethod(), responseObserver); + } + + /** + *
      +     * Deletes a function with the given name from the specified project. If the
      +     * given function is used by some trigger, the trigger will be updated to
      +     * remove this function.
      +     * 
      + */ + public void deleteFunction(com.google.cloud.functions.v2.DeleteFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFunctionMethod(), responseObserver); + } + + /** + *
      +     * Returns a signed URL for uploading a function source code.
      +     * For more information about the signed URL usage see:
      +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
      +     * Once the function source code upload is complete, the used signed
      +     * URL should be provided in CreateFunction or UpdateFunction request
      +     * as a reference to the function source code.
      +     * When uploading source code to the generated signed URL, please follow
      +     * these restrictions:
      +     * * Source file type should be a zip file.
      +     * * No credentials should be attached - the signed URLs provide access to the
      +     *   target bucket using internal service identity; if credentials were
      +     *   attached, the identity from the credentials would be used, but that
      +     *   identity does not have permissions to upload files to the URL.
      +     * When making a HTTP PUT request, these two headers need to be specified:
      +     * * `content-type: application/zip`
      +     * And this header SHOULD NOT be specified:
      +     * * `Authorization: Bearer YOUR_TOKEN`
      +     * 
      + */ + public void generateUploadUrl(com.google.cloud.functions.v2.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateUploadUrlMethod(), responseObserver); + } + + /** + *
      +     * Returns a signed URL for downloading deployed function source code.
      +     * The URL is only valid for a limited period and should be used within
      +     * 30 minutes of generation.
      +     * For more information about the signed URL usage see:
      +     * https://cloud.google.com/storage/docs/access-control/signed-urls
      +     * 
      + */ + public void generateDownloadUrl(com.google.cloud.functions.v2.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateDownloadUrlMethod(), responseObserver); + } + + /** + *
      +     * Returns a list of runtimes that are supported for the requested project.
      +     * 
      + */ + public void listRuntimes(com.google.cloud.functions.v2.ListRuntimesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuntimesMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.GetFunctionRequest, + com.google.cloud.functions.v2.Function>( + this, METHODID_GET_FUNCTION))) + .addMethod( + getListFunctionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.ListFunctionsRequest, + com.google.cloud.functions.v2.ListFunctionsResponse>( + this, METHODID_LIST_FUNCTIONS))) + .addMethod( + getCreateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.CreateFunctionRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_FUNCTION))) + .addMethod( + getUpdateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.UpdateFunctionRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_FUNCTION))) + .addMethod( + getDeleteFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.DeleteFunctionRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_FUNCTION))) + .addMethod( + getGenerateUploadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.GenerateUploadUrlRequest, + com.google.cloud.functions.v2.GenerateUploadUrlResponse>( + this, METHODID_GENERATE_UPLOAD_URL))) + .addMethod( + getGenerateDownloadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2.GenerateDownloadUrlResponse>( + this, METHODID_GENERATE_DOWNLOAD_URL))) + .addMethod( + getListRuntimesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.ListRuntimesRequest, + com.google.cloud.functions.v2.ListRuntimesResponse>( + this, METHODID_LIST_RUNTIMES))) + .build(); + } + } + + /** + *
      +   * Google Cloud Functions is used to deploy functions that are executed by
      +   * Google in response to various events. Data connected with that event is
      +   * passed to a function as the input data.
      +   * A **function** is a resource which describes a function that should be
      +   * executed and how it is triggered.
      +   * 
      + */ + public static final class FunctionServiceStub extends io.grpc.stub.AbstractAsyncStub { + private FunctionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceStub(channel, callOptions); + } + + /** + *
      +     * Returns a function with the given name from the requested project.
      +     * 
      + */ + public void getFunction(com.google.cloud.functions.v2.GetFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Returns a list of functions that belong to the requested project.
      +     * 
      + */ + public void listFunctions(com.google.cloud.functions.v2.ListFunctionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * 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.
      +     * 
      + */ + public void createFunction(com.google.cloud.functions.v2.CreateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Updates existing function.
      +     * 
      + */ + public void updateFunction(com.google.cloud.functions.v2.UpdateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Deletes a function with the given name from the specified project. If the
      +     * given function is used by some trigger, the trigger will be updated to
      +     * remove this function.
      +     * 
      + */ + public void deleteFunction(com.google.cloud.functions.v2.DeleteFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Returns a signed URL for uploading a function source code.
      +     * For more information about the signed URL usage see:
      +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
      +     * Once the function source code upload is complete, the used signed
      +     * URL should be provided in CreateFunction or UpdateFunction request
      +     * as a reference to the function source code.
      +     * When uploading source code to the generated signed URL, please follow
      +     * these restrictions:
      +     * * Source file type should be a zip file.
      +     * * No credentials should be attached - the signed URLs provide access to the
      +     *   target bucket using internal service identity; if credentials were
      +     *   attached, the identity from the credentials would be used, but that
      +     *   identity does not have permissions to upload files to the URL.
      +     * When making a HTTP PUT request, these two headers need to be specified:
      +     * * `content-type: application/zip`
      +     * And this header SHOULD NOT be specified:
      +     * * `Authorization: Bearer YOUR_TOKEN`
      +     * 
      + */ + public void generateUploadUrl(com.google.cloud.functions.v2.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Returns a signed URL for downloading deployed function source code.
      +     * The URL is only valid for a limited period and should be used within
      +     * 30 minutes of generation.
      +     * For more information about the signed URL usage see:
      +     * https://cloud.google.com/storage/docs/access-control/signed-urls
      +     * 
      + */ + public void generateDownloadUrl(com.google.cloud.functions.v2.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Returns a list of runtimes that are supported for the requested project.
      +     * 
      + */ + public void listRuntimes(com.google.cloud.functions.v2.ListRuntimesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
      +   * Google Cloud Functions is used to deploy functions that are executed by
      +   * Google in response to various events. Data connected with that event is
      +   * passed to a function as the input data.
      +   * A **function** is a resource which describes a function that should be
      +   * executed and how it is triggered.
      +   * 
      + */ + public static final class FunctionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private FunctionServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceBlockingStub(channel, callOptions); + } + + /** + *
      +     * Returns a function with the given name from the requested project.
      +     * 
      + */ + public com.google.cloud.functions.v2.Function getFunction(com.google.cloud.functions.v2.GetFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFunctionMethod(), getCallOptions(), request); + } + + /** + *
      +     * Returns a list of functions that belong to the requested project.
      +     * 
      + */ + public com.google.cloud.functions.v2.ListFunctionsResponse listFunctions(com.google.cloud.functions.v2.ListFunctionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFunctionsMethod(), getCallOptions(), request); + } + + /** + *
      +     * 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.
      +     * 
      + */ + public com.google.longrunning.Operation createFunction(com.google.cloud.functions.v2.CreateFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFunctionMethod(), getCallOptions(), request); + } + + /** + *
      +     * Updates existing function.
      +     * 
      + */ + public com.google.longrunning.Operation updateFunction(com.google.cloud.functions.v2.UpdateFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); + } + + /** + *
      +     * Deletes a function with the given name from the specified project. If the
      +     * given function is used by some trigger, the trigger will be updated to
      +     * remove this function.
      +     * 
      + */ + public com.google.longrunning.Operation deleteFunction(com.google.cloud.functions.v2.DeleteFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); + } + + /** + *
      +     * Returns a signed URL for uploading a function source code.
      +     * For more information about the signed URL usage see:
      +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
      +     * Once the function source code upload is complete, the used signed
      +     * URL should be provided in CreateFunction or UpdateFunction request
      +     * as a reference to the function source code.
      +     * When uploading source code to the generated signed URL, please follow
      +     * these restrictions:
      +     * * Source file type should be a zip file.
      +     * * No credentials should be attached - the signed URLs provide access to the
      +     *   target bucket using internal service identity; if credentials were
      +     *   attached, the identity from the credentials would be used, but that
      +     *   identity does not have permissions to upload files to the URL.
      +     * When making a HTTP PUT request, these two headers need to be specified:
      +     * * `content-type: application/zip`
      +     * And this header SHOULD NOT be specified:
      +     * * `Authorization: Bearer YOUR_TOKEN`
      +     * 
      + */ + public com.google.cloud.functions.v2.GenerateUploadUrlResponse generateUploadUrl(com.google.cloud.functions.v2.GenerateUploadUrlRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); + } + + /** + *
      +     * Returns a signed URL for downloading deployed function source code.
      +     * The URL is only valid for a limited period and should be used within
      +     * 30 minutes of generation.
      +     * For more information about the signed URL usage see:
      +     * https://cloud.google.com/storage/docs/access-control/signed-urls
      +     * 
      + */ + public com.google.cloud.functions.v2.GenerateDownloadUrlResponse generateDownloadUrl(com.google.cloud.functions.v2.GenerateDownloadUrlRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); + } + + /** + *
      +     * Returns a list of runtimes that are supported for the requested project.
      +     * 
      + */ + public com.google.cloud.functions.v2.ListRuntimesResponse listRuntimes(com.google.cloud.functions.v2.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRuntimesMethod(), getCallOptions(), request); + } + } + + /** + *
      +   * Google Cloud Functions is used to deploy functions that are executed by
      +   * Google in response to various events. Data connected with that event is
      +   * passed to a function as the input data.
      +   * A **function** is a resource which describes a function that should be
      +   * executed and how it is triggered.
      +   * 
      + */ + public static final class FunctionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private FunctionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceFutureStub(channel, callOptions); + } + + /** + *
      +     * Returns a function with the given name from the requested project.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture getFunction( + com.google.cloud.functions.v2.GetFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request); + } + + /** + *
      +     * Returns a list of functions that belong to the requested project.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture listFunctions( + com.google.cloud.functions.v2.ListFunctionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request); + } + + /** + *
      +     * 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.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture createFunction( + com.google.cloud.functions.v2.CreateFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request); + } + + /** + *
      +     * Updates existing function.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture updateFunction( + com.google.cloud.functions.v2.UpdateFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request); + } + + /** + *
      +     * Deletes a function with the given name from the specified project. If the
      +     * given function is used by some trigger, the trigger will be updated to
      +     * remove this function.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture deleteFunction( + com.google.cloud.functions.v2.DeleteFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request); + } + + /** + *
      +     * Returns a signed URL for uploading a function source code.
      +     * For more information about the signed URL usage see:
      +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
      +     * Once the function source code upload is complete, the used signed
      +     * URL should be provided in CreateFunction or UpdateFunction request
      +     * as a reference to the function source code.
      +     * When uploading source code to the generated signed URL, please follow
      +     * these restrictions:
      +     * * Source file type should be a zip file.
      +     * * No credentials should be attached - the signed URLs provide access to the
      +     *   target bucket using internal service identity; if credentials were
      +     *   attached, the identity from the credentials would be used, but that
      +     *   identity does not have permissions to upload files to the URL.
      +     * When making a HTTP PUT request, these two headers need to be specified:
      +     * * `content-type: application/zip`
      +     * And this header SHOULD NOT be specified:
      +     * * `Authorization: Bearer YOUR_TOKEN`
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture generateUploadUrl( + com.google.cloud.functions.v2.GenerateUploadUrlRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request); + } + + /** + *
      +     * Returns a signed URL for downloading deployed function source code.
      +     * The URL is only valid for a limited period and should be used within
      +     * 30 minutes of generation.
      +     * For more information about the signed URL usage see:
      +     * https://cloud.google.com/storage/docs/access-control/signed-urls
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture generateDownloadUrl( + com.google.cloud.functions.v2.GenerateDownloadUrlRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request); + } + + /** + *
      +     * Returns a list of runtimes that are supported for the requested project.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture listRuntimes( + com.google.cloud.functions.v2.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_FUNCTION = 0; + private static final int METHODID_LIST_FUNCTIONS = 1; + private static final int METHODID_CREATE_FUNCTION = 2; + private static final int METHODID_UPDATE_FUNCTION = 3; + private static final int METHODID_DELETE_FUNCTION = 4; + private static final int METHODID_GENERATE_UPLOAD_URL = 5; + private static final int METHODID_GENERATE_DOWNLOAD_URL = 6; + private static final int METHODID_LIST_RUNTIMES = 7; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final FunctionServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(FunctionServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_FUNCTION: + serviceImpl.getFunction((com.google.cloud.functions.v2.GetFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FUNCTIONS: + serviceImpl.listFunctions((com.google.cloud.functions.v2.ListFunctionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FUNCTION: + serviceImpl.createFunction((com.google.cloud.functions.v2.CreateFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FUNCTION: + serviceImpl.updateFunction((com.google.cloud.functions.v2.UpdateFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FUNCTION: + serviceImpl.deleteFunction((com.google.cloud.functions.v2.DeleteFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_UPLOAD_URL: + serviceImpl.generateUploadUrl((com.google.cloud.functions.v2.GenerateUploadUrlRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_DOWNLOAD_URL: + serviceImpl.generateDownloadUrl((com.google.cloud.functions.v2.GenerateDownloadUrlRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RUNTIMES: + serviceImpl.listRuntimes((com.google.cloud.functions.v2.ListRuntimesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class FunctionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + FunctionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("FunctionService"); + } + } + + private static final class FunctionServiceFileDescriptorSupplier + extends FunctionServiceBaseDescriptorSupplier { + FunctionServiceFileDescriptorSupplier() {} + } + + private static final class FunctionServiceMethodDescriptorSupplier + extends FunctionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + FunctionServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (FunctionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new FunctionServiceFileDescriptorSupplier()) + .addMethod(getGetFunctionMethod()) + .addMethod(getListFunctionsMethod()) + .addMethod(getCreateFunctionMethod()) + .addMethod(getUpdateFunctionMethod()) + .addMethod(getDeleteFunctionMethod()) + .addMethod(getGenerateUploadUrlMethod()) + .addMethod(getGenerateDownloadUrlMethod()) + .addMethod(getListRuntimesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java new file mode 100644 index 00000000..f335f8bb --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java @@ -0,0 +1,2269 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Describes the Build step of the function that builds a container from the
      + * given source.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.BuildConfig} + */ +public final class BuildConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.BuildConfig) + BuildConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use BuildConfig.newBuilder() to construct. + private BuildConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BuildConfig() { + build_ = ""; + runtime_ = ""; + entryPoint_ = ""; + workerPool_ = ""; + dockerRepository_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BuildConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BuildConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + build_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + runtime_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + entryPoint_ = s; + break; + } + case 34: { + com.google.cloud.functions.v2.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(com.google.cloud.functions.v2.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + workerPool_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + environmentVariables_ = com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + environmentVariables__ = input.readMessage( + EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + environmentVariables_.getMutableMap().put( + environmentVariables__.getKey(), environmentVariables__.getValue()); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + dockerRepository_ = s; + break; + } + case 66: { + com.google.cloud.functions.v2.SourceProvenance.Builder subBuilder = null; + if (sourceProvenance_ != null) { + subBuilder = sourceProvenance_.toBuilder(); + } + sourceProvenance_ = input.readMessage(com.google.cloud.functions.v2.SourceProvenance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sourceProvenance_); + sourceProvenance_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_BuildConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 6: + return internalGetEnvironmentVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_BuildConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.BuildConfig.class, com.google.cloud.functions.v2.BuildConfig.Builder.class); + } + + public static final int BUILD_FIELD_NUMBER = 1; + private volatile java.lang.Object build_; + /** + *
      +   * 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) = { ... } + * @return The build. + */ + @java.lang.Override + public java.lang.String getBuild() { + java.lang.Object ref = build_; + 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(); + build_ = s; + return s; + } + } + /** + *
      +   * 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) = { ... } + * @return The bytes for build. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBuildBytes() { + java.lang.Object ref = build_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + build_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RUNTIME_FIELD_NUMBER = 2; + private volatile java.lang.Object runtime_; + /** + *
      +   * The runtime in which to run the function. Required when deploying a new
      +   * function, optional when updating an existing function. For a complete
      +   * list of possible choices, see the
      +   * [`gcloud` command
      +   * reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
      +   * 
      + * + * string runtime = 2; + * @return The runtime. + */ + @java.lang.Override + public java.lang.String getRuntime() { + java.lang.Object ref = runtime_; + 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(); + runtime_ = s; + return s; + } + } + /** + *
      +   * The runtime in which to run the function. Required when deploying a new
      +   * function, optional when updating an existing function. For a complete
      +   * list of possible choices, see the
      +   * [`gcloud` command
      +   * reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
      +   * 
      + * + * string runtime = 2; + * @return The bytes for runtime. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRuntimeBytes() { + java.lang.Object ref = runtime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + runtime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTRY_POINT_FIELD_NUMBER = 3; + private volatile java.lang.Object entryPoint_; + /** + *
      +   * The name of the function (as defined in source code) that will be
      +   * executed. Defaults to the resource name suffix, if not specified. For
      +   * backward compatibility, if function with given name is not found, then the
      +   * system will try to use function named "function".
      +   * For Node.js this is name of a function exported by the module specified
      +   * in `source_location`.
      +   * 
      + * + * string entry_point = 3; + * @return The entryPoint. + */ + @java.lang.Override + public java.lang.String getEntryPoint() { + java.lang.Object ref = entryPoint_; + 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(); + entryPoint_ = s; + return s; + } + } + /** + *
      +   * The name of the function (as defined in source code) that will be
      +   * executed. Defaults to the resource name suffix, if not specified. For
      +   * backward compatibility, if function with given name is not found, then the
      +   * system will try to use function named "function".
      +   * For Node.js this is name of a function exported by the module specified
      +   * in `source_location`.
      +   * 
      + * + * string entry_point = 3; + * @return The bytes for entryPoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEntryPointBytes() { + java.lang.Object ref = entryPoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + entryPoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 4; + private com.google.cloud.functions.v2.Source source_; + /** + *
      +   * The location of the function source code.
      +   * 
      + * + * .google.cloud.functions.v2.Source source = 4; + * @return Whether the source field is set. + */ + @java.lang.Override + public boolean hasSource() { + return source_ != null; + } + /** + *
      +   * The location of the function source code.
      +   * 
      + * + * .google.cloud.functions.v2.Source source = 4; + * @return The source. + */ + @java.lang.Override + public com.google.cloud.functions.v2.Source getSource() { + return source_ == null ? com.google.cloud.functions.v2.Source.getDefaultInstance() : source_; + } + /** + *
      +   * The location of the function source code.
      +   * 
      + * + * .google.cloud.functions.v2.Source source = 4; + */ + @java.lang.Override + public com.google.cloud.functions.v2.SourceOrBuilder getSourceOrBuilder() { + return getSource(); + } + + public static final int SOURCE_PROVENANCE_FIELD_NUMBER = 8; + private com.google.cloud.functions.v2.SourceProvenance sourceProvenance_; + /** + *
      +   * Output only. A permanent fixed identifier for source.
      +   * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the sourceProvenance field is set. + */ + @java.lang.Override + public boolean hasSourceProvenance() { + return sourceProvenance_ != null; + } + /** + *
      +   * Output only. A permanent fixed identifier for source.
      +   * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The sourceProvenance. + */ + @java.lang.Override + public com.google.cloud.functions.v2.SourceProvenance getSourceProvenance() { + return sourceProvenance_ == null ? com.google.cloud.functions.v2.SourceProvenance.getDefaultInstance() : sourceProvenance_; + } + /** + *
      +   * Output only. A permanent fixed identifier for source.
      +   * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.functions.v2.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { + return getSourceProvenance(); + } + + public static final int WORKER_POOL_FIELD_NUMBER = 5; + private volatile java.lang.Object workerPool_; + /** + *
      +   * Name of the Cloud Build Custom Worker Pool that should be used to build the
      +   * function. The format of this field is
      +   * `projects/{project}/locations/{region}/workerPools/{workerPool}` where
      +   * {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
      +   * granted the role Cloud Build Custom Workers Builder
      +   * (roles/cloudbuild.customworkers.builder) in the project.
      +   * 
      + * + * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * @return The workerPool. + */ + @java.lang.Override + public java.lang.String getWorkerPool() { + java.lang.Object ref = workerPool_; + 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(); + workerPool_ = s; + return s; + } + } + /** + *
      +   * Name of the Cloud Build Custom Worker Pool that should be used to build the
      +   * function. The format of this field is
      +   * `projects/{project}/locations/{region}/workerPools/{workerPool}` where
      +   * {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
      +   * granted the role Cloud Build Custom Workers Builder
      +   * (roles/cloudbuild.customworkers.builder) in the project.
      +   * 
      + * + * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * @return The bytes for workerPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkerPoolBytes() { + java.lang.Object ref = workerPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workerPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 6; + private static final class EnvironmentVariablesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; + private com.google.protobuf.MapField + internalGetEnvironmentVariables() { + if (environmentVariables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); + } + return environmentVariables_; + } + + public int getEnvironmentVariablesCount() { + return internalGetEnvironmentVariables().getMap().size(); + } + /** + *
      +   * User-provided build-time environment variables for the function
      +   * 
      + * + * map<string, string> environment_variables = 6; + */ + + @java.lang.Override + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetEnvironmentVariables().getMap().containsKey(key); + } + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEnvironmentVariables() { + return getEnvironmentVariablesMap(); + } + /** + *
      +   * User-provided build-time environment variables for the function
      +   * 
      + * + * map<string, string> environment_variables = 6; + */ + @java.lang.Override + + public java.util.Map getEnvironmentVariablesMap() { + return internalGetEnvironmentVariables().getMap(); + } + /** + *
      +   * User-provided build-time environment variables for the function
      +   * 
      + * + * map<string, string> environment_variables = 6; + */ + @java.lang.Override + + public java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnvironmentVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
      +   * User-provided build-time environment variables for the function
      +   * 
      + * + * map<string, string> environment_variables = 6; + */ + @java.lang.Override + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnvironmentVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DOCKER_REPOSITORY_FIELD_NUMBER = 7; + private volatile 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
      +   * 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) = { ... } + * @return The dockerRepository. + */ + @java.lang.Override + public java.lang.String getDockerRepository() { + java.lang.Object ref = dockerRepository_; + 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(); + dockerRepository_ = s; + return s; + } + } + /** + *
      +   * Optional. 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) = { ... } + * @return The bytes for dockerRepository. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDockerRepositoryBytes() { + java.lang.Object ref = dockerRepository_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dockerRepository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(build_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, build_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, runtime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entryPoint_); + } + if (source_ != null) { + output.writeMessage(4, getSource()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workerPool_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetEnvironmentVariables(), + EnvironmentVariablesDefaultEntryHolder.defaultEntry, + 6); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dockerRepository_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, dockerRepository_); + } + if (sourceProvenance_ != null) { + output.writeMessage(8, getSourceProvenance()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(build_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, build_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, runtime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entryPoint_); + } + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSource()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workerPool_); + } + for (java.util.Map.Entry entry + : internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, environmentVariables__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dockerRepository_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, dockerRepository_); + } + if (sourceProvenance_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSourceProvenance()); + } + size += unknownFields.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.BuildConfig)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.BuildConfig other = (com.google.cloud.functions.v2.BuildConfig) obj; + + if (!getBuild() + .equals(other.getBuild())) return false; + if (!getRuntime() + .equals(other.getRuntime())) return false; + if (!getEntryPoint() + .equals(other.getEntryPoint())) return false; + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource() + .equals(other.getSource())) return false; + } + if (hasSourceProvenance() != other.hasSourceProvenance()) return false; + if (hasSourceProvenance()) { + if (!getSourceProvenance() + .equals(other.getSourceProvenance())) return false; + } + if (!getWorkerPool() + .equals(other.getWorkerPool())) return false; + if (!internalGetEnvironmentVariables().equals( + other.internalGetEnvironmentVariables())) return false; + if (!getDockerRepository() + .equals(other.getDockerRepository())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BUILD_FIELD_NUMBER; + hash = (53 * hash) + getBuild().hashCode(); + hash = (37 * hash) + RUNTIME_FIELD_NUMBER; + hash = (53 * hash) + getRuntime().hashCode(); + hash = (37 * hash) + ENTRY_POINT_FIELD_NUMBER; + hash = (53 * hash) + getEntryPoint().hashCode(); + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + if (hasSourceProvenance()) { + hash = (37 * hash) + SOURCE_PROVENANCE_FIELD_NUMBER; + hash = (53 * hash) + getSourceProvenance().hashCode(); + } + hash = (37 * hash) + WORKER_POOL_FIELD_NUMBER; + hash = (53 * hash) + getWorkerPool().hashCode(); + if (!internalGetEnvironmentVariables().getMap().isEmpty()) { + hash = (37 * hash) + ENVIRONMENT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + internalGetEnvironmentVariables().hashCode(); + } + hash = (37 * hash) + DOCKER_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getDockerRepository().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.BuildConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.BuildConfig 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.BuildConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.BuildConfig 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.BuildConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.BuildConfig 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.BuildConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.BuildConfig 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.BuildConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.BuildConfig 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.BuildConfig 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.BuildConfig 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.BuildConfig 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; + } + /** + *
      +   * Describes the Build step of the function that builds a container from the
      +   * given source.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.BuildConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.BuildConfig) + com.google.cloud.functions.v2.BuildConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_BuildConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 6: + return internalGetEnvironmentVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 6: + return internalGetMutableEnvironmentVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_BuildConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.BuildConfig.class, com.google.cloud.functions.v2.BuildConfig.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.BuildConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + build_ = ""; + + runtime_ = ""; + + entryPoint_ = ""; + + if (sourceBuilder_ == null) { + source_ = null; + } else { + source_ = null; + sourceBuilder_ = null; + } + if (sourceProvenanceBuilder_ == null) { + sourceProvenance_ = null; + } else { + sourceProvenance_ = null; + sourceProvenanceBuilder_ = null; + } + workerPool_ = ""; + + internalGetMutableEnvironmentVariables().clear(); + dockerRepository_ = ""; + + 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_BuildConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.BuildConfig getDefaultInstanceForType() { + return com.google.cloud.functions.v2.BuildConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.BuildConfig build() { + com.google.cloud.functions.v2.BuildConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.BuildConfig buildPartial() { + com.google.cloud.functions.v2.BuildConfig result = new com.google.cloud.functions.v2.BuildConfig(this); + int from_bitField0_ = bitField0_; + result.build_ = build_; + result.runtime_ = runtime_; + result.entryPoint_ = entryPoint_; + if (sourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = sourceBuilder_.build(); + } + if (sourceProvenanceBuilder_ == null) { + result.sourceProvenance_ = sourceProvenance_; + } else { + result.sourceProvenance_ = sourceProvenanceBuilder_.build(); + } + result.workerPool_ = workerPool_; + result.environmentVariables_ = internalGetEnvironmentVariables(); + result.environmentVariables_.makeImmutable(); + result.dockerRepository_ = dockerRepository_; + onBuilt(); + 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.v2.BuildConfig) { + return mergeFrom((com.google.cloud.functions.v2.BuildConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.BuildConfig other) { + if (other == com.google.cloud.functions.v2.BuildConfig.getDefaultInstance()) return this; + if (!other.getBuild().isEmpty()) { + build_ = other.build_; + onChanged(); + } + if (!other.getRuntime().isEmpty()) { + runtime_ = other.runtime_; + onChanged(); + } + if (!other.getEntryPoint().isEmpty()) { + entryPoint_ = other.entryPoint_; + onChanged(); + } + if (other.hasSource()) { + mergeSource(other.getSource()); + } + if (other.hasSourceProvenance()) { + mergeSourceProvenance(other.getSourceProvenance()); + } + if (!other.getWorkerPool().isEmpty()) { + workerPool_ = other.workerPool_; + onChanged(); + } + internalGetMutableEnvironmentVariables().mergeFrom( + other.internalGetEnvironmentVariables()); + if (!other.getDockerRepository().isEmpty()) { + dockerRepository_ = other.dockerRepository_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.BuildConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.BuildConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object build_ = ""; + /** + *
      +     * 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) = { ... } + * @return The build. + */ + public java.lang.String getBuild() { + java.lang.Object ref = build_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + build_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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) = { ... } + * @return The bytes for build. + */ + public com.google.protobuf.ByteString + getBuildBytes() { + java.lang.Object ref = build_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + build_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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) = { ... } + * @param value The build to set. + * @return This builder for chaining. + */ + public Builder setBuild( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + build_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @return This builder for chaining. + */ + public Builder clearBuild() { + + build_ = getDefaultInstance().getBuild(); + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @param value The bytes for build to set. + * @return This builder for chaining. + */ + public Builder setBuildBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + build_ = value; + onChanged(); + return this; + } + + private java.lang.Object runtime_ = ""; + /** + *
      +     * The runtime in which to run the function. Required when deploying a new
      +     * function, optional when updating an existing function. For a complete
      +     * list of possible choices, see the
      +     * [`gcloud` command
      +     * reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
      +     * 
      + * + * string runtime = 2; + * @return The runtime. + */ + public java.lang.String getRuntime() { + java.lang.Object ref = runtime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + runtime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * The runtime in which to run the function. Required when deploying a new
      +     * function, optional when updating an existing function. For a complete
      +     * list of possible choices, see the
      +     * [`gcloud` command
      +     * reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
      +     * 
      + * + * string runtime = 2; + * @return The bytes for runtime. + */ + public com.google.protobuf.ByteString + getRuntimeBytes() { + java.lang.Object ref = runtime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + runtime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * The runtime in which to run the function. Required when deploying a new
      +     * function, optional when updating an existing function. For a complete
      +     * list of possible choices, see the
      +     * [`gcloud` command
      +     * reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
      +     * 
      + * + * string runtime = 2; + * @param value The runtime to set. + * @return This builder for chaining. + */ + public Builder setRuntime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + runtime_ = value; + onChanged(); + return this; + } + /** + *
      +     * The runtime in which to run the function. Required when deploying a new
      +     * function, optional when updating an existing function. For a complete
      +     * list of possible choices, see the
      +     * [`gcloud` command
      +     * reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
      +     * 
      + * + * string runtime = 2; + * @return This builder for chaining. + */ + public Builder clearRuntime() { + + runtime_ = getDefaultInstance().getRuntime(); + onChanged(); + return this; + } + /** + *
      +     * The runtime in which to run the function. Required when deploying a new
      +     * function, optional when updating an existing function. For a complete
      +     * list of possible choices, see the
      +     * [`gcloud` command
      +     * reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
      +     * 
      + * + * string runtime = 2; + * @param value The bytes for runtime to set. + * @return This builder for chaining. + */ + public Builder setRuntimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + runtime_ = value; + onChanged(); + return this; + } + + private java.lang.Object entryPoint_ = ""; + /** + *
      +     * The name of the function (as defined in source code) that will be
      +     * executed. Defaults to the resource name suffix, if not specified. For
      +     * backward compatibility, if function with given name is not found, then the
      +     * system will try to use function named "function".
      +     * For Node.js this is name of a function exported by the module specified
      +     * in `source_location`.
      +     * 
      + * + * string entry_point = 3; + * @return The entryPoint. + */ + public java.lang.String getEntryPoint() { + java.lang.Object ref = entryPoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entryPoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * The name of the function (as defined in source code) that will be
      +     * executed. Defaults to the resource name suffix, if not specified. For
      +     * backward compatibility, if function with given name is not found, then the
      +     * system will try to use function named "function".
      +     * For Node.js this is name of a function exported by the module specified
      +     * in `source_location`.
      +     * 
      + * + * string entry_point = 3; + * @return The bytes for entryPoint. + */ + public com.google.protobuf.ByteString + getEntryPointBytes() { + java.lang.Object ref = entryPoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + entryPoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * The name of the function (as defined in source code) that will be
      +     * executed. Defaults to the resource name suffix, if not specified. For
      +     * backward compatibility, if function with given name is not found, then the
      +     * system will try to use function named "function".
      +     * For Node.js this is name of a function exported by the module specified
      +     * in `source_location`.
      +     * 
      + * + * string entry_point = 3; + * @param value The entryPoint to set. + * @return This builder for chaining. + */ + public Builder setEntryPoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entryPoint_ = value; + onChanged(); + return this; + } + /** + *
      +     * The name of the function (as defined in source code) that will be
      +     * executed. Defaults to the resource name suffix, if not specified. For
      +     * backward compatibility, if function with given name is not found, then the
      +     * system will try to use function named "function".
      +     * For Node.js this is name of a function exported by the module specified
      +     * in `source_location`.
      +     * 
      + * + * string entry_point = 3; + * @return This builder for chaining. + */ + public Builder clearEntryPoint() { + + entryPoint_ = getDefaultInstance().getEntryPoint(); + onChanged(); + return this; + } + /** + *
      +     * The name of the function (as defined in source code) that will be
      +     * executed. Defaults to the resource name suffix, if not specified. For
      +     * backward compatibility, if function with given name is not found, then the
      +     * system will try to use function named "function".
      +     * For Node.js this is name of a function exported by the module specified
      +     * in `source_location`.
      +     * 
      + * + * string entry_point = 3; + * @param value The bytes for entryPoint to set. + * @return This builder for chaining. + */ + public Builder setEntryPointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entryPoint_ = value; + onChanged(); + return this; + } + + private com.google.cloud.functions.v2.Source source_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.Source, com.google.cloud.functions.v2.Source.Builder, com.google.cloud.functions.v2.SourceOrBuilder> sourceBuilder_; + /** + *
      +     * The location of the function source code.
      +     * 
      + * + * .google.cloud.functions.v2.Source source = 4; + * @return Whether the source field is set. + */ + public boolean hasSource() { + return sourceBuilder_ != null || source_ != null; + } + /** + *
      +     * The location of the function source code.
      +     * 
      + * + * .google.cloud.functions.v2.Source source = 4; + * @return The source. + */ + public com.google.cloud.functions.v2.Source getSource() { + if (sourceBuilder_ == null) { + return source_ == null ? com.google.cloud.functions.v2.Source.getDefaultInstance() : source_; + } else { + return sourceBuilder_.getMessage(); + } + } + /** + *
      +     * The location of the function source code.
      +     * 
      + * + * .google.cloud.functions.v2.Source source = 4; + */ + public Builder setSource(com.google.cloud.functions.v2.Source value) { + if (sourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + sourceBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * The location of the function source code.
      +     * 
      + * + * .google.cloud.functions.v2.Source source = 4; + */ + public Builder setSource( + com.google.cloud.functions.v2.Source.Builder builderForValue) { + if (sourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + sourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * The location of the function source code.
      +     * 
      + * + * .google.cloud.functions.v2.Source source = 4; + */ + public Builder mergeSource(com.google.cloud.functions.v2.Source value) { + if (sourceBuilder_ == null) { + if (source_ != null) { + source_ = + com.google.cloud.functions.v2.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + sourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * The location of the function source code.
      +     * 
      + * + * .google.cloud.functions.v2.Source source = 4; + */ + public Builder clearSource() { + if (sourceBuilder_ == null) { + source_ = null; + onChanged(); + } else { + source_ = null; + sourceBuilder_ = null; + } + + return this; + } + /** + *
      +     * The location of the function source code.
      +     * 
      + * + * .google.cloud.functions.v2.Source source = 4; + */ + public com.google.cloud.functions.v2.Source.Builder getSourceBuilder() { + + onChanged(); + return getSourceFieldBuilder().getBuilder(); + } + /** + *
      +     * The location of the function source code.
      +     * 
      + * + * .google.cloud.functions.v2.Source source = 4; + */ + public com.google.cloud.functions.v2.SourceOrBuilder getSourceOrBuilder() { + if (sourceBuilder_ != null) { + return sourceBuilder_.getMessageOrBuilder(); + } else { + return source_ == null ? + com.google.cloud.functions.v2.Source.getDefaultInstance() : source_; + } + } + /** + *
      +     * The location of the function source code.
      +     * 
      + * + * .google.cloud.functions.v2.Source source = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.Source, com.google.cloud.functions.v2.Source.Builder, com.google.cloud.functions.v2.SourceOrBuilder> + getSourceFieldBuilder() { + if (sourceBuilder_ == null) { + sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.Source, com.google.cloud.functions.v2.Source.Builder, com.google.cloud.functions.v2.SourceOrBuilder>( + getSource(), + getParentForChildren(), + isClean()); + source_ = null; + } + return sourceBuilder_; + } + + private com.google.cloud.functions.v2.SourceProvenance sourceProvenance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.SourceProvenance, com.google.cloud.functions.v2.SourceProvenance.Builder, com.google.cloud.functions.v2.SourceProvenanceOrBuilder> sourceProvenanceBuilder_; + /** + *
      +     * Output only. A permanent fixed identifier for source.
      +     * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the sourceProvenance field is set. + */ + public boolean hasSourceProvenance() { + return sourceProvenanceBuilder_ != null || sourceProvenance_ != null; + } + /** + *
      +     * Output only. A permanent fixed identifier for source.
      +     * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The sourceProvenance. + */ + public com.google.cloud.functions.v2.SourceProvenance getSourceProvenance() { + if (sourceProvenanceBuilder_ == null) { + return sourceProvenance_ == null ? com.google.cloud.functions.v2.SourceProvenance.getDefaultInstance() : sourceProvenance_; + } else { + return sourceProvenanceBuilder_.getMessage(); + } + } + /** + *
      +     * Output only. A permanent fixed identifier for source.
      +     * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setSourceProvenance(com.google.cloud.functions.v2.SourceProvenance value) { + if (sourceProvenanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceProvenance_ = value; + onChanged(); + } else { + sourceProvenanceBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * Output only. A permanent fixed identifier for source.
      +     * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setSourceProvenance( + com.google.cloud.functions.v2.SourceProvenance.Builder builderForValue) { + if (sourceProvenanceBuilder_ == null) { + sourceProvenance_ = builderForValue.build(); + onChanged(); + } else { + sourceProvenanceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * Output only. A permanent fixed identifier for source.
      +     * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeSourceProvenance(com.google.cloud.functions.v2.SourceProvenance value) { + if (sourceProvenanceBuilder_ == null) { + if (sourceProvenance_ != null) { + sourceProvenance_ = + com.google.cloud.functions.v2.SourceProvenance.newBuilder(sourceProvenance_).mergeFrom(value).buildPartial(); + } else { + sourceProvenance_ = value; + } + onChanged(); + } else { + sourceProvenanceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * Output only. A permanent fixed identifier for source.
      +     * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearSourceProvenance() { + if (sourceProvenanceBuilder_ == null) { + sourceProvenance_ = null; + onChanged(); + } else { + sourceProvenance_ = null; + sourceProvenanceBuilder_ = null; + } + + return this; + } + /** + *
      +     * Output only. A permanent fixed identifier for source.
      +     * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.functions.v2.SourceProvenance.Builder getSourceProvenanceBuilder() { + + onChanged(); + return getSourceProvenanceFieldBuilder().getBuilder(); + } + /** + *
      +     * Output only. A permanent fixed identifier for source.
      +     * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.functions.v2.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { + if (sourceProvenanceBuilder_ != null) { + return sourceProvenanceBuilder_.getMessageOrBuilder(); + } else { + return sourceProvenance_ == null ? + com.google.cloud.functions.v2.SourceProvenance.getDefaultInstance() : sourceProvenance_; + } + } + /** + *
      +     * Output only. A permanent fixed identifier for source.
      +     * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.SourceProvenance, com.google.cloud.functions.v2.SourceProvenance.Builder, com.google.cloud.functions.v2.SourceProvenanceOrBuilder> + getSourceProvenanceFieldBuilder() { + if (sourceProvenanceBuilder_ == null) { + sourceProvenanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.SourceProvenance, com.google.cloud.functions.v2.SourceProvenance.Builder, com.google.cloud.functions.v2.SourceProvenanceOrBuilder>( + getSourceProvenance(), + getParentForChildren(), + isClean()); + sourceProvenance_ = null; + } + return sourceProvenanceBuilder_; + } + + private java.lang.Object workerPool_ = ""; + /** + *
      +     * Name of the Cloud Build Custom Worker Pool that should be used to build the
      +     * function. The format of this field is
      +     * `projects/{project}/locations/{region}/workerPools/{workerPool}` where
      +     * {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
      +     * granted the role Cloud Build Custom Workers Builder
      +     * (roles/cloudbuild.customworkers.builder) in the project.
      +     * 
      + * + * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * @return The workerPool. + */ + public java.lang.String getWorkerPool() { + java.lang.Object ref = workerPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Name of the Cloud Build Custom Worker Pool that should be used to build the
      +     * function. The format of this field is
      +     * `projects/{project}/locations/{region}/workerPools/{workerPool}` where
      +     * {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
      +     * granted the role Cloud Build Custom Workers Builder
      +     * (roles/cloudbuild.customworkers.builder) in the project.
      +     * 
      + * + * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * @return The bytes for workerPool. + */ + public com.google.protobuf.ByteString + getWorkerPoolBytes() { + java.lang.Object ref = workerPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workerPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Name of the Cloud Build Custom Worker Pool that should be used to build the
      +     * function. The format of this field is
      +     * `projects/{project}/locations/{region}/workerPools/{workerPool}` where
      +     * {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
      +     * granted the role Cloud Build Custom Workers Builder
      +     * (roles/cloudbuild.customworkers.builder) in the project.
      +     * 
      + * + * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * @param value The workerPool to set. + * @return This builder for chaining. + */ + public Builder setWorkerPool( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workerPool_ = value; + onChanged(); + return this; + } + /** + *
      +     * Name of the Cloud Build Custom Worker Pool that should be used to build the
      +     * function. The format of this field is
      +     * `projects/{project}/locations/{region}/workerPools/{workerPool}` where
      +     * {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
      +     * granted the role Cloud Build Custom Workers Builder
      +     * (roles/cloudbuild.customworkers.builder) in the project.
      +     * 
      + * + * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearWorkerPool() { + + workerPool_ = getDefaultInstance().getWorkerPool(); + onChanged(); + return this; + } + /** + *
      +     * Name of the Cloud Build Custom Worker Pool that should be used to build the
      +     * function. The format of this field is
      +     * `projects/{project}/locations/{region}/workerPools/{workerPool}` where
      +     * {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
      +     * granted the role Cloud Build Custom Workers Builder
      +     * (roles/cloudbuild.customworkers.builder) in the project.
      +     * 
      + * + * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * @param value The bytes for workerPool to set. + * @return This builder for chaining. + */ + public Builder setWorkerPoolBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workerPool_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; + private com.google.protobuf.MapField + internalGetEnvironmentVariables() { + if (environmentVariables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); + } + return environmentVariables_; + } + private com.google.protobuf.MapField + internalGetMutableEnvironmentVariables() { + onChanged();; + if (environmentVariables_ == null) { + environmentVariables_ = com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); + } + if (!environmentVariables_.isMutable()) { + environmentVariables_ = environmentVariables_.copy(); + } + return environmentVariables_; + } + + public int getEnvironmentVariablesCount() { + return internalGetEnvironmentVariables().getMap().size(); + } + /** + *
      +     * User-provided build-time environment variables for the function
      +     * 
      + * + * map<string, string> environment_variables = 6; + */ + + @java.lang.Override + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetEnvironmentVariables().getMap().containsKey(key); + } + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEnvironmentVariables() { + return getEnvironmentVariablesMap(); + } + /** + *
      +     * User-provided build-time environment variables for the function
      +     * 
      + * + * map<string, string> environment_variables = 6; + */ + @java.lang.Override + + public java.util.Map getEnvironmentVariablesMap() { + return internalGetEnvironmentVariables().getMap(); + } + /** + *
      +     * User-provided build-time environment variables for the function
      +     * 
      + * + * map<string, string> environment_variables = 6; + */ + @java.lang.Override + + public java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnvironmentVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
      +     * User-provided build-time environment variables for the function
      +     * 
      + * + * map<string, string> environment_variables = 6; + */ + @java.lang.Override + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnvironmentVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearEnvironmentVariables() { + internalGetMutableEnvironmentVariables().getMutableMap() + .clear(); + return this; + } + /** + *
      +     * User-provided build-time environment variables for the function
      +     * 
      + * + * map<string, string> environment_variables = 6; + */ + + public Builder removeEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableEnvironmentVariables().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableEnvironmentVariables() { + return internalGetMutableEnvironmentVariables().getMutableMap(); + } + /** + *
      +     * User-provided build-time environment variables for the function
      +     * 
      + * + * map<string, string> environment_variables = 6; + */ + public Builder putEnvironmentVariables( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableEnvironmentVariables().getMutableMap() + .put(key, value); + return this; + } + /** + *
      +     * User-provided build-time environment variables for the function
      +     * 
      + * + * map<string, string> environment_variables = 6; + */ + + public Builder putAllEnvironmentVariables( + java.util.Map values) { + internalGetMutableEnvironmentVariables().getMutableMap() + .putAll(values); + 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
      +     * 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) = { ... } + * @return The dockerRepository. + */ + public java.lang.String getDockerRepository() { + java.lang.Object ref = dockerRepository_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dockerRepository_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Optional. 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) = { ... } + * @return The bytes for dockerRepository. + */ + public com.google.protobuf.ByteString + getDockerRepositoryBytes() { + java.lang.Object ref = dockerRepository_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dockerRepository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Optional. 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) = { ... } + * @param value The dockerRepository to set. + * @return This builder for chaining. + */ + public Builder setDockerRepository( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dockerRepository_ = value; + onChanged(); + return this; + } + /** + *
      +     * Optional. 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) = { ... } + * @return This builder for chaining. + */ + public Builder clearDockerRepository() { + + dockerRepository_ = getDefaultInstance().getDockerRepository(); + onChanged(); + return this; + } + /** + *
      +     * Optional. 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) = { ... } + * @param value The bytes for dockerRepository to set. + * @return This builder for chaining. + */ + public Builder setDockerRepositoryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dockerRepository_ = 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.BuildConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.BuildConfig) + private static final com.google.cloud.functions.v2.BuildConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.BuildConfig(); + } + + public static com.google.cloud.functions.v2.BuildConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuildConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BuildConfig(input, extensionRegistry); + } + }; + + 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.BuildConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java new file mode 100644 index 00000000..74933010 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java @@ -0,0 +1,277 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface BuildConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.BuildConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * 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) = { ... } + * @return The build. + */ + java.lang.String getBuild(); + /** + *
      +   * 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) = { ... } + * @return The bytes for build. + */ + com.google.protobuf.ByteString + getBuildBytes(); + + /** + *
      +   * The runtime in which to run the function. Required when deploying a new
      +   * function, optional when updating an existing function. For a complete
      +   * list of possible choices, see the
      +   * [`gcloud` command
      +   * reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
      +   * 
      + * + * string runtime = 2; + * @return The runtime. + */ + java.lang.String getRuntime(); + /** + *
      +   * The runtime in which to run the function. Required when deploying a new
      +   * function, optional when updating an existing function. For a complete
      +   * list of possible choices, see the
      +   * [`gcloud` command
      +   * reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
      +   * 
      + * + * string runtime = 2; + * @return The bytes for runtime. + */ + com.google.protobuf.ByteString + getRuntimeBytes(); + + /** + *
      +   * The name of the function (as defined in source code) that will be
      +   * executed. Defaults to the resource name suffix, if not specified. For
      +   * backward compatibility, if function with given name is not found, then the
      +   * system will try to use function named "function".
      +   * For Node.js this is name of a function exported by the module specified
      +   * in `source_location`.
      +   * 
      + * + * string entry_point = 3; + * @return The entryPoint. + */ + java.lang.String getEntryPoint(); + /** + *
      +   * The name of the function (as defined in source code) that will be
      +   * executed. Defaults to the resource name suffix, if not specified. For
      +   * backward compatibility, if function with given name is not found, then the
      +   * system will try to use function named "function".
      +   * For Node.js this is name of a function exported by the module specified
      +   * in `source_location`.
      +   * 
      + * + * string entry_point = 3; + * @return The bytes for entryPoint. + */ + com.google.protobuf.ByteString + getEntryPointBytes(); + + /** + *
      +   * The location of the function source code.
      +   * 
      + * + * .google.cloud.functions.v2.Source source = 4; + * @return Whether the source field is set. + */ + boolean hasSource(); + /** + *
      +   * The location of the function source code.
      +   * 
      + * + * .google.cloud.functions.v2.Source source = 4; + * @return The source. + */ + com.google.cloud.functions.v2.Source getSource(); + /** + *
      +   * The location of the function source code.
      +   * 
      + * + * .google.cloud.functions.v2.Source source = 4; + */ + com.google.cloud.functions.v2.SourceOrBuilder getSourceOrBuilder(); + + /** + *
      +   * Output only. A permanent fixed identifier for source.
      +   * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the sourceProvenance field is set. + */ + boolean hasSourceProvenance(); + /** + *
      +   * Output only. A permanent fixed identifier for source.
      +   * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The sourceProvenance. + */ + com.google.cloud.functions.v2.SourceProvenance getSourceProvenance(); + /** + *
      +   * Output only. A permanent fixed identifier for source.
      +   * 
      + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.functions.v2.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder(); + + /** + *
      +   * Name of the Cloud Build Custom Worker Pool that should be used to build the
      +   * function. The format of this field is
      +   * `projects/{project}/locations/{region}/workerPools/{workerPool}` where
      +   * {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
      +   * granted the role Cloud Build Custom Workers Builder
      +   * (roles/cloudbuild.customworkers.builder) in the project.
      +   * 
      + * + * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * @return The workerPool. + */ + java.lang.String getWorkerPool(); + /** + *
      +   * Name of the Cloud Build Custom Worker Pool that should be used to build the
      +   * function. The format of this field is
      +   * `projects/{project}/locations/{region}/workerPools/{workerPool}` where
      +   * {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
      +   * granted the role Cloud Build Custom Workers Builder
      +   * (roles/cloudbuild.customworkers.builder) in the project.
      +   * 
      + * + * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * @return The bytes for workerPool. + */ + com.google.protobuf.ByteString + getWorkerPoolBytes(); + + /** + *
      +   * User-provided build-time environment variables for the function
      +   * 
      + * + * map<string, string> environment_variables = 6; + */ + int getEnvironmentVariablesCount(); + /** + *
      +   * User-provided build-time environment variables for the function
      +   * 
      + * + * map<string, string> environment_variables = 6; + */ + boolean containsEnvironmentVariables( + java.lang.String key); + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getEnvironmentVariables(); + /** + *
      +   * User-provided build-time environment variables for the function
      +   * 
      + * + * map<string, string> environment_variables = 6; + */ + java.util.Map + getEnvironmentVariablesMap(); + /** + *
      +   * User-provided build-time environment variables for the function
      +   * 
      + * + * map<string, string> environment_variables = 6; + */ + + /* nullable */ +java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
      +   * User-provided build-time environment variables for the function
      +   * 
      + * + * map<string, string> environment_variables = 6; + */ + + 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
      +   * 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) = { ... } + * @return The dockerRepository. + */ + 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
      +   * 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) = { ... } + * @return The bytes for dockerRepository. + */ + com.google.protobuf.ByteString + getDockerRepositoryBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java new file mode 100644 index 00000000..94828923 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java @@ -0,0 +1,1025 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Request for the `CreateFunction` method.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.CreateFunctionRequest} + */ +public final class CreateFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.CreateFunctionRequest) + CreateFunctionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateFunctionRequest.newBuilder() to construct. + private CreateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateFunctionRequest() { + parent_ = ""; + functionId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateFunctionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateFunctionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: { + com.google.cloud.functions.v2.Function.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); + } + function_ = input.readMessage(com.google.cloud.functions.v2.Function.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + functionId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_CreateFunctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.CreateFunctionRequest.class, com.google.cloud.functions.v2.CreateFunctionRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
      +   * 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + *
      +   * 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FUNCTION_FIELD_NUMBER = 2; + private com.google.cloud.functions.v2.Function function_; + /** + *
      +   * Required. Function to be created.
      +   * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the function field is set. + */ + @java.lang.Override + public boolean hasFunction() { + return function_ != null; + } + /** + *
      +   * Required. Function to be created.
      +   * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The function. + */ + @java.lang.Override + public com.google.cloud.functions.v2.Function getFunction() { + return function_ == null ? com.google.cloud.functions.v2.Function.getDefaultInstance() : function_; + } + /** + *
      +   * Required. Function to be created.
      +   * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() { + return getFunction(); + } + + public static final int FUNCTION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object functionId_; + /** + *
      +   * 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]-/.
      +   * 
      + * + * string function_id = 3; + * @return The functionId. + */ + @java.lang.Override + public java.lang.String getFunctionId() { + java.lang.Object ref = functionId_; + 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(); + functionId_ = s; + return s; + } + } + /** + *
      +   * 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]-/.
      +   * 
      + * + * string function_id = 3; + * @return The bytes for functionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFunctionIdBytes() { + java.lang.Object ref = functionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + functionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (function_ != null) { + output.writeMessage(2, getFunction()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, functionId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (function_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFunction()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, functionId_); + } + size += unknownFields.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.CreateFunctionRequest)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.CreateFunctionRequest other = (com.google.cloud.functions.v2.CreateFunctionRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (hasFunction() != other.hasFunction()) return false; + if (hasFunction()) { + if (!getFunction() + .equals(other.getFunction())) return false; + } + if (!getFunctionId() + .equals(other.getFunctionId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasFunction()) { + hash = (37 * hash) + FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getFunction().hashCode(); + } + hash = (37 * hash) + FUNCTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getFunctionId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.CreateFunctionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.CreateFunctionRequest 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.CreateFunctionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.CreateFunctionRequest 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.CreateFunctionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.CreateFunctionRequest 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.CreateFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.CreateFunctionRequest 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.CreateFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.CreateFunctionRequest 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.CreateFunctionRequest 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.CreateFunctionRequest 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.CreateFunctionRequest 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; + } + /** + *
      +   * Request for the `CreateFunction` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.CreateFunctionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.CreateFunctionRequest) + com.google.cloud.functions.v2.CreateFunctionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_CreateFunctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.CreateFunctionRequest.class, com.google.cloud.functions.v2.CreateFunctionRequest.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.CreateFunctionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (functionBuilder_ == null) { + function_ = null; + } else { + function_ = null; + functionBuilder_ = null; + } + functionId_ = ""; + + 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_CreateFunctionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.CreateFunctionRequest getDefaultInstanceForType() { + return com.google.cloud.functions.v2.CreateFunctionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.CreateFunctionRequest build() { + com.google.cloud.functions.v2.CreateFunctionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.CreateFunctionRequest buildPartial() { + com.google.cloud.functions.v2.CreateFunctionRequest result = new com.google.cloud.functions.v2.CreateFunctionRequest(this); + result.parent_ = parent_; + if (functionBuilder_ == null) { + result.function_ = function_; + } else { + result.function_ = functionBuilder_.build(); + } + result.functionId_ = functionId_; + onBuilt(); + 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.v2.CreateFunctionRequest) { + return mergeFrom((com.google.cloud.functions.v2.CreateFunctionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.CreateFunctionRequest other) { + if (other == com.google.cloud.functions.v2.CreateFunctionRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasFunction()) { + mergeFunction(other.getFunction()); + } + if (!other.getFunctionId().isEmpty()) { + functionId_ = other.functionId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.CreateFunctionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.CreateFunctionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
      +     * 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) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.functions.v2.Function function_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder> functionBuilder_; + /** + *
      +     * Required. Function to be created.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the function field is set. + */ + public boolean hasFunction() { + return functionBuilder_ != null || function_ != null; + } + /** + *
      +     * Required. Function to be created.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The function. + */ + public com.google.cloud.functions.v2.Function getFunction() { + if (functionBuilder_ == null) { + return function_ == null ? com.google.cloud.functions.v2.Function.getDefaultInstance() : function_; + } else { + return functionBuilder_.getMessage(); + } + } + /** + *
      +     * Required. Function to be created.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setFunction(com.google.cloud.functions.v2.Function value) { + if (functionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + function_ = value; + onChanged(); + } else { + functionBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * Required. Function to be created.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setFunction( + com.google.cloud.functions.v2.Function.Builder builderForValue) { + if (functionBuilder_ == null) { + function_ = builderForValue.build(); + onChanged(); + } else { + functionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * Required. Function to be created.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeFunction(com.google.cloud.functions.v2.Function value) { + if (functionBuilder_ == null) { + if (function_ != null) { + function_ = + com.google.cloud.functions.v2.Function.newBuilder(function_).mergeFrom(value).buildPartial(); + } else { + function_ = value; + } + onChanged(); + } else { + functionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * Required. Function to be created.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearFunction() { + if (functionBuilder_ == null) { + function_ = null; + onChanged(); + } else { + function_ = null; + functionBuilder_ = null; + } + + return this; + } + /** + *
      +     * Required. Function to be created.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.functions.v2.Function.Builder getFunctionBuilder() { + + onChanged(); + return getFunctionFieldBuilder().getBuilder(); + } + /** + *
      +     * Required. Function to be created.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() { + if (functionBuilder_ != null) { + return functionBuilder_.getMessageOrBuilder(); + } else { + return function_ == null ? + com.google.cloud.functions.v2.Function.getDefaultInstance() : function_; + } + } + /** + *
      +     * Required. Function to be created.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder> + getFunctionFieldBuilder() { + if (functionBuilder_ == null) { + functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder>( + getFunction(), + getParentForChildren(), + isClean()); + function_ = null; + } + return functionBuilder_; + } + + private java.lang.Object functionId_ = ""; + /** + *
      +     * 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]-/.
      +     * 
      + * + * string function_id = 3; + * @return The functionId. + */ + public java.lang.String getFunctionId() { + java.lang.Object ref = functionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + functionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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]-/.
      +     * 
      + * + * string function_id = 3; + * @return The bytes for functionId. + */ + public com.google.protobuf.ByteString + getFunctionIdBytes() { + java.lang.Object ref = functionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + functionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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]-/.
      +     * 
      + * + * string function_id = 3; + * @param value The functionId to set. + * @return This builder for chaining. + */ + public Builder setFunctionId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + functionId_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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]-/.
      +     * 
      + * + * string function_id = 3; + * @return This builder for chaining. + */ + public Builder clearFunctionId() { + + functionId_ = getDefaultInstance().getFunctionId(); + onChanged(); + return this; + } + /** + *
      +     * 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]-/.
      +     * 
      + * + * string function_id = 3; + * @param value The bytes for functionId to set. + * @return This builder for chaining. + */ + public Builder setFunctionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + functionId_ = 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.CreateFunctionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.CreateFunctionRequest) + private static final com.google.cloud.functions.v2.CreateFunctionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.CreateFunctionRequest(); + } + + public static com.google.cloud.functions.v2.CreateFunctionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFunctionRequest(input, extensionRegistry); + } + }; + + 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.CreateFunctionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java new file mode 100644 index 00000000..50db5a6f --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface CreateFunctionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.CreateFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * 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) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
      +   * 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) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
      +   * Required. Function to be created.
      +   * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the function field is set. + */ + boolean hasFunction(); + /** + *
      +   * Required. Function to be created.
      +   * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The function. + */ + com.google.cloud.functions.v2.Function getFunction(); + /** + *
      +   * Required. Function to be created.
      +   * 
      + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + 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]-/.
      +   * 
      + * + * string function_id = 3; + * @return The functionId. + */ + 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]-/.
      +   * 
      + * + * string function_id = 3; + * @return The bytes for functionId. + */ + com.google.protobuf.ByteString + getFunctionIdBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java new file mode 100644 index 00000000..d2812091 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Request for the `DeleteFunction` method.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.DeleteFunctionRequest} + */ +public final class DeleteFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.DeleteFunctionRequest) + DeleteFunctionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteFunctionRequest.newBuilder() to construct. + private DeleteFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteFunctionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteFunctionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteFunctionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_DeleteFunctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.DeleteFunctionRequest.class, com.google.cloud.functions.v2.DeleteFunctionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
      +   * Required. The name of the function which should be deleted.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
      +   * Required. The name of the function which should be deleted.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.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.DeleteFunctionRequest)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.DeleteFunctionRequest other = (com.google.cloud.functions.v2.DeleteFunctionRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.DeleteFunctionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.DeleteFunctionRequest 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.DeleteFunctionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.DeleteFunctionRequest 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.DeleteFunctionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.DeleteFunctionRequest 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.DeleteFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.DeleteFunctionRequest 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.DeleteFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.DeleteFunctionRequest 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.DeleteFunctionRequest 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.DeleteFunctionRequest 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.DeleteFunctionRequest 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; + } + /** + *
      +   * Request for the `DeleteFunction` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.DeleteFunctionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.DeleteFunctionRequest) + com.google.cloud.functions.v2.DeleteFunctionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_DeleteFunctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.DeleteFunctionRequest.class, com.google.cloud.functions.v2.DeleteFunctionRequest.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.DeleteFunctionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + 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_DeleteFunctionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.DeleteFunctionRequest getDefaultInstanceForType() { + return com.google.cloud.functions.v2.DeleteFunctionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.DeleteFunctionRequest build() { + com.google.cloud.functions.v2.DeleteFunctionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.DeleteFunctionRequest buildPartial() { + com.google.cloud.functions.v2.DeleteFunctionRequest result = new com.google.cloud.functions.v2.DeleteFunctionRequest(this); + result.name_ = name_; + onBuilt(); + 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.v2.DeleteFunctionRequest) { + return mergeFrom((com.google.cloud.functions.v2.DeleteFunctionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.DeleteFunctionRequest other) { + if (other == com.google.cloud.functions.v2.DeleteFunctionRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.DeleteFunctionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.DeleteFunctionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
      +     * Required. The name of the function which should be deleted.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Required. The name of the function which should be deleted.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Required. The name of the function which should be deleted.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
      +     * Required. The name of the function which should be deleted.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
      +     * Required. The name of the function which should be deleted.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = 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.DeleteFunctionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.DeleteFunctionRequest) + private static final com.google.cloud.functions.v2.DeleteFunctionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.DeleteFunctionRequest(); + } + + public static com.google.cloud.functions.v2.DeleteFunctionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFunctionRequest(input, extensionRegistry); + } + }; + + 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.DeleteFunctionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequestOrBuilder.java new file mode 100644 index 00000000..243c81e0 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface DeleteFunctionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.DeleteFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Required. The name of the function which should be deleted.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
      +   * Required. The name of the function which should be deleted.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Environment.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Environment.java new file mode 100644 index 00000000..52c2b680 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Environment.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * The environment the function is hosted on.
      + * 
      + * + * Protobuf enum {@code google.cloud.functions.v2.Environment} + */ +public enum Environment + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
      +   * Unspecified
      +   * 
      + * + * ENVIRONMENT_UNSPECIFIED = 0; + */ + ENVIRONMENT_UNSPECIFIED(0), + /** + *
      +   * Gen 1
      +   * 
      + * + * GEN_1 = 1; + */ + GEN_1(1), + /** + *
      +   * Gen 2
      +   * 
      + * + * GEN_2 = 2; + */ + GEN_2(2), + UNRECOGNIZED(-1), + ; + + /** + *
      +   * Unspecified
      +   * 
      + * + * ENVIRONMENT_UNSPECIFIED = 0; + */ + public static final int ENVIRONMENT_UNSPECIFIED_VALUE = 0; + /** + *
      +   * Gen 1
      +   * 
      + * + * GEN_1 = 1; + */ + public static final int GEN_1_VALUE = 1; + /** + *
      +   * Gen 2
      +   * 
      + * + * GEN_2 = 2; + */ + public static final int GEN_2_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 Environment 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 Environment forNumber(int value) { + switch (value) { + case 0: return ENVIRONMENT_UNSPECIFIED; + case 1: return GEN_1; + case 2: return GEN_2; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Environment> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Environment findValueByNumber(int number) { + return Environment.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.v2.FunctionsProto.getDescriptor().getEnumTypes().get(0); + } + + private static final Environment[] VALUES = values(); + + public static Environment 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 Environment(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2.Environment) +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java new file mode 100644 index 00000000..ac083170 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java @@ -0,0 +1,948 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Filters events based on exact matches on the CloudEvents attributes.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.EventFilter} + */ +public final class EventFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.EventFilter) + EventFilterOrBuilder { +private static final long serialVersionUID = 0L; + // Use EventFilter.newBuilder() to construct. + private EventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventFilter() { + attribute_ = ""; + value_ = ""; + operator_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EventFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + attribute_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + operator_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.EventFilter.class, com.google.cloud.functions.v2.EventFilter.Builder.class); + } + + public static final int ATTRIBUTE_FIELD_NUMBER = 1; + private volatile java.lang.Object attribute_; + /** + *
      +   * Required. The name of a CloudEvents attribute.
      +   * 
      + * + * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The attribute. + */ + @java.lang.Override + public java.lang.String getAttribute() { + java.lang.Object ref = attribute_; + 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(); + attribute_ = s; + return s; + } + } + /** + *
      +   * Required. The name of a CloudEvents attribute.
      +   * 
      + * + * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for attribute. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAttributeBytes() { + java.lang.Object ref = attribute_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attribute_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + *
      +   * Required. The value for the attribute.
      +   * 
      + * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + /** + *
      +   * Required. The value for the attribute.
      +   * 
      + * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATOR_FIELD_NUMBER = 3; + private volatile java.lang.Object operator_; + /** + *
      +   * Optional. The operator used for matching the events with the value of the
      +   * filter. If not specified, only events that have an exact key-value pair
      +   * specified in the filter are matched. The only allowed value is
      +   * `match-path-pattern`.
      +   * 
      + * + * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The operator. + */ + @java.lang.Override + public java.lang.String getOperator() { + java.lang.Object ref = operator_; + 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(); + operator_ = s; + return s; + } + } + /** + *
      +   * Optional. The operator used for matching the events with the value of the
      +   * filter. If not specified, only events that have an exact key-value pair
      +   * specified in the filter are matched. The only allowed value is
      +   * `match-path-pattern`.
      +   * 
      + * + * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for operator. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOperatorBytes() { + java.lang.Object ref = operator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attribute_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operator_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operator_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attribute_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operator_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operator_); + } + size += unknownFields.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.EventFilter)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.EventFilter other = (com.google.cloud.functions.v2.EventFilter) obj; + + if (!getAttribute() + .equals(other.getAttribute())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!getOperator() + .equals(other.getOperator())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER; + hash = (53 * hash) + getAttribute().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + getOperator().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.EventFilter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.EventFilter 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.EventFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.EventFilter 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.EventFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.EventFilter 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.EventFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.EventFilter 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.EventFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.EventFilter 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.EventFilter 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.EventFilter 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.EventFilter 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; + } + /** + *
      +   * Filters events based on exact matches on the CloudEvents attributes.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.EventFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.EventFilter) + com.google.cloud.functions.v2.EventFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.EventFilter.class, com.google.cloud.functions.v2.EventFilter.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.EventFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + attribute_ = ""; + + value_ = ""; + + operator_ = ""; + + 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_EventFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.EventFilter getDefaultInstanceForType() { + return com.google.cloud.functions.v2.EventFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.EventFilter build() { + com.google.cloud.functions.v2.EventFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.EventFilter buildPartial() { + com.google.cloud.functions.v2.EventFilter result = new com.google.cloud.functions.v2.EventFilter(this); + result.attribute_ = attribute_; + result.value_ = value_; + result.operator_ = operator_; + onBuilt(); + 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.v2.EventFilter) { + return mergeFrom((com.google.cloud.functions.v2.EventFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.EventFilter other) { + if (other == com.google.cloud.functions.v2.EventFilter.getDefaultInstance()) return this; + if (!other.getAttribute().isEmpty()) { + attribute_ = other.attribute_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (!other.getOperator().isEmpty()) { + operator_ = other.operator_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.EventFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.EventFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object attribute_ = ""; + /** + *
      +     * Required. The name of a CloudEvents attribute.
      +     * 
      + * + * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The attribute. + */ + public java.lang.String getAttribute() { + java.lang.Object ref = attribute_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attribute_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Required. The name of a CloudEvents attribute.
      +     * 
      + * + * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for attribute. + */ + public com.google.protobuf.ByteString + getAttributeBytes() { + java.lang.Object ref = attribute_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attribute_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Required. The name of a CloudEvents attribute.
      +     * 
      + * + * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The attribute to set. + * @return This builder for chaining. + */ + public Builder setAttribute( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + attribute_ = value; + onChanged(); + return this; + } + /** + *
      +     * Required. The name of a CloudEvents attribute.
      +     * 
      + * + * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearAttribute() { + + attribute_ = getDefaultInstance().getAttribute(); + onChanged(); + return this; + } + /** + *
      +     * Required. The name of a CloudEvents attribute.
      +     * 
      + * + * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for attribute to set. + * @return This builder for chaining. + */ + public Builder setAttributeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + attribute_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + *
      +     * Required. The value for the attribute.
      +     * 
      + * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Required. The value for the attribute.
      +     * 
      + * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for value. + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Required. The value for the attribute.
      +     * 
      + * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
      +     * Required. The value for the attribute.
      +     * 
      + * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
      +     * Required. The value for the attribute.
      +     * 
      + * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private java.lang.Object operator_ = ""; + /** + *
      +     * Optional. The operator used for matching the events with the value of the
      +     * filter. If not specified, only events that have an exact key-value pair
      +     * specified in the filter are matched. The only allowed value is
      +     * `match-path-pattern`.
      +     * 
      + * + * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The operator. + */ + public java.lang.String getOperator() { + java.lang.Object ref = operator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Optional. The operator used for matching the events with the value of the
      +     * filter. If not specified, only events that have an exact key-value pair
      +     * specified in the filter are matched. The only allowed value is
      +     * `match-path-pattern`.
      +     * 
      + * + * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for operator. + */ + public com.google.protobuf.ByteString + getOperatorBytes() { + java.lang.Object ref = operator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Optional. The operator used for matching the events with the value of the
      +     * filter. If not specified, only events that have an exact key-value pair
      +     * specified in the filter are matched. The only allowed value is
      +     * `match-path-pattern`.
      +     * 
      + * + * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The operator to set. + * @return This builder for chaining. + */ + public Builder setOperator( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value; + onChanged(); + return this; + } + /** + *
      +     * Optional. The operator used for matching the events with the value of the
      +     * filter. If not specified, only events that have an exact key-value pair
      +     * specified in the filter are matched. The only allowed value is
      +     * `match-path-pattern`.
      +     * 
      + * + * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearOperator() { + + operator_ = getDefaultInstance().getOperator(); + onChanged(); + return this; + } + /** + *
      +     * Optional. The operator used for matching the events with the value of the
      +     * filter. If not specified, only events that have an exact key-value pair
      +     * specified in the filter are matched. The only allowed value is
      +     * `match-path-pattern`.
      +     * 
      + * + * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for operator to set. + * @return This builder for chaining. + */ + public Builder setOperatorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operator_ = 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.EventFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.EventFilter) + private static final com.google.cloud.functions.v2.EventFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.EventFilter(); + } + + public static com.google.cloud.functions.v2.EventFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventFilter(input, extensionRegistry); + } + }; + + 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.EventFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilterOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilterOrBuilder.java new file mode 100644 index 00000000..d374234d --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilterOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface EventFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.EventFilter) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Required. The name of a CloudEvents attribute.
      +   * 
      + * + * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The attribute. + */ + java.lang.String getAttribute(); + /** + *
      +   * Required. The name of a CloudEvents attribute.
      +   * 
      + * + * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for attribute. + */ + com.google.protobuf.ByteString + getAttributeBytes(); + + /** + *
      +   * Required. The value for the attribute.
      +   * 
      + * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The value. + */ + java.lang.String getValue(); + /** + *
      +   * Required. The value for the attribute.
      +   * 
      + * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for value. + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + *
      +   * Optional. The operator used for matching the events with the value of the
      +   * filter. If not specified, only events that have an exact key-value pair
      +   * specified in the filter are matched. The only allowed value is
      +   * `match-path-pattern`.
      +   * 
      + * + * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The operator. + */ + java.lang.String getOperator(); + /** + *
      +   * Optional. The operator used for matching the events with the value of the
      +   * filter. If not specified, only events that have an exact key-value pair
      +   * specified in the filter are matched. The only allowed value is
      +   * `match-path-pattern`.
      +   * 
      + * + * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for operator. + */ + com.google.protobuf.ByteString + getOperatorBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java new file mode 100644 index 00000000..181df7a0 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java @@ -0,0 +1,2261 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Describes EventTrigger, used to request events to be sent from another
      + * service.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.EventTrigger} + */ +public final class EventTrigger extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.EventTrigger) + EventTriggerOrBuilder { +private static final long serialVersionUID = 0L; + // Use EventTrigger.newBuilder() to construct. + private EventTrigger(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventTrigger() { + trigger_ = ""; + triggerRegion_ = ""; + eventType_ = ""; + eventFilters_ = java.util.Collections.emptyList(); + pubsubTopic_ = ""; + serviceAccountEmail_ = ""; + retryPolicy_ = 0; + channel_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EventTrigger(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventTrigger( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + trigger_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + triggerRegion_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + eventType_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + eventFilters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + eventFilters_.add( + input.readMessage(com.google.cloud.functions.v2.EventFilter.parser(), extensionRegistry)); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + pubsubTopic_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccountEmail_ = s; + break; + } + case 56: { + int rawValue = input.readEnum(); + + retryPolicy_ = rawValue; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + channel_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + eventFilters_ = java.util.Collections.unmodifiableList(eventFilters_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventTrigger_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventTrigger_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.EventTrigger.class, com.google.cloud.functions.v2.EventTrigger.Builder.class); + } + + /** + *
      +   * Describes the retry policy in case of function's execution failure.
      +   * Retried execution is charged as any other execution.
      +   * 
      + * + * Protobuf enum {@code google.cloud.functions.v2.EventTrigger.RetryPolicy} + */ + public enum RetryPolicy + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
      +     * Not specified.
      +     * 
      + * + * RETRY_POLICY_UNSPECIFIED = 0; + */ + RETRY_POLICY_UNSPECIFIED(0), + /** + *
      +     * Do not retry.
      +     * 
      + * + * RETRY_POLICY_DO_NOT_RETRY = 1; + */ + RETRY_POLICY_DO_NOT_RETRY(1), + /** + *
      +     * Retry on any failure, retry up to 7 days with an exponential backoff
      +     * (capped at 10 seconds).
      +     * 
      + * + * RETRY_POLICY_RETRY = 2; + */ + RETRY_POLICY_RETRY(2), + UNRECOGNIZED(-1), + ; + + /** + *
      +     * Not specified.
      +     * 
      + * + * RETRY_POLICY_UNSPECIFIED = 0; + */ + public static final int RETRY_POLICY_UNSPECIFIED_VALUE = 0; + /** + *
      +     * Do not retry.
      +     * 
      + * + * RETRY_POLICY_DO_NOT_RETRY = 1; + */ + public static final int RETRY_POLICY_DO_NOT_RETRY_VALUE = 1; + /** + *
      +     * Retry on any failure, retry up to 7 days with an exponential backoff
      +     * (capped at 10 seconds).
      +     * 
      + * + * RETRY_POLICY_RETRY = 2; + */ + public static final int RETRY_POLICY_RETRY_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 RetryPolicy 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 RetryPolicy forNumber(int value) { + switch (value) { + case 0: return RETRY_POLICY_UNSPECIFIED; + case 1: return RETRY_POLICY_DO_NOT_RETRY; + case 2: return RETRY_POLICY_RETRY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RetryPolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RetryPolicy findValueByNumber(int number) { + return RetryPolicy.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.v2.EventTrigger.getDescriptor().getEnumTypes().get(0); + } + + private static final RetryPolicy[] VALUES = values(); + + public static RetryPolicy 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 RetryPolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2.EventTrigger.RetryPolicy) + } + + public static final int TRIGGER_FIELD_NUMBER = 1; + private volatile java.lang.Object 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) = { ... } + * @return The trigger. + */ + @java.lang.Override + public java.lang.String getTrigger() { + java.lang.Object ref = trigger_; + 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(); + trigger_ = s; + return s; + } + } + /** + *
      +   * 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) = { ... } + * @return The bytes for trigger. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTriggerBytes() { + java.lang.Object ref = trigger_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + trigger_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRIGGER_REGION_FIELD_NUMBER = 2; + private volatile java.lang.Object triggerRegion_; + /** + *
      +   * The region that the trigger will be in. The trigger will only receive
      +   * events originating in this region. It can be the same
      +   * region as the function, a different region or multi-region, or the global
      +   * region. If not provided, defaults to the same region as the function.
      +   * 
      + * + * string trigger_region = 2; + * @return The triggerRegion. + */ + @java.lang.Override + public java.lang.String getTriggerRegion() { + java.lang.Object ref = triggerRegion_; + 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(); + triggerRegion_ = s; + return s; + } + } + /** + *
      +   * The region that the trigger will be in. The trigger will only receive
      +   * events originating in this region. It can be the same
      +   * region as the function, a different region or multi-region, or the global
      +   * region. If not provided, defaults to the same region as the function.
      +   * 
      + * + * string trigger_region = 2; + * @return The bytes for triggerRegion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTriggerRegionBytes() { + java.lang.Object ref = triggerRegion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + triggerRegion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_TYPE_FIELD_NUMBER = 3; + private volatile java.lang.Object eventType_; + /** + *
      +   * Required. The type of event to observe. For example:
      +   * `google.cloud.audit.log.v1.written` or
      +   * `google.cloud.pubsub.topic.v1.messagePublished`.
      +   * 
      + * + * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The eventType. + */ + @java.lang.Override + public java.lang.String getEventType() { + java.lang.Object ref = eventType_; + 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(); + eventType_ = s; + return s; + } + } + /** + *
      +   * Required. The type of event to observe. For example:
      +   * `google.cloud.audit.log.v1.written` or
      +   * `google.cloud.pubsub.topic.v1.messagePublished`.
      +   * 
      + * + * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for eventType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEventTypeBytes() { + java.lang.Object ref = eventType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FILTERS_FIELD_NUMBER = 4; + private java.util.List eventFilters_; + /** + *
      +   * Criteria used to filter events.
      +   * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + @java.lang.Override + public java.util.List getEventFiltersList() { + return eventFilters_; + } + /** + *
      +   * Criteria used to filter events.
      +   * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + @java.lang.Override + public java.util.List + getEventFiltersOrBuilderList() { + return eventFilters_; + } + /** + *
      +   * Criteria used to filter events.
      +   * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + @java.lang.Override + public int getEventFiltersCount() { + return eventFilters_.size(); + } + /** + *
      +   * Criteria used to filter events.
      +   * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + @java.lang.Override + public com.google.cloud.functions.v2.EventFilter getEventFilters(int index) { + return eventFilters_.get(index); + } + /** + *
      +   * Criteria used to filter events.
      +   * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + @java.lang.Override + public com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuilder( + int index) { + return eventFilters_.get(index); + } + + public static final int PUBSUB_TOPIC_FIELD_NUMBER = 5; + private volatile java.lang.Object pubsubTopic_; + /** + *
      +   * 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.
      +   * 
      + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The pubsubTopic. + */ + @java.lang.Override + public java.lang.String getPubsubTopic() { + java.lang.Object ref = pubsubTopic_; + 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(); + pubsubTopic_ = s; + return s; + } + } + /** + *
      +   * 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.
      +   * 
      + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The bytes for pubsubTopic. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPubsubTopicBytes() { + java.lang.Object ref = pubsubTopic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pubsubTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 6; + private volatile java.lang.Object serviceAccountEmail_; + /** + *
      +   * 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]; + * @return The serviceAccountEmail. + */ + @java.lang.Override + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + 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(); + serviceAccountEmail_ = s; + return s; + } + } + /** + *
      +   * 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]; + * @return The bytes for serviceAccountEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETRY_POLICY_FIELD_NUMBER = 7; + private int retryPolicy_; + /** + *
      +   * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
      +   * 
      + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enum numeric value on the wire for retryPolicy. + */ + @java.lang.Override public int getRetryPolicyValue() { + return retryPolicy_; + } + /** + *
      +   * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
      +   * 
      + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return The retryPolicy. + */ + @java.lang.Override public com.google.cloud.functions.v2.EventTrigger.RetryPolicy getRetryPolicy() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.EventTrigger.RetryPolicy result = com.google.cloud.functions.v2.EventTrigger.RetryPolicy.valueOf(retryPolicy_); + return result == null ? com.google.cloud.functions.v2.EventTrigger.RetryPolicy.UNRECOGNIZED : result; + } + + public static final int CHANNEL_FIELD_NUMBER = 8; + private volatile java.lang.Object channel_; + /** + *
      +   * Optional. The name of the channel associated with the trigger in
      +   * `projects/{project}/locations/{location}/channels/{channel}` format.
      +   * You must provide a channel to receive events from Eventarc SaaS partners.
      +   * 
      + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The channel. + */ + @java.lang.Override + public java.lang.String getChannel() { + java.lang.Object ref = channel_; + 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(); + channel_ = s; + return s; + } + } + /** + *
      +   * Optional. The name of the channel associated with the trigger in
      +   * `projects/{project}/locations/{location}/channels/{channel}` format.
      +   * You must provide a channel to receive events from Eventarc SaaS partners.
      +   * 
      + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The bytes for channel. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getChannelBytes() { + java.lang.Object ref = channel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + channel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trigger_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trigger_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(triggerRegion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, triggerRegion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, eventType_); + } + for (int i = 0; i < eventFilters_.size(); i++) { + output.writeMessage(4, eventFilters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pubsubTopic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAccountEmail_); + } + if (retryPolicy_ != com.google.cloud.functions.v2.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED.getNumber()) { + output.writeEnum(7, retryPolicy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, channel_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trigger_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trigger_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(triggerRegion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, triggerRegion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, eventType_); + } + for (int i = 0; i < eventFilters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, eventFilters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pubsubTopic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAccountEmail_); + } + if (retryPolicy_ != com.google.cloud.functions.v2.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, retryPolicy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, channel_); + } + size += unknownFields.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.EventTrigger)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.EventTrigger other = (com.google.cloud.functions.v2.EventTrigger) obj; + + if (!getTrigger() + .equals(other.getTrigger())) return false; + if (!getTriggerRegion() + .equals(other.getTriggerRegion())) return false; + if (!getEventType() + .equals(other.getEventType())) return false; + if (!getEventFiltersList() + .equals(other.getEventFiltersList())) return false; + if (!getPubsubTopic() + .equals(other.getPubsubTopic())) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; + if (retryPolicy_ != other.retryPolicy_) return false; + if (!getChannel() + .equals(other.getChannel())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + getTrigger().hashCode(); + hash = (37 * hash) + TRIGGER_REGION_FIELD_NUMBER; + hash = (53 * hash) + getTriggerRegion().hashCode(); + hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getEventType().hashCode(); + if (getEventFiltersCount() > 0) { + hash = (37 * hash) + EVENT_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getEventFiltersList().hashCode(); + } + hash = (37 * hash) + PUBSUB_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getPubsubTopic().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountEmail().hashCode(); + hash = (37 * hash) + RETRY_POLICY_FIELD_NUMBER; + hash = (53 * hash) + retryPolicy_; + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getChannel().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.EventTrigger parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.EventTrigger 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.EventTrigger parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.EventTrigger 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.EventTrigger parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.EventTrigger 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.EventTrigger parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.EventTrigger 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.EventTrigger parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.EventTrigger 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.EventTrigger 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.EventTrigger 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.EventTrigger 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; + } + /** + *
      +   * Describes EventTrigger, used to request events to be sent from another
      +   * service.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.EventTrigger} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.EventTrigger) + com.google.cloud.functions.v2.EventTriggerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventTrigger_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventTrigger_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.EventTrigger.class, com.google.cloud.functions.v2.EventTrigger.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.EventTrigger.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEventFiltersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + trigger_ = ""; + + triggerRegion_ = ""; + + eventType_ = ""; + + if (eventFiltersBuilder_ == null) { + eventFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + eventFiltersBuilder_.clear(); + } + pubsubTopic_ = ""; + + serviceAccountEmail_ = ""; + + retryPolicy_ = 0; + + channel_ = ""; + + 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_EventTrigger_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.EventTrigger getDefaultInstanceForType() { + return com.google.cloud.functions.v2.EventTrigger.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.EventTrigger build() { + com.google.cloud.functions.v2.EventTrigger result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.EventTrigger buildPartial() { + com.google.cloud.functions.v2.EventTrigger result = new com.google.cloud.functions.v2.EventTrigger(this); + int from_bitField0_ = bitField0_; + result.trigger_ = trigger_; + result.triggerRegion_ = triggerRegion_; + result.eventType_ = eventType_; + if (eventFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + eventFilters_ = java.util.Collections.unmodifiableList(eventFilters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.eventFilters_ = eventFilters_; + } else { + result.eventFilters_ = eventFiltersBuilder_.build(); + } + result.pubsubTopic_ = pubsubTopic_; + result.serviceAccountEmail_ = serviceAccountEmail_; + result.retryPolicy_ = retryPolicy_; + result.channel_ = channel_; + onBuilt(); + 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.v2.EventTrigger) { + return mergeFrom((com.google.cloud.functions.v2.EventTrigger)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.EventTrigger other) { + if (other == com.google.cloud.functions.v2.EventTrigger.getDefaultInstance()) return this; + if (!other.getTrigger().isEmpty()) { + trigger_ = other.trigger_; + onChanged(); + } + if (!other.getTriggerRegion().isEmpty()) { + triggerRegion_ = other.triggerRegion_; + onChanged(); + } + if (!other.getEventType().isEmpty()) { + eventType_ = other.eventType_; + onChanged(); + } + if (eventFiltersBuilder_ == null) { + if (!other.eventFilters_.isEmpty()) { + if (eventFilters_.isEmpty()) { + eventFilters_ = other.eventFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventFiltersIsMutable(); + eventFilters_.addAll(other.eventFilters_); + } + onChanged(); + } + } else { + if (!other.eventFilters_.isEmpty()) { + if (eventFiltersBuilder_.isEmpty()) { + eventFiltersBuilder_.dispose(); + eventFiltersBuilder_ = null; + eventFilters_ = other.eventFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + eventFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEventFiltersFieldBuilder() : null; + } else { + eventFiltersBuilder_.addAllMessages(other.eventFilters_); + } + } + } + if (!other.getPubsubTopic().isEmpty()) { + pubsubTopic_ = other.pubsubTopic_; + onChanged(); + } + if (!other.getServiceAccountEmail().isEmpty()) { + serviceAccountEmail_ = other.serviceAccountEmail_; + onChanged(); + } + if (other.retryPolicy_ != 0) { + setRetryPolicyValue(other.getRetryPolicyValue()); + } + if (!other.getChannel().isEmpty()) { + channel_ = other.channel_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.EventTrigger parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.EventTrigger) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object 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) = { ... } + * @return The trigger. + */ + public java.lang.String getTrigger() { + java.lang.Object ref = trigger_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trigger_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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) = { ... } + * @return The bytes for trigger. + */ + public com.google.protobuf.ByteString + getTriggerBytes() { + java.lang.Object ref = trigger_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + trigger_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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) = { ... } + * @param value The trigger to set. + * @return This builder for chaining. + */ + public Builder setTrigger( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + trigger_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @return This builder for chaining. + */ + public Builder clearTrigger() { + + trigger_ = getDefaultInstance().getTrigger(); + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @param value The bytes for trigger to set. + * @return This builder for chaining. + */ + public Builder setTriggerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + trigger_ = value; + onChanged(); + return this; + } + + private java.lang.Object triggerRegion_ = ""; + /** + *
      +     * The region that the trigger will be in. The trigger will only receive
      +     * events originating in this region. It can be the same
      +     * region as the function, a different region or multi-region, or the global
      +     * region. If not provided, defaults to the same region as the function.
      +     * 
      + * + * string trigger_region = 2; + * @return The triggerRegion. + */ + public java.lang.String getTriggerRegion() { + java.lang.Object ref = triggerRegion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + triggerRegion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * The region that the trigger will be in. The trigger will only receive
      +     * events originating in this region. It can be the same
      +     * region as the function, a different region or multi-region, or the global
      +     * region. If not provided, defaults to the same region as the function.
      +     * 
      + * + * string trigger_region = 2; + * @return The bytes for triggerRegion. + */ + public com.google.protobuf.ByteString + getTriggerRegionBytes() { + java.lang.Object ref = triggerRegion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + triggerRegion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * The region that the trigger will be in. The trigger will only receive
      +     * events originating in this region. It can be the same
      +     * region as the function, a different region or multi-region, or the global
      +     * region. If not provided, defaults to the same region as the function.
      +     * 
      + * + * string trigger_region = 2; + * @param value The triggerRegion to set. + * @return This builder for chaining. + */ + public Builder setTriggerRegion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + triggerRegion_ = value; + onChanged(); + return this; + } + /** + *
      +     * The region that the trigger will be in. The trigger will only receive
      +     * events originating in this region. It can be the same
      +     * region as the function, a different region or multi-region, or the global
      +     * region. If not provided, defaults to the same region as the function.
      +     * 
      + * + * string trigger_region = 2; + * @return This builder for chaining. + */ + public Builder clearTriggerRegion() { + + triggerRegion_ = getDefaultInstance().getTriggerRegion(); + onChanged(); + return this; + } + /** + *
      +     * The region that the trigger will be in. The trigger will only receive
      +     * events originating in this region. It can be the same
      +     * region as the function, a different region or multi-region, or the global
      +     * region. If not provided, defaults to the same region as the function.
      +     * 
      + * + * string trigger_region = 2; + * @param value The bytes for triggerRegion to set. + * @return This builder for chaining. + */ + public Builder setTriggerRegionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + triggerRegion_ = value; + onChanged(); + return this; + } + + private java.lang.Object eventType_ = ""; + /** + *
      +     * Required. The type of event to observe. For example:
      +     * `google.cloud.audit.log.v1.written` or
      +     * `google.cloud.pubsub.topic.v1.messagePublished`.
      +     * 
      + * + * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The eventType. + */ + public java.lang.String getEventType() { + java.lang.Object ref = eventType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Required. The type of event to observe. For example:
      +     * `google.cloud.audit.log.v1.written` or
      +     * `google.cloud.pubsub.topic.v1.messagePublished`.
      +     * 
      + * + * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for eventType. + */ + public com.google.protobuf.ByteString + getEventTypeBytes() { + java.lang.Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Required. The type of event to observe. For example:
      +     * `google.cloud.audit.log.v1.written` or
      +     * `google.cloud.pubsub.topic.v1.messagePublished`.
      +     * 
      + * + * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + eventType_ = value; + onChanged(); + return this; + } + /** + *
      +     * Required. The type of event to observe. For example:
      +     * `google.cloud.audit.log.v1.written` or
      +     * `google.cloud.pubsub.topic.v1.messagePublished`.
      +     * 
      + * + * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearEventType() { + + eventType_ = getDefaultInstance().getEventType(); + onChanged(); + return this; + } + /** + *
      +     * Required. The type of event to observe. For example:
      +     * `google.cloud.audit.log.v1.written` or
      +     * `google.cloud.pubsub.topic.v1.messagePublished`.
      +     * 
      + * + * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for eventType to set. + * @return This builder for chaining. + */ + public Builder setEventTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + eventType_ = value; + onChanged(); + return this; + } + + private java.util.List eventFilters_ = + java.util.Collections.emptyList(); + private void ensureEventFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + eventFilters_ = new java.util.ArrayList(eventFilters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.EventFilter, com.google.cloud.functions.v2.EventFilter.Builder, com.google.cloud.functions.v2.EventFilterOrBuilder> eventFiltersBuilder_; + + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public java.util.List getEventFiltersList() { + if (eventFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(eventFilters_); + } else { + return eventFiltersBuilder_.getMessageList(); + } + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public int getEventFiltersCount() { + if (eventFiltersBuilder_ == null) { + return eventFilters_.size(); + } else { + return eventFiltersBuilder_.getCount(); + } + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public com.google.cloud.functions.v2.EventFilter getEventFilters(int index) { + if (eventFiltersBuilder_ == null) { + return eventFilters_.get(index); + } else { + return eventFiltersBuilder_.getMessage(index); + } + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public Builder setEventFilters( + int index, com.google.cloud.functions.v2.EventFilter value) { + if (eventFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventFiltersIsMutable(); + eventFilters_.set(index, value); + onChanged(); + } else { + eventFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public Builder setEventFilters( + int index, com.google.cloud.functions.v2.EventFilter.Builder builderForValue) { + if (eventFiltersBuilder_ == null) { + ensureEventFiltersIsMutable(); + eventFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + eventFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public Builder addEventFilters(com.google.cloud.functions.v2.EventFilter value) { + if (eventFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventFiltersIsMutable(); + eventFilters_.add(value); + onChanged(); + } else { + eventFiltersBuilder_.addMessage(value); + } + return this; + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public Builder addEventFilters( + int index, com.google.cloud.functions.v2.EventFilter value) { + if (eventFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventFiltersIsMutable(); + eventFilters_.add(index, value); + onChanged(); + } else { + eventFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public Builder addEventFilters( + com.google.cloud.functions.v2.EventFilter.Builder builderForValue) { + if (eventFiltersBuilder_ == null) { + ensureEventFiltersIsMutable(); + eventFilters_.add(builderForValue.build()); + onChanged(); + } else { + eventFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public Builder addEventFilters( + int index, com.google.cloud.functions.v2.EventFilter.Builder builderForValue) { + if (eventFiltersBuilder_ == null) { + ensureEventFiltersIsMutable(); + eventFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + eventFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public Builder addAllEventFilters( + java.lang.Iterable values) { + if (eventFiltersBuilder_ == null) { + ensureEventFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, eventFilters_); + onChanged(); + } else { + eventFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public Builder clearEventFilters() { + if (eventFiltersBuilder_ == null) { + eventFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + eventFiltersBuilder_.clear(); + } + return this; + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public Builder removeEventFilters(int index) { + if (eventFiltersBuilder_ == null) { + ensureEventFiltersIsMutable(); + eventFilters_.remove(index); + onChanged(); + } else { + eventFiltersBuilder_.remove(index); + } + return this; + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public com.google.cloud.functions.v2.EventFilter.Builder getEventFiltersBuilder( + int index) { + return getEventFiltersFieldBuilder().getBuilder(index); + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuilder( + int index) { + if (eventFiltersBuilder_ == null) { + return eventFilters_.get(index); } else { + return eventFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public java.util.List + getEventFiltersOrBuilderList() { + if (eventFiltersBuilder_ != null) { + return eventFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(eventFilters_); + } + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public com.google.cloud.functions.v2.EventFilter.Builder addEventFiltersBuilder() { + return getEventFiltersFieldBuilder().addBuilder( + com.google.cloud.functions.v2.EventFilter.getDefaultInstance()); + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public com.google.cloud.functions.v2.EventFilter.Builder addEventFiltersBuilder( + int index) { + return getEventFiltersFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2.EventFilter.getDefaultInstance()); + } + /** + *
      +     * Criteria used to filter events.
      +     * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + public java.util.List + getEventFiltersBuilderList() { + return getEventFiltersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.EventFilter, com.google.cloud.functions.v2.EventFilter.Builder, com.google.cloud.functions.v2.EventFilterOrBuilder> + getEventFiltersFieldBuilder() { + if (eventFiltersBuilder_ == null) { + eventFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.EventFilter, com.google.cloud.functions.v2.EventFilter.Builder, com.google.cloud.functions.v2.EventFilterOrBuilder>( + eventFilters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + eventFilters_ = null; + } + return eventFiltersBuilder_; + } + + private java.lang.Object pubsubTopic_ = ""; + /** + *
      +     * 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.
      +     * 
      + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The pubsubTopic. + */ + public java.lang.String getPubsubTopic() { + java.lang.Object ref = pubsubTopic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pubsubTopic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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.
      +     * 
      + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The bytes for pubsubTopic. + */ + public com.google.protobuf.ByteString + getPubsubTopicBytes() { + java.lang.Object ref = pubsubTopic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pubsubTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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.
      +     * 
      + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @param value The pubsubTopic to set. + * @return This builder for chaining. + */ + public Builder setPubsubTopic( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pubsubTopic_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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.
      +     * 
      + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearPubsubTopic() { + + pubsubTopic_ = getDefaultInstance().getPubsubTopic(); + onChanged(); + return this; + } + /** + *
      +     * 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.
      +     * 
      + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @param value The bytes for pubsubTopic to set. + * @return This builder for chaining. + */ + public Builder setPubsubTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pubsubTopic_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceAccountEmail_ = ""; + /** + *
      +     * 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]; + * @return The serviceAccountEmail. + */ + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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]; + * @return The bytes for serviceAccountEmail. + */ + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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]; + * @param value The serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccountEmail_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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]; + * @return This builder for chaining. + */ + public Builder clearServiceAccountEmail() { + + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); + onChanged(); + return this; + } + /** + *
      +     * 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]; + * @param value The bytes for serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccountEmail_ = value; + onChanged(); + return this; + } + + private int retryPolicy_ = 0; + /** + *
      +     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enum numeric value on the wire for retryPolicy. + */ + @java.lang.Override public int getRetryPolicyValue() { + return retryPolicy_; + } + /** + *
      +     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The enum numeric value on the wire for retryPolicy to set. + * @return This builder for chaining. + */ + public Builder setRetryPolicyValue(int value) { + + retryPolicy_ = value; + onChanged(); + return this; + } + /** + *
      +     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return The retryPolicy. + */ + @java.lang.Override + public com.google.cloud.functions.v2.EventTrigger.RetryPolicy getRetryPolicy() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.EventTrigger.RetryPolicy result = com.google.cloud.functions.v2.EventTrigger.RetryPolicy.valueOf(retryPolicy_); + return result == null ? com.google.cloud.functions.v2.EventTrigger.RetryPolicy.UNRECOGNIZED : result; + } + /** + *
      +     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The retryPolicy to set. + * @return This builder for chaining. + */ + public Builder setRetryPolicy(com.google.cloud.functions.v2.EventTrigger.RetryPolicy value) { + if (value == null) { + throw new NullPointerException(); + } + + retryPolicy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
      +     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearRetryPolicy() { + + retryPolicy_ = 0; + onChanged(); + return this; + } + + private java.lang.Object channel_ = ""; + /** + *
      +     * Optional. The name of the channel associated with the trigger in
      +     * `projects/{project}/locations/{location}/channels/{channel}` format.
      +     * You must provide a channel to receive events from Eventarc SaaS partners.
      +     * 
      + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The channel. + */ + public java.lang.String getChannel() { + java.lang.Object ref = channel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Optional. The name of the channel associated with the trigger in
      +     * `projects/{project}/locations/{location}/channels/{channel}` format.
      +     * You must provide a channel to receive events from Eventarc SaaS partners.
      +     * 
      + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The bytes for channel. + */ + public com.google.protobuf.ByteString + getChannelBytes() { + java.lang.Object ref = channel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + channel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Optional. The name of the channel associated with the trigger in
      +     * `projects/{project}/locations/{location}/channels/{channel}` format.
      +     * You must provide a channel to receive events from Eventarc SaaS partners.
      +     * 
      + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + channel_ = value; + onChanged(); + return this; + } + /** + *
      +     * Optional. The name of the channel associated with the trigger in
      +     * `projects/{project}/locations/{location}/channels/{channel}` format.
      +     * You must provide a channel to receive events from Eventarc SaaS partners.
      +     * 
      + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearChannel() { + + channel_ = getDefaultInstance().getChannel(); + onChanged(); + return this; + } + /** + *
      +     * Optional. The name of the channel associated with the trigger in
      +     * `projects/{project}/locations/{location}/channels/{channel}` format.
      +     * You must provide a channel to receive events from Eventarc SaaS partners.
      +     * 
      + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @param value The bytes for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + channel_ = 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.EventTrigger) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.EventTrigger) + private static final com.google.cloud.functions.v2.EventTrigger DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.EventTrigger(); + } + + public static com.google.cloud.functions.v2.EventTrigger getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventTrigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventTrigger(input, extensionRegistry); + } + }; + + 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.EventTrigger getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java new file mode 100644 index 00000000..e7630706 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java @@ -0,0 +1,226 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface EventTriggerOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.EventTrigger) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * 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) = { ... } + * @return The trigger. + */ + 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}`.
      +   * 
      + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for trigger. + */ + com.google.protobuf.ByteString + getTriggerBytes(); + + /** + *
      +   * The region that the trigger will be in. The trigger will only receive
      +   * events originating in this region. It can be the same
      +   * region as the function, a different region or multi-region, or the global
      +   * region. If not provided, defaults to the same region as the function.
      +   * 
      + * + * string trigger_region = 2; + * @return The triggerRegion. + */ + java.lang.String getTriggerRegion(); + /** + *
      +   * The region that the trigger will be in. The trigger will only receive
      +   * events originating in this region. It can be the same
      +   * region as the function, a different region or multi-region, or the global
      +   * region. If not provided, defaults to the same region as the function.
      +   * 
      + * + * string trigger_region = 2; + * @return The bytes for triggerRegion. + */ + com.google.protobuf.ByteString + getTriggerRegionBytes(); + + /** + *
      +   * Required. The type of event to observe. For example:
      +   * `google.cloud.audit.log.v1.written` or
      +   * `google.cloud.pubsub.topic.v1.messagePublished`.
      +   * 
      + * + * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The eventType. + */ + java.lang.String getEventType(); + /** + *
      +   * Required. The type of event to observe. For example:
      +   * `google.cloud.audit.log.v1.written` or
      +   * `google.cloud.pubsub.topic.v1.messagePublished`.
      +   * 
      + * + * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for eventType. + */ + com.google.protobuf.ByteString + getEventTypeBytes(); + + /** + *
      +   * Criteria used to filter events.
      +   * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + java.util.List + getEventFiltersList(); + /** + *
      +   * Criteria used to filter events.
      +   * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + com.google.cloud.functions.v2.EventFilter getEventFilters(int index); + /** + *
      +   * Criteria used to filter events.
      +   * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + int getEventFiltersCount(); + /** + *
      +   * Criteria used to filter events.
      +   * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + java.util.List + getEventFiltersOrBuilderList(); + /** + *
      +   * Criteria used to filter events.
      +   * 
      + * + * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; + */ + com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuilder( + int index); + + /** + *
      +   * 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.
      +   * 
      + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The pubsubTopic. + */ + 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.
      +   * 
      + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The bytes for pubsubTopic. + */ + 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
      +   * `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]; + * @return The serviceAccountEmail. + */ + 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
      +   * `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]; + * @return The bytes for serviceAccountEmail. + */ + com.google.protobuf.ByteString + getServiceAccountEmailBytes(); + + /** + *
      +   * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
      +   * 
      + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enum numeric value on the wire for retryPolicy. + */ + int getRetryPolicyValue(); + /** + *
      +   * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
      +   * 
      + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return The retryPolicy. + */ + com.google.cloud.functions.v2.EventTrigger.RetryPolicy getRetryPolicy(); + + /** + *
      +   * Optional. The name of the channel associated with the trigger in
      +   * `projects/{project}/locations/{location}/channels/{channel}` format.
      +   * You must provide a channel to receive events from Eventarc SaaS partners.
      +   * 
      + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The channel. + */ + java.lang.String getChannel(); + /** + *
      +   * Optional. The name of the channel associated with the trigger in
      +   * `projects/{project}/locations/{location}/channels/{channel}` format.
      +   * You must provide a channel to receive events from Eventarc SaaS partners.
      +   * 
      + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The bytes for channel. + */ + com.google.protobuf.ByteString + getChannelBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java new file mode 100644 index 00000000..d616c3e9 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java @@ -0,0 +1,2969 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Describes a Cloud Function that contains user computation executed in
      + * response to an event. It encapsulates function and trigger configurations.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.Function} + */ +public final class Function extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.Function) + FunctionOrBuilder { +private static final long serialVersionUID = 0L; + // Use Function.newBuilder() to construct. + private Function(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Function() { + name_ = ""; + environment_ = 0; + description_ = ""; + state_ = 0; + stateMessages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Function(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Function( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 26: { + com.google.cloud.functions.v2.BuildConfig.Builder subBuilder = null; + if (buildConfig_ != null) { + subBuilder = buildConfig_.toBuilder(); + } + buildConfig_ = input.readMessage(com.google.cloud.functions.v2.BuildConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(buildConfig_); + buildConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.cloud.functions.v2.ServiceConfig.Builder subBuilder = null; + if (serviceConfig_ != null) { + subBuilder = serviceConfig_.toBuilder(); + } + serviceConfig_ = input.readMessage(com.google.cloud.functions.v2.ServiceConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(serviceConfig_); + serviceConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.cloud.functions.v2.EventTrigger.Builder subBuilder = null; + if (eventTrigger_ != null) { + subBuilder = eventTrigger_.toBuilder(); + } + eventTrigger_ = input.readMessage(com.google.cloud.functions.v2.EventTrigger.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventTrigger_); + eventTrigger_ = subBuilder.buildPartial(); + } + + break; + } + case 48: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + stateMessages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + stateMessages_.add( + input.readMessage(com.google.cloud.functions.v2.StateMessage.parser(), extensionRegistry)); + break; + } + case 80: { + int rawValue = input.readEnum(); + + environment_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Function_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 8: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Function_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.Function.class, com.google.cloud.functions.v2.Function.Builder.class); + } + + /** + *
      +   * Describes the current state of the function.
      +   * 
      + * + * Protobuf enum {@code google.cloud.functions.v2.Function.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
      +     * Not specified. Invalid state.
      +     * 
      + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + *
      +     * Function has been successfully deployed and is serving.
      +     * 
      + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + *
      +     * Function deployment failed and the function is not serving.
      +     * 
      + * + * FAILED = 2; + */ + FAILED(2), + /** + *
      +     * Function is being created or updated.
      +     * 
      + * + * DEPLOYING = 3; + */ + DEPLOYING(3), + /** + *
      +     * Function is being deleted.
      +     * 
      + * + * DELETING = 4; + */ + DELETING(4), + /** + *
      +     * Function deployment failed and the function serving state is undefined.
      +     * The function should be updated or deleted to move it out of this state.
      +     * 
      + * + * UNKNOWN = 5; + */ + UNKNOWN(5), + UNRECOGNIZED(-1), + ; + + /** + *
      +     * Not specified. Invalid state.
      +     * 
      + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *
      +     * Function has been successfully deployed and is serving.
      +     * 
      + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + *
      +     * Function deployment failed and the function is not serving.
      +     * 
      + * + * FAILED = 2; + */ + public static final int FAILED_VALUE = 2; + /** + *
      +     * Function is being created or updated.
      +     * 
      + * + * DEPLOYING = 3; + */ + public static final int DEPLOYING_VALUE = 3; + /** + *
      +     * Function is being deleted.
      +     * 
      + * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + /** + *
      +     * Function deployment failed and the function serving state is undefined.
      +     * The function should be updated or deleted to move it out of this state.
      +     * 
      + * + * UNKNOWN = 5; + */ + public static final int UNKNOWN_VALUE = 5; + + + 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 State 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 State forNumber(int value) { + switch (value) { + case 0: return STATE_UNSPECIFIED; + case 1: return ACTIVE; + case 2: return FAILED; + case 3: return DEPLOYING; + case 4: return DELETING; + case 5: return UNKNOWN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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.v2.Function.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2.Function.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
      +   * A user-defined name of the function. Function names must be unique
      +   * globally and match pattern `projects/*/locations/*/functions/*`
      +   * 
      + * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
      +   * A user-defined name of the function. Function names must be unique
      +   * globally and match pattern `projects/*/locations/*/functions/*`
      +   * 
      + * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENVIRONMENT_FIELD_NUMBER = 10; + private int environment_; + /** + *
      +   * Describe whether the function is gen1 or gen2.
      +   * 
      + * + * .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 gen1 or gen2.
      +   * 
      + * + * .google.cloud.functions.v2.Environment environment = 10; + * @return The environment. + */ + @java.lang.Override public com.google.cloud.functions.v2.Environment getEnvironment() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.Environment result = com.google.cloud.functions.v2.Environment.valueOf(environment_); + return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + *
      +   * User-provided description of a function.
      +   * 
      + * + * string description = 2; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + *
      +   * User-provided description of a function.
      +   * 
      + * + * string description = 2; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUILD_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.functions.v2.BuildConfig buildConfig_; + /** + *
      +   * Describes the Build step of the function that builds a container from the
      +   * given source.
      +   * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + * @return Whether the buildConfig field is set. + */ + @java.lang.Override + public boolean hasBuildConfig() { + return buildConfig_ != null; + } + /** + *
      +   * Describes the Build step of the function that builds a container from the
      +   * given source.
      +   * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + * @return The buildConfig. + */ + @java.lang.Override + public com.google.cloud.functions.v2.BuildConfig getBuildConfig() { + return buildConfig_ == null ? com.google.cloud.functions.v2.BuildConfig.getDefaultInstance() : buildConfig_; + } + /** + *
      +   * Describes the Build step of the function that builds a container from the
      +   * given source.
      +   * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + */ + @java.lang.Override + public com.google.cloud.functions.v2.BuildConfigOrBuilder getBuildConfigOrBuilder() { + return getBuildConfig(); + } + + public static final int SERVICE_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.functions.v2.ServiceConfig serviceConfig_; + /** + *
      +   * Describes the Service being deployed. Currently deploys services to Cloud
      +   * Run (fully managed).
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + * @return Whether the serviceConfig field is set. + */ + @java.lang.Override + public boolean hasServiceConfig() { + return serviceConfig_ != null; + } + /** + *
      +   * Describes the Service being deployed. Currently deploys services to Cloud
      +   * Run (fully managed).
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + * @return The serviceConfig. + */ + @java.lang.Override + public com.google.cloud.functions.v2.ServiceConfig getServiceConfig() { + return serviceConfig_ == null ? com.google.cloud.functions.v2.ServiceConfig.getDefaultInstance() : serviceConfig_; + } + /** + *
      +   * Describes the Service being deployed. Currently deploys services to Cloud
      +   * Run (fully managed).
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + */ + @java.lang.Override + public com.google.cloud.functions.v2.ServiceConfigOrBuilder getServiceConfigOrBuilder() { + return getServiceConfig(); + } + + public static final int EVENT_TRIGGER_FIELD_NUMBER = 5; + private com.google.cloud.functions.v2.EventTrigger eventTrigger_; + /** + *
      +   * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +   * response to a condition in another service.
      +   * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + * @return Whether the eventTrigger field is set. + */ + @java.lang.Override + public boolean hasEventTrigger() { + return eventTrigger_ != null; + } + /** + *
      +   * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +   * response to a condition in another service.
      +   * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + * @return The eventTrigger. + */ + @java.lang.Override + public com.google.cloud.functions.v2.EventTrigger getEventTrigger() { + return eventTrigger_ == null ? com.google.cloud.functions.v2.EventTrigger.getDefaultInstance() : eventTrigger_; + } + /** + *
      +   * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +   * response to a condition in another service.
      +   * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + */ + @java.lang.Override + public com.google.cloud.functions.v2.EventTriggerOrBuilder getEventTriggerOrBuilder() { + return getEventTrigger(); + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_; + /** + *
      +   * Output only. State of the function.
      +   * 
      + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
      +   * Output only. State of the function.
      +   * 
      + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + @java.lang.Override public com.google.cloud.functions.v2.Function.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.Function.State result = com.google.cloud.functions.v2.Function.State.valueOf(state_); + return result == null ? com.google.cloud.functions.v2.Function.State.UNRECOGNIZED : result; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + /** + *
      +   * Output only. The last update timestamp of a Cloud Function.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
      +   * Output only. The last update timestamp of a Cloud Function.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
      +   * Output only. The last update timestamp of a Cloud Function.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Function_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
      +   * Labels associated with this Cloud Function.
      +   * 
      + * + * map<string, string> labels = 8; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
      +   * Labels associated with this Cloud Function.
      +   * 
      + * + * map<string, string> labels = 8; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
      +   * Labels associated with this Cloud Function.
      +   * 
      + * + * map<string, string> labels = 8; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
      +   * Labels associated with this Cloud Function.
      +   * 
      + * + * map<string, string> labels = 8; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_MESSAGES_FIELD_NUMBER = 9; + private java.util.List stateMessages_; + /** + *
      +   * Output only. State Messages for this Cloud Function.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List getStateMessagesList() { + return stateMessages_; + } + /** + *
      +   * Output only. State Messages for this Cloud Function.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List + getStateMessagesOrBuilderList() { + return stateMessages_; + } + /** + *
      +   * Output only. State Messages for this Cloud Function.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public int getStateMessagesCount() { + return stateMessages_.size(); + } + /** + *
      +   * Output only. State Messages for this Cloud Function.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.functions.v2.StateMessage getStateMessages(int index) { + return stateMessages_.get(index); + } + /** + *
      +   * Output only. State Messages for this Cloud Function.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder( + int index) { + return stateMessages_.get(index); + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (buildConfig_ != null) { + output.writeMessage(3, getBuildConfig()); + } + if (serviceConfig_ != null) { + output.writeMessage(4, getServiceConfig()); + } + if (eventTrigger_ != null) { + output.writeMessage(5, getEventTrigger()); + } + if (state_ != com.google.cloud.functions.v2.Function.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (updateTime_ != null) { + output.writeMessage(7, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); + for (int i = 0; i < stateMessages_.size(); i++) { + output.writeMessage(9, stateMessages_.get(i)); + } + if (environment_ != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + output.writeEnum(10, environment_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (buildConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBuildConfig()); + } + if (serviceConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getServiceConfig()); + } + if (eventTrigger_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEventTrigger()); + } + if (state_ != com.google.cloud.functions.v2.Function.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, labels__); + } + for (int i = 0; i < stateMessages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, stateMessages_.get(i)); + } + if (environment_ != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, environment_); + } + size += unknownFields.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.Function)) { + return super.equals(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()) { + if (!getBuildConfig() + .equals(other.getBuildConfig())) return false; + } + if (hasServiceConfig() != other.hasServiceConfig()) return false; + if (hasServiceConfig()) { + if (!getServiceConfig() + .equals(other.getServiceConfig())) return false; + } + if (hasEventTrigger() != other.hasEventTrigger()) return false; + if (hasEventTrigger()) { + if (!getEventTrigger() + .equals(other.getEventTrigger())) return false; + } + if (state_ != other.state_) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getStateMessagesList() + .equals(other.getStateMessagesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + 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()) { + hash = (37 * hash) + BUILD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBuildConfig().hashCode(); + } + if (hasServiceConfig()) { + hash = (37 * hash) + SERVICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceConfig().hashCode(); + } + if (hasEventTrigger()) { + hash = (37 * hash) + EVENT_TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + getEventTrigger().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (getStateMessagesCount() > 0) { + hash = (37 * hash) + STATE_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getStateMessagesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.Function parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.Function 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.Function parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.Function 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.Function parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.Function 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.Function parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.Function 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.Function parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.Function 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.Function 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.Function 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.Function 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; + } + /** + *
      +   * Describes a Cloud Function that contains user computation executed in
      +   * response to an event. It encapsulates function and trigger configurations.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.Function} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.Function) + com.google.cloud.functions.v2.FunctionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Function_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 8: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 8: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Function_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.Function.class, com.google.cloud.functions.v2.Function.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.Function.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStateMessagesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + environment_ = 0; + + description_ = ""; + + if (buildConfigBuilder_ == null) { + buildConfig_ = null; + } else { + buildConfig_ = null; + buildConfigBuilder_ = null; + } + if (serviceConfigBuilder_ == null) { + serviceConfig_ = null; + } else { + serviceConfig_ = null; + serviceConfigBuilder_ = null; + } + if (eventTriggerBuilder_ == null) { + eventTrigger_ = null; + } else { + eventTrigger_ = null; + eventTriggerBuilder_ = null; + } + state_ = 0; + + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + if (stateMessagesBuilder_ == null) { + stateMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + stateMessagesBuilder_.clear(); + } + 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_Function_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.Function getDefaultInstanceForType() { + return com.google.cloud.functions.v2.Function.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.Function build() { + com.google.cloud.functions.v2.Function result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.Function buildPartial() { + com.google.cloud.functions.v2.Function result = new com.google.cloud.functions.v2.Function(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.environment_ = environment_; + result.description_ = description_; + if (buildConfigBuilder_ == null) { + result.buildConfig_ = buildConfig_; + } else { + result.buildConfig_ = buildConfigBuilder_.build(); + } + if (serviceConfigBuilder_ == null) { + result.serviceConfig_ = serviceConfig_; + } else { + result.serviceConfig_ = serviceConfigBuilder_.build(); + } + if (eventTriggerBuilder_ == null) { + result.eventTrigger_ = eventTrigger_; + } else { + result.eventTrigger_ = eventTriggerBuilder_.build(); + } + result.state_ = state_; + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + if (stateMessagesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.stateMessages_ = stateMessages_; + } else { + result.stateMessages_ = stateMessagesBuilder_.build(); + } + onBuilt(); + 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.v2.Function) { + return mergeFrom((com.google.cloud.functions.v2.Function)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.Function other) { + if (other == com.google.cloud.functions.v2.Function.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.environment_ != 0) { + setEnvironmentValue(other.getEnvironmentValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasBuildConfig()) { + mergeBuildConfig(other.getBuildConfig()); + } + if (other.hasServiceConfig()) { + mergeServiceConfig(other.getServiceConfig()); + } + if (other.hasEventTrigger()) { + mergeEventTrigger(other.getEventTrigger()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + if (stateMessagesBuilder_ == null) { + if (!other.stateMessages_.isEmpty()) { + if (stateMessages_.isEmpty()) { + stateMessages_ = other.stateMessages_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureStateMessagesIsMutable(); + stateMessages_.addAll(other.stateMessages_); + } + onChanged(); + } + } else { + if (!other.stateMessages_.isEmpty()) { + if (stateMessagesBuilder_.isEmpty()) { + stateMessagesBuilder_.dispose(); + stateMessagesBuilder_ = null; + stateMessages_ = other.stateMessages_; + bitField0_ = (bitField0_ & ~0x00000002); + stateMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStateMessagesFieldBuilder() : null; + } else { + stateMessagesBuilder_.addAllMessages(other.stateMessages_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.Function parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.Function) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
      +     * A user-defined name of the function. Function names must be unique
      +     * globally and match pattern `projects/*/locations/*/functions/*`
      +     * 
      + * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * A user-defined name of the function. Function names must be unique
      +     * globally and match pattern `projects/*/locations/*/functions/*`
      +     * 
      + * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * A user-defined name of the function. Function names must be unique
      +     * globally and match pattern `projects/*/locations/*/functions/*`
      +     * 
      + * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
      +     * A user-defined name of the function. Function names must be unique
      +     * globally and match pattern `projects/*/locations/*/functions/*`
      +     * 
      + * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
      +     * A user-defined name of the function. Function names must be unique
      +     * globally and match pattern `projects/*/locations/*/functions/*`
      +     * 
      + * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int environment_ = 0; + /** + *
      +     * Describe whether the function is gen1 or gen2.
      +     * 
      + * + * .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 gen1 or gen2.
      +     * 
      + * + * .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; + onChanged(); + return this; + } + /** + *
      +     * Describe whether the function is gen1 or gen2.
      +     * 
      + * + * .google.cloud.functions.v2.Environment environment = 10; + * @return The environment. + */ + @java.lang.Override + public com.google.cloud.functions.v2.Environment getEnvironment() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.Environment result = com.google.cloud.functions.v2.Environment.valueOf(environment_); + return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; + } + /** + *
      +     * Describe whether the function is gen1 or gen2.
      +     * 
      + * + * .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(); + } + + environment_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
      +     * Describe whether the function is gen1 or gen2.
      +     * 
      + * + * .google.cloud.functions.v2.Environment environment = 10; + * @return This builder for chaining. + */ + public Builder clearEnvironment() { + + 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. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * User-provided description of a function.
      +     * 
      + * + * string description = 2; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
      +     * User-provided description of a function.
      +     * 
      + * + * string description = 2; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
      +     * User-provided description of a function.
      +     * 
      + * + * string description = 2; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.cloud.functions.v2.BuildConfig buildConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.BuildConfig, com.google.cloud.functions.v2.BuildConfig.Builder, com.google.cloud.functions.v2.BuildConfigOrBuilder> buildConfigBuilder_; + /** + *
      +     * Describes the Build step of the function that builds a container from the
      +     * given source.
      +     * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + * @return Whether the buildConfig field is set. + */ + public boolean hasBuildConfig() { + return buildConfigBuilder_ != null || buildConfig_ != null; + } + /** + *
      +     * Describes the Build step of the function that builds a container from the
      +     * given source.
      +     * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + * @return The buildConfig. + */ + public com.google.cloud.functions.v2.BuildConfig getBuildConfig() { + if (buildConfigBuilder_ == null) { + return buildConfig_ == null ? com.google.cloud.functions.v2.BuildConfig.getDefaultInstance() : buildConfig_; + } else { + return buildConfigBuilder_.getMessage(); + } + } + /** + *
      +     * Describes the Build step of the function that builds a container from the
      +     * given source.
      +     * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + */ + public Builder setBuildConfig(com.google.cloud.functions.v2.BuildConfig value) { + if (buildConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + buildConfig_ = value; + onChanged(); + } else { + buildConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * Describes the Build step of the function that builds a container from the
      +     * given source.
      +     * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + */ + public Builder setBuildConfig( + com.google.cloud.functions.v2.BuildConfig.Builder builderForValue) { + if (buildConfigBuilder_ == null) { + buildConfig_ = builderForValue.build(); + onChanged(); + } else { + buildConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * Describes the Build step of the function that builds a container from the
      +     * given source.
      +     * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + */ + public Builder mergeBuildConfig(com.google.cloud.functions.v2.BuildConfig value) { + if (buildConfigBuilder_ == null) { + if (buildConfig_ != null) { + buildConfig_ = + com.google.cloud.functions.v2.BuildConfig.newBuilder(buildConfig_).mergeFrom(value).buildPartial(); + } else { + buildConfig_ = value; + } + onChanged(); + } else { + buildConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * Describes the Build step of the function that builds a container from the
      +     * given source.
      +     * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + */ + public Builder clearBuildConfig() { + if (buildConfigBuilder_ == null) { + buildConfig_ = null; + onChanged(); + } else { + buildConfig_ = null; + buildConfigBuilder_ = null; + } + + return this; + } + /** + *
      +     * Describes the Build step of the function that builds a container from the
      +     * given source.
      +     * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + */ + public com.google.cloud.functions.v2.BuildConfig.Builder getBuildConfigBuilder() { + + onChanged(); + return getBuildConfigFieldBuilder().getBuilder(); + } + /** + *
      +     * Describes the Build step of the function that builds a container from the
      +     * given source.
      +     * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + */ + public com.google.cloud.functions.v2.BuildConfigOrBuilder getBuildConfigOrBuilder() { + if (buildConfigBuilder_ != null) { + return buildConfigBuilder_.getMessageOrBuilder(); + } else { + return buildConfig_ == null ? + com.google.cloud.functions.v2.BuildConfig.getDefaultInstance() : buildConfig_; + } + } + /** + *
      +     * Describes the Build step of the function that builds a container from the
      +     * given source.
      +     * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.BuildConfig, com.google.cloud.functions.v2.BuildConfig.Builder, com.google.cloud.functions.v2.BuildConfigOrBuilder> + getBuildConfigFieldBuilder() { + if (buildConfigBuilder_ == null) { + buildConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.BuildConfig, com.google.cloud.functions.v2.BuildConfig.Builder, com.google.cloud.functions.v2.BuildConfigOrBuilder>( + getBuildConfig(), + getParentForChildren(), + isClean()); + buildConfig_ = null; + } + return buildConfigBuilder_; + } + + private com.google.cloud.functions.v2.ServiceConfig serviceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.ServiceConfig, com.google.cloud.functions.v2.ServiceConfig.Builder, com.google.cloud.functions.v2.ServiceConfigOrBuilder> serviceConfigBuilder_; + /** + *
      +     * Describes the Service being deployed. Currently deploys services to Cloud
      +     * Run (fully managed).
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + * @return Whether the serviceConfig field is set. + */ + public boolean hasServiceConfig() { + return serviceConfigBuilder_ != null || serviceConfig_ != null; + } + /** + *
      +     * Describes the Service being deployed. Currently deploys services to Cloud
      +     * Run (fully managed).
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + * @return The serviceConfig. + */ + public com.google.cloud.functions.v2.ServiceConfig getServiceConfig() { + if (serviceConfigBuilder_ == null) { + return serviceConfig_ == null ? com.google.cloud.functions.v2.ServiceConfig.getDefaultInstance() : serviceConfig_; + } else { + return serviceConfigBuilder_.getMessage(); + } + } + /** + *
      +     * Describes the Service being deployed. Currently deploys services to Cloud
      +     * Run (fully managed).
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + */ + public Builder setServiceConfig(com.google.cloud.functions.v2.ServiceConfig value) { + if (serviceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceConfig_ = value; + onChanged(); + } else { + serviceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * Describes the Service being deployed. Currently deploys services to Cloud
      +     * Run (fully managed).
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + */ + public Builder setServiceConfig( + com.google.cloud.functions.v2.ServiceConfig.Builder builderForValue) { + if (serviceConfigBuilder_ == null) { + serviceConfig_ = builderForValue.build(); + onChanged(); + } else { + serviceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * Describes the Service being deployed. Currently deploys services to Cloud
      +     * Run (fully managed).
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + */ + public Builder mergeServiceConfig(com.google.cloud.functions.v2.ServiceConfig value) { + if (serviceConfigBuilder_ == null) { + if (serviceConfig_ != null) { + serviceConfig_ = + com.google.cloud.functions.v2.ServiceConfig.newBuilder(serviceConfig_).mergeFrom(value).buildPartial(); + } else { + serviceConfig_ = value; + } + onChanged(); + } else { + serviceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * Describes the Service being deployed. Currently deploys services to Cloud
      +     * Run (fully managed).
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + */ + public Builder clearServiceConfig() { + if (serviceConfigBuilder_ == null) { + serviceConfig_ = null; + onChanged(); + } else { + serviceConfig_ = null; + serviceConfigBuilder_ = null; + } + + return this; + } + /** + *
      +     * Describes the Service being deployed. Currently deploys services to Cloud
      +     * Run (fully managed).
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + */ + public com.google.cloud.functions.v2.ServiceConfig.Builder getServiceConfigBuilder() { + + onChanged(); + return getServiceConfigFieldBuilder().getBuilder(); + } + /** + *
      +     * Describes the Service being deployed. Currently deploys services to Cloud
      +     * Run (fully managed).
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + */ + public com.google.cloud.functions.v2.ServiceConfigOrBuilder getServiceConfigOrBuilder() { + if (serviceConfigBuilder_ != null) { + return serviceConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceConfig_ == null ? + com.google.cloud.functions.v2.ServiceConfig.getDefaultInstance() : serviceConfig_; + } + } + /** + *
      +     * Describes the Service being deployed. Currently deploys services to Cloud
      +     * Run (fully managed).
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.ServiceConfig, com.google.cloud.functions.v2.ServiceConfig.Builder, com.google.cloud.functions.v2.ServiceConfigOrBuilder> + getServiceConfigFieldBuilder() { + if (serviceConfigBuilder_ == null) { + serviceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.ServiceConfig, com.google.cloud.functions.v2.ServiceConfig.Builder, com.google.cloud.functions.v2.ServiceConfigOrBuilder>( + getServiceConfig(), + getParentForChildren(), + isClean()); + serviceConfig_ = null; + } + return serviceConfigBuilder_; + } + + private com.google.cloud.functions.v2.EventTrigger eventTrigger_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.EventTrigger, com.google.cloud.functions.v2.EventTrigger.Builder, com.google.cloud.functions.v2.EventTriggerOrBuilder> eventTriggerBuilder_; + /** + *
      +     * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +     * response to a condition in another service.
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + * @return Whether the eventTrigger field is set. + */ + public boolean hasEventTrigger() { + return eventTriggerBuilder_ != null || eventTrigger_ != null; + } + /** + *
      +     * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +     * response to a condition in another service.
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + * @return The eventTrigger. + */ + public com.google.cloud.functions.v2.EventTrigger getEventTrigger() { + if (eventTriggerBuilder_ == null) { + return eventTrigger_ == null ? com.google.cloud.functions.v2.EventTrigger.getDefaultInstance() : eventTrigger_; + } else { + return eventTriggerBuilder_.getMessage(); + } + } + /** + *
      +     * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +     * response to a condition in another service.
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + */ + public Builder setEventTrigger(com.google.cloud.functions.v2.EventTrigger value) { + if (eventTriggerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTrigger_ = value; + onChanged(); + } else { + eventTriggerBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +     * response to a condition in another service.
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + */ + public Builder setEventTrigger( + com.google.cloud.functions.v2.EventTrigger.Builder builderForValue) { + if (eventTriggerBuilder_ == null) { + eventTrigger_ = builderForValue.build(); + onChanged(); + } else { + eventTriggerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +     * response to a condition in another service.
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + */ + public Builder mergeEventTrigger(com.google.cloud.functions.v2.EventTrigger value) { + if (eventTriggerBuilder_ == null) { + if (eventTrigger_ != null) { + eventTrigger_ = + com.google.cloud.functions.v2.EventTrigger.newBuilder(eventTrigger_).mergeFrom(value).buildPartial(); + } else { + eventTrigger_ = value; + } + onChanged(); + } else { + eventTriggerBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +     * response to a condition in another service.
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + */ + public Builder clearEventTrigger() { + if (eventTriggerBuilder_ == null) { + eventTrigger_ = null; + onChanged(); + } else { + eventTrigger_ = null; + eventTriggerBuilder_ = null; + } + + return this; + } + /** + *
      +     * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +     * response to a condition in another service.
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + */ + public com.google.cloud.functions.v2.EventTrigger.Builder getEventTriggerBuilder() { + + onChanged(); + return getEventTriggerFieldBuilder().getBuilder(); + } + /** + *
      +     * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +     * response to a condition in another service.
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + */ + public com.google.cloud.functions.v2.EventTriggerOrBuilder getEventTriggerOrBuilder() { + if (eventTriggerBuilder_ != null) { + return eventTriggerBuilder_.getMessageOrBuilder(); + } else { + return eventTrigger_ == null ? + com.google.cloud.functions.v2.EventTrigger.getDefaultInstance() : eventTrigger_; + } + } + /** + *
      +     * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +     * response to a condition in another service.
      +     * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.EventTrigger, com.google.cloud.functions.v2.EventTrigger.Builder, com.google.cloud.functions.v2.EventTriggerOrBuilder> + getEventTriggerFieldBuilder() { + if (eventTriggerBuilder_ == null) { + eventTriggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.EventTrigger, com.google.cloud.functions.v2.EventTrigger.Builder, com.google.cloud.functions.v2.EventTriggerOrBuilder>( + getEventTrigger(), + getParentForChildren(), + isClean()); + eventTrigger_ = null; + } + return eventTriggerBuilder_; + } + + private int state_ = 0; + /** + *
      +     * Output only. State of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
      +     * Output only. State of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + *
      +     * Output only. State of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + @java.lang.Override + public com.google.cloud.functions.v2.Function.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.Function.State result = com.google.cloud.functions.v2.Function.State.valueOf(state_); + return result == null ? com.google.cloud.functions.v2.Function.State.UNRECOGNIZED : result; + } + /** + *
      +     * Output only. State of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.functions.v2.Function.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
      +     * Output only. State of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** + *
      +     * Output only. The last update timestamp of a Cloud Function.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + *
      +     * Output only. The last update timestamp of a Cloud Function.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
      +     * Output only. The last update timestamp of a Cloud Function.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * Output only. The last update timestamp of a Cloud Function.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * Output only. The last update timestamp of a Cloud Function.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * Output only. The last update timestamp of a Cloud Function.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
      +     * Output only. The last update timestamp of a Cloud Function.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
      +     * Output only. The last update timestamp of a Cloud Function.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
      +     * Output only. The last update timestamp of a Cloud Function.
      +     * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
      +     * Labels associated with this Cloud Function.
      +     * 
      + * + * map<string, string> labels = 8; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
      +     * Labels associated with this Cloud Function.
      +     * 
      + * + * map<string, string> labels = 8; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
      +     * Labels associated with this Cloud Function.
      +     * 
      + * + * map<string, string> labels = 8; + */ + @java.lang.Override + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
      +     * Labels associated with this Cloud Function.
      +     * 
      + * + * map<string, string> labels = 8; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
      +     * Labels associated with this Cloud Function.
      +     * 
      + * + * map<string, string> labels = 8; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
      +     * Labels associated with this Cloud Function.
      +     * 
      + * + * map<string, string> labels = 8; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
      +     * Labels associated with this Cloud Function.
      +     * 
      + * + * map<string, string> labels = 8; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + + private java.util.List stateMessages_ = + java.util.Collections.emptyList(); + private void ensureStateMessagesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + stateMessages_ = new java.util.ArrayList(stateMessages_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.StateMessage, com.google.cloud.functions.v2.StateMessage.Builder, com.google.cloud.functions.v2.StateMessageOrBuilder> stateMessagesBuilder_; + + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getStateMessagesList() { + if (stateMessagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(stateMessages_); + } else { + return stateMessagesBuilder_.getMessageList(); + } + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getStateMessagesCount() { + if (stateMessagesBuilder_ == null) { + return stateMessages_.size(); + } else { + return stateMessagesBuilder_.getCount(); + } + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.functions.v2.StateMessage getStateMessages(int index) { + if (stateMessagesBuilder_ == null) { + return stateMessages_.get(index); + } else { + return stateMessagesBuilder_.getMessage(index); + } + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStateMessages( + int index, com.google.cloud.functions.v2.StateMessage value) { + if (stateMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateMessagesIsMutable(); + stateMessages_.set(index, value); + onChanged(); + } else { + stateMessagesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setStateMessages( + int index, com.google.cloud.functions.v2.StateMessage.Builder builderForValue) { + if (stateMessagesBuilder_ == null) { + ensureStateMessagesIsMutable(); + stateMessages_.set(index, builderForValue.build()); + onChanged(); + } else { + stateMessagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addStateMessages(com.google.cloud.functions.v2.StateMessage value) { + if (stateMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateMessagesIsMutable(); + stateMessages_.add(value); + onChanged(); + } else { + stateMessagesBuilder_.addMessage(value); + } + return this; + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addStateMessages( + int index, com.google.cloud.functions.v2.StateMessage value) { + if (stateMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateMessagesIsMutable(); + stateMessages_.add(index, value); + onChanged(); + } else { + stateMessagesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addStateMessages( + com.google.cloud.functions.v2.StateMessage.Builder builderForValue) { + if (stateMessagesBuilder_ == null) { + ensureStateMessagesIsMutable(); + stateMessages_.add(builderForValue.build()); + onChanged(); + } else { + stateMessagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addStateMessages( + int index, com.google.cloud.functions.v2.StateMessage.Builder builderForValue) { + if (stateMessagesBuilder_ == null) { + ensureStateMessagesIsMutable(); + stateMessages_.add(index, builderForValue.build()); + onChanged(); + } else { + stateMessagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addAllStateMessages( + java.lang.Iterable values) { + if (stateMessagesBuilder_ == null) { + ensureStateMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stateMessages_); + onChanged(); + } else { + stateMessagesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearStateMessages() { + if (stateMessagesBuilder_ == null) { + stateMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + stateMessagesBuilder_.clear(); + } + return this; + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeStateMessages(int index) { + if (stateMessagesBuilder_ == null) { + ensureStateMessagesIsMutable(); + stateMessages_.remove(index); + onChanged(); + } else { + stateMessagesBuilder_.remove(index); + } + return this; + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.functions.v2.StateMessage.Builder getStateMessagesBuilder( + int index) { + return getStateMessagesFieldBuilder().getBuilder(index); + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder( + int index) { + if (stateMessagesBuilder_ == null) { + return stateMessages_.get(index); } else { + return stateMessagesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getStateMessagesOrBuilderList() { + if (stateMessagesBuilder_ != null) { + return stateMessagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stateMessages_); + } + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilder() { + return getStateMessagesFieldBuilder().addBuilder( + com.google.cloud.functions.v2.StateMessage.getDefaultInstance()); + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilder( + int index) { + return getStateMessagesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2.StateMessage.getDefaultInstance()); + } + /** + *
      +     * Output only. State Messages for this Cloud Function.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getStateMessagesBuilderList() { + return getStateMessagesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.StateMessage, com.google.cloud.functions.v2.StateMessage.Builder, com.google.cloud.functions.v2.StateMessageOrBuilder> + getStateMessagesFieldBuilder() { + if (stateMessagesBuilder_ == null) { + stateMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.StateMessage, com.google.cloud.functions.v2.StateMessage.Builder, com.google.cloud.functions.v2.StateMessageOrBuilder>( + stateMessages_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + stateMessages_ = null; + } + return stateMessagesBuilder_; + } + @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.Function) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.Function) + private static final com.google.cloud.functions.v2.Function DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.Function(); + } + + public static com.google.cloud.functions.v2.Function getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Function parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Function(input, extensionRegistry); + } + }; + + 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.Function getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionName.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionName.java new file mode 100644 index 00000000..e632262a --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionName.java @@ -0,0 +1,223 @@ +/* + * 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.v2; + +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 FunctionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FUNCTION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/functions/{function}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String function; + + @Deprecated + protected FunctionName() { + project = null; + location = null; + function = null; + } + + private FunctionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + function = Preconditions.checkNotNull(builder.getFunction()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFunction() { + return function; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FunctionName of(String project, String location, String function) { + return newBuilder().setProject(project).setLocation(location).setFunction(function).build(); + } + + public static String format(String project, String location, String function) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFunction(function) + .build() + .toString(); + } + + public static FunctionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_FUNCTION.validatedMatch( + formattedString, "FunctionName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("function")); + } + + 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 (FunctionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FUNCTION.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 (function != null) { + fieldMapBuilder.put("function", function); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_FUNCTION.instantiate( + "project", project, "location", location, "function", function); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + FunctionName that = ((FunctionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.function, that.function); + } + 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(function); + return h; + } + + /** Builder for projects/{project}/locations/{location}/functions/{function}. */ + public static class Builder { + private String project; + private String location; + private String function; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFunction() { + return function; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFunction(String function) { + this.function = function; + return this; + } + + private Builder(FunctionName functionName) { + this.project = functionName.project; + this.location = functionName.location; + this.function = functionName.function; + } + + public FunctionName build() { + return new FunctionName(this); + } + } +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java new file mode 100644 index 00000000..5472996a --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java @@ -0,0 +1,306 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface FunctionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.Function) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * A user-defined name of the function. Function names must be unique
      +   * globally and match pattern `projects/*/locations/*/functions/*`
      +   * 
      + * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
      +   * A user-defined name of the function. Function names must be unique
      +   * globally and match pattern `projects/*/locations/*/functions/*`
      +   * 
      + * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
      +   * Describe whether the function is gen1 or gen2.
      +   * 
      + * + * .google.cloud.functions.v2.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.v2.Environment environment = 10; + * @return The environment. + */ + com.google.cloud.functions.v2.Environment getEnvironment(); + + /** + *
      +   * User-provided description of a function.
      +   * 
      + * + * string description = 2; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
      +   * User-provided description of a function.
      +   * 
      + * + * string description = 2; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
      +   * Describes the Build step of the function that builds a container from the
      +   * given source.
      +   * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + * @return Whether the buildConfig field is set. + */ + boolean hasBuildConfig(); + /** + *
      +   * Describes the Build step of the function that builds a container from the
      +   * given source.
      +   * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + * @return The buildConfig. + */ + com.google.cloud.functions.v2.BuildConfig getBuildConfig(); + /** + *
      +   * Describes the Build step of the function that builds a container from the
      +   * given source.
      +   * 
      + * + * .google.cloud.functions.v2.BuildConfig build_config = 3; + */ + com.google.cloud.functions.v2.BuildConfigOrBuilder getBuildConfigOrBuilder(); + + /** + *
      +   * Describes the Service being deployed. Currently deploys services to Cloud
      +   * Run (fully managed).
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + * @return Whether the serviceConfig field is set. + */ + boolean hasServiceConfig(); + /** + *
      +   * Describes the Service being deployed. Currently deploys services to Cloud
      +   * Run (fully managed).
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + * @return The serviceConfig. + */ + com.google.cloud.functions.v2.ServiceConfig getServiceConfig(); + /** + *
      +   * Describes the Service being deployed. Currently deploys services to Cloud
      +   * Run (fully managed).
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig service_config = 4; + */ + com.google.cloud.functions.v2.ServiceConfigOrBuilder getServiceConfigOrBuilder(); + + /** + *
      +   * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +   * response to a condition in another service.
      +   * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + * @return Whether the eventTrigger field is set. + */ + boolean hasEventTrigger(); + /** + *
      +   * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +   * response to a condition in another service.
      +   * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + * @return The eventTrigger. + */ + com.google.cloud.functions.v2.EventTrigger getEventTrigger(); + /** + *
      +   * An Eventarc trigger managed by Google Cloud Functions that fires events in
      +   * response to a condition in another service.
      +   * 
      + * + * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + */ + com.google.cloud.functions.v2.EventTriggerOrBuilder getEventTriggerOrBuilder(); + + /** + *
      +   * Output only. State of the function.
      +   * 
      + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + *
      +   * Output only. State of the function.
      +   * 
      + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + com.google.cloud.functions.v2.Function.State getState(); + + /** + *
      +   * Output only. The last update timestamp of a Cloud Function.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + *
      +   * Output only. The last update timestamp of a Cloud Function.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
      +   * Output only. The last update timestamp of a Cloud Function.
      +   * 
      + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
      +   * Labels associated with this Cloud Function.
      +   * 
      + * + * map<string, string> labels = 8; + */ + int getLabelsCount(); + /** + *
      +   * Labels associated with this Cloud Function.
      +   * 
      + * + * map<string, string> labels = 8; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
      +   * Labels associated with this Cloud Function.
      +   * 
      + * + * map<string, string> labels = 8; + */ + java.util.Map + getLabelsMap(); + /** + *
      +   * Labels associated with this Cloud Function.
      +   * 
      + * + * map<string, string> labels = 8; + */ + + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
      +   * Labels associated with this Cloud Function.
      +   * 
      + * + * map<string, string> labels = 8; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
      +   * Output only. State Messages for this Cloud Function.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getStateMessagesList(); + /** + *
      +   * Output only. State Messages for this Cloud Function.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.functions.v2.StateMessage getStateMessages(int index); + /** + *
      +   * Output only. State Messages for this Cloud Function.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getStateMessagesCount(); + /** + *
      +   * Output only. State Messages for this Cloud Function.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getStateMessagesOrBuilderList(); + /** + *
      +   * Output only. State Messages for this Cloud Function.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder( + int index); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java new file mode 100644 index 00000000..6d6fa3b3 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java @@ -0,0 +1,648 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public final class FunctionsProto { + private FunctionsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_Function_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_Function_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_Function_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_Function_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_StateMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_StateMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_StorageSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_StorageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_RepoSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_RepoSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_Source_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_Source_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_SourceProvenance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_SourceProvenance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_BuildConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_BuildConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ServiceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ServiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_SecretEnvVar_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_SecretVolume_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_SecretVolume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_EventTrigger_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_EventTrigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_EventFilter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_EventFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_GetFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ListFunctionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ListFunctionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_CreateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_UpdateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_DeleteFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ListRuntimesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_Stage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_Stage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/functions/v2/functions.pr" + + "oto\022\031google.cloud.functions.v2\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032#google/longru" + + "nning/operations.proto\032\031google/protobuf/" + + "any.proto\032 google/protobuf/field_mask.pr" + + "oto\032\037google/protobuf/timestamp.proto\"\267\006\n" + + "\010Function\022\014\n\004name\030\001 \001(\t\022;\n\013environment\030\n" + + " \001(\0162&.google.cloud.functions.v2.Environ" + + "ment\022\023\n\013description\030\002 \001(\t\022<\n\014build_confi" + + "g\030\003 \001(\0132&.google.cloud.functions.v2.Buil" + + "dConfig\022@\n\016service_config\030\004 \001(\0132(.google" + + ".cloud.functions.v2.ServiceConfig\022>\n\reve" + + "nt_trigger\030\005 \001(\0132\'.google.cloud.function" + + "s.v2.EventTrigger\022=\n\005state\030\006 \001(\0162).googl" + + "e.cloud.functions.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.functions.v2.Function.LabelsEntry\022" + + "D\n\016state_messages\030\t \003(\0132\'.google.cloud.f" + + "unctions.v2.StateMessageB\003\340A\003\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\005" + + "State\022\025\n\021STATE_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\007UNKNOWN\020\005:~\352A{\n&cloudfunctions.goog" + + "leapis.com/Function\022\n\013worker_pool\030\005 \001(\tB)\372A&\n$cloudbuild.go" + + "ogleapis.com/WorkerPool\022_\n\025environment_v" + + "ariables\030\006 \003(\0132@.google.cloud.functions." + + "v2.BuildConfig.EnvironmentVariablesEntry" + + "\022M\n\021docker_repository\030\007 \001(\tB2\340A\001\372A,\n*art" + + "ifactregistry.googleapis.com/Repository\032" + + ";\n\031EnvironmentVariablesEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\300\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\020" + + "available_memory\030\r \001(\t\022a\n\025environment_va" + + "riables\030\004 \003(\0132B.google.cloud.functions.v" + + "2.ServiceConfig.EnvironmentVariablesEntr" + + "y\022\032\n\022max_instance_count\030\005 \001(\005\022\032\n\022min_ins" + + "tance_count\030\014 \001(\005\022>\n\rvpc_connector\030\006 \001(\t" + + "B\'\372A$\n\"vpcaccess.googleapis.com/Connecto" + + "r\022j\n\035vpc_connector_egress_settings\030\007 \001(\016" + + "2C.google.cloud.functions.v2.ServiceConf" + + "ig.VpcConnectorEgressSettings\022R\n\020ingress" + + "_settings\030\010 \001(\01628.google.cloud.functions" + + ".v2.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\022M\n\034secret_environment_variables\030\021 \003(\013" + + "2\'.google.cloud.functions.v2.SecretEnvVa" + + "r\022?\n\016secret_volumes\030\023 \003(\0132\'.google.cloud" + + ".functions.v2.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\032VpcCon" + + "nectorEgressSettings\022-\n)VPC_CONNECTOR_EG" + + "RESS_SETTINGS_UNSPECIFIED\020\000\022\027\n\023PRIVATE_R" + + "ANGES_ONLY\020\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n\017Ingress" + + "Settings\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\014Secre" + + "tEnvVar\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\014Se" + + "cretVolume\022\022\n\nmount_path\030\001 \001(\t\022\022\n\nprojec" + + "t_id\030\002 \001(\t\022\016\n\006secret\030\003 \001(\t\022G\n\010versions\030\004" + + " \003(\01325.google.cloud.functions.v2.SecretV" + + "olume.SecretVersion\032.\n\rSecretVersion\022\017\n\007" + + "version\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\"\205\004\n\014EventTri" + + "gger\0228\n\007trigger\030\001 \001(\tB\'\340A\003\372A!\n\037eventarc." + + "googleapis.com/Trigger\022\026\n\016trigger_region" + + "\030\002 \001(\t\022\027\n\nevent_type\030\003 \001(\tB\003\340A\002\022=\n\revent" + + "_filters\030\004 \003(\0132&.google.cloud.functions." + + "v2.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\022N\n\014retry_p" + + "olicy\030\007 \001(\01623.google.cloud.functions.v2." + + "EventTrigger.RetryPolicyB\003\340A\001\0228\n\007channel" + + "\030\010 \001(\tB\'\340A\001\372A!\n\037eventarc.googleapis.com/" + + "Channel\"b\n\013RetryPolicy\022\034\n\030RETRY_POLICY_U" + + "NSPECIFIED\020\000\022\035\n\031RETRY_POLICY_DO_NOT_RETR" + + "Y\020\001\022\026\n\022RETRY_POLICY_RETRY\020\002\"P\n\013EventFilt" + + "er\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\022GetFunc" + + "tionRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&cloud" + + "functions.googleapis.com/Function\"\237\001\n\024Li" + + "stFunctionsRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372" + + "A(\022&cloudfunctions.googleapis.com/Functi" + + "on\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\025L" + + "istFunctionsResponse\0226\n\tfunctions\030\001 \003(\0132" + + "#.google.cloud.functions.v2.Function\022\027\n\017" + + "next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003" + + "(\t\"\243\001\n\025CreateFunctionRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022:\n\010function\030\002 \001(\0132#.google.cloud" + + ".functions.v2.FunctionB\003\340A\002\022\023\n\013function_" + + "id\030\003 \001(\t\"\204\001\n\025UpdateFunctionRequest\022:\n\010fu" + + "nction\030\001 \001(\0132#.google.cloud.functions.v2" + + ".FunctionB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMask\"U\n\025DeleteFunctio" + + "nRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&cloudfun" + + "ctions.googleapis.com/Function\"U\n\030Genera" + + "teUploadUrlRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" + + "A#\n!locations.googleapis.com/Location\"q\n" + + "\031GenerateUploadUrlResponse\022\022\n\nupload_url" + + "\030\001 \001(\t\022@\n\016storage_source\030\002 \001(\0132(.google." + + "cloud.functions.v2.StorageSource\"Z\n\032Gene" + + "rateDownloadUrlRequest\022<\n\004name\030\001 \001(\tB.\340A" + + "\002\372A(\n&cloudfunctions.googleapis.com/Func" + + "tion\"3\n\033GenerateDownloadUrlResponse\022\024\n\014d" + + "ownload_url\030\001 \001(\t\"`\n\023ListRuntimesRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + + "leapis.com/Location\022\016\n\006filter\030\002 \001(\t\"\256\003\n\024" + + "ListRuntimesResponse\022I\n\010runtimes\030\001 \003(\01327" + + ".google.cloud.functions.v2.ListRuntimesR" + + "esponse.Runtime\032\311\001\n\007Runtime\022\014\n\004name\030\001 \001(" + + "\t\022\024\n\014display_name\030\005 \001(\t\022K\n\005stage\030\002 \001(\0162<" + + ".google.cloud.functions.v2.ListRuntimesR" + + "esponse.RuntimeStage\022\020\n\010warnings\030\003 \003(\t\022;" + + "\n\013environment\030\004 \001(\0162&.google.cloud.funct" + + "ions.v2.Environment\"\177\n\014RuntimeStage\022\035\n\031R" + + "UNTIME_STAGE_UNSPECIFIED\020\000\022\017\n\013DEVELOPMEN" + + "T\020\001\022\t\n\005ALPHA\020\002\022\010\n\004BETA\020\003\022\006\n\002GA\020\004\022\016\n\nDEPR" + + "ECATED\020\005\022\022\n\016DECOMMISSIONED\020\006\"\270\002\n\021Operati" + + "onMetadata\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\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.google" + + ".protobuf.Any\0220\n\006stages\030\t \003(\0132 .google.c" + + "loud.functions.v2.Stage\"\304\003\n\005Stage\0223\n\004nam" + + "e\030\001 \001(\0162%.google.cloud.functions.v2.Stag" + + "e.Name\022\017\n\007message\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_messages\030\006 \003(\0132\'.google.cloud.fu" + + "nctions.v2.StateMessage\"\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\007SERVICE\020\003\022\013\n\007TRIGGER\020\004\022\024\n\020SE" + + "RVICE_ROLLBACK\020\005\022\024\n\020TRIGGER_ROLLBACK\020\006\"N" + + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013NOT_ST" + + "ARTED\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\017FunctionSer" + + "vice\022\237\001\n\013GetFunction\022-.google.cloud.func" + + "tions.v2.GetFunctionRequest\032#.google.clo" + + "ud.functions.v2.Function\"<\202\323\344\223\002/\022-/v2/{n" + + "ame=projects/*/locations/*/functions/*}\332" + + "A\004name\022\262\001\n\rListFunctions\022/.google.cloud." + + "functions.v2.ListFunctionsRequest\0320.goog" + + "le.cloud.functions.v2.ListFunctionsRespo" + + "nse\">\202\323\344\223\002/\022-/v2/{parent=projects/*/loca" + + "tions/*}/functions\332A\006parent\022\225\002\n\016CreateFu" + + "nction\0220.google.cloud.functions.v2.Creat" + + "eFunctionRequest\032\035.google.longrunning.Op" + + "eration\"\261\001\202\323\344\223\0029\"-/v2/{parent=projects/*" + + "/locations/*}/functions:\010function\332A\033pare" + + "nt,function,function_id\312AQ\n\"google.cloud" + + ".functions.v2.Function\022+google.cloud.fun" + + "ctions.v2.OperationMetadata\022\227\002\n\016UpdateFu" + + "nction\0220.google.cloud.functions.v2.Updat" + + "eFunctionRequest\032\035.google.longrunning.Op" + + "eration\"\263\001\202\323\344\223\002B26/v2/{function.name=pro" + + "jects/*/locations/*/functions/*}:\010functi" + + "on\332A\024function,update_mask\312AQ\n\"google.clo" + + "ud.functions.v2.Function\022+google.cloud.f" + + "unctions.v2.OperationMetadata\022\347\001\n\016Delete" + + "Function\0220.google.cloud.functions.v2.Del" + + "eteFunctionRequest\032\035.google.longrunning." + + "Operation\"\203\001\202\323\344\223\002/*-/v2/{name=projects/*" + + "/locations/*/functions/*}\332A\004name\312AD\n\025goo" + + "gle.protobuf.Empty\022+google.cloud.functio" + + "ns.v2.OperationMetadata\022\312\001\n\021GenerateUplo" + + "adUrl\0223.google.cloud.functions.v2.Genera" + + "teUploadUrlRequest\0324.google.cloud.functi" + + "ons.v2.GenerateUploadUrlResponse\"J\202\323\344\223\002D" + + "\"?/v2/{parent=projects/*/locations/*}/fu" + + "nctions:generateUploadUrl:\001*\022\322\001\n\023Generat" + + "eDownloadUrl\0225.google.cloud.functions.v2" + + ".GenerateDownloadUrlRequest\0326.google.clo" + + "ud.functions.v2.GenerateDownloadUrlRespo" + + "nse\"L\202\323\344\223\002F\"A/v2/{name=projects/*/locati" + + "ons/*/functions/*}:generateDownloadUrl:\001" + + "*\022\256\001\n\014ListRuntimes\022..google.cloud.functi" + + "ons.v2.ListRuntimesRequest\032/.google.clou" + + "d.functions.v2.ListRuntimesResponse\"=\202\323\344" + + "\223\002.\022,/v2/{parent=projects/*/locations/*}" + + "/runtimes\332A\006parent\032Q\312A\035cloudfunctions.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\365\007\n\035com.google.clo" + + "ud.functions.v2B\016FunctionsProtoP\001ZBgoogl" + + "e.golang.org/genproto/googleapis/cloud/f" + + "unctions/v2;functions\242\002\003GCF\352Ao\n*artifact" + + "registry.googleapis.com/Repository\022Aproj" + + "ects/{project}/locations/{location}/repo" + + "sitories/{repository}\352AY\n\037cloudbuild.goo" + + "gleapis.com/Build\0226projects/{project}/lo" + + "cations/{location}/builds/{build}\352Ai\n$cl" + + "oudbuild.googleapis.com/WorkerPool\022Aproj" + + "ects/{project}/locations/{location}/work" + + "erPools/{worker_pool}\352AX\n\032run.googleapis" + + ".com/Service\022:projects/{project}/locatio" + + "ns/{location}/services/{service}\352Ad\n\"vpc" + + "access.googleapis.com/Connector\022>project" + + "s/{project}/locations/{location}/connect" + + "ors/{connector}\352A]\n\037eventarc.googleapis." + + "com/Trigger\022:projects/{project}/location" + + "s/{location}/triggers/{trigger}\352A]\n\037even" + + "tarc.googleapis.com/Channel\022:projects/{p" + + "roject}/locations/{location}/channels/{c" + + "hannel}\352A@\n\033pubsub.googleapis.com/Topic\022" + + "!projects/{project}/topics/{topic}\352Ax\n!c" + + "loudkms.googleapis.com/CryptoKey\022Sprojec" + + "ts/{project}/locations/{location}/keyRin" + + "gs/{key_ring}/cryptoKeys/{crypto_key}b\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_functions_v2_Function_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_functions_v2_Function_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_Function_descriptor, + new java.lang.String[] { "Name", "Environment", "Description", "BuildConfig", "ServiceConfig", "EventTrigger", "State", "UpdateTime", "Labels", "StateMessages", }); + internal_static_google_cloud_functions_v2_Function_LabelsEntry_descriptor = + internal_static_google_cloud_functions_v2_Function_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2_Function_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_Function_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_functions_v2_StateMessage_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_functions_v2_StateMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_StateMessage_descriptor, + new java.lang.String[] { "Severity", "Type", "Message", }); + internal_static_google_cloud_functions_v2_StorageSource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_functions_v2_StorageSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_StorageSource_descriptor, + new java.lang.String[] { "Bucket", "Object", "Generation", }); + internal_static_google_cloud_functions_v2_RepoSource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_functions_v2_RepoSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_RepoSource_descriptor, + new java.lang.String[] { "BranchName", "TagName", "CommitSha", "ProjectId", "RepoName", "Dir", "InvertRegex", "Revision", }); + internal_static_google_cloud_functions_v2_Source_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_functions_v2_Source_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_Source_descriptor, + new java.lang.String[] { "StorageSource", "RepoSource", "Source", }); + internal_static_google_cloud_functions_v2_SourceProvenance_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_functions_v2_SourceProvenance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_SourceProvenance_descriptor, + new java.lang.String[] { "ResolvedStorageSource", "ResolvedRepoSource", }); + internal_static_google_cloud_functions_v2_BuildConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_functions_v2_BuildConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_BuildConfig_descriptor, + new java.lang.String[] { "Build", "Runtime", "EntryPoint", "Source", "SourceProvenance", "WorkerPool", "EnvironmentVariables", "DockerRepository", }); + internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v2_BuildConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_functions_v2_ServiceConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_functions_v2_ServiceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ServiceConfig_descriptor, + new java.lang.String[] { "Service", "TimeoutSeconds", "AvailableMemory", "EnvironmentVariables", "MaxInstanceCount", "MinInstanceCount", "VpcConnector", "VpcConnectorEgressSettings", "IngressSettings", "Uri", "ServiceAccountEmail", "AllTrafficOnLatestRevision", "SecretEnvironmentVariables", "SecretVolumes", "Revision", }); + internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v2_ServiceConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_functions_v2_SecretEnvVar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor, + new java.lang.String[] { "Key", "ProjectId", "Secret", "Version", }); + internal_static_google_cloud_functions_v2_SecretVolume_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_functions_v2_SecretVolume_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_SecretVolume_descriptor, + new java.lang.String[] { "MountPath", "ProjectId", "Secret", "Versions", }); + internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_descriptor = + internal_static_google_cloud_functions_v2_SecretVolume_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_descriptor, + new java.lang.String[] { "Version", "Path", }); + internal_static_google_cloud_functions_v2_EventTrigger_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_functions_v2_EventTrigger_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_EventTrigger_descriptor, + new java.lang.String[] { "Trigger", "TriggerRegion", "EventType", "EventFilters", "PubsubTopic", "ServiceAccountEmail", "RetryPolicy", "Channel", }); + internal_static_google_cloud_functions_v2_EventFilter_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_functions_v2_EventFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_EventFilter_descriptor, + new java.lang.String[] { "Attribute", "Value", "Operator", }); + internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_functions_v2_GetFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_functions_v2_ListFunctionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_functions_v2_ListFunctionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor, + new java.lang.String[] { "Functions", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_functions_v2_CreateFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor, + new java.lang.String[] { "Parent", "Function", "FunctionId", }); + internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_functions_v2_UpdateFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor, + new java.lang.String[] { "Function", "UpdateMask", }); + internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_functions_v2_DeleteFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor, + new java.lang.String[] { "UploadUrl", "StorageSource", }); + internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor, + new java.lang.String[] { "DownloadUrl", }); + internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_functions_v2_ListRuntimesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", }); + internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor, + new java.lang.String[] { "Runtimes", }); + internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor = + internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Stage", "Warnings", "Environment", }); + internal_static_google_cloud_functions_v2_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_functions_v2_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", "RequestResource", "Stages", }); + internal_static_google_cloud_functions_v2_Stage_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_functions_v2_Stage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_Stage_descriptor, + new java.lang.String[] { "Name", "Message", "State", "Resource", "ResourceUri", "StateMessages", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java new file mode 100644 index 00000000..c1474288 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java @@ -0,0 +1,602 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Request of `GenerateDownloadUrl` method.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.GenerateDownloadUrlRequest} + */ +public final class GenerateDownloadUrlRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.GenerateDownloadUrlRequest) + GenerateDownloadUrlRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GenerateDownloadUrlRequest.newBuilder() to construct. + private GenerateDownloadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerateDownloadUrlRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerateDownloadUrlRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GenerateDownloadUrlRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v2.GenerateDownloadUrlRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
      +   * 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) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
      +   * 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) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.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.GenerateDownloadUrlRequest)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.GenerateDownloadUrlRequest other = (com.google.cloud.functions.v2.GenerateDownloadUrlRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest 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.GenerateDownloadUrlRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest 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.GenerateDownloadUrlRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest 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.GenerateDownloadUrlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest 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.GenerateDownloadUrlRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest 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.GenerateDownloadUrlRequest 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.GenerateDownloadUrlRequest 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.GenerateDownloadUrlRequest 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; + } + /** + *
      +   * Request of `GenerateDownloadUrl` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.GenerateDownloadUrlRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.GenerateDownloadUrlRequest) + com.google.cloud.functions.v2.GenerateDownloadUrlRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v2.GenerateDownloadUrlRequest.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.GenerateDownloadUrlRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + 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_GenerateDownloadUrlRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.GenerateDownloadUrlRequest getDefaultInstanceForType() { + return com.google.cloud.functions.v2.GenerateDownloadUrlRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.GenerateDownloadUrlRequest build() { + com.google.cloud.functions.v2.GenerateDownloadUrlRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.GenerateDownloadUrlRequest buildPartial() { + com.google.cloud.functions.v2.GenerateDownloadUrlRequest result = new com.google.cloud.functions.v2.GenerateDownloadUrlRequest(this); + result.name_ = name_; + onBuilt(); + 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.v2.GenerateDownloadUrlRequest) { + return mergeFrom((com.google.cloud.functions.v2.GenerateDownloadUrlRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.GenerateDownloadUrlRequest other) { + if (other == com.google.cloud.functions.v2.GenerateDownloadUrlRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.GenerateDownloadUrlRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.GenerateDownloadUrlRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
      +     * 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) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = 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.GenerateDownloadUrlRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.GenerateDownloadUrlRequest) + private static final com.google.cloud.functions.v2.GenerateDownloadUrlRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.GenerateDownloadUrlRequest(); + } + + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlRequest(input, extensionRegistry); + } + }; + + 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.GenerateDownloadUrlRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequestOrBuilder.java new file mode 100644 index 00000000..d4574174 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface GenerateDownloadUrlRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.GenerateDownloadUrlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * 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) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
      +   * 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) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java new file mode 100644 index 00000000..5b29a4f6 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java @@ -0,0 +1,602 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Response of `GenerateDownloadUrl` method.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.GenerateDownloadUrlResponse} + */ +public final class GenerateDownloadUrlResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.GenerateDownloadUrlResponse) + GenerateDownloadUrlResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use GenerateDownloadUrlResponse.newBuilder() to construct. + private GenerateDownloadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerateDownloadUrlResponse() { + downloadUrl_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerateDownloadUrlResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GenerateDownloadUrlResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + downloadUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v2.GenerateDownloadUrlResponse.Builder.class); + } + + public static final int DOWNLOAD_URL_FIELD_NUMBER = 1; + private volatile java.lang.Object downloadUrl_; + /** + *
      +   * The generated Google Cloud Storage signed URL that should be used for
      +   * function source code download.
      +   * 
      + * + * string download_url = 1; + * @return The downloadUrl. + */ + @java.lang.Override + public java.lang.String getDownloadUrl() { + java.lang.Object ref = downloadUrl_; + 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(); + downloadUrl_ = s; + return s; + } + } + /** + *
      +   * The generated Google Cloud Storage signed URL that should be used for
      +   * function source code download.
      +   * 
      + * + * string download_url = 1; + * @return The bytes for downloadUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDownloadUrlBytes() { + java.lang.Object ref = downloadUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + downloadUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(downloadUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, downloadUrl_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(downloadUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, downloadUrl_); + } + size += unknownFields.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.GenerateDownloadUrlResponse)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.GenerateDownloadUrlResponse other = (com.google.cloud.functions.v2.GenerateDownloadUrlResponse) obj; + + if (!getDownloadUrl() + .equals(other.getDownloadUrl())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DOWNLOAD_URL_FIELD_NUMBER; + hash = (53 * hash) + getDownloadUrl().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse 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.GenerateDownloadUrlResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse 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.GenerateDownloadUrlResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse 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.GenerateDownloadUrlResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse 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.GenerateDownloadUrlResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse 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.GenerateDownloadUrlResponse 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.GenerateDownloadUrlResponse 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.GenerateDownloadUrlResponse 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; + } + /** + *
      +   * Response of `GenerateDownloadUrl` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.GenerateDownloadUrlResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.GenerateDownloadUrlResponse) + com.google.cloud.functions.v2.GenerateDownloadUrlResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v2.GenerateDownloadUrlResponse.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.GenerateDownloadUrlResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + downloadUrl_ = ""; + + 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_GenerateDownloadUrlResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.GenerateDownloadUrlResponse getDefaultInstanceForType() { + return com.google.cloud.functions.v2.GenerateDownloadUrlResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.GenerateDownloadUrlResponse build() { + com.google.cloud.functions.v2.GenerateDownloadUrlResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.GenerateDownloadUrlResponse buildPartial() { + com.google.cloud.functions.v2.GenerateDownloadUrlResponse result = new com.google.cloud.functions.v2.GenerateDownloadUrlResponse(this); + result.downloadUrl_ = downloadUrl_; + onBuilt(); + 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.v2.GenerateDownloadUrlResponse) { + return mergeFrom((com.google.cloud.functions.v2.GenerateDownloadUrlResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.GenerateDownloadUrlResponse other) { + if (other == com.google.cloud.functions.v2.GenerateDownloadUrlResponse.getDefaultInstance()) return this; + if (!other.getDownloadUrl().isEmpty()) { + downloadUrl_ = other.downloadUrl_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.GenerateDownloadUrlResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.GenerateDownloadUrlResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object downloadUrl_ = ""; + /** + *
      +     * The generated Google Cloud Storage signed URL that should be used for
      +     * function source code download.
      +     * 
      + * + * string download_url = 1; + * @return The downloadUrl. + */ + public java.lang.String getDownloadUrl() { + java.lang.Object ref = downloadUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + downloadUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * The generated Google Cloud Storage signed URL that should be used for
      +     * function source code download.
      +     * 
      + * + * string download_url = 1; + * @return The bytes for downloadUrl. + */ + public com.google.protobuf.ByteString + getDownloadUrlBytes() { + java.lang.Object ref = downloadUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + downloadUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * The generated Google Cloud Storage signed URL that should be used for
      +     * function source code download.
      +     * 
      + * + * string download_url = 1; + * @param value The downloadUrl to set. + * @return This builder for chaining. + */ + public Builder setDownloadUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + downloadUrl_ = value; + onChanged(); + return this; + } + /** + *
      +     * The generated Google Cloud Storage signed URL that should be used for
      +     * function source code download.
      +     * 
      + * + * string download_url = 1; + * @return This builder for chaining. + */ + public Builder clearDownloadUrl() { + + downloadUrl_ = getDefaultInstance().getDownloadUrl(); + onChanged(); + return this; + } + /** + *
      +     * The generated Google Cloud Storage signed URL that should be used for
      +     * function source code download.
      +     * 
      + * + * string download_url = 1; + * @param value The bytes for downloadUrl to set. + * @return This builder for chaining. + */ + public Builder setDownloadUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + downloadUrl_ = 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.GenerateDownloadUrlResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.GenerateDownloadUrlResponse) + private static final com.google.cloud.functions.v2.GenerateDownloadUrlResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.GenerateDownloadUrlResponse(); + } + + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlResponse(input, extensionRegistry); + } + }; + + 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.GenerateDownloadUrlResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponseOrBuilder.java new file mode 100644 index 00000000..9f562c96 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponseOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface GenerateDownloadUrlResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.GenerateDownloadUrlResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * The generated Google Cloud Storage signed URL that should be used for
      +   * function source code download.
      +   * 
      + * + * string download_url = 1; + * @return The downloadUrl. + */ + java.lang.String getDownloadUrl(); + /** + *
      +   * The generated Google Cloud Storage signed URL that should be used for
      +   * function source code download.
      +   * 
      + * + * string download_url = 1; + * @return The bytes for downloadUrl. + */ + com.google.protobuf.ByteString + getDownloadUrlBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java new file mode 100644 index 00000000..0128ad7a --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java @@ -0,0 +1,602 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Request of `GenerateSourceUploadUrl` method.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.GenerateUploadUrlRequest} + */ +public final class GenerateUploadUrlRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.GenerateUploadUrlRequest) + GenerateUploadUrlRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GenerateUploadUrlRequest.newBuilder() to construct. + private GenerateUploadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerateUploadUrlRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerateUploadUrlRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GenerateUploadUrlRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.GenerateUploadUrlRequest.class, com.google.cloud.functions.v2.GenerateUploadUrlRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
      +   * 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + *
      +   * 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += unknownFields.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.GenerateUploadUrlRequest)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.GenerateUploadUrlRequest other = (com.google.cloud.functions.v2.GenerateUploadUrlRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest 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.GenerateUploadUrlRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest 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.GenerateUploadUrlRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest 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.GenerateUploadUrlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest 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.GenerateUploadUrlRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest 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.GenerateUploadUrlRequest 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.GenerateUploadUrlRequest 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.GenerateUploadUrlRequest 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; + } + /** + *
      +   * Request of `GenerateSourceUploadUrl` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.GenerateUploadUrlRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.GenerateUploadUrlRequest) + com.google.cloud.functions.v2.GenerateUploadUrlRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.GenerateUploadUrlRequest.class, com.google.cloud.functions.v2.GenerateUploadUrlRequest.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.GenerateUploadUrlRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + 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_GenerateUploadUrlRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.GenerateUploadUrlRequest getDefaultInstanceForType() { + return com.google.cloud.functions.v2.GenerateUploadUrlRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.GenerateUploadUrlRequest build() { + com.google.cloud.functions.v2.GenerateUploadUrlRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.GenerateUploadUrlRequest buildPartial() { + com.google.cloud.functions.v2.GenerateUploadUrlRequest result = new com.google.cloud.functions.v2.GenerateUploadUrlRequest(this); + result.parent_ = parent_; + onBuilt(); + 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.v2.GenerateUploadUrlRequest) { + return mergeFrom((com.google.cloud.functions.v2.GenerateUploadUrlRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.GenerateUploadUrlRequest other) { + if (other == com.google.cloud.functions.v2.GenerateUploadUrlRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.GenerateUploadUrlRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.GenerateUploadUrlRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
      +     * 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) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = 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.GenerateUploadUrlRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.GenerateUploadUrlRequest) + private static final com.google.cloud.functions.v2.GenerateUploadUrlRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.GenerateUploadUrlRequest(); + } + + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateUploadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateUploadUrlRequest(input, extensionRegistry); + } + }; + + 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.GenerateUploadUrlRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java new file mode 100644 index 00000000..7ed0d5ef --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface GenerateUploadUrlRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.GenerateUploadUrlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * 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) = { ... } + * @return The parent. + */ + 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/*`.
      +   * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java new file mode 100644 index 00000000..0a25b278 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java @@ -0,0 +1,905 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Response of `GenerateSourceUploadUrl` method.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.GenerateUploadUrlResponse} + */ +public final class GenerateUploadUrlResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.GenerateUploadUrlResponse) + GenerateUploadUrlResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use GenerateUploadUrlResponse.newBuilder() to construct. + private GenerateUploadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerateUploadUrlResponse() { + uploadUrl_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerateUploadUrlResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GenerateUploadUrlResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + uploadUrl_ = s; + break; + } + case 18: { + com.google.cloud.functions.v2.StorageSource.Builder subBuilder = null; + if (storageSource_ != null) { + subBuilder = storageSource_.toBuilder(); + } + storageSource_ = input.readMessage(com.google.cloud.functions.v2.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storageSource_); + storageSource_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.GenerateUploadUrlResponse.class, com.google.cloud.functions.v2.GenerateUploadUrlResponse.Builder.class); + } + + public static final int UPLOAD_URL_FIELD_NUMBER = 1; + private volatile java.lang.Object uploadUrl_; + /** + *
      +   * The generated Google Cloud Storage signed URL that should be used for a
      +   * function source code upload. The uploaded file should be a zip archive
      +   * which contains a function.
      +   * 
      + * + * string upload_url = 1; + * @return The uploadUrl. + */ + @java.lang.Override + public java.lang.String getUploadUrl() { + java.lang.Object ref = uploadUrl_; + 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(); + uploadUrl_ = s; + return s; + } + } + /** + *
      +   * The generated Google Cloud Storage signed URL that should be used for a
      +   * function source code upload. The uploaded file should be a zip archive
      +   * which contains a function.
      +   * 
      + * + * string upload_url = 1; + * @return The bytes for uploadUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUploadUrlBytes() { + java.lang.Object ref = uploadUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uploadUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STORAGE_SOURCE_FIELD_NUMBER = 2; + private com.google.cloud.functions.v2.StorageSource 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.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + * @return Whether the storageSource field is set. + */ + @java.lang.Override + public boolean hasStorageSource() { + return storageSource_ != null; + } + /** + *
      +   * 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.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + * @return The storageSource. + */ + @java.lang.Override + public com.google.cloud.functions.v2.StorageSource getStorageSource() { + return storageSource_ == null ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance() : 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.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + */ + @java.lang.Override + public com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBuilder() { + return getStorageSource(); + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadUrl_); + } + if (storageSource_ != null) { + output.writeMessage(2, getStorageSource()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadUrl_); + } + if (storageSource_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStorageSource()); + } + size += unknownFields.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.GenerateUploadUrlResponse)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.GenerateUploadUrlResponse other = (com.google.cloud.functions.v2.GenerateUploadUrlResponse) obj; + + if (!getUploadUrl() + .equals(other.getUploadUrl())) return false; + if (hasStorageSource() != other.hasStorageSource()) return false; + if (hasStorageSource()) { + if (!getStorageSource() + .equals(other.getStorageSource())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + UPLOAD_URL_FIELD_NUMBER; + hash = (53 * hash) + getUploadUrl().hashCode(); + if (hasStorageSource()) { + hash = (37 * hash) + STORAGE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getStorageSource().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.GenerateUploadUrlResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GenerateUploadUrlResponse 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.GenerateUploadUrlResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GenerateUploadUrlResponse 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.GenerateUploadUrlResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GenerateUploadUrlResponse 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.GenerateUploadUrlResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.GenerateUploadUrlResponse 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.GenerateUploadUrlResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.GenerateUploadUrlResponse 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.GenerateUploadUrlResponse 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.GenerateUploadUrlResponse 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.GenerateUploadUrlResponse 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; + } + /** + *
      +   * Response of `GenerateSourceUploadUrl` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.GenerateUploadUrlResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.GenerateUploadUrlResponse) + com.google.cloud.functions.v2.GenerateUploadUrlResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.GenerateUploadUrlResponse.class, com.google.cloud.functions.v2.GenerateUploadUrlResponse.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.GenerateUploadUrlResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + uploadUrl_ = ""; + + if (storageSourceBuilder_ == null) { + storageSource_ = null; + } else { + storageSource_ = null; + storageSourceBuilder_ = null; + } + 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_GenerateUploadUrlResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.GenerateUploadUrlResponse getDefaultInstanceForType() { + return com.google.cloud.functions.v2.GenerateUploadUrlResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.GenerateUploadUrlResponse build() { + com.google.cloud.functions.v2.GenerateUploadUrlResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.GenerateUploadUrlResponse buildPartial() { + com.google.cloud.functions.v2.GenerateUploadUrlResponse result = new com.google.cloud.functions.v2.GenerateUploadUrlResponse(this); + result.uploadUrl_ = uploadUrl_; + if (storageSourceBuilder_ == null) { + result.storageSource_ = storageSource_; + } else { + result.storageSource_ = storageSourceBuilder_.build(); + } + onBuilt(); + 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.v2.GenerateUploadUrlResponse) { + return mergeFrom((com.google.cloud.functions.v2.GenerateUploadUrlResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.GenerateUploadUrlResponse other) { + if (other == com.google.cloud.functions.v2.GenerateUploadUrlResponse.getDefaultInstance()) return this; + if (!other.getUploadUrl().isEmpty()) { + uploadUrl_ = other.uploadUrl_; + onChanged(); + } + if (other.hasStorageSource()) { + mergeStorageSource(other.getStorageSource()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.GenerateUploadUrlResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.GenerateUploadUrlResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uploadUrl_ = ""; + /** + *
      +     * The generated Google Cloud Storage signed URL that should be used for a
      +     * function source code upload. The uploaded file should be a zip archive
      +     * which contains a function.
      +     * 
      + * + * string upload_url = 1; + * @return The uploadUrl. + */ + public java.lang.String getUploadUrl() { + java.lang.Object ref = uploadUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uploadUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * The generated Google Cloud Storage signed URL that should be used for a
      +     * function source code upload. The uploaded file should be a zip archive
      +     * which contains a function.
      +     * 
      + * + * string upload_url = 1; + * @return The bytes for uploadUrl. + */ + public com.google.protobuf.ByteString + getUploadUrlBytes() { + java.lang.Object ref = uploadUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uploadUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * The generated Google Cloud Storage signed URL that should be used for a
      +     * function source code upload. The uploaded file should be a zip archive
      +     * which contains a function.
      +     * 
      + * + * string upload_url = 1; + * @param value The uploadUrl to set. + * @return This builder for chaining. + */ + public Builder setUploadUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uploadUrl_ = value; + onChanged(); + return this; + } + /** + *
      +     * The generated Google Cloud Storage signed URL that should be used for a
      +     * function source code upload. The uploaded file should be a zip archive
      +     * which contains a function.
      +     * 
      + * + * string upload_url = 1; + * @return This builder for chaining. + */ + public Builder clearUploadUrl() { + + uploadUrl_ = getDefaultInstance().getUploadUrl(); + onChanged(); + return this; + } + /** + *
      +     * The generated Google Cloud Storage signed URL that should be used for a
      +     * function source code upload. The uploaded file should be a zip archive
      +     * which contains a function.
      +     * 
      + * + * string upload_url = 1; + * @param value The bytes for uploadUrl to set. + * @return This builder for chaining. + */ + public Builder setUploadUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uploadUrl_ = value; + onChanged(); + return this; + } + + private com.google.cloud.functions.v2.StorageSource storageSource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder> storageSourceBuilder_; + /** + *
      +     * 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.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + * @return Whether the storageSource field is set. + */ + public boolean hasStorageSource() { + return storageSourceBuilder_ != null || storageSource_ != null; + } + /** + *
      +     * 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.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + * @return The storageSource. + */ + public com.google.cloud.functions.v2.StorageSource getStorageSource() { + if (storageSourceBuilder_ == null) { + return storageSource_ == null ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance() : storageSource_; + } else { + return storageSourceBuilder_.getMessage(); + } + } + /** + *
      +     * 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.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + */ + public Builder setStorageSource(com.google.cloud.functions.v2.StorageSource value) { + if (storageSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + storageSource_ = value; + onChanged(); + } else { + storageSourceBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * 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.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + */ + public Builder setStorageSource( + com.google.cloud.functions.v2.StorageSource.Builder builderForValue) { + if (storageSourceBuilder_ == null) { + storageSource_ = builderForValue.build(); + onChanged(); + } else { + storageSourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * 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.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + */ + public Builder mergeStorageSource(com.google.cloud.functions.v2.StorageSource value) { + if (storageSourceBuilder_ == null) { + if (storageSource_ != null) { + storageSource_ = + com.google.cloud.functions.v2.StorageSource.newBuilder(storageSource_).mergeFrom(value).buildPartial(); + } else { + storageSource_ = value; + } + onChanged(); + } else { + storageSourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * 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.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + */ + public Builder clearStorageSource() { + if (storageSourceBuilder_ == null) { + storageSource_ = null; + onChanged(); + } else { + storageSource_ = null; + storageSourceBuilder_ = null; + } + + return this; + } + /** + *
      +     * 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.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + */ + public com.google.cloud.functions.v2.StorageSource.Builder getStorageSourceBuilder() { + + onChanged(); + return getStorageSourceFieldBuilder().getBuilder(); + } + /** + *
      +     * 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.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + */ + public com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBuilder() { + if (storageSourceBuilder_ != null) { + return storageSourceBuilder_.getMessageOrBuilder(); + } else { + return storageSource_ == null ? + com.google.cloud.functions.v2.StorageSource.getDefaultInstance() : 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.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder> + getStorageSourceFieldBuilder() { + if (storageSourceBuilder_ == null) { + storageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder>( + getStorageSource(), + getParentForChildren(), + isClean()); + storageSource_ = null; + } + return storageSourceBuilder_; + } + @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.GenerateUploadUrlResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.GenerateUploadUrlResponse) + private static final com.google.cloud.functions.v2.GenerateUploadUrlResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.GenerateUploadUrlResponse(); + } + + public static com.google.cloud.functions.v2.GenerateUploadUrlResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateUploadUrlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateUploadUrlResponse(input, extensionRegistry); + } + }; + + 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.GenerateUploadUrlResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java new file mode 100644 index 00000000..0f9170b9 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface GenerateUploadUrlResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.GenerateUploadUrlResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * The generated Google Cloud Storage signed URL that should be used for a
      +   * function source code upload. The uploaded file should be a zip archive
      +   * which contains a function.
      +   * 
      + * + * string upload_url = 1; + * @return The uploadUrl. + */ + java.lang.String getUploadUrl(); + /** + *
      +   * The generated Google Cloud Storage signed URL that should be used for a
      +   * function source code upload. The uploaded file should be a zip archive
      +   * which contains a function.
      +   * 
      + * + * string upload_url = 1; + * @return The bytes for uploadUrl. + */ + 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.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + * @return Whether the storageSource field is set. + */ + 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.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + * @return The storageSource. + */ + 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.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 2; + */ + com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBuilder(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java new file mode 100644 index 00000000..88da7f9e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Request for the `GetFunction` method.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.GetFunctionRequest} + */ +public final class GetFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.GetFunctionRequest) + GetFunctionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetFunctionRequest.newBuilder() to construct. + private GetFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetFunctionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetFunctionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetFunctionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GetFunctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.GetFunctionRequest.class, com.google.cloud.functions.v2.GetFunctionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
      +   * Required. The name of the function which details should be obtained.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
      +   * Required. The name of the function which details should be obtained.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.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.GetFunctionRequest)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.GetFunctionRequest other = (com.google.cloud.functions.v2.GetFunctionRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.GetFunctionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GetFunctionRequest 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.GetFunctionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GetFunctionRequest 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.GetFunctionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.GetFunctionRequest 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.GetFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.GetFunctionRequest 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.GetFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.GetFunctionRequest 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.GetFunctionRequest 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.GetFunctionRequest 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.GetFunctionRequest 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; + } + /** + *
      +   * Request for the `GetFunction` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.GetFunctionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.GetFunctionRequest) + com.google.cloud.functions.v2.GetFunctionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GetFunctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.GetFunctionRequest.class, com.google.cloud.functions.v2.GetFunctionRequest.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.GetFunctionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + 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_GetFunctionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.GetFunctionRequest getDefaultInstanceForType() { + return com.google.cloud.functions.v2.GetFunctionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.GetFunctionRequest build() { + com.google.cloud.functions.v2.GetFunctionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.GetFunctionRequest buildPartial() { + com.google.cloud.functions.v2.GetFunctionRequest result = new com.google.cloud.functions.v2.GetFunctionRequest(this); + result.name_ = name_; + onBuilt(); + 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.v2.GetFunctionRequest) { + return mergeFrom((com.google.cloud.functions.v2.GetFunctionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.GetFunctionRequest other) { + if (other == com.google.cloud.functions.v2.GetFunctionRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.GetFunctionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.GetFunctionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
      +     * Required. The name of the function which details should be obtained.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Required. The name of the function which details should be obtained.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Required. The name of the function which details should be obtained.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
      +     * Required. The name of the function which details should be obtained.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
      +     * Required. The name of the function which details should be obtained.
      +     * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = 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.GetFunctionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.GetFunctionRequest) + private static final com.google.cloud.functions.v2.GetFunctionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.GetFunctionRequest(); + } + + public static com.google.cloud.functions.v2.GetFunctionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFunctionRequest(input, extensionRegistry); + } + }; + + 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.GetFunctionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequestOrBuilder.java new file mode 100644 index 00000000..0c5264ab --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface GetFunctionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.GetFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Required. The name of the function which details should be obtained.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
      +   * Required. The name of the function which details should be obtained.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java new file mode 100644 index 00000000..73ead8cb --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java @@ -0,0 +1,1250 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Request for the `ListFunctions` method.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.ListFunctionsRequest} + */ +public final class ListFunctionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ListFunctionsRequest) + ListFunctionsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListFunctionsRequest.newBuilder() to construct. + private ListFunctionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListFunctionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListFunctionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListFunctionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.ListFunctionsRequest.class, com.google.cloud.functions.v2.ListFunctionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
      +   * 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + *
      +   * 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
      +   * Maximum number of functions to return per call.
      +   * 
      + * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
      +   * The value returned by the last
      +   * `ListFunctionsResponse`; indicates that
      +   * this is a continuation of a prior `ListFunctions` call, and that the
      +   * system should return the next page of data.
      +   * 
      + * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + *
      +   * The value returned by the last
      +   * `ListFunctionsResponse`; indicates that
      +   * this is a continuation of a prior `ListFunctions` call, and that the
      +   * system should return the next page of data.
      +   * 
      + * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + *
      +   * The filter for Functions that match the filter expression,
      +   * following the syntax outlined in https://google.aip.dev/160.
      +   * 
      + * + * string filter = 4; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + *
      +   * The filter for Functions that match the filter expression,
      +   * following the syntax outlined in https://google.aip.dev/160.
      +   * 
      + * + * string filter = 4; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + *
      +   * The sorting order of the resources returned. Value should be a comma
      +   * separated list of fields. The default sorting oder is ascending.
      +   * See https://google.aip.dev/132#ordering.
      +   * 
      + * + * string order_by = 5; + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + *
      +   * The sorting order of the resources returned. Value should be a comma
      +   * separated list of fields. The default sorting oder is ascending.
      +   * See https://google.aip.dev/132#ordering.
      +   * 
      + * + * string order_by = 5; + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += unknownFields.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.ListFunctionsRequest)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.ListFunctionsRequest other = (com.google.cloud.functions.v2.ListFunctionsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.ListFunctionsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListFunctionsRequest 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.ListFunctionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListFunctionsRequest 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.ListFunctionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListFunctionsRequest 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.ListFunctionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.ListFunctionsRequest 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.ListFunctionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.ListFunctionsRequest 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.ListFunctionsRequest 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.ListFunctionsRequest 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.ListFunctionsRequest 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; + } + /** + *
      +   * Request for the `ListFunctions` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.ListFunctionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ListFunctionsRequest) + com.google.cloud.functions.v2.ListFunctionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.ListFunctionsRequest.class, com.google.cloud.functions.v2.ListFunctionsRequest.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.ListFunctionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + 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_ListFunctionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListFunctionsRequest getDefaultInstanceForType() { + return com.google.cloud.functions.v2.ListFunctionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListFunctionsRequest build() { + com.google.cloud.functions.v2.ListFunctionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListFunctionsRequest buildPartial() { + com.google.cloud.functions.v2.ListFunctionsRequest result = new com.google.cloud.functions.v2.ListFunctionsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + result.orderBy_ = orderBy_; + onBuilt(); + 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.v2.ListFunctionsRequest) { + return mergeFrom((com.google.cloud.functions.v2.ListFunctionsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.ListFunctionsRequest other) { + if (other == com.google.cloud.functions.v2.ListFunctionsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.ListFunctionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.ListFunctionsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
      +     * 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) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
      +     * Maximum number of functions to return per call.
      +     * 
      + * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
      +     * Maximum number of functions to return per call.
      +     * 
      + * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
      +     * Maximum number of functions to return per call.
      +     * 
      + * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
      +     * The value returned by the last
      +     * `ListFunctionsResponse`; indicates that
      +     * this is a continuation of a prior `ListFunctions` call, and that the
      +     * system should return the next page of data.
      +     * 
      + * + * string page_token = 3; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * The value returned by the last
      +     * `ListFunctionsResponse`; indicates that
      +     * this is a continuation of a prior `ListFunctions` call, and that the
      +     * system should return the next page of data.
      +     * 
      + * + * string page_token = 3; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * The value returned by the last
      +     * `ListFunctionsResponse`; indicates that
      +     * this is a continuation of a prior `ListFunctions` call, and that the
      +     * system should return the next page of data.
      +     * 
      + * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
      +     * The value returned by the last
      +     * `ListFunctionsResponse`; indicates that
      +     * this is a continuation of a prior `ListFunctions` call, and that the
      +     * system should return the next page of data.
      +     * 
      + * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
      +     * The value returned by the last
      +     * `ListFunctionsResponse`; indicates that
      +     * this is a continuation of a prior `ListFunctions` call, and that the
      +     * system should return the next page of data.
      +     * 
      + * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
      +     * The filter for Functions that match the filter expression,
      +     * following the syntax outlined in https://google.aip.dev/160.
      +     * 
      + * + * string filter = 4; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * The filter for Functions that match the filter expression,
      +     * following the syntax outlined in https://google.aip.dev/160.
      +     * 
      + * + * string filter = 4; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * The filter for Functions that match the filter expression,
      +     * following the syntax outlined in https://google.aip.dev/160.
      +     * 
      + * + * string filter = 4; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + *
      +     * The filter for Functions that match the filter expression,
      +     * following the syntax outlined in https://google.aip.dev/160.
      +     * 
      + * + * string filter = 4; + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + *
      +     * The filter for Functions that match the filter expression,
      +     * following the syntax outlined in https://google.aip.dev/160.
      +     * 
      + * + * string filter = 4; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + *
      +     * The sorting order of the resources returned. Value should be a comma
      +     * separated list of fields. The default sorting oder is ascending.
      +     * See https://google.aip.dev/132#ordering.
      +     * 
      + * + * string order_by = 5; + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * The sorting order of the resources returned. Value should be a comma
      +     * separated list of fields. The default sorting oder is ascending.
      +     * See https://google.aip.dev/132#ordering.
      +     * 
      + * + * string order_by = 5; + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * The sorting order of the resources returned. Value should be a comma
      +     * separated list of fields. The default sorting oder is ascending.
      +     * See https://google.aip.dev/132#ordering.
      +     * 
      + * + * string order_by = 5; + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + *
      +     * The sorting order of the resources returned. Value should be a comma
      +     * separated list of fields. The default sorting oder is ascending.
      +     * See https://google.aip.dev/132#ordering.
      +     * 
      + * + * string order_by = 5; + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + *
      +     * The sorting order of the resources returned. Value should be a comma
      +     * separated list of fields. The default sorting oder is ascending.
      +     * See https://google.aip.dev/132#ordering.
      +     * 
      + * + * string order_by = 5; + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = 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.ListFunctionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ListFunctionsRequest) + private static final com.google.cloud.functions.v2.ListFunctionsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ListFunctionsRequest(); + } + + public static com.google.cloud.functions.v2.ListFunctionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsRequest(input, extensionRegistry); + } + }; + + 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.ListFunctionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequestOrBuilder.java new file mode 100644 index 00000000..28893f4a --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequestOrBuilder.java @@ -0,0 +1,121 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface ListFunctionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.ListFunctionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * 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) = { ... } + * @return The parent. + */ + 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.
      +   * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
      +   * Maximum number of functions to return per call.
      +   * 
      + * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
      +   * The value returned by the last
      +   * `ListFunctionsResponse`; indicates that
      +   * this is a continuation of a prior `ListFunctions` call, and that the
      +   * system should return the next page of data.
      +   * 
      + * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
      +   * The value returned by the last
      +   * `ListFunctionsResponse`; indicates that
      +   * this is a continuation of a prior `ListFunctions` call, and that the
      +   * system should return the next page of data.
      +   * 
      + * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + *
      +   * The filter for Functions that match the filter expression,
      +   * following the syntax outlined in https://google.aip.dev/160.
      +   * 
      + * + * string filter = 4; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
      +   * The filter for Functions that match the filter expression,
      +   * following the syntax outlined in https://google.aip.dev/160.
      +   * 
      + * + * string filter = 4; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); + + /** + *
      +   * The sorting order of the resources returned. Value should be a comma
      +   * separated list of fields. The default sorting oder is ascending.
      +   * See https://google.aip.dev/132#ordering.
      +   * 
      + * + * string order_by = 5; + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + *
      +   * The sorting order of the resources returned. Value should be a comma
      +   * separated list of fields. The default sorting oder is ascending.
      +   * See https://google.aip.dev/132#ordering.
      +   * 
      + * + * string order_by = 5; + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString + getOrderByBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java new file mode 100644 index 00000000..06222e68 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java @@ -0,0 +1,1302 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Response for the `ListFunctions` method.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.ListFunctionsResponse} + */ +public final class ListFunctionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ListFunctionsResponse) + ListFunctionsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListFunctionsResponse.newBuilder() to construct. + private ListFunctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListFunctionsResponse() { + functions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListFunctionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListFunctionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + functions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + functions_.add( + input.readMessage(com.google.cloud.functions.v2.Function.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + functions_ = java.util.Collections.unmodifiableList(functions_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.ListFunctionsResponse.class, com.google.cloud.functions.v2.ListFunctionsResponse.Builder.class); + } + + public static final int FUNCTIONS_FIELD_NUMBER = 1; + private java.util.List functions_; + /** + *
      +   * The functions that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + @java.lang.Override + public java.util.List getFunctionsList() { + return functions_; + } + /** + *
      +   * The functions that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + @java.lang.Override + public java.util.List + getFunctionsOrBuilderList() { + return functions_; + } + /** + *
      +   * The functions that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + @java.lang.Override + public int getFunctionsCount() { + return functions_.size(); + } + /** + *
      +   * The functions that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + @java.lang.Override + public com.google.cloud.functions.v2.Function getFunctions(int index) { + return functions_.get(index); + } + /** + *
      +   * The functions that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + @java.lang.Override + public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionsOrBuilder( + int index) { + return functions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
      +   * A token, which can be sent as `page_token` to retrieve the next page.
      +   * If this field is omitted, there are no subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + *
      +   * A token, which can be sent as `page_token` to retrieve the next page.
      +   * If this field is omitted, there are no subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + *
      +   * Locations that could not be reached. The response does not include any
      +   * functions from these locations.
      +   * 
      + * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_; + } + /** + *
      +   * Locations that could not be reached. The response does not include any
      +   * functions from these locations.
      +   * 
      + * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
      +   * Locations that could not be reached. The response does not include any
      +   * functions from these locations.
      +   * 
      + * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
      +   * Locations that could not be reached. The response does not include any
      +   * functions from these locations.
      +   * 
      + * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + 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 { + for (int i = 0; i < functions_.size(); i++) { + output.writeMessage(1, functions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < functions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, functions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += unknownFields.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.ListFunctionsResponse)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.ListFunctionsResponse other = (com.google.cloud.functions.v2.ListFunctionsResponse) obj; + + if (!getFunctionsList() + .equals(other.getFunctionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFunctionsCount() > 0) { + hash = (37 * hash) + FUNCTIONS_FIELD_NUMBER; + hash = (53 * hash) + getFunctionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.ListFunctionsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListFunctionsResponse 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.ListFunctionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListFunctionsResponse 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.ListFunctionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListFunctionsResponse 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.ListFunctionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.ListFunctionsResponse 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.ListFunctionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.ListFunctionsResponse 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.ListFunctionsResponse 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.ListFunctionsResponse 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.ListFunctionsResponse 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; + } + /** + *
      +   * Response for the `ListFunctions` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.ListFunctionsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ListFunctionsResponse) + com.google.cloud.functions.v2.ListFunctionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.ListFunctionsResponse.class, com.google.cloud.functions.v2.ListFunctionsResponse.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.ListFunctionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFunctionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (functionsBuilder_ == null) { + functions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + functionsBuilder_.clear(); + } + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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_ListFunctionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListFunctionsResponse getDefaultInstanceForType() { + return com.google.cloud.functions.v2.ListFunctionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListFunctionsResponse build() { + com.google.cloud.functions.v2.ListFunctionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListFunctionsResponse buildPartial() { + com.google.cloud.functions.v2.ListFunctionsResponse result = new com.google.cloud.functions.v2.ListFunctionsResponse(this); + int from_bitField0_ = bitField0_; + if (functionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + functions_ = java.util.Collections.unmodifiableList(functions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.functions_ = functions_; + } else { + result.functions_ = functionsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + 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.v2.ListFunctionsResponse) { + return mergeFrom((com.google.cloud.functions.v2.ListFunctionsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.ListFunctionsResponse other) { + if (other == com.google.cloud.functions.v2.ListFunctionsResponse.getDefaultInstance()) return this; + if (functionsBuilder_ == null) { + if (!other.functions_.isEmpty()) { + if (functions_.isEmpty()) { + functions_ = other.functions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFunctionsIsMutable(); + functions_.addAll(other.functions_); + } + onChanged(); + } + } else { + if (!other.functions_.isEmpty()) { + if (functionsBuilder_.isEmpty()) { + functionsBuilder_.dispose(); + functionsBuilder_ = null; + functions_ = other.functions_; + bitField0_ = (bitField0_ & ~0x00000001); + functionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFunctionsFieldBuilder() : null; + } else { + functionsBuilder_.addAllMessages(other.functions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.ListFunctionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.ListFunctionsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List functions_ = + java.util.Collections.emptyList(); + private void ensureFunctionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + functions_ = new java.util.ArrayList(functions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder> functionsBuilder_; + + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public java.util.List getFunctionsList() { + if (functionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(functions_); + } else { + return functionsBuilder_.getMessageList(); + } + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public int getFunctionsCount() { + if (functionsBuilder_ == null) { + return functions_.size(); + } else { + return functionsBuilder_.getCount(); + } + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public com.google.cloud.functions.v2.Function getFunctions(int index) { + if (functionsBuilder_ == null) { + return functions_.get(index); + } else { + return functionsBuilder_.getMessage(index); + } + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public Builder setFunctions( + int index, com.google.cloud.functions.v2.Function value) { + if (functionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionsIsMutable(); + functions_.set(index, value); + onChanged(); + } else { + functionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public Builder setFunctions( + int index, com.google.cloud.functions.v2.Function.Builder builderForValue) { + if (functionsBuilder_ == null) { + ensureFunctionsIsMutable(); + functions_.set(index, builderForValue.build()); + onChanged(); + } else { + functionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public Builder addFunctions(com.google.cloud.functions.v2.Function value) { + if (functionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionsIsMutable(); + functions_.add(value); + onChanged(); + } else { + functionsBuilder_.addMessage(value); + } + return this; + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public Builder addFunctions( + int index, com.google.cloud.functions.v2.Function value) { + if (functionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionsIsMutable(); + functions_.add(index, value); + onChanged(); + } else { + functionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public Builder addFunctions( + com.google.cloud.functions.v2.Function.Builder builderForValue) { + if (functionsBuilder_ == null) { + ensureFunctionsIsMutable(); + functions_.add(builderForValue.build()); + onChanged(); + } else { + functionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public Builder addFunctions( + int index, com.google.cloud.functions.v2.Function.Builder builderForValue) { + if (functionsBuilder_ == null) { + ensureFunctionsIsMutable(); + functions_.add(index, builderForValue.build()); + onChanged(); + } else { + functionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public Builder addAllFunctions( + java.lang.Iterable values) { + if (functionsBuilder_ == null) { + ensureFunctionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, functions_); + onChanged(); + } else { + functionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public Builder clearFunctions() { + if (functionsBuilder_ == null) { + functions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + functionsBuilder_.clear(); + } + return this; + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public Builder removeFunctions(int index) { + if (functionsBuilder_ == null) { + ensureFunctionsIsMutable(); + functions_.remove(index); + onChanged(); + } else { + functionsBuilder_.remove(index); + } + return this; + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public com.google.cloud.functions.v2.Function.Builder getFunctionsBuilder( + int index) { + return getFunctionsFieldBuilder().getBuilder(index); + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionsOrBuilder( + int index) { + if (functionsBuilder_ == null) { + return functions_.get(index); } else { + return functionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public java.util.List + getFunctionsOrBuilderList() { + if (functionsBuilder_ != null) { + return functionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(functions_); + } + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public com.google.cloud.functions.v2.Function.Builder addFunctionsBuilder() { + return getFunctionsFieldBuilder().addBuilder( + com.google.cloud.functions.v2.Function.getDefaultInstance()); + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public com.google.cloud.functions.v2.Function.Builder addFunctionsBuilder( + int index) { + return getFunctionsFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2.Function.getDefaultInstance()); + } + /** + *
      +     * The functions that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + public java.util.List + getFunctionsBuilderList() { + return getFunctionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder> + getFunctionsFieldBuilder() { + if (functionsBuilder_ == null) { + functionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder>( + functions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + functions_ = null; + } + return functionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
      +     * A token, which can be sent as `page_token` to retrieve the next page.
      +     * If this field is omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * A token, which can be sent as `page_token` to retrieve the next page.
      +     * If this field is omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * A token, which can be sent as `page_token` to retrieve the next page.
      +     * If this field is omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
      +     * A token, which can be sent as `page_token` to retrieve the next page.
      +     * If this field is omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
      +     * A token, which can be sent as `page_token` to retrieve the next page.
      +     * If this field is omitted, there are no subsequent pages.
      +     * 
      + * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + *
      +     * Locations that could not be reached. The response does not include any
      +     * functions from these locations.
      +     * 
      + * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + *
      +     * Locations that could not be reached. The response does not include any
      +     * functions from these locations.
      +     * 
      + * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
      +     * Locations that could not be reached. The response does not include any
      +     * functions from these locations.
      +     * 
      + * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
      +     * Locations that could not be reached. The response does not include any
      +     * functions from these locations.
      +     * 
      + * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + *
      +     * Locations that could not be reached. The response does not include any
      +     * functions from these locations.
      +     * 
      + * + * repeated string unreachable = 3; + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + *
      +     * Locations that could not be reached. The response does not include any
      +     * functions from these locations.
      +     * 
      + * + * repeated string unreachable = 3; + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + *
      +     * Locations that could not be reached. The response does not include any
      +     * functions from these locations.
      +     * 
      + * + * repeated string unreachable = 3; + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable( + java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); + onChanged(); + return this; + } + /** + *
      +     * Locations that could not be reached. The response does not include any
      +     * functions from these locations.
      +     * 
      + * + * repeated string unreachable = 3; + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
      +     * Locations that could not be reached. The response does not include any
      +     * functions from these locations.
      +     * 
      + * + * repeated string unreachable = 3; + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.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.ListFunctionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ListFunctionsResponse) + private static final com.google.cloud.functions.v2.ListFunctionsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ListFunctionsResponse(); + } + + public static com.google.cloud.functions.v2.ListFunctionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsResponse(input, extensionRegistry); + } + }; + + 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.ListFunctionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponseOrBuilder.java new file mode 100644 index 00000000..1afb1260 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponseOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface ListFunctionsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.ListFunctionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * The functions that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + java.util.List + getFunctionsList(); + /** + *
      +   * The functions that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + com.google.cloud.functions.v2.Function getFunctions(int index); + /** + *
      +   * The functions that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + int getFunctionsCount(); + /** + *
      +   * The functions that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + java.util.List + getFunctionsOrBuilderList(); + /** + *
      +   * The functions that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.Function functions = 1; + */ + com.google.cloud.functions.v2.FunctionOrBuilder getFunctionsOrBuilder( + int index); + + /** + *
      +   * A token, which can be sent as `page_token` to retrieve the next page.
      +   * If this field is omitted, there are no subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
      +   * A token, which can be sent as `page_token` to retrieve the next page.
      +   * If this field is omitted, there are no subsequent pages.
      +   * 
      + * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + *
      +   * Locations that could not be reached. The response does not include any
      +   * functions from these locations.
      +   * 
      + * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + java.util.List + getUnreachableList(); + /** + *
      +   * Locations that could not be reached. The response does not include any
      +   * functions from these locations.
      +   * 
      + * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + *
      +   * Locations that could not be reached. The response does not include any
      +   * functions from these locations.
      +   * 
      + * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + *
      +   * Locations that could not be reached. The response does not include any
      +   * functions from these locations.
      +   * 
      + * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString + getUnreachableBytes(int index); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java new file mode 100644 index 00000000..912c6b35 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java @@ -0,0 +1,775 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Request for the `ListRuntimes` method.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.ListRuntimesRequest} + */ +public final class ListRuntimesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ListRuntimesRequest) + ListRuntimesRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListRuntimesRequest.newBuilder() to construct. + private ListRuntimesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListRuntimesRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListRuntimesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListRuntimesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.ListRuntimesRequest.class, com.google.cloud.functions.v2.ListRuntimesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
      +   * 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + *
      +   * 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + *
      +   * The filter for Runtimes that match the filter expression,
      +   * following the syntax outlined in https://google.aip.dev/160.
      +   * 
      + * + * string filter = 2; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + *
      +   * The filter for Runtimes that match the filter expression,
      +   * following the syntax outlined in https://google.aip.dev/160.
      +   * 
      + * + * string filter = 2; + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + size += unknownFields.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.ListRuntimesRequest)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.ListRuntimesRequest other = (com.google.cloud.functions.v2.ListRuntimesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.ListRuntimesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListRuntimesRequest 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.ListRuntimesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListRuntimesRequest 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.ListRuntimesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListRuntimesRequest 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.ListRuntimesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.ListRuntimesRequest 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.ListRuntimesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.ListRuntimesRequest 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.ListRuntimesRequest 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.ListRuntimesRequest 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.ListRuntimesRequest 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; + } + /** + *
      +   * Request for the `ListRuntimes` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.ListRuntimesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ListRuntimesRequest) + com.google.cloud.functions.v2.ListRuntimesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.ListRuntimesRequest.class, com.google.cloud.functions.v2.ListRuntimesRequest.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.ListRuntimesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + 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_ListRuntimesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListRuntimesRequest getDefaultInstanceForType() { + return com.google.cloud.functions.v2.ListRuntimesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListRuntimesRequest build() { + com.google.cloud.functions.v2.ListRuntimesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListRuntimesRequest buildPartial() { + com.google.cloud.functions.v2.ListRuntimesRequest result = new com.google.cloud.functions.v2.ListRuntimesRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + onBuilt(); + 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.v2.ListRuntimesRequest) { + return mergeFrom((com.google.cloud.functions.v2.ListRuntimesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.ListRuntimesRequest other) { + if (other == com.google.cloud.functions.v2.ListRuntimesRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.ListRuntimesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.ListRuntimesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
      +     * 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) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
      +     * The filter for Runtimes that match the filter expression,
      +     * following the syntax outlined in https://google.aip.dev/160.
      +     * 
      + * + * string filter = 2; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * The filter for Runtimes that match the filter expression,
      +     * following the syntax outlined in https://google.aip.dev/160.
      +     * 
      + * + * string filter = 2; + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString + getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * The filter for Runtimes that match the filter expression,
      +     * following the syntax outlined in https://google.aip.dev/160.
      +     * 
      + * + * string filter = 2; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + *
      +     * The filter for Runtimes that match the filter expression,
      +     * following the syntax outlined in https://google.aip.dev/160.
      +     * 
      + * + * string filter = 2; + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + *
      +     * The filter for Runtimes that match the filter expression,
      +     * following the syntax outlined in https://google.aip.dev/160.
      +     * 
      + * + * string filter = 2; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = 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.ListRuntimesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ListRuntimesRequest) + private static final com.google.cloud.functions.v2.ListRuntimesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ListRuntimesRequest(); + } + + public static com.google.cloud.functions.v2.ListRuntimesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRuntimesRequest(input, extensionRegistry); + } + }; + + 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.ListRuntimesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequestOrBuilder.java new file mode 100644 index 00000000..2ab26b48 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequestOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface ListRuntimesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.ListRuntimesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * 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) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
      +   * 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) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
      +   * The filter for Runtimes that match the filter expression,
      +   * following the syntax outlined in https://google.aip.dev/160.
      +   * 
      + * + * string filter = 2; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
      +   * The filter for Runtimes that match the filter expression,
      +   * following the syntax outlined in https://google.aip.dev/160.
      +   * 
      + * + * string filter = 2; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java new file mode 100644 index 00000000..3b2baf31 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java @@ -0,0 +1,2461 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Response for the `ListRuntimes` method.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.ListRuntimesResponse} + */ +public final class ListRuntimesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ListRuntimesResponse) + ListRuntimesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListRuntimesResponse.newBuilder() to construct. + private ListRuntimesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListRuntimesResponse() { + runtimes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListRuntimesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListRuntimesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + runtimes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + runtimes_.add( + input.readMessage(com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + runtimes_ = java.util.Collections.unmodifiableList(runtimes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.ListRuntimesResponse.class, com.google.cloud.functions.v2.ListRuntimesResponse.Builder.class); + } + + /** + *
      +   * The various stages that a runtime can be in.
      +   * 
      + * + * Protobuf enum {@code google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage} + */ + public enum RuntimeStage + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
      +     * Not specified.
      +     * 
      + * + * RUNTIME_STAGE_UNSPECIFIED = 0; + */ + RUNTIME_STAGE_UNSPECIFIED(0), + /** + *
      +     * The runtime is in development.
      +     * 
      + * + * DEVELOPMENT = 1; + */ + DEVELOPMENT(1), + /** + *
      +     * The runtime is in the Alpha stage.
      +     * 
      + * + * ALPHA = 2; + */ + ALPHA(2), + /** + *
      +     * The runtime is in the Beta stage.
      +     * 
      + * + * BETA = 3; + */ + BETA(3), + /** + *
      +     * The runtime is generally available.
      +     * 
      + * + * GA = 4; + */ + GA(4), + /** + *
      +     * The runtime is deprecated.
      +     * 
      + * + * DEPRECATED = 5; + */ + DEPRECATED(5), + /** + *
      +     * The runtime is no longer supported.
      +     * 
      + * + * DECOMMISSIONED = 6; + */ + DECOMMISSIONED(6), + UNRECOGNIZED(-1), + ; + + /** + *
      +     * Not specified.
      +     * 
      + * + * RUNTIME_STAGE_UNSPECIFIED = 0; + */ + public static final int RUNTIME_STAGE_UNSPECIFIED_VALUE = 0; + /** + *
      +     * The runtime is in development.
      +     * 
      + * + * DEVELOPMENT = 1; + */ + public static final int DEVELOPMENT_VALUE = 1; + /** + *
      +     * The runtime is in the Alpha stage.
      +     * 
      + * + * ALPHA = 2; + */ + public static final int ALPHA_VALUE = 2; + /** + *
      +     * The runtime is in the Beta stage.
      +     * 
      + * + * BETA = 3; + */ + public static final int BETA_VALUE = 3; + /** + *
      +     * The runtime is generally available.
      +     * 
      + * + * GA = 4; + */ + public static final int GA_VALUE = 4; + /** + *
      +     * The runtime is deprecated.
      +     * 
      + * + * DEPRECATED = 5; + */ + public static final int DEPRECATED_VALUE = 5; + /** + *
      +     * The runtime is no longer supported.
      +     * 
      + * + * DECOMMISSIONED = 6; + */ + public static final int DECOMMISSIONED_VALUE = 6; + + + 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 RuntimeStage 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 RuntimeStage forNumber(int value) { + switch (value) { + case 0: return RUNTIME_STAGE_UNSPECIFIED; + case 1: return DEVELOPMENT; + case 2: return ALPHA; + case 3: return BETA; + case 4: return GA; + case 5: return DEPRECATED; + case 6: return DECOMMISSIONED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RuntimeStage> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RuntimeStage findValueByNumber(int number) { + return RuntimeStage.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.v2.ListRuntimesResponse.getDescriptor().getEnumTypes().get(0); + } + + private static final RuntimeStage[] VALUES = values(); + + public static RuntimeStage 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 RuntimeStage(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage) + } + + public interface RuntimeOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.ListRuntimesResponse.Runtime) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +     * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
      +     * 
      + * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
      +     * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
      +     * 
      + * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
      +     * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
      +     * 
      + * + * string display_name = 5; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
      +     * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
      +     * 
      + * + * string display_name = 5; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
      +     * The stage of life this runtime is in, e.g., BETA, GA, etc.
      +     * 
      + * + * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * @return The enum numeric value on the wire for stage. + */ + int getStageValue(); + /** + *
      +     * The stage of life this runtime is in, e.g., BETA, GA, etc.
      +     * 
      + * + * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * @return The stage. + */ + com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage getStage(); + + /** + *
      +     * Warning messages, e.g., a deprecation warning.
      +     * 
      + * + * repeated string warnings = 3; + * @return A list containing the warnings. + */ + java.util.List + getWarningsList(); + /** + *
      +     * Warning messages, e.g., a deprecation warning.
      +     * 
      + * + * repeated string warnings = 3; + * @return The count of warnings. + */ + int getWarningsCount(); + /** + *
      +     * Warning messages, e.g., a deprecation warning.
      +     * 
      + * + * repeated string warnings = 3; + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + java.lang.String getWarnings(int index); + /** + *
      +     * Warning messages, e.g., a deprecation warning.
      +     * 
      + * + * repeated string warnings = 3; + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + com.google.protobuf.ByteString + getWarningsBytes(int index); + + /** + *
      +     * The environment for the runtime.
      +     * 
      + * + * .google.cloud.functions.v2.Environment environment = 4; + * @return The enum numeric value on the wire for environment. + */ + int getEnvironmentValue(); + /** + *
      +     * The environment for the runtime.
      +     * 
      + * + * .google.cloud.functions.v2.Environment environment = 4; + * @return The environment. + */ + com.google.cloud.functions.v2.Environment getEnvironment(); + } + /** + *
      +   * Describes a runtime and any special information (e.g., deprecation status)
      +   * related to it.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.ListRuntimesResponse.Runtime} + */ + public static final class Runtime extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ListRuntimesResponse.Runtime) + RuntimeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Runtime.newBuilder() to construct. + private Runtime(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Runtime() { + name_ = ""; + displayName_ = ""; + stage_ = 0; + warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + environment_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Runtime(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Runtime( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + stage_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + warnings_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + warnings_.add(s); + break; + } + case 32: { + int rawValue = input.readEnum(); + + environment_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + warnings_ = warnings_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
      +     * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
      +     * 
      + * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
      +     * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
      +     * 
      + * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object displayName_; + /** + *
      +     * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
      +     * 
      + * + * string display_name = 5; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + *
      +     * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
      +     * 
      + * + * string display_name = 5; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STAGE_FIELD_NUMBER = 2; + private int stage_; + /** + *
      +     * The stage of life this runtime is in, e.g., BETA, GA, etc.
      +     * 
      + * + * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * @return The enum numeric value on the wire for stage. + */ + @java.lang.Override public int getStageValue() { + return stage_; + } + /** + *
      +     * The stage of life this runtime is in, e.g., BETA, GA, etc.
      +     * 
      + * + * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * @return The stage. + */ + @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage getStage() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.valueOf(stage_); + return result == null ? com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; + } + + public static final int WARNINGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList warnings_; + /** + *
      +     * Warning messages, e.g., a deprecation warning.
      +     * 
      + * + * repeated string warnings = 3; + * @return A list containing the warnings. + */ + public com.google.protobuf.ProtocolStringList + getWarningsList() { + return warnings_; + } + /** + *
      +     * Warning messages, e.g., a deprecation warning.
      +     * 
      + * + * repeated string warnings = 3; + * @return The count of warnings. + */ + public int getWarningsCount() { + return warnings_.size(); + } + /** + *
      +     * Warning messages, e.g., a deprecation warning.
      +     * 
      + * + * repeated string warnings = 3; + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + public java.lang.String getWarnings(int index) { + return warnings_.get(index); + } + /** + *
      +     * Warning messages, e.g., a deprecation warning.
      +     * 
      + * + * repeated string warnings = 3; + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + public com.google.protobuf.ByteString + getWarningsBytes(int index) { + return warnings_.getByteString(index); + } + + public static final int ENVIRONMENT_FIELD_NUMBER = 4; + private int environment_; + /** + *
      +     * The environment for the runtime.
      +     * 
      + * + * .google.cloud.functions.v2.Environment environment = 4; + * @return The enum numeric value on the wire for environment. + */ + @java.lang.Override public int getEnvironmentValue() { + return environment_; + } + /** + *
      +     * The environment for the runtime.
      +     * 
      + * + * .google.cloud.functions.v2.Environment environment = 4; + * @return The environment. + */ + @java.lang.Override public com.google.cloud.functions.v2.Environment getEnvironment() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.Environment result = com.google.cloud.functions.v2.Environment.valueOf(environment_); + return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (stage_ != com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.RUNTIME_STAGE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, stage_); + } + for (int i = 0; i < warnings_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warnings_.getRaw(i)); + } + if (environment_ != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + output.writeEnum(4, environment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (stage_ != com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.RUNTIME_STAGE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, stage_); + } + { + int dataSize = 0; + for (int i = 0; i < warnings_.size(); i++) { + dataSize += computeStringSizeNoTag(warnings_.getRaw(i)); + } + size += dataSize; + size += 1 * getWarningsList().size(); + } + if (environment_ != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, environment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); + } + size += unknownFields.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.ListRuntimesResponse.Runtime)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime other = (com.google.cloud.functions.v2.ListRuntimesResponse.Runtime) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (stage_ != other.stage_) return false; + if (!getWarningsList() + .equals(other.getWarningsList())) return false; + if (environment_ != other.environment_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + STAGE_FIELD_NUMBER; + hash = (53 * hash) + stage_; + if (getWarningsCount() > 0) { + hash = (37 * hash) + WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getWarningsList().hashCode(); + } + hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + environment_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime 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.ListRuntimesResponse.Runtime parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime 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.ListRuntimesResponse.Runtime parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime 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.ListRuntimesResponse.Runtime parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime 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.ListRuntimesResponse.Runtime parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime 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.ListRuntimesResponse.Runtime 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.ListRuntimesResponse.Runtime 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.ListRuntimesResponse.Runtime 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; + } + /** + *
      +     * Describes a runtime and any special information (e.g., deprecation status)
      +     * related to it.
      +     * 
      + * + * Protobuf type {@code google.cloud.functions.v2.ListRuntimesResponse.Runtime} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ListRuntimesResponse.Runtime) + com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder { + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + stage_ = 0; + + warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + environment_ = 0; + + 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_ListRuntimesResponse_Runtime_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getDefaultInstanceForType() { + return com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime build() { + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.displayName_ = displayName_; + result.stage_ = stage_; + if (((bitField0_ & 0x00000001) != 0)) { + warnings_ = warnings_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.warnings_ = warnings_; + result.environment_ = environment_; + onBuilt(); + 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.v2.ListRuntimesResponse.Runtime) { + return mergeFrom((com.google.cloud.functions.v2.ListRuntimesResponse.Runtime)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.ListRuntimesResponse.Runtime other) { + if (other == com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.stage_ != 0) { + setStageValue(other.getStageValue()); + } + if (!other.warnings_.isEmpty()) { + if (warnings_.isEmpty()) { + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWarningsIsMutable(); + warnings_.addAll(other.warnings_); + } + onChanged(); + } + if (other.environment_ != 0) { + setEnvironmentValue(other.getEnvironmentValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.ListRuntimesResponse.Runtime) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
      +       * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
      +       * 
      + * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +       * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
      +       * 
      + * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +       * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
      +       * 
      + * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
      +       * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
      +       * 
      + * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
      +       * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
      +       * 
      + * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
      +       * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
      +       * 
      + * + * string display_name = 5; + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +       * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
      +       * 
      + * + * string display_name = 5; + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +       * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
      +       * 
      + * + * string display_name = 5; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *
      +       * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
      +       * 
      + * + * string display_name = 5; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
      +       * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
      +       * 
      + * + * string display_name = 5; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private int stage_ = 0; + /** + *
      +       * The stage of life this runtime is in, e.g., BETA, GA, etc.
      +       * 
      + * + * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * @return The enum numeric value on the wire for stage. + */ + @java.lang.Override public int getStageValue() { + return stage_; + } + /** + *
      +       * The stage of life this runtime is in, e.g., BETA, GA, etc.
      +       * 
      + * + * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * @param value The enum numeric value on the wire for stage to set. + * @return This builder for chaining. + */ + public Builder setStageValue(int value) { + + stage_ = value; + onChanged(); + return this; + } + /** + *
      +       * The stage of life this runtime is in, e.g., BETA, GA, etc.
      +       * 
      + * + * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * @return The stage. + */ + @java.lang.Override + public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage getStage() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.valueOf(stage_); + return result == null ? com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; + } + /** + *
      +       * The stage of life this runtime is in, e.g., BETA, GA, etc.
      +       * 
      + * + * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * @param value The stage to set. + * @return This builder for chaining. + */ + public Builder setStage(com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage value) { + if (value == null) { + throw new NullPointerException(); + } + + stage_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
      +       * The stage of life this runtime is in, e.g., BETA, GA, etc.
      +       * 
      + * + * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * @return This builder for chaining. + */ + public Builder clearStage() { + + stage_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWarningsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); + bitField0_ |= 0x00000001; + } + } + /** + *
      +       * Warning messages, e.g., a deprecation warning.
      +       * 
      + * + * repeated string warnings = 3; + * @return A list containing the warnings. + */ + public com.google.protobuf.ProtocolStringList + getWarningsList() { + return warnings_.getUnmodifiableView(); + } + /** + *
      +       * Warning messages, e.g., a deprecation warning.
      +       * 
      + * + * repeated string warnings = 3; + * @return The count of warnings. + */ + public int getWarningsCount() { + return warnings_.size(); + } + /** + *
      +       * Warning messages, e.g., a deprecation warning.
      +       * 
      + * + * repeated string warnings = 3; + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + public java.lang.String getWarnings(int index) { + return warnings_.get(index); + } + /** + *
      +       * Warning messages, e.g., a deprecation warning.
      +       * 
      + * + * repeated string warnings = 3; + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + public com.google.protobuf.ByteString + getWarningsBytes(int index) { + return warnings_.getByteString(index); + } + /** + *
      +       * Warning messages, e.g., a deprecation warning.
      +       * 
      + * + * repeated string warnings = 3; + * @param index The index to set the value at. + * @param value The warnings to set. + * @return This builder for chaining. + */ + public Builder setWarnings( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.set(index, value); + onChanged(); + return this; + } + /** + *
      +       * Warning messages, e.g., a deprecation warning.
      +       * 
      + * + * repeated string warnings = 3; + * @param value The warnings to add. + * @return This builder for chaining. + */ + public Builder addWarnings( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(value); + onChanged(); + return this; + } + /** + *
      +       * Warning messages, e.g., a deprecation warning.
      +       * 
      + * + * repeated string warnings = 3; + * @param values The warnings to add. + * @return This builder for chaining. + */ + public Builder addAllWarnings( + java.lang.Iterable values) { + ensureWarningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, warnings_); + onChanged(); + return this; + } + /** + *
      +       * Warning messages, e.g., a deprecation warning.
      +       * 
      + * + * repeated string warnings = 3; + * @return This builder for chaining. + */ + public Builder clearWarnings() { + warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
      +       * Warning messages, e.g., a deprecation warning.
      +       * 
      + * + * repeated string warnings = 3; + * @param value The bytes of the warnings to add. + * @return This builder for chaining. + */ + public Builder addWarningsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWarningsIsMutable(); + warnings_.add(value); + onChanged(); + return this; + } + + private int environment_ = 0; + /** + *
      +       * The environment for the runtime.
      +       * 
      + * + * .google.cloud.functions.v2.Environment environment = 4; + * @return The enum numeric value on the wire for environment. + */ + @java.lang.Override public int getEnvironmentValue() { + return environment_; + } + /** + *
      +       * The environment for the runtime.
      +       * 
      + * + * .google.cloud.functions.v2.Environment environment = 4; + * @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; + onChanged(); + return this; + } + /** + *
      +       * The environment for the runtime.
      +       * 
      + * + * .google.cloud.functions.v2.Environment environment = 4; + * @return The environment. + */ + @java.lang.Override + public com.google.cloud.functions.v2.Environment getEnvironment() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.Environment result = com.google.cloud.functions.v2.Environment.valueOf(environment_); + return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; + } + /** + *
      +       * The environment for the runtime.
      +       * 
      + * + * .google.cloud.functions.v2.Environment environment = 4; + * @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(); + } + + environment_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
      +       * The environment for the runtime.
      +       * 
      + * + * .google.cloud.functions.v2.Environment environment = 4; + * @return This builder for chaining. + */ + public Builder clearEnvironment() { + + environment_ = 0; + 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.ListRuntimesResponse.Runtime) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ListRuntimesResponse.Runtime) + private static final com.google.cloud.functions.v2.ListRuntimesResponse.Runtime DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ListRuntimesResponse.Runtime(); + } + + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Runtime parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Runtime(input, extensionRegistry); + } + }; + + 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.ListRuntimesResponse.Runtime getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int RUNTIMES_FIELD_NUMBER = 1; + private java.util.List runtimes_; + /** + *
      +   * The runtimes that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + @java.lang.Override + public java.util.List getRuntimesList() { + return runtimes_; + } + /** + *
      +   * The runtimes that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + @java.lang.Override + public java.util.List + getRuntimesOrBuilderList() { + return runtimes_; + } + /** + *
      +   * The runtimes that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + @java.lang.Override + public int getRuntimesCount() { + return runtimes_.size(); + } + /** + *
      +   * The runtimes that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + @java.lang.Override + public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getRuntimes(int index) { + return runtimes_.get(index); + } + /** + *
      +   * The runtimes that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + @java.lang.Override + public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( + int index) { + return runtimes_.get(index); + } + + 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 { + for (int i = 0; i < runtimes_.size(); i++) { + output.writeMessage(1, runtimes_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < runtimes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, runtimes_.get(i)); + } + size += unknownFields.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.ListRuntimesResponse)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.ListRuntimesResponse other = (com.google.cloud.functions.v2.ListRuntimesResponse) obj; + + if (!getRuntimesList() + .equals(other.getRuntimesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRuntimesCount() > 0) { + hash = (37 * hash) + RUNTIMES_FIELD_NUMBER; + hash = (53 * hash) + getRuntimesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListRuntimesResponse 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.ListRuntimesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListRuntimesResponse 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.ListRuntimesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ListRuntimesResponse 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.ListRuntimesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.ListRuntimesResponse 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.ListRuntimesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.ListRuntimesResponse 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.ListRuntimesResponse 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.ListRuntimesResponse 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.ListRuntimesResponse 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; + } + /** + *
      +   * Response for the `ListRuntimes` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.ListRuntimesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ListRuntimesResponse) + com.google.cloud.functions.v2.ListRuntimesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.ListRuntimesResponse.class, com.google.cloud.functions.v2.ListRuntimesResponse.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.ListRuntimesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRuntimesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (runtimesBuilder_ == null) { + runtimes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + runtimesBuilder_.clear(); + } + 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_ListRuntimesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListRuntimesResponse getDefaultInstanceForType() { + return com.google.cloud.functions.v2.ListRuntimesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListRuntimesResponse build() { + com.google.cloud.functions.v2.ListRuntimesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.ListRuntimesResponse buildPartial() { + com.google.cloud.functions.v2.ListRuntimesResponse result = new com.google.cloud.functions.v2.ListRuntimesResponse(this); + int from_bitField0_ = bitField0_; + if (runtimesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + runtimes_ = java.util.Collections.unmodifiableList(runtimes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.runtimes_ = runtimes_; + } else { + result.runtimes_ = runtimesBuilder_.build(); + } + onBuilt(); + 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.v2.ListRuntimesResponse) { + return mergeFrom((com.google.cloud.functions.v2.ListRuntimesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.ListRuntimesResponse other) { + if (other == com.google.cloud.functions.v2.ListRuntimesResponse.getDefaultInstance()) return this; + if (runtimesBuilder_ == null) { + if (!other.runtimes_.isEmpty()) { + if (runtimes_.isEmpty()) { + runtimes_ = other.runtimes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRuntimesIsMutable(); + runtimes_.addAll(other.runtimes_); + } + onChanged(); + } + } else { + if (!other.runtimes_.isEmpty()) { + if (runtimesBuilder_.isEmpty()) { + runtimesBuilder_.dispose(); + runtimesBuilder_ = null; + runtimes_ = other.runtimes_; + bitField0_ = (bitField0_ & ~0x00000001); + runtimesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRuntimesFieldBuilder() : null; + } else { + runtimesBuilder_.addAllMessages(other.runtimes_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.ListRuntimesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.ListRuntimesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List runtimes_ = + java.util.Collections.emptyList(); + private void ensureRuntimesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + runtimes_ = new java.util.ArrayList(runtimes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder> runtimesBuilder_; + + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public java.util.List getRuntimesList() { + if (runtimesBuilder_ == null) { + return java.util.Collections.unmodifiableList(runtimes_); + } else { + return runtimesBuilder_.getMessageList(); + } + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public int getRuntimesCount() { + if (runtimesBuilder_ == null) { + return runtimes_.size(); + } else { + return runtimesBuilder_.getCount(); + } + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getRuntimes(int index) { + if (runtimesBuilder_ == null) { + return runtimes_.get(index); + } else { + return runtimesBuilder_.getMessage(index); + } + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public Builder setRuntimes( + int index, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime value) { + if (runtimesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuntimesIsMutable(); + runtimes_.set(index, value); + onChanged(); + } else { + runtimesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public Builder setRuntimes( + int index, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder builderForValue) { + if (runtimesBuilder_ == null) { + ensureRuntimesIsMutable(); + runtimes_.set(index, builderForValue.build()); + onChanged(); + } else { + runtimesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public Builder addRuntimes(com.google.cloud.functions.v2.ListRuntimesResponse.Runtime value) { + if (runtimesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuntimesIsMutable(); + runtimes_.add(value); + onChanged(); + } else { + runtimesBuilder_.addMessage(value); + } + return this; + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public Builder addRuntimes( + int index, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime value) { + if (runtimesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuntimesIsMutable(); + runtimes_.add(index, value); + onChanged(); + } else { + runtimesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public Builder addRuntimes( + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder builderForValue) { + if (runtimesBuilder_ == null) { + ensureRuntimesIsMutable(); + runtimes_.add(builderForValue.build()); + onChanged(); + } else { + runtimesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public Builder addRuntimes( + int index, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder builderForValue) { + if (runtimesBuilder_ == null) { + ensureRuntimesIsMutable(); + runtimes_.add(index, builderForValue.build()); + onChanged(); + } else { + runtimesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public Builder addAllRuntimes( + java.lang.Iterable values) { + if (runtimesBuilder_ == null) { + ensureRuntimesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, runtimes_); + onChanged(); + } else { + runtimesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public Builder clearRuntimes() { + if (runtimesBuilder_ == null) { + runtimes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + runtimesBuilder_.clear(); + } + return this; + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public Builder removeRuntimes(int index) { + if (runtimesBuilder_ == null) { + ensureRuntimesIsMutable(); + runtimes_.remove(index); + onChanged(); + } else { + runtimesBuilder_.remove(index); + } + return this; + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder getRuntimesBuilder( + int index) { + return getRuntimesFieldBuilder().getBuilder(index); + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( + int index) { + if (runtimesBuilder_ == null) { + return runtimes_.get(index); } else { + return runtimesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public java.util.List + getRuntimesOrBuilderList() { + if (runtimesBuilder_ != null) { + return runtimesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(runtimes_); + } + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder() { + return getRuntimesFieldBuilder().addBuilder( + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance()); + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder( + int index) { + return getRuntimesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance()); + } + /** + *
      +     * The runtimes that match the request.
      +     * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + public java.util.List + getRuntimesBuilderList() { + return getRuntimesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder> + getRuntimesFieldBuilder() { + if (runtimesBuilder_ == null) { + runtimesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder>( + runtimes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + runtimes_ = null; + } + return runtimesBuilder_; + } + @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.ListRuntimesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ListRuntimesResponse) + private static final com.google.cloud.functions.v2.ListRuntimesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ListRuntimesResponse(); + } + + public static com.google.cloud.functions.v2.ListRuntimesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRuntimesResponse(input, extensionRegistry); + } + }; + + 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.ListRuntimesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponseOrBuilder.java new file mode 100644 index 00000000..cd61221d --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponseOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface ListRuntimesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.ListRuntimesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * The runtimes that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + java.util.List + getRuntimesList(); + /** + *
      +   * The runtimes that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getRuntimes(int index); + /** + *
      +   * The runtimes that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + int getRuntimesCount(); + /** + *
      +   * The runtimes that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + java.util.List + getRuntimesOrBuilderList(); + /** + *
      +   * The runtimes that match the request.
      +   * 
      + * + * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; + */ + com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( + int index); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationName.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationName.java new file mode 100644 index 00000000..ddde5a40 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationName.java @@ -0,0 +1,192 @@ +/* + * 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.v2; + +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 LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + 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 (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.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); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java new file mode 100644 index 00000000..cc927445 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java @@ -0,0 +1,2337 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Represents the metadata of the long-running operation.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.OperationMetadata} + */ +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.OperationMetadata) + OperationMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use OperationMetadata.newBuilder() to construct. + private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OperationMetadata() { + target_ = ""; + verb_ = ""; + statusDetail_ = ""; + apiVersion_ = ""; + stages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDetail_ = s; + break; + } + case 48: { + + cancelRequested_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + case 66: { + com.google.protobuf.Any.Builder subBuilder = null; + if (requestResource_ != null) { + subBuilder = requestResource_.toBuilder(); + } + requestResource_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestResource_); + requestResource_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stages_.add( + input.readMessage(com.google.cloud.functions.v2.Stage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.OperationMetadata.class, com.google.cloud.functions.v2.OperationMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + *
      +   * The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
      +   * The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
      +   * The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + *
      +   * The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2; + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + *
      +   * The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2; + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + *
      +   * The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int TARGET_FIELD_NUMBER = 3; + private volatile java.lang.Object target_; + /** + *
      +   * Server-defined resource path for the target of the operation.
      +   * 
      + * + * string target = 3; + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + 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(); + target_ = s; + return s; + } + } + /** + *
      +   * Server-defined resource path for the target of the operation.
      +   * 
      + * + * string target = 3; + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERB_FIELD_NUMBER = 4; + private volatile java.lang.Object verb_; + /** + *
      +   * Name of the verb executed by the operation.
      +   * 
      + * + * string verb = 4; + * @return The verb. + */ + @java.lang.Override + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + 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(); + verb_ = s; + return s; + } + } + /** + *
      +   * Name of the verb executed by the operation.
      +   * 
      + * + * string verb = 4; + * @return The bytes for verb. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_DETAIL_FIELD_NUMBER = 5; + private volatile java.lang.Object statusDetail_; + /** + *
      +   * Human-readable status of the operation, if any.
      +   * 
      + * + * string status_detail = 5; + * @return The statusDetail. + */ + @java.lang.Override + public java.lang.String getStatusDetail() { + java.lang.Object ref = statusDetail_; + 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(); + statusDetail_ = s; + return s; + } + } + /** + *
      +   * Human-readable status of the operation, if any.
      +   * 
      + * + * string status_detail = 5; + * @return The bytes for statusDetail. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStatusDetailBytes() { + java.lang.Object ref = statusDetail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDetail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; + private boolean cancelRequested_; + /** + *
      +   * 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`.
      +   * 
      + * + * bool cancel_requested = 6; + * @return The cancelRequested. + */ + @java.lang.Override + public boolean getCancelRequested() { + return cancelRequested_; + } + + public static final int API_VERSION_FIELD_NUMBER = 7; + private volatile java.lang.Object apiVersion_; + /** + *
      +   * API version used to start the operation.
      +   * 
      + * + * string api_version = 7; + * @return The apiVersion. + */ + @java.lang.Override + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + 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(); + apiVersion_ = s; + return s; + } + } + /** + *
      +   * API version used to start the operation.
      +   * 
      + * + * string api_version = 7; + * @return The bytes for apiVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_RESOURCE_FIELD_NUMBER = 8; + private com.google.protobuf.Any requestResource_; + /** + *
      +   * The original request that started the operation.
      +   * 
      + * + * .google.protobuf.Any request_resource = 8; + * @return Whether the requestResource field is set. + */ + @java.lang.Override + public boolean hasRequestResource() { + return requestResource_ != null; + } + /** + *
      +   * The original request that started the operation.
      +   * 
      + * + * .google.protobuf.Any request_resource = 8; + * @return The requestResource. + */ + @java.lang.Override + public com.google.protobuf.Any getRequestResource() { + return requestResource_ == null ? com.google.protobuf.Any.getDefaultInstance() : requestResource_; + } + /** + *
      +   * The original request that started the operation.
      +   * 
      + * + * .google.protobuf.Any request_resource = 8; + */ + @java.lang.Override + public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { + return getRequestResource(); + } + + public static final int STAGES_FIELD_NUMBER = 9; + private java.util.List stages_; + /** + *
      +   * Mechanism for reporting in-progress stages
      +   * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + @java.lang.Override + public java.util.List getStagesList() { + return stages_; + } + /** + *
      +   * Mechanism for reporting in-progress stages
      +   * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + @java.lang.Override + public java.util.List + getStagesOrBuilderList() { + return stages_; + } + /** + *
      +   * Mechanism for reporting in-progress stages
      +   * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + @java.lang.Override + public int getStagesCount() { + return stages_.size(); + } + /** + *
      +   * Mechanism for reporting in-progress stages
      +   * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + @java.lang.Override + public com.google.cloud.functions.v2.Stage getStages(int index) { + return stages_.get(index); + } + /** + *
      +   * Mechanism for reporting in-progress stages
      +   * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + @java.lang.Override + public com.google.cloud.functions.v2.StageOrBuilder getStagesOrBuilder( + int index) { + return stages_.get(index); + } + + 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 { + if (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusDetail_); + } + if (cancelRequested_ != false) { + output.writeBool(6, cancelRequested_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); + } + if (requestResource_ != null) { + output.writeMessage(8, getRequestResource()); + } + for (int i = 0; i < stages_.size(); i++) { + output.writeMessage(9, stages_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusDetail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); + } + if (cancelRequested_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); + } + if (requestResource_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getRequestResource()); + } + for (int i = 0; i < stages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, stages_.get(i)); + } + size += unknownFields.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.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.OperationMetadata other = (com.google.cloud.functions.v2.OperationMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (getCancelRequested() + != other.getCancelRequested()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; + if (hasRequestResource() != other.hasRequestResource()) return false; + if (hasRequestResource()) { + if (!getRequestResource() + .equals(other.getRequestResource())) return false; + } + if (!getStagesList() + .equals(other.getStagesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().hashCode(); + hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getStatusDetail().hashCode(); + hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); + hash = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + if (hasRequestResource()) { + hash = (37 * hash) + REQUEST_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRequestResource().hashCode(); + } + if (getStagesCount() > 0) { + hash = (37 * hash) + STAGES_FIELD_NUMBER; + hash = (53 * hash) + getStagesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.OperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.OperationMetadata 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.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.OperationMetadata 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.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.OperationMetadata 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.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.OperationMetadata 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.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.OperationMetadata 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.OperationMetadata 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.OperationMetadata 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.OperationMetadata 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; + } + /** + *
      +   * Represents the metadata of the long-running operation.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.OperationMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.OperationMetadata) + com.google.cloud.functions.v2.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.OperationMetadata.class, com.google.cloud.functions.v2.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.OperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStagesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + target_ = ""; + + verb_ = ""; + + statusDetail_ = ""; + + cancelRequested_ = false; + + apiVersion_ = ""; + + if (requestResourceBuilder_ == null) { + requestResource_ = null; + } else { + requestResource_ = null; + requestResourceBuilder_ = null; + } + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + stagesBuilder_.clear(); + } + 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_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.functions.v2.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.OperationMetadata build() { + com.google.cloud.functions.v2.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.OperationMetadata buildPartial() { + com.google.cloud.functions.v2.OperationMetadata result = new com.google.cloud.functions.v2.OperationMetadata(this); + int from_bitField0_ = bitField0_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.target_ = target_; + result.verb_ = verb_; + result.statusDetail_ = statusDetail_; + result.cancelRequested_ = cancelRequested_; + result.apiVersion_ = apiVersion_; + if (requestResourceBuilder_ == null) { + result.requestResource_ = requestResource_; + } else { + result.requestResource_ = requestResourceBuilder_.build(); + } + if (stagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.stages_ = stages_; + } else { + result.stages_ = stagesBuilder_.build(); + } + onBuilt(); + 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.v2.OperationMetadata) { + return mergeFrom((com.google.cloud.functions.v2.OperationMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.OperationMetadata other) { + if (other == com.google.cloud.functions.v2.OperationMetadata.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + onChanged(); + } + if (!other.getStatusDetail().isEmpty()) { + statusDetail_ = other.statusDetail_; + onChanged(); + } + if (other.getCancelRequested() != false) { + setCancelRequested(other.getCancelRequested()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + onChanged(); + } + if (other.hasRequestResource()) { + mergeRequestResource(other.getRequestResource()); + } + if (stagesBuilder_ == null) { + if (!other.stages_.isEmpty()) { + if (stages_.isEmpty()) { + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStagesIsMutable(); + stages_.addAll(other.stages_); + } + onChanged(); + } + } else { + if (!other.stages_.isEmpty()) { + if (stagesBuilder_.isEmpty()) { + stagesBuilder_.dispose(); + stagesBuilder_ = null; + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000001); + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStagesFieldBuilder() : null; + } else { + stagesBuilder_.addAllMessages(other.stages_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.OperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.OperationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
      +     * The time the operation was created.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + *
      +     * The time the operation was created.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
      +     * The time the operation was created.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * The time the operation was created.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * The time the operation was created.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * The time the operation was created.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
      +     * The time the operation was created.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
      +     * The time the operation was created.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
      +     * The time the operation was created.
      +     * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + /** + *
      +     * The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2; + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + *
      +     * The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2; + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + *
      +     * The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + *
      +     * The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + *
      +     * The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + *
      +     * The time the operation finished running.
      +     * 
      + * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + /** + *
      +     * Server-defined resource path for the target of the operation.
      +     * 
      + * + * string target = 3; + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Server-defined resource path for the target of the operation.
      +     * 
      + * + * string target = 3; + * @return The bytes for target. + */ + public com.google.protobuf.ByteString + getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Server-defined resource path for the target of the operation.
      +     * 
      + * + * string target = 3; + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + target_ = value; + onChanged(); + return this; + } + /** + *
      +     * Server-defined resource path for the target of the operation.
      +     * 
      + * + * string target = 3; + * @return This builder for chaining. + */ + public Builder clearTarget() { + + target_ = getDefaultInstance().getTarget(); + onChanged(); + return this; + } + /** + *
      +     * Server-defined resource path for the target of the operation.
      +     * 
      + * + * string target = 3; + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + target_ = value; + onChanged(); + return this; + } + + private java.lang.Object verb_ = ""; + /** + *
      +     * Name of the verb executed by the operation.
      +     * 
      + * + * string verb = 4; + * @return The verb. + */ + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Name of the verb executed by the operation.
      +     * 
      + * + * string verb = 4; + * @return The bytes for verb. + */ + public com.google.protobuf.ByteString + getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Name of the verb executed by the operation.
      +     * 
      + * + * string verb = 4; + * @param value The verb to set. + * @return This builder for chaining. + */ + public Builder setVerb( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + verb_ = value; + onChanged(); + return this; + } + /** + *
      +     * Name of the verb executed by the operation.
      +     * 
      + * + * string verb = 4; + * @return This builder for chaining. + */ + public Builder clearVerb() { + + verb_ = getDefaultInstance().getVerb(); + onChanged(); + return this; + } + /** + *
      +     * Name of the verb executed by the operation.
      +     * 
      + * + * string verb = 4; + * @param value The bytes for verb to set. + * @return This builder for chaining. + */ + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + verb_ = value; + onChanged(); + return this; + } + + private java.lang.Object statusDetail_ = ""; + /** + *
      +     * Human-readable status of the operation, if any.
      +     * 
      + * + * string status_detail = 5; + * @return The statusDetail. + */ + public java.lang.String getStatusDetail() { + java.lang.Object ref = statusDetail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDetail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Human-readable status of the operation, if any.
      +     * 
      + * + * string status_detail = 5; + * @return The bytes for statusDetail. + */ + public com.google.protobuf.ByteString + getStatusDetailBytes() { + java.lang.Object ref = statusDetail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDetail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Human-readable status of the operation, if any.
      +     * 
      + * + * string status_detail = 5; + * @param value The statusDetail to set. + * @return This builder for chaining. + */ + public Builder setStatusDetail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusDetail_ = value; + onChanged(); + return this; + } + /** + *
      +     * Human-readable status of the operation, if any.
      +     * 
      + * + * string status_detail = 5; + * @return This builder for chaining. + */ + public Builder clearStatusDetail() { + + statusDetail_ = getDefaultInstance().getStatusDetail(); + onChanged(); + return this; + } + /** + *
      +     * Human-readable status of the operation, if any.
      +     * 
      + * + * string status_detail = 5; + * @param value The bytes for statusDetail to set. + * @return This builder for chaining. + */ + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusDetail_ = value; + onChanged(); + return this; + } + + private boolean cancelRequested_ ; + /** + *
      +     * 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`.
      +     * 
      + * + * bool cancel_requested = 6; + * @return The cancelRequested. + */ + @java.lang.Override + public boolean getCancelRequested() { + return cancelRequested_; + } + /** + *
      +     * 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`.
      +     * 
      + * + * bool cancel_requested = 6; + * @param value The cancelRequested to set. + * @return This builder for chaining. + */ + public Builder setCancelRequested(boolean value) { + + cancelRequested_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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`.
      +     * 
      + * + * bool cancel_requested = 6; + * @return This builder for chaining. + */ + public Builder clearCancelRequested() { + + cancelRequested_ = false; + onChanged(); + return this; + } + + private java.lang.Object apiVersion_ = ""; + /** + *
      +     * API version used to start the operation.
      +     * 
      + * + * string api_version = 7; + * @return The apiVersion. + */ + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * API version used to start the operation.
      +     * 
      + * + * string api_version = 7; + * @return The bytes for apiVersion. + */ + public com.google.protobuf.ByteString + getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * API version used to start the operation.
      +     * 
      + * + * string api_version = 7; + * @param value The apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + apiVersion_ = value; + onChanged(); + return this; + } + /** + *
      +     * API version used to start the operation.
      +     * 
      + * + * string api_version = 7; + * @return This builder for chaining. + */ + public Builder clearApiVersion() { + + apiVersion_ = getDefaultInstance().getApiVersion(); + onChanged(); + return this; + } + /** + *
      +     * API version used to start the operation.
      +     * 
      + * + * string api_version = 7; + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + apiVersion_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Any requestResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> requestResourceBuilder_; + /** + *
      +     * The original request that started the operation.
      +     * 
      + * + * .google.protobuf.Any request_resource = 8; + * @return Whether the requestResource field is set. + */ + public boolean hasRequestResource() { + return requestResourceBuilder_ != null || requestResource_ != null; + } + /** + *
      +     * The original request that started the operation.
      +     * 
      + * + * .google.protobuf.Any request_resource = 8; + * @return The requestResource. + */ + public com.google.protobuf.Any getRequestResource() { + if (requestResourceBuilder_ == null) { + return requestResource_ == null ? com.google.protobuf.Any.getDefaultInstance() : requestResource_; + } else { + return requestResourceBuilder_.getMessage(); + } + } + /** + *
      +     * The original request that started the operation.
      +     * 
      + * + * .google.protobuf.Any request_resource = 8; + */ + public Builder setRequestResource(com.google.protobuf.Any value) { + if (requestResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestResource_ = value; + onChanged(); + } else { + requestResourceBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * The original request that started the operation.
      +     * 
      + * + * .google.protobuf.Any request_resource = 8; + */ + public Builder setRequestResource( + com.google.protobuf.Any.Builder builderForValue) { + if (requestResourceBuilder_ == null) { + requestResource_ = builderForValue.build(); + onChanged(); + } else { + requestResourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * The original request that started the operation.
      +     * 
      + * + * .google.protobuf.Any request_resource = 8; + */ + public Builder mergeRequestResource(com.google.protobuf.Any value) { + if (requestResourceBuilder_ == null) { + if (requestResource_ != null) { + requestResource_ = + com.google.protobuf.Any.newBuilder(requestResource_).mergeFrom(value).buildPartial(); + } else { + requestResource_ = value; + } + onChanged(); + } else { + requestResourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * The original request that started the operation.
      +     * 
      + * + * .google.protobuf.Any request_resource = 8; + */ + public Builder clearRequestResource() { + if (requestResourceBuilder_ == null) { + requestResource_ = null; + onChanged(); + } else { + requestResource_ = null; + requestResourceBuilder_ = null; + } + + return this; + } + /** + *
      +     * The original request that started the operation.
      +     * 
      + * + * .google.protobuf.Any request_resource = 8; + */ + public com.google.protobuf.Any.Builder getRequestResourceBuilder() { + + onChanged(); + return getRequestResourceFieldBuilder().getBuilder(); + } + /** + *
      +     * The original request that started the operation.
      +     * 
      + * + * .google.protobuf.Any request_resource = 8; + */ + public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { + if (requestResourceBuilder_ != null) { + return requestResourceBuilder_.getMessageOrBuilder(); + } else { + return requestResource_ == null ? + com.google.protobuf.Any.getDefaultInstance() : requestResource_; + } + } + /** + *
      +     * The original request that started the operation.
      +     * 
      + * + * .google.protobuf.Any request_resource = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + getRequestResourceFieldBuilder() { + if (requestResourceBuilder_ == null) { + requestResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( + getRequestResource(), + getParentForChildren(), + isClean()); + requestResource_ = null; + } + return requestResourceBuilder_; + } + + private java.util.List stages_ = + java.util.Collections.emptyList(); + private void ensureStagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + stages_ = new java.util.ArrayList(stages_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.Stage, com.google.cloud.functions.v2.Stage.Builder, com.google.cloud.functions.v2.StageOrBuilder> stagesBuilder_; + + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public java.util.List getStagesList() { + if (stagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(stages_); + } else { + return stagesBuilder_.getMessageList(); + } + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public int getStagesCount() { + if (stagesBuilder_ == null) { + return stages_.size(); + } else { + return stagesBuilder_.getCount(); + } + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public com.google.cloud.functions.v2.Stage getStages(int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); + } else { + return stagesBuilder_.getMessage(index); + } + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public Builder setStages( + int index, com.google.cloud.functions.v2.Stage value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.set(index, value); + onChanged(); + } else { + stagesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public Builder setStages( + int index, com.google.cloud.functions.v2.Stage.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.set(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public Builder addStages(com.google.cloud.functions.v2.Stage value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(value); + onChanged(); + } else { + stagesBuilder_.addMessage(value); + } + return this; + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public Builder addStages( + int index, com.google.cloud.functions.v2.Stage value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(index, value); + onChanged(); + } else { + stagesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public Builder addStages( + com.google.cloud.functions.v2.Stage.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public Builder addStages( + int index, com.google.cloud.functions.v2.Stage.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public Builder addAllStages( + java.lang.Iterable values) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stages_); + onChanged(); + } else { + stagesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public Builder clearStages() { + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + stagesBuilder_.clear(); + } + return this; + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public Builder removeStages(int index) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.remove(index); + onChanged(); + } else { + stagesBuilder_.remove(index); + } + return this; + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public com.google.cloud.functions.v2.Stage.Builder getStagesBuilder( + int index) { + return getStagesFieldBuilder().getBuilder(index); + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public com.google.cloud.functions.v2.StageOrBuilder getStagesOrBuilder( + int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); } else { + return stagesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public java.util.List + getStagesOrBuilderList() { + if (stagesBuilder_ != null) { + return stagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stages_); + } + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public com.google.cloud.functions.v2.Stage.Builder addStagesBuilder() { + return getStagesFieldBuilder().addBuilder( + com.google.cloud.functions.v2.Stage.getDefaultInstance()); + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public com.google.cloud.functions.v2.Stage.Builder addStagesBuilder( + int index) { + return getStagesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2.Stage.getDefaultInstance()); + } + /** + *
      +     * Mechanism for reporting in-progress stages
      +     * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + public java.util.List + getStagesBuilderList() { + return getStagesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.Stage, com.google.cloud.functions.v2.Stage.Builder, com.google.cloud.functions.v2.StageOrBuilder> + getStagesFieldBuilder() { + if (stagesBuilder_ == null) { + stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.Stage, com.google.cloud.functions.v2.Stage.Builder, com.google.cloud.functions.v2.StageOrBuilder>( + stages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + stages_ = null; + } + return stagesBuilder_; + } + @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.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.OperationMetadata) + private static final com.google.cloud.functions.v2.OperationMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.OperationMetadata(); + } + + public static com.google.cloud.functions.v2.OperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; + + 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.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadataOrBuilder.java new file mode 100644 index 00000000..b6484ac8 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadataOrBuilder.java @@ -0,0 +1,227 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface OperationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.OperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
      +   * The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
      +   * The time the operation was created.
      +   * 
      + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
      +   * The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2; + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + *
      +   * The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2; + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + *
      +   * The time the operation finished running.
      +   * 
      + * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + *
      +   * Server-defined resource path for the target of the operation.
      +   * 
      + * + * string target = 3; + * @return The target. + */ + java.lang.String getTarget(); + /** + *
      +   * Server-defined resource path for the target of the operation.
      +   * 
      + * + * string target = 3; + * @return The bytes for target. + */ + com.google.protobuf.ByteString + getTargetBytes(); + + /** + *
      +   * Name of the verb executed by the operation.
      +   * 
      + * + * string verb = 4; + * @return The verb. + */ + java.lang.String getVerb(); + /** + *
      +   * Name of the verb executed by the operation.
      +   * 
      + * + * string verb = 4; + * @return The bytes for verb. + */ + com.google.protobuf.ByteString + getVerbBytes(); + + /** + *
      +   * Human-readable status of the operation, if any.
      +   * 
      + * + * string status_detail = 5; + * @return The statusDetail. + */ + java.lang.String getStatusDetail(); + /** + *
      +   * Human-readable status of the operation, if any.
      +   * 
      + * + * string status_detail = 5; + * @return The bytes for statusDetail. + */ + 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`.
      +   * 
      + * + * bool cancel_requested = 6; + * @return The cancelRequested. + */ + boolean getCancelRequested(); + + /** + *
      +   * API version used to start the operation.
      +   * 
      + * + * string api_version = 7; + * @return The apiVersion. + */ + java.lang.String getApiVersion(); + /** + *
      +   * API version used to start the operation.
      +   * 
      + * + * string api_version = 7; + * @return The bytes for apiVersion. + */ + com.google.protobuf.ByteString + getApiVersionBytes(); + + /** + *
      +   * The original request that started the operation.
      +   * 
      + * + * .google.protobuf.Any request_resource = 8; + * @return Whether the requestResource field is set. + */ + boolean hasRequestResource(); + /** + *
      +   * The original request that started the operation.
      +   * 
      + * + * .google.protobuf.Any request_resource = 8; + * @return The requestResource. + */ + com.google.protobuf.Any getRequestResource(); + /** + *
      +   * The original request that started the operation.
      +   * 
      + * + * .google.protobuf.Any request_resource = 8; + */ + com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder(); + + /** + *
      +   * Mechanism for reporting in-progress stages
      +   * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + java.util.List + getStagesList(); + /** + *
      +   * Mechanism for reporting in-progress stages
      +   * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + com.google.cloud.functions.v2.Stage getStages(int index); + /** + *
      +   * Mechanism for reporting in-progress stages
      +   * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + int getStagesCount(); + /** + *
      +   * Mechanism for reporting in-progress stages
      +   * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + java.util.List + getStagesOrBuilderList(); + /** + *
      +   * Mechanism for reporting in-progress stages
      +   * 
      + * + * repeated .google.cloud.functions.v2.Stage stages = 9; + */ + com.google.cloud.functions.v2.StageOrBuilder getStagesOrBuilder( + int index); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java new file mode 100644 index 00000000..a3abef29 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java @@ -0,0 +1,1793 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Location of the source in a Google Cloud Source Repository.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.RepoSource} + */ +public final class RepoSource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.RepoSource) + RepoSourceOrBuilder { +private static final long serialVersionUID = 0L; + // Use RepoSource.newBuilder() to construct. + private RepoSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RepoSource() { + projectId_ = ""; + repoName_ = ""; + dir_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RepoSource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RepoSource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + repoName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 3; + revision_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 4; + revision_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 5; + revision_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + dir_ = s; + break; + } + case 56: { + + invertRegex_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_RepoSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_RepoSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.RepoSource.class, com.google.cloud.functions.v2.RepoSource.Builder.class); + } + + private int revisionCase_ = 0; + private java.lang.Object revision_; + public enum RevisionCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BRANCH_NAME(3), + TAG_NAME(4), + COMMIT_SHA(5), + REVISION_NOT_SET(0); + private final int value; + private RevisionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RevisionCase valueOf(int value) { + return forNumber(value); + } + + public static RevisionCase forNumber(int value) { + switch (value) { + case 3: return BRANCH_NAME; + case 4: return TAG_NAME; + case 5: return COMMIT_SHA; + case 0: return REVISION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public RevisionCase + getRevisionCase() { + return RevisionCase.forNumber( + revisionCase_); + } + + public static final int BRANCH_NAME_FIELD_NUMBER = 3; + /** + *
      +   * 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
      +   * 
      + * + * string branch_name = 3; + * @return Whether the branchName field is set. + */ + public boolean hasBranchName() { + return revisionCase_ == 3; + } + /** + *
      +   * 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
      +   * 
      + * + * string branch_name = 3; + * @return The branchName. + */ + public java.lang.String getBranchName() { + java.lang.Object ref = ""; + if (revisionCase_ == 3) { + ref = revision_; + } + 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(); + if (revisionCase_ == 3) { + revision_ = s; + } + return s; + } + } + /** + *
      +   * 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
      +   * 
      + * + * string branch_name = 3; + * @return The bytes for branchName. + */ + public com.google.protobuf.ByteString + getBranchNameBytes() { + java.lang.Object ref = ""; + if (revisionCase_ == 3) { + ref = revision_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (revisionCase_ == 3) { + revision_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAG_NAME_FIELD_NUMBER = 4; + /** + *
      +   * 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
      +   * 
      + * + * string tag_name = 4; + * @return Whether the tagName field is set. + */ + public boolean hasTagName() { + return revisionCase_ == 4; + } + /** + *
      +   * 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
      +   * 
      + * + * string tag_name = 4; + * @return The tagName. + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (revisionCase_ == 4) { + ref = revision_; + } + 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(); + if (revisionCase_ == 4) { + revision_ = s; + } + return s; + } + } + /** + *
      +   * 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
      +   * 
      + * + * string tag_name = 4; + * @return The bytes for tagName. + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (revisionCase_ == 4) { + ref = revision_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (revisionCase_ == 4) { + revision_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_SHA_FIELD_NUMBER = 5; + /** + *
      +   * Explicit commit SHA to build.
      +   * 
      + * + * string commit_sha = 5; + * @return Whether the commitSha field is set. + */ + public boolean hasCommitSha() { + return revisionCase_ == 5; + } + /** + *
      +   * Explicit commit SHA to build.
      +   * 
      + * + * string commit_sha = 5; + * @return The commitSha. + */ + public java.lang.String getCommitSha() { + java.lang.Object ref = ""; + if (revisionCase_ == 5) { + ref = revision_; + } + 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(); + if (revisionCase_ == 5) { + revision_ = s; + } + return s; + } + } + /** + *
      +   * Explicit commit SHA to build.
      +   * 
      + * + * string commit_sha = 5; + * @return The bytes for commitSha. + */ + public com.google.protobuf.ByteString + getCommitShaBytes() { + java.lang.Object ref = ""; + if (revisionCase_ == 5) { + ref = revision_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (revisionCase_ == 5) { + revision_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
      +   * ID of the project that owns the Cloud Source Repository. If omitted, the
      +   * project ID requesting the build is assumed.
      +   * 
      + * + * string project_id = 1; + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + /** + *
      +   * ID of the project that owns the Cloud Source Repository. If omitted, the
      +   * project ID requesting the build is assumed.
      +   * 
      + * + * string project_id = 1; + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPO_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object repoName_; + /** + *
      +   * Name of the Cloud Source Repository.
      +   * 
      + * + * string repo_name = 2; + * @return The repoName. + */ + @java.lang.Override + public java.lang.String getRepoName() { + java.lang.Object ref = repoName_; + 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(); + repoName_ = s; + return s; + } + } + /** + *
      +   * Name of the Cloud Source Repository.
      +   * 
      + * + * string repo_name = 2; + * @return The bytes for repoName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRepoNameBytes() { + java.lang.Object ref = repoName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repoName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIR_FIELD_NUMBER = 6; + private volatile java.lang.Object dir_; + /** + *
      +   * 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)
      +   * 
      + * + * string dir = 6; + * @return The dir. + */ + @java.lang.Override + public java.lang.String getDir() { + java.lang.Object ref = dir_; + 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(); + dir_ = s; + return s; + } + } + /** + *
      +   * 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)
      +   * 
      + * + * string dir = 6; + * @return The bytes for dir. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INVERT_REGEX_FIELD_NUMBER = 7; + private boolean invertRegex_; + /** + *
      +   * Only trigger a build if the revision regex does NOT match the revision
      +   * regex.
      +   * 
      + * + * bool invert_regex = 7; + * @return The invertRegex. + */ + @java.lang.Override + public boolean getInvertRegex() { + return invertRegex_; + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repoName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, repoName_); + } + if (revisionCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, revision_); + } + if (revisionCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, revision_); + } + if (revisionCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, revision_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, dir_); + } + if (invertRegex_ != false) { + output.writeBool(7, invertRegex_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repoName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, repoName_); + } + if (revisionCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, revision_); + } + if (revisionCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revision_); + } + if (revisionCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, revision_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dir_); + } + if (invertRegex_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, invertRegex_); + } + size += unknownFields.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.RepoSource)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.RepoSource other = (com.google.cloud.functions.v2.RepoSource) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRepoName() + .equals(other.getRepoName())) return false; + if (!getDir() + .equals(other.getDir())) return false; + if (getInvertRegex() + != other.getInvertRegex()) return false; + if (!getRevisionCase().equals(other.getRevisionCase())) return false; + switch (revisionCase_) { + case 3: + if (!getBranchName() + .equals(other.getBranchName())) return false; + break; + case 4: + if (!getTagName() + .equals(other.getTagName())) return false; + break; + case 5: + if (!getCommitSha() + .equals(other.getCommitSha())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + REPO_NAME_FIELD_NUMBER; + hash = (53 * hash) + getRepoName().hashCode(); + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir().hashCode(); + hash = (37 * hash) + INVERT_REGEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInvertRegex()); + switch (revisionCase_) { + case 3: + hash = (37 * hash) + BRANCH_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBranchName().hashCode(); + break; + case 4: + hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTagName().hashCode(); + break; + case 5: + hash = (37 * hash) + COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getCommitSha().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.RepoSource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.RepoSource 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.RepoSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.RepoSource 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.RepoSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.RepoSource 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.RepoSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.RepoSource 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.RepoSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.RepoSource 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.RepoSource 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.RepoSource 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.RepoSource 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; + } + /** + *
      +   * Location of the source in a Google Cloud Source Repository.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.RepoSource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.RepoSource) + com.google.cloud.functions.v2.RepoSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_RepoSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_RepoSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.RepoSource.class, com.google.cloud.functions.v2.RepoSource.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.RepoSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + repoName_ = ""; + + dir_ = ""; + + invertRegex_ = false; + + revisionCase_ = 0; + revision_ = null; + 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_RepoSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.RepoSource getDefaultInstanceForType() { + return com.google.cloud.functions.v2.RepoSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.RepoSource build() { + com.google.cloud.functions.v2.RepoSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.RepoSource buildPartial() { + com.google.cloud.functions.v2.RepoSource result = new com.google.cloud.functions.v2.RepoSource(this); + if (revisionCase_ == 3) { + result.revision_ = revision_; + } + if (revisionCase_ == 4) { + result.revision_ = revision_; + } + if (revisionCase_ == 5) { + result.revision_ = revision_; + } + result.projectId_ = projectId_; + result.repoName_ = repoName_; + result.dir_ = dir_; + result.invertRegex_ = invertRegex_; + result.revisionCase_ = revisionCase_; + onBuilt(); + 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.v2.RepoSource) { + return mergeFrom((com.google.cloud.functions.v2.RepoSource)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.RepoSource other) { + if (other == com.google.cloud.functions.v2.RepoSource.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getRepoName().isEmpty()) { + repoName_ = other.repoName_; + onChanged(); + } + if (!other.getDir().isEmpty()) { + dir_ = other.dir_; + onChanged(); + } + if (other.getInvertRegex() != false) { + setInvertRegex(other.getInvertRegex()); + } + switch (other.getRevisionCase()) { + case BRANCH_NAME: { + revisionCase_ = 3; + revision_ = other.revision_; + onChanged(); + break; + } + case TAG_NAME: { + revisionCase_ = 4; + revision_ = other.revision_; + onChanged(); + break; + } + case COMMIT_SHA: { + revisionCase_ = 5; + revision_ = other.revision_; + onChanged(); + break; + } + case REVISION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.RepoSource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.RepoSource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int revisionCase_ = 0; + private java.lang.Object revision_; + public RevisionCase + getRevisionCase() { + return RevisionCase.forNumber( + revisionCase_); + } + + public Builder clearRevision() { + revisionCase_ = 0; + revision_ = null; + onChanged(); + return this; + } + + + /** + *
      +     * 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
      +     * 
      + * + * string branch_name = 3; + * @return Whether the branchName field is set. + */ + @java.lang.Override + public boolean hasBranchName() { + return revisionCase_ == 3; + } + /** + *
      +     * 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
      +     * 
      + * + * string branch_name = 3; + * @return The branchName. + */ + @java.lang.Override + public java.lang.String getBranchName() { + java.lang.Object ref = ""; + if (revisionCase_ == 3) { + ref = revision_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (revisionCase_ == 3) { + revision_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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
      +     * 
      + * + * string branch_name = 3; + * @return The bytes for branchName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBranchNameBytes() { + java.lang.Object ref = ""; + if (revisionCase_ == 3) { + ref = revision_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (revisionCase_ == 3) { + revision_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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
      +     * 
      + * + * string branch_name = 3; + * @param value The branchName to set. + * @return This builder for chaining. + */ + public Builder setBranchName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionCase_ = 3; + revision_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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
      +     * 
      + * + * string branch_name = 3; + * @return This builder for chaining. + */ + public Builder clearBranchName() { + if (revisionCase_ == 3) { + revisionCase_ = 0; + revision_ = null; + onChanged(); + } + return this; + } + /** + *
      +     * 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
      +     * 
      + * + * string branch_name = 3; + * @param value The bytes for branchName to set. + * @return This builder for chaining. + */ + public Builder setBranchNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionCase_ = 3; + revision_ = value; + onChanged(); + return this; + } + + /** + *
      +     * 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
      +     * 
      + * + * string tag_name = 4; + * @return Whether the tagName field is set. + */ + @java.lang.Override + public boolean hasTagName() { + return revisionCase_ == 4; + } + /** + *
      +     * 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
      +     * 
      + * + * string tag_name = 4; + * @return The tagName. + */ + @java.lang.Override + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (revisionCase_ == 4) { + ref = revision_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (revisionCase_ == 4) { + revision_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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
      +     * 
      + * + * string tag_name = 4; + * @return The bytes for tagName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (revisionCase_ == 4) { + ref = revision_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (revisionCase_ == 4) { + revision_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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
      +     * 
      + * + * string tag_name = 4; + * @param value The tagName to set. + * @return This builder for chaining. + */ + public Builder setTagName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionCase_ = 4; + revision_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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
      +     * 
      + * + * string tag_name = 4; + * @return This builder for chaining. + */ + public Builder clearTagName() { + if (revisionCase_ == 4) { + revisionCase_ = 0; + revision_ = null; + onChanged(); + } + return this; + } + /** + *
      +     * 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
      +     * 
      + * + * string tag_name = 4; + * @param value The bytes for tagName to set. + * @return This builder for chaining. + */ + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionCase_ = 4; + revision_ = value; + onChanged(); + return this; + } + + /** + *
      +     * Explicit commit SHA to build.
      +     * 
      + * + * string commit_sha = 5; + * @return Whether the commitSha field is set. + */ + @java.lang.Override + public boolean hasCommitSha() { + return revisionCase_ == 5; + } + /** + *
      +     * Explicit commit SHA to build.
      +     * 
      + * + * string commit_sha = 5; + * @return The commitSha. + */ + @java.lang.Override + public java.lang.String getCommitSha() { + java.lang.Object ref = ""; + if (revisionCase_ == 5) { + ref = revision_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (revisionCase_ == 5) { + revision_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Explicit commit SHA to build.
      +     * 
      + * + * string commit_sha = 5; + * @return The bytes for commitSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommitShaBytes() { + java.lang.Object ref = ""; + if (revisionCase_ == 5) { + ref = revision_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (revisionCase_ == 5) { + revision_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Explicit commit SHA to build.
      +     * 
      + * + * string commit_sha = 5; + * @param value The commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitSha( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionCase_ = 5; + revision_ = value; + onChanged(); + return this; + } + /** + *
      +     * Explicit commit SHA to build.
      +     * 
      + * + * string commit_sha = 5; + * @return This builder for chaining. + */ + public Builder clearCommitSha() { + if (revisionCase_ == 5) { + revisionCase_ = 0; + revision_ = null; + onChanged(); + } + return this; + } + /** + *
      +     * Explicit commit SHA to build.
      +     * 
      + * + * string commit_sha = 5; + * @param value The bytes for commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitShaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionCase_ = 5; + revision_ = value; + onChanged(); + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
      +     * ID of the project that owns the Cloud Source Repository. If omitted, the
      +     * project ID requesting the build is assumed.
      +     * 
      + * + * string project_id = 1; + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * ID of the project that owns the Cloud Source Repository. If omitted, the
      +     * project ID requesting the build is assumed.
      +     * 
      + * + * string project_id = 1; + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * ID of the project that owns the Cloud Source Repository. If omitted, the
      +     * project ID requesting the build is assumed.
      +     * 
      + * + * string project_id = 1; + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
      +     * ID of the project that owns the Cloud Source Repository. If omitted, the
      +     * project ID requesting the build is assumed.
      +     * 
      + * + * string project_id = 1; + * @return This builder for chaining. + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
      +     * ID of the project that owns the Cloud Source Repository. If omitted, the
      +     * project ID requesting the build is assumed.
      +     * 
      + * + * string project_id = 1; + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object repoName_ = ""; + /** + *
      +     * Name of the Cloud Source Repository.
      +     * 
      + * + * string repo_name = 2; + * @return The repoName. + */ + public java.lang.String getRepoName() { + java.lang.Object ref = repoName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repoName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Name of the Cloud Source Repository.
      +     * 
      + * + * string repo_name = 2; + * @return The bytes for repoName. + */ + public com.google.protobuf.ByteString + getRepoNameBytes() { + java.lang.Object ref = repoName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repoName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Name of the Cloud Source Repository.
      +     * 
      + * + * string repo_name = 2; + * @param value The repoName to set. + * @return This builder for chaining. + */ + public Builder setRepoName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + repoName_ = value; + onChanged(); + return this; + } + /** + *
      +     * Name of the Cloud Source Repository.
      +     * 
      + * + * string repo_name = 2; + * @return This builder for chaining. + */ + public Builder clearRepoName() { + + repoName_ = getDefaultInstance().getRepoName(); + onChanged(); + return this; + } + /** + *
      +     * Name of the Cloud Source Repository.
      +     * 
      + * + * string repo_name = 2; + * @param value The bytes for repoName to set. + * @return This builder for chaining. + */ + public Builder setRepoNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + repoName_ = value; + onChanged(); + return this; + } + + private java.lang.Object dir_ = ""; + /** + *
      +     * 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)
      +     * 
      + * + * string dir = 6; + * @return The dir. + */ + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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)
      +     * 
      + * + * string dir = 6; + * @return The bytes for dir. + */ + public com.google.protobuf.ByteString + getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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)
      +     * 
      + * + * string dir = 6; + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dir_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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)
      +     * 
      + * + * string dir = 6; + * @return This builder for chaining. + */ + public Builder clearDir() { + + dir_ = getDefaultInstance().getDir(); + onChanged(); + return this; + } + /** + *
      +     * 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)
      +     * 
      + * + * string dir = 6; + * @param value The bytes for dir to set. + * @return This builder for chaining. + */ + public Builder setDirBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dir_ = value; + onChanged(); + return this; + } + + private boolean invertRegex_ ; + /** + *
      +     * Only trigger a build if the revision regex does NOT match the revision
      +     * regex.
      +     * 
      + * + * bool invert_regex = 7; + * @return The invertRegex. + */ + @java.lang.Override + public boolean getInvertRegex() { + return invertRegex_; + } + /** + *
      +     * Only trigger a build if the revision regex does NOT match the revision
      +     * regex.
      +     * 
      + * + * bool invert_regex = 7; + * @param value The invertRegex to set. + * @return This builder for chaining. + */ + public Builder setInvertRegex(boolean value) { + + invertRegex_ = value; + onChanged(); + return this; + } + /** + *
      +     * Only trigger a build if the revision regex does NOT match the revision
      +     * regex.
      +     * 
      + * + * bool invert_regex = 7; + * @return This builder for chaining. + */ + public Builder clearInvertRegex() { + + invertRegex_ = false; + 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.RepoSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.RepoSource) + private static final com.google.cloud.functions.v2.RepoSource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.RepoSource(); + } + + public static com.google.cloud.functions.v2.RepoSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepoSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RepoSource(input, extensionRegistry); + } + }; + + 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.RepoSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java new file mode 100644 index 00000000..5c1ebab5 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java @@ -0,0 +1,189 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface RepoSourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.RepoSource) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * 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
      +   * 
      + * + * string branch_name = 3; + * @return Whether the branchName field is set. + */ + 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
      +   * 
      + * + * string branch_name = 3; + * @return The branchName. + */ + 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
      +   * 
      + * + * string branch_name = 3; + * @return The bytes for branchName. + */ + 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
      +   * 
      + * + * string tag_name = 4; + * @return Whether the tagName field is set. + */ + 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
      +   * 
      + * + * string tag_name = 4; + * @return The tagName. + */ + 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
      +   * 
      + * + * string tag_name = 4; + * @return The bytes for tagName. + */ + com.google.protobuf.ByteString + getTagNameBytes(); + + /** + *
      +   * Explicit commit SHA to build.
      +   * 
      + * + * string commit_sha = 5; + * @return Whether the commitSha field is set. + */ + boolean hasCommitSha(); + /** + *
      +   * Explicit commit SHA to build.
      +   * 
      + * + * string commit_sha = 5; + * @return The commitSha. + */ + java.lang.String getCommitSha(); + /** + *
      +   * Explicit commit SHA to build.
      +   * 
      + * + * string commit_sha = 5; + * @return The bytes for commitSha. + */ + com.google.protobuf.ByteString + getCommitShaBytes(); + + /** + *
      +   * ID of the project that owns the Cloud Source Repository. If omitted, the
      +   * project ID requesting the build is assumed.
      +   * 
      + * + * string project_id = 1; + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + *
      +   * ID of the project that owns the Cloud Source Repository. If omitted, the
      +   * project ID requesting the build is assumed.
      +   * 
      + * + * string project_id = 1; + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
      +   * Name of the Cloud Source Repository.
      +   * 
      + * + * string repo_name = 2; + * @return The repoName. + */ + java.lang.String getRepoName(); + /** + *
      +   * Name of the Cloud Source Repository.
      +   * 
      + * + * string repo_name = 2; + * @return The bytes for repoName. + */ + 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)
      +   * 
      + * + * string dir = 6; + * @return The dir. + */ + 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)
      +   * 
      + * + * string dir = 6; + * @return The bytes for dir. + */ + com.google.protobuf.ByteString + getDirBytes(); + + /** + *
      +   * Only trigger a build if the revision regex does NOT match the revision
      +   * regex.
      +   * 
      + * + * bool invert_regex = 7; + * @return The invertRegex. + */ + boolean getInvertRegex(); + + public com.google.cloud.functions.v2.RepoSource.RevisionCase getRevisionCase(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java new file mode 100644 index 00000000..e0f6217f --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java @@ -0,0 +1,1132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Configuration for a secret environment variable. It has the information
      + * necessary to fetch the secret value from secret manager and expose it as an
      + * environment variable.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.SecretEnvVar} + */ +public final class SecretEnvVar extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.SecretEnvVar) + SecretEnvVarOrBuilder { +private static final long serialVersionUID = 0L; + // Use SecretEnvVar.newBuilder() to construct. + private SecretEnvVar(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecretEnvVar() { + key_ = ""; + projectId_ = ""; + secret_ = ""; + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecretEnvVar(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SecretEnvVar( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + secret_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretEnvVar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.SecretEnvVar.class, com.google.cloud.functions.v2.SecretEnvVar.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
      +   * Name of the environment variable.
      +   * 
      + * + * string key = 1; + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + /** + *
      +   * Name of the environment variable.
      +   * 
      + * + * string key = 1; + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object projectId_; + /** + *
      +   * Project identifier (preferably project number but can also be the
      +   * project ID) of the project that contains the secret. If not set, it is
      +   * assumed that the secret is in the same project as the function.
      +   * 
      + * + * string project_id = 2; + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + /** + *
      +   * Project identifier (preferably project number but can also be the
      +   * project ID) of the project that contains the secret. If not set, it is
      +   * assumed that the secret is in the same project as the function.
      +   * 
      + * + * string project_id = 2; + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECRET_FIELD_NUMBER = 3; + private volatile java.lang.Object secret_; + /** + *
      +   * Name of the secret in secret manager (not the full resource name).
      +   * 
      + * + * string secret = 3; + * @return The secret. + */ + @java.lang.Override + public java.lang.String getSecret() { + java.lang.Object ref = secret_; + 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(); + secret_ = s; + return s; + } + } + /** + *
      +   * Name of the secret in secret manager (not the full resource name).
      +   * 
      + * + * string secret = 3; + * @return The bytes for secret. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSecretBytes() { + java.lang.Object ref = secret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object version_; + /** + *
      +   * Version of the secret (version number or the string 'latest'). It is
      +   * recommended to use a numeric version for secret environment variables as
      +   * any updates to the secret value is not reflected until new instances
      +   * start.
      +   * 
      + * + * string version = 4; + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + /** + *
      +   * Version of the secret (version number or the string 'latest'). It is
      +   * recommended to use a numeric version for secret environment variables as
      +   * any updates to the secret value is not reflected until new instances
      +   * start.
      +   * 
      + * + * string version = 4; + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secret_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secret_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secret_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secret_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); + } + size += unknownFields.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.SecretEnvVar)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.SecretEnvVar other = (com.google.cloud.functions.v2.SecretEnvVar) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getSecret() + .equals(other.getSecret())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + SECRET_FIELD_NUMBER; + hash = (53 * hash) + getSecret().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.SecretEnvVar parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.SecretEnvVar 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.SecretEnvVar parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.SecretEnvVar 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.SecretEnvVar parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.SecretEnvVar 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.SecretEnvVar parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.SecretEnvVar 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.SecretEnvVar parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.SecretEnvVar 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.SecretEnvVar 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.SecretEnvVar 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.SecretEnvVar 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; + } + /** + *
      +   * Configuration for a secret environment variable. It has the information
      +   * necessary to fetch the secret value from secret manager and expose it as an
      +   * environment variable.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.SecretEnvVar} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.SecretEnvVar) + com.google.cloud.functions.v2.SecretEnvVarOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretEnvVar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.SecretEnvVar.class, com.google.cloud.functions.v2.SecretEnvVar.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.SecretEnvVar.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + projectId_ = ""; + + secret_ = ""; + + version_ = ""; + + 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_SecretEnvVar_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.SecretEnvVar getDefaultInstanceForType() { + return com.google.cloud.functions.v2.SecretEnvVar.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.SecretEnvVar build() { + com.google.cloud.functions.v2.SecretEnvVar result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.SecretEnvVar buildPartial() { + com.google.cloud.functions.v2.SecretEnvVar result = new com.google.cloud.functions.v2.SecretEnvVar(this); + result.key_ = key_; + result.projectId_ = projectId_; + result.secret_ = secret_; + result.version_ = version_; + onBuilt(); + 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.v2.SecretEnvVar) { + return mergeFrom((com.google.cloud.functions.v2.SecretEnvVar)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.SecretEnvVar other) { + if (other == com.google.cloud.functions.v2.SecretEnvVar.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getSecret().isEmpty()) { + secret_ = other.secret_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.SecretEnvVar parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.SecretEnvVar) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + *
      +     * Name of the environment variable.
      +     * 
      + * + * string key = 1; + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Name of the environment variable.
      +     * 
      + * + * string key = 1; + * @return The bytes for key. + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Name of the environment variable.
      +     * 
      + * + * string key = 1; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
      +     * Name of the environment variable.
      +     * 
      + * + * string key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
      +     * Name of the environment variable.
      +     * 
      + * + * string key = 1; + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
      +     * Project identifier (preferably project number but can also be the
      +     * project ID) of the project that contains the secret. If not set, it is
      +     * assumed that the secret is in the same project as the function.
      +     * 
      + * + * string project_id = 2; + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Project identifier (preferably project number but can also be the
      +     * project ID) of the project that contains the secret. If not set, it is
      +     * assumed that the secret is in the same project as the function.
      +     * 
      + * + * string project_id = 2; + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Project identifier (preferably project number but can also be the
      +     * project ID) of the project that contains the secret. If not set, it is
      +     * assumed that the secret is in the same project as the function.
      +     * 
      + * + * string project_id = 2; + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
      +     * Project identifier (preferably project number but can also be the
      +     * project ID) of the project that contains the secret. If not set, it is
      +     * assumed that the secret is in the same project as the function.
      +     * 
      + * + * string project_id = 2; + * @return This builder for chaining. + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
      +     * Project identifier (preferably project number but can also be the
      +     * project ID) of the project that contains the secret. If not set, it is
      +     * assumed that the secret is in the same project as the function.
      +     * 
      + * + * string project_id = 2; + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object secret_ = ""; + /** + *
      +     * Name of the secret in secret manager (not the full resource name).
      +     * 
      + * + * string secret = 3; + * @return The secret. + */ + public java.lang.String getSecret() { + java.lang.Object ref = secret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Name of the secret in secret manager (not the full resource name).
      +     * 
      + * + * string secret = 3; + * @return The bytes for secret. + */ + public com.google.protobuf.ByteString + getSecretBytes() { + java.lang.Object ref = secret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Name of the secret in secret manager (not the full resource name).
      +     * 
      + * + * string secret = 3; + * @param value The secret to set. + * @return This builder for chaining. + */ + public Builder setSecret( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secret_ = value; + onChanged(); + return this; + } + /** + *
      +     * Name of the secret in secret manager (not the full resource name).
      +     * 
      + * + * string secret = 3; + * @return This builder for chaining. + */ + public Builder clearSecret() { + + secret_ = getDefaultInstance().getSecret(); + onChanged(); + return this; + } + /** + *
      +     * Name of the secret in secret manager (not the full resource name).
      +     * 
      + * + * string secret = 3; + * @param value The bytes for secret to set. + * @return This builder for chaining. + */ + public Builder setSecretBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secret_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
      +     * Version of the secret (version number or the string 'latest'). It is
      +     * recommended to use a numeric version for secret environment variables as
      +     * any updates to the secret value is not reflected until new instances
      +     * start.
      +     * 
      + * + * string version = 4; + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Version of the secret (version number or the string 'latest'). It is
      +     * recommended to use a numeric version for secret environment variables as
      +     * any updates to the secret value is not reflected until new instances
      +     * start.
      +     * 
      + * + * string version = 4; + * @return The bytes for version. + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Version of the secret (version number or the string 'latest'). It is
      +     * recommended to use a numeric version for secret environment variables as
      +     * any updates to the secret value is not reflected until new instances
      +     * start.
      +     * 
      + * + * string version = 4; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
      +     * Version of the secret (version number or the string 'latest'). It is
      +     * recommended to use a numeric version for secret environment variables as
      +     * any updates to the secret value is not reflected until new instances
      +     * start.
      +     * 
      + * + * string version = 4; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
      +     * Version of the secret (version number or the string 'latest'). It is
      +     * recommended to use a numeric version for secret environment variables as
      +     * any updates to the secret value is not reflected until new instances
      +     * start.
      +     * 
      + * + * string version = 4; + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = 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.SecretEnvVar) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.SecretEnvVar) + private static final com.google.cloud.functions.v2.SecretEnvVar DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.SecretEnvVar(); + } + + public static com.google.cloud.functions.v2.SecretEnvVar getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretEnvVar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretEnvVar(input, extensionRegistry); + } + }; + + 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.SecretEnvVar getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVarOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVarOrBuilder.java new file mode 100644 index 00000000..4f33bda8 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVarOrBuilder.java @@ -0,0 +1,99 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface SecretEnvVarOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.SecretEnvVar) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Name of the environment variable.
      +   * 
      + * + * string key = 1; + * @return The key. + */ + java.lang.String getKey(); + /** + *
      +   * Name of the environment variable.
      +   * 
      + * + * string key = 1; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
      +   * Project identifier (preferably project number but can also be the
      +   * project ID) of the project that contains the secret. If not set, it is
      +   * assumed that the secret is in the same project as the function.
      +   * 
      + * + * string project_id = 2; + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + *
      +   * Project identifier (preferably project number but can also be the
      +   * project ID) of the project that contains the secret. If not set, it is
      +   * assumed that the secret is in the same project as the function.
      +   * 
      + * + * string project_id = 2; + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
      +   * Name of the secret in secret manager (not the full resource name).
      +   * 
      + * + * string secret = 3; + * @return The secret. + */ + java.lang.String getSecret(); + /** + *
      +   * Name of the secret in secret manager (not the full resource name).
      +   * 
      + * + * string secret = 3; + * @return The bytes for secret. + */ + com.google.protobuf.ByteString + getSecretBytes(); + + /** + *
      +   * Version of the secret (version number or the string 'latest'). It is
      +   * recommended to use a numeric version for secret environment variables as
      +   * any updates to the secret value is not reflected until new instances
      +   * start.
      +   * 
      + * + * string version = 4; + * @return The version. + */ + java.lang.String getVersion(); + /** + *
      +   * Version of the secret (version number or the string 'latest'). It is
      +   * recommended to use a numeric version for secret environment variables as
      +   * any updates to the secret value is not reflected until new instances
      +   * start.
      +   * 
      + * + * string version = 4; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java new file mode 100644 index 00000000..fa3d6a91 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java @@ -0,0 +1,2307 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Configuration for a secret volume. It has the information necessary to fetch
      + * the secret value from secret manager and make it available as files mounted
      + * at the requested paths within the application container.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.SecretVolume} + */ +public final class SecretVolume extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.SecretVolume) + SecretVolumeOrBuilder { +private static final long serialVersionUID = 0L; + // Use SecretVolume.newBuilder() to construct. + private SecretVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecretVolume() { + mountPath_ = ""; + projectId_ = ""; + secret_ = ""; + versions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecretVolume(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SecretVolume( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + mountPath_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + secret_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + versions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + versions_.add( + input.readMessage(com.google.cloud.functions.v2.SecretVolume.SecretVersion.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + versions_ = java.util.Collections.unmodifiableList(versions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.SecretVolume.class, com.google.cloud.functions.v2.SecretVolume.Builder.class); + } + + public interface SecretVersionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.SecretVolume.SecretVersion) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +     * Version of the secret (version number or the string 'latest'). It is
      +     * preferable to use `latest` version with secret volumes as secret value
      +     * changes are reflected immediately.
      +     * 
      + * + * string version = 1; + * @return The version. + */ + java.lang.String getVersion(); + /** + *
      +     * Version of the secret (version number or the string 'latest'). It is
      +     * preferable to use `latest` version with secret volumes as secret value
      +     * changes are reflected immediately.
      +     * 
      + * + * string version = 1; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
      +     * Relative path of the file under the mount path where the secret value for
      +     * this version will be fetched and made available. For example, setting the
      +     * mount_path as '/etc/secrets' and path as `secret_foo` would mount the
      +     * secret value file at `/etc/secrets/secret_foo`.
      +     * 
      + * + * string path = 2; + * @return The path. + */ + java.lang.String getPath(); + /** + *
      +     * Relative path of the file under the mount path where the secret value for
      +     * this version will be fetched and made available. For example, setting the
      +     * mount_path as '/etc/secrets' and path as `secret_foo` would mount the
      +     * secret value file at `/etc/secrets/secret_foo`.
      +     * 
      + * + * string path = 2; + * @return The bytes for path. + */ + com.google.protobuf.ByteString + getPathBytes(); + } + /** + *
      +   * Configuration for a single version.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.SecretVolume.SecretVersion} + */ + public static final class SecretVersion extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.SecretVolume.SecretVersion) + SecretVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecretVersion.newBuilder() to construct. + private SecretVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecretVersion() { + version_ = ""; + path_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecretVersion(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SecretVersion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.SecretVolume.SecretVersion.class, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + *
      +     * Version of the secret (version number or the string 'latest'). It is
      +     * preferable to use `latest` version with secret volumes as secret value
      +     * changes are reflected immediately.
      +     * 
      + * + * string version = 1; + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + /** + *
      +     * Version of the secret (version number or the string 'latest'). It is
      +     * preferable to use `latest` version with secret volumes as secret value
      +     * changes are reflected immediately.
      +     * 
      + * + * string version = 1; + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATH_FIELD_NUMBER = 2; + private volatile java.lang.Object path_; + /** + *
      +     * Relative path of the file under the mount path where the secret value for
      +     * this version will be fetched and made available. For example, setting the
      +     * mount_path as '/etc/secrets' and path as `secret_foo` would mount the
      +     * secret value file at `/etc/secrets/secret_foo`.
      +     * 
      + * + * string path = 2; + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + 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(); + path_ = s; + return s; + } + } + /** + *
      +     * Relative path of the file under the mount path where the secret value for
      +     * this version will be fetched and made available. For example, setting the
      +     * mount_path as '/etc/secrets' and path as `secret_foo` would mount the
      +     * secret value file at `/etc/secrets/secret_foo`.
      +     * 
      + * + * string path = 2; + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); + } + size += unknownFields.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.SecretVolume.SecretVersion)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.SecretVolume.SecretVersion other = (com.google.cloud.functions.v2.SecretVolume.SecretVersion) obj; + + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getPath() + .equals(other.getPath())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion 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.SecretVolume.SecretVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion 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.SecretVolume.SecretVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion 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.SecretVolume.SecretVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion 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.SecretVolume.SecretVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion 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.SecretVolume.SecretVersion 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.SecretVolume.SecretVersion 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.SecretVolume.SecretVersion 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; + } + /** + *
      +     * Configuration for a single version.
      +     * 
      + * + * Protobuf type {@code google.cloud.functions.v2.SecretVolume.SecretVersion} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.SecretVolume.SecretVersion) + com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder { + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.SecretVolume.SecretVersion.class, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.SecretVolume.SecretVersion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = ""; + + path_ = ""; + + 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_SecretVolume_SecretVersion_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.SecretVolume.SecretVersion getDefaultInstanceForType() { + return com.google.cloud.functions.v2.SecretVolume.SecretVersion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.SecretVolume.SecretVersion build() { + com.google.cloud.functions.v2.SecretVolume.SecretVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.SecretVolume.SecretVersion buildPartial() { + com.google.cloud.functions.v2.SecretVolume.SecretVersion result = new com.google.cloud.functions.v2.SecretVolume.SecretVersion(this); + result.version_ = version_; + result.path_ = path_; + onBuilt(); + 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.v2.SecretVolume.SecretVersion) { + return mergeFrom((com.google.cloud.functions.v2.SecretVolume.SecretVersion)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.SecretVolume.SecretVersion other) { + if (other == com.google.cloud.functions.v2.SecretVolume.SecretVersion.getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.SecretVolume.SecretVersion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.SecretVolume.SecretVersion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object version_ = ""; + /** + *
      +       * Version of the secret (version number or the string 'latest'). It is
      +       * preferable to use `latest` version with secret volumes as secret value
      +       * changes are reflected immediately.
      +       * 
      + * + * string version = 1; + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +       * Version of the secret (version number or the string 'latest'). It is
      +       * preferable to use `latest` version with secret volumes as secret value
      +       * changes are reflected immediately.
      +       * 
      + * + * string version = 1; + * @return The bytes for version. + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +       * Version of the secret (version number or the string 'latest'). It is
      +       * preferable to use `latest` version with secret volumes as secret value
      +       * changes are reflected immediately.
      +       * 
      + * + * string version = 1; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
      +       * Version of the secret (version number or the string 'latest'). It is
      +       * preferable to use `latest` version with secret volumes as secret value
      +       * changes are reflected immediately.
      +       * 
      + * + * string version = 1; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
      +       * Version of the secret (version number or the string 'latest'). It is
      +       * preferable to use `latest` version with secret volumes as secret value
      +       * changes are reflected immediately.
      +       * 
      + * + * string version = 1; + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object path_ = ""; + /** + *
      +       * Relative path of the file under the mount path where the secret value for
      +       * this version will be fetched and made available. For example, setting the
      +       * mount_path as '/etc/secrets' and path as `secret_foo` would mount the
      +       * secret value file at `/etc/secrets/secret_foo`.
      +       * 
      + * + * string path = 2; + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +       * Relative path of the file under the mount path where the secret value for
      +       * this version will be fetched and made available. For example, setting the
      +       * mount_path as '/etc/secrets' and path as `secret_foo` would mount the
      +       * secret value file at `/etc/secrets/secret_foo`.
      +       * 
      + * + * string path = 2; + * @return The bytes for path. + */ + public com.google.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +       * Relative path of the file under the mount path where the secret value for
      +       * this version will be fetched and made available. For example, setting the
      +       * mount_path as '/etc/secrets' and path as `secret_foo` would mount the
      +       * secret value file at `/etc/secrets/secret_foo`.
      +       * 
      + * + * string path = 2; + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + path_ = value; + onChanged(); + return this; + } + /** + *
      +       * Relative path of the file under the mount path where the secret value for
      +       * this version will be fetched and made available. For example, setting the
      +       * mount_path as '/etc/secrets' and path as `secret_foo` would mount the
      +       * secret value file at `/etc/secrets/secret_foo`.
      +       * 
      + * + * string path = 2; + * @return This builder for chaining. + */ + public Builder clearPath() { + + path_ = getDefaultInstance().getPath(); + onChanged(); + return this; + } + /** + *
      +       * Relative path of the file under the mount path where the secret value for
      +       * this version will be fetched and made available. For example, setting the
      +       * mount_path as '/etc/secrets' and path as `secret_foo` would mount the
      +       * secret value file at `/etc/secrets/secret_foo`.
      +       * 
      + * + * string path = 2; + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + path_ = 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.SecretVolume.SecretVersion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.SecretVolume.SecretVersion) + private static final com.google.cloud.functions.v2.SecretVolume.SecretVersion DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.SecretVolume.SecretVersion(); + } + + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVersion(input, extensionRegistry); + } + }; + + 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.SecretVolume.SecretVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int MOUNT_PATH_FIELD_NUMBER = 1; + private volatile java.lang.Object mountPath_; + /** + *
      +   * The path within the container to mount the secret volume. For example,
      +   * setting the mount_path as `/etc/secrets` would mount the secret value files
      +   * under the `/etc/secrets` directory. This directory will also be completely
      +   * shadowed and unavailable to mount any other secrets.
      +   * Recommended mount path: /etc/secrets
      +   * 
      + * + * string mount_path = 1; + * @return The mountPath. + */ + @java.lang.Override + public java.lang.String getMountPath() { + java.lang.Object ref = mountPath_; + 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(); + mountPath_ = s; + return s; + } + } + /** + *
      +   * The path within the container to mount the secret volume. For example,
      +   * setting the mount_path as `/etc/secrets` would mount the secret value files
      +   * under the `/etc/secrets` directory. This directory will also be completely
      +   * shadowed and unavailable to mount any other secrets.
      +   * Recommended mount path: /etc/secrets
      +   * 
      + * + * string mount_path = 1; + * @return The bytes for mountPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMountPathBytes() { + java.lang.Object ref = mountPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mountPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object projectId_; + /** + *
      +   * Project identifier (preferably project number but can also be the project
      +   * ID) of the project that contains the secret. If not set, it is
      +   * assumed that the secret is in the same project as the function.
      +   * 
      + * + * string project_id = 2; + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + /** + *
      +   * Project identifier (preferably project number but can also be the project
      +   * ID) of the project that contains the secret. If not set, it is
      +   * assumed that the secret is in the same project as the function.
      +   * 
      + * + * string project_id = 2; + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECRET_FIELD_NUMBER = 3; + private volatile java.lang.Object secret_; + /** + *
      +   * Name of the secret in secret manager (not the full resource name).
      +   * 
      + * + * string secret = 3; + * @return The secret. + */ + @java.lang.Override + public java.lang.String getSecret() { + java.lang.Object ref = secret_; + 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(); + secret_ = s; + return s; + } + } + /** + *
      +   * Name of the secret in secret manager (not the full resource name).
      +   * 
      + * + * string secret = 3; + * @return The bytes for secret. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSecretBytes() { + java.lang.Object ref = secret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSIONS_FIELD_NUMBER = 4; + private java.util.List versions_; + /** + *
      +   * List of secret versions to mount for this secret. If empty, the `latest`
      +   * version of the secret will be made available in a file named after the
      +   * secret under the mount point.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + @java.lang.Override + public java.util.List getVersionsList() { + return versions_; + } + /** + *
      +   * List of secret versions to mount for this secret. If empty, the `latest`
      +   * version of the secret will be made available in a file named after the
      +   * secret under the mount point.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + @java.lang.Override + public java.util.List + getVersionsOrBuilderList() { + return versions_; + } + /** + *
      +   * List of secret versions to mount for this secret. If empty, the `latest`
      +   * version of the secret will be made available in a file named after the
      +   * secret under the mount point.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + @java.lang.Override + public int getVersionsCount() { + return versions_.size(); + } + /** + *
      +   * List of secret versions to mount for this secret. If empty, the `latest`
      +   * version of the secret will be made available in a file named after the
      +   * secret under the mount point.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + @java.lang.Override + public com.google.cloud.functions.v2.SecretVolume.SecretVersion getVersions(int index) { + return versions_.get(index); + } + /** + *
      +   * List of secret versions to mount for this secret. If empty, the `latest`
      +   * version of the secret will be made available in a file named after the
      +   * secret under the mount point.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + @java.lang.Override + public com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder( + int index) { + return versions_.get(index); + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secret_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secret_); + } + for (int i = 0; i < versions_.size(); i++) { + output.writeMessage(4, versions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mountPath_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secret_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secret_); + } + for (int i = 0; i < versions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, versions_.get(i)); + } + size += unknownFields.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.SecretVolume)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.SecretVolume other = (com.google.cloud.functions.v2.SecretVolume) obj; + + if (!getMountPath() + .equals(other.getMountPath())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getSecret() + .equals(other.getSecret())) return false; + if (!getVersionsList() + .equals(other.getVersionsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOUNT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getMountPath().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + SECRET_FIELD_NUMBER; + hash = (53 * hash) + getSecret().hashCode(); + if (getVersionsCount() > 0) { + hash = (37 * hash) + VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getVersionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.SecretVolume parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.SecretVolume 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.SecretVolume parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.SecretVolume 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.SecretVolume parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.SecretVolume 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.SecretVolume parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.SecretVolume 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.SecretVolume parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.SecretVolume 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.SecretVolume 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.SecretVolume 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.SecretVolume 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; + } + /** + *
      +   * Configuration for a secret volume. It has the information necessary to fetch
      +   * the secret value from secret manager and make it available as files mounted
      +   * at the requested paths within the application container.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.SecretVolume} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.SecretVolume) + com.google.cloud.functions.v2.SecretVolumeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.SecretVolume.class, com.google.cloud.functions.v2.SecretVolume.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.SecretVolume.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getVersionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + mountPath_ = ""; + + projectId_ = ""; + + secret_ = ""; + + if (versionsBuilder_ == null) { + versions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + versionsBuilder_.clear(); + } + 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_SecretVolume_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.SecretVolume getDefaultInstanceForType() { + return com.google.cloud.functions.v2.SecretVolume.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.SecretVolume build() { + com.google.cloud.functions.v2.SecretVolume result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.SecretVolume buildPartial() { + com.google.cloud.functions.v2.SecretVolume result = new com.google.cloud.functions.v2.SecretVolume(this); + int from_bitField0_ = bitField0_; + result.mountPath_ = mountPath_; + result.projectId_ = projectId_; + result.secret_ = secret_; + if (versionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + versions_ = java.util.Collections.unmodifiableList(versions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.versions_ = versions_; + } else { + result.versions_ = versionsBuilder_.build(); + } + onBuilt(); + 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.v2.SecretVolume) { + return mergeFrom((com.google.cloud.functions.v2.SecretVolume)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.SecretVolume other) { + if (other == com.google.cloud.functions.v2.SecretVolume.getDefaultInstance()) return this; + if (!other.getMountPath().isEmpty()) { + mountPath_ = other.mountPath_; + onChanged(); + } + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getSecret().isEmpty()) { + secret_ = other.secret_; + onChanged(); + } + if (versionsBuilder_ == null) { + if (!other.versions_.isEmpty()) { + if (versions_.isEmpty()) { + versions_ = other.versions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVersionsIsMutable(); + versions_.addAll(other.versions_); + } + onChanged(); + } + } else { + if (!other.versions_.isEmpty()) { + if (versionsBuilder_.isEmpty()) { + versionsBuilder_.dispose(); + versionsBuilder_ = null; + versions_ = other.versions_; + bitField0_ = (bitField0_ & ~0x00000001); + versionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVersionsFieldBuilder() : null; + } else { + versionsBuilder_.addAllMessages(other.versions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.SecretVolume parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.SecretVolume) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object mountPath_ = ""; + /** + *
      +     * The path within the container to mount the secret volume. For example,
      +     * setting the mount_path as `/etc/secrets` would mount the secret value files
      +     * under the `/etc/secrets` directory. This directory will also be completely
      +     * shadowed and unavailable to mount any other secrets.
      +     * Recommended mount path: /etc/secrets
      +     * 
      + * + * string mount_path = 1; + * @return The mountPath. + */ + public java.lang.String getMountPath() { + java.lang.Object ref = mountPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mountPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * The path within the container to mount the secret volume. For example,
      +     * setting the mount_path as `/etc/secrets` would mount the secret value files
      +     * under the `/etc/secrets` directory. This directory will also be completely
      +     * shadowed and unavailable to mount any other secrets.
      +     * Recommended mount path: /etc/secrets
      +     * 
      + * + * string mount_path = 1; + * @return The bytes for mountPath. + */ + public com.google.protobuf.ByteString + getMountPathBytes() { + java.lang.Object ref = mountPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mountPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * The path within the container to mount the secret volume. For example,
      +     * setting the mount_path as `/etc/secrets` would mount the secret value files
      +     * under the `/etc/secrets` directory. This directory will also be completely
      +     * shadowed and unavailable to mount any other secrets.
      +     * Recommended mount path: /etc/secrets
      +     * 
      + * + * string mount_path = 1; + * @param value The mountPath to set. + * @return This builder for chaining. + */ + public Builder setMountPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mountPath_ = value; + onChanged(); + return this; + } + /** + *
      +     * The path within the container to mount the secret volume. For example,
      +     * setting the mount_path as `/etc/secrets` would mount the secret value files
      +     * under the `/etc/secrets` directory. This directory will also be completely
      +     * shadowed and unavailable to mount any other secrets.
      +     * Recommended mount path: /etc/secrets
      +     * 
      + * + * string mount_path = 1; + * @return This builder for chaining. + */ + public Builder clearMountPath() { + + mountPath_ = getDefaultInstance().getMountPath(); + onChanged(); + return this; + } + /** + *
      +     * The path within the container to mount the secret volume. For example,
      +     * setting the mount_path as `/etc/secrets` would mount the secret value files
      +     * under the `/etc/secrets` directory. This directory will also be completely
      +     * shadowed and unavailable to mount any other secrets.
      +     * Recommended mount path: /etc/secrets
      +     * 
      + * + * string mount_path = 1; + * @param value The bytes for mountPath to set. + * @return This builder for chaining. + */ + public Builder setMountPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mountPath_ = value; + onChanged(); + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
      +     * Project identifier (preferably project number but can also be the project
      +     * ID) of the project that contains the secret. If not set, it is
      +     * assumed that the secret is in the same project as the function.
      +     * 
      + * + * string project_id = 2; + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Project identifier (preferably project number but can also be the project
      +     * ID) of the project that contains the secret. If not set, it is
      +     * assumed that the secret is in the same project as the function.
      +     * 
      + * + * string project_id = 2; + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Project identifier (preferably project number but can also be the project
      +     * ID) of the project that contains the secret. If not set, it is
      +     * assumed that the secret is in the same project as the function.
      +     * 
      + * + * string project_id = 2; + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
      +     * Project identifier (preferably project number but can also be the project
      +     * ID) of the project that contains the secret. If not set, it is
      +     * assumed that the secret is in the same project as the function.
      +     * 
      + * + * string project_id = 2; + * @return This builder for chaining. + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
      +     * Project identifier (preferably project number but can also be the project
      +     * ID) of the project that contains the secret. If not set, it is
      +     * assumed that the secret is in the same project as the function.
      +     * 
      + * + * string project_id = 2; + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object secret_ = ""; + /** + *
      +     * Name of the secret in secret manager (not the full resource name).
      +     * 
      + * + * string secret = 3; + * @return The secret. + */ + public java.lang.String getSecret() { + java.lang.Object ref = secret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Name of the secret in secret manager (not the full resource name).
      +     * 
      + * + * string secret = 3; + * @return The bytes for secret. + */ + public com.google.protobuf.ByteString + getSecretBytes() { + java.lang.Object ref = secret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Name of the secret in secret manager (not the full resource name).
      +     * 
      + * + * string secret = 3; + * @param value The secret to set. + * @return This builder for chaining. + */ + public Builder setSecret( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secret_ = value; + onChanged(); + return this; + } + /** + *
      +     * Name of the secret in secret manager (not the full resource name).
      +     * 
      + * + * string secret = 3; + * @return This builder for chaining. + */ + public Builder clearSecret() { + + secret_ = getDefaultInstance().getSecret(); + onChanged(); + return this; + } + /** + *
      +     * Name of the secret in secret manager (not the full resource name).
      +     * 
      + * + * string secret = 3; + * @param value The bytes for secret to set. + * @return This builder for chaining. + */ + public Builder setSecretBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secret_ = value; + onChanged(); + return this; + } + + private java.util.List versions_ = + java.util.Collections.emptyList(); + private void ensureVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + versions_ = new java.util.ArrayList(versions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.SecretVolume.SecretVersion, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder> versionsBuilder_; + + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public java.util.List getVersionsList() { + if (versionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(versions_); + } else { + return versionsBuilder_.getMessageList(); + } + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public int getVersionsCount() { + if (versionsBuilder_ == null) { + return versions_.size(); + } else { + return versionsBuilder_.getCount(); + } + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public com.google.cloud.functions.v2.SecretVolume.SecretVersion getVersions(int index) { + if (versionsBuilder_ == null) { + return versions_.get(index); + } else { + return versionsBuilder_.getMessage(index); + } + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public Builder setVersions( + int index, com.google.cloud.functions.v2.SecretVolume.SecretVersion value) { + if (versionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.set(index, value); + onChanged(); + } else { + versionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public Builder setVersions( + int index, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder builderForValue) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + versions_.set(index, builderForValue.build()); + onChanged(); + } else { + versionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public Builder addVersions(com.google.cloud.functions.v2.SecretVolume.SecretVersion value) { + if (versionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.add(value); + onChanged(); + } else { + versionsBuilder_.addMessage(value); + } + return this; + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public Builder addVersions( + int index, com.google.cloud.functions.v2.SecretVolume.SecretVersion value) { + if (versionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.add(index, value); + onChanged(); + } else { + versionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public Builder addVersions( + com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder builderForValue) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + versions_.add(builderForValue.build()); + onChanged(); + } else { + versionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public Builder addVersions( + int index, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder builderForValue) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + versions_.add(index, builderForValue.build()); + onChanged(); + } else { + versionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public Builder addAllVersions( + java.lang.Iterable values) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, versions_); + onChanged(); + } else { + versionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public Builder clearVersions() { + if (versionsBuilder_ == null) { + versions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + versionsBuilder_.clear(); + } + return this; + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public Builder removeVersions(int index) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + versions_.remove(index); + onChanged(); + } else { + versionsBuilder_.remove(index); + } + return this; + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder getVersionsBuilder( + int index) { + return getVersionsFieldBuilder().getBuilder(index); + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder( + int index) { + if (versionsBuilder_ == null) { + return versions_.get(index); } else { + return versionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public java.util.List + getVersionsOrBuilderList() { + if (versionsBuilder_ != null) { + return versionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(versions_); + } + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder addVersionsBuilder() { + return getVersionsFieldBuilder().addBuilder( + com.google.cloud.functions.v2.SecretVolume.SecretVersion.getDefaultInstance()); + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder addVersionsBuilder( + int index) { + return getVersionsFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2.SecretVolume.SecretVersion.getDefaultInstance()); + } + /** + *
      +     * List of secret versions to mount for this secret. If empty, the `latest`
      +     * version of the secret will be made available in a file named after the
      +     * secret under the mount point.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + public java.util.List + getVersionsBuilderList() { + return getVersionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.SecretVolume.SecretVersion, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder> + getVersionsFieldBuilder() { + if (versionsBuilder_ == null) { + versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.SecretVolume.SecretVersion, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder>( + versions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + versions_ = null; + } + return versionsBuilder_; + } + @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.SecretVolume) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.SecretVolume) + private static final com.google.cloud.functions.v2.SecretVolume DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.SecretVolume(); + } + + public static com.google.cloud.functions.v2.SecretVolume getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVolume parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVolume(input, extensionRegistry); + } + }; + + 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.SecretVolume getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolumeOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolumeOrBuilder.java new file mode 100644 index 00000000..50857c3a --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolumeOrBuilder.java @@ -0,0 +1,135 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface SecretVolumeOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.SecretVolume) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * The path within the container to mount the secret volume. For example,
      +   * setting the mount_path as `/etc/secrets` would mount the secret value files
      +   * under the `/etc/secrets` directory. This directory will also be completely
      +   * shadowed and unavailable to mount any other secrets.
      +   * Recommended mount path: /etc/secrets
      +   * 
      + * + * string mount_path = 1; + * @return The mountPath. + */ + java.lang.String getMountPath(); + /** + *
      +   * The path within the container to mount the secret volume. For example,
      +   * setting the mount_path as `/etc/secrets` would mount the secret value files
      +   * under the `/etc/secrets` directory. This directory will also be completely
      +   * shadowed and unavailable to mount any other secrets.
      +   * Recommended mount path: /etc/secrets
      +   * 
      + * + * string mount_path = 1; + * @return The bytes for mountPath. + */ + com.google.protobuf.ByteString + getMountPathBytes(); + + /** + *
      +   * Project identifier (preferably project number but can also be the project
      +   * ID) of the project that contains the secret. If not set, it is
      +   * assumed that the secret is in the same project as the function.
      +   * 
      + * + * string project_id = 2; + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + *
      +   * Project identifier (preferably project number but can also be the project
      +   * ID) of the project that contains the secret. If not set, it is
      +   * assumed that the secret is in the same project as the function.
      +   * 
      + * + * string project_id = 2; + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
      +   * Name of the secret in secret manager (not the full resource name).
      +   * 
      + * + * string secret = 3; + * @return The secret. + */ + java.lang.String getSecret(); + /** + *
      +   * Name of the secret in secret manager (not the full resource name).
      +   * 
      + * + * string secret = 3; + * @return The bytes for secret. + */ + com.google.protobuf.ByteString + getSecretBytes(); + + /** + *
      +   * List of secret versions to mount for this secret. If empty, the `latest`
      +   * version of the secret will be made available in a file named after the
      +   * secret under the mount point.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + java.util.List + getVersionsList(); + /** + *
      +   * List of secret versions to mount for this secret. If empty, the `latest`
      +   * version of the secret will be made available in a file named after the
      +   * secret under the mount point.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + com.google.cloud.functions.v2.SecretVolume.SecretVersion getVersions(int index); + /** + *
      +   * List of secret versions to mount for this secret. If empty, the `latest`
      +   * version of the secret will be made available in a file named after the
      +   * secret under the mount point.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + int getVersionsCount(); + /** + *
      +   * List of secret versions to mount for this secret. If empty, the `latest`
      +   * version of the secret will be made available in a file named after the
      +   * secret under the mount point.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + java.util.List + getVersionsOrBuilderList(); + /** + *
      +   * List of secret versions to mount for this secret. If empty, the `latest`
      +   * version of the secret will be made available in a file named after the
      +   * secret under the mount point.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4; + */ + com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder( + int index); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java new file mode 100644 index 00000000..f62953ac --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java @@ -0,0 +1,3687 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Describes the Service being deployed.
      + * Currently Supported : Cloud Run (fully managed).
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.ServiceConfig} + */ +public final class ServiceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ServiceConfig) + ServiceConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ServiceConfig.newBuilder() to construct. + private ServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ServiceConfig() { + service_ = ""; + availableMemory_ = ""; + vpcConnector_ = ""; + vpcConnectorEgressSettings_ = 0; + ingressSettings_ = 0; + uri_ = ""; + serviceAccountEmail_ = ""; + secretEnvironmentVariables_ = java.util.Collections.emptyList(); + secretVolumes_ = java.util.Collections.emptyList(); + revision_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ServiceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ServiceConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + service_ = s; + break; + } + case 16: { + + timeoutSeconds_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + environmentVariables_ = com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + environmentVariables__ = input.readMessage( + EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + environmentVariables_.getMutableMap().put( + environmentVariables__.getKey(), environmentVariables__.getValue()); + break; + } + case 40: { + + maxInstanceCount_ = input.readInt32(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + vpcConnector_ = s; + break; + } + case 56: { + int rawValue = input.readEnum(); + + vpcConnectorEgressSettings_ = rawValue; + break; + } + case 64: { + int rawValue = input.readEnum(); + + ingressSettings_ = rawValue; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccountEmail_ = s; + break; + } + case 96: { + + minInstanceCount_ = input.readInt32(); + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + + availableMemory_ = s; + break; + } + case 128: { + + allTrafficOnLatestRevision_ = input.readBool(); + break; + } + case 138: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + secretEnvironmentVariables_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + secretEnvironmentVariables_.add( + input.readMessage(com.google.cloud.functions.v2.SecretEnvVar.parser(), extensionRegistry)); + break; + } + case 146: { + java.lang.String s = input.readStringRequireUtf8(); + + revision_ = s; + break; + } + case 154: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + secretVolumes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + secretVolumes_.add( + input.readMessage(com.google.cloud.functions.v2.SecretVolume.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + secretVolumes_ = java.util.Collections.unmodifiableList(secretVolumes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ServiceConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetEnvironmentVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.ServiceConfig.class, com.google.cloud.functions.v2.ServiceConfig.Builder.class); + } + + /** + *
      +   * Available egress settings.
      +   * This controls what traffic is diverted through the VPC Access Connector
      +   * resource. By default PRIVATE_RANGES_ONLY will be used.
      +   * 
      + * + * Protobuf enum {@code google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings} + */ + public enum VpcConnectorEgressSettings + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
      +     * Unspecified.
      +     * 
      + * + * VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0; + */ + VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED(0), + /** + *
      +     * Use the VPC Access Connector only for private IP space from RFC1918.
      +     * 
      + * + * PRIVATE_RANGES_ONLY = 1; + */ + PRIVATE_RANGES_ONLY(1), + /** + *
      +     * Force the use of VPC Access Connector for all egress traffic from the
      +     * function.
      +     * 
      + * + * ALL_TRAFFIC = 2; + */ + ALL_TRAFFIC(2), + UNRECOGNIZED(-1), + ; + + /** + *
      +     * Unspecified.
      +     * 
      + * + * VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0; + */ + public static final int VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; + /** + *
      +     * Use the VPC Access Connector only for private IP space from RFC1918.
      +     * 
      + * + * PRIVATE_RANGES_ONLY = 1; + */ + public static final int PRIVATE_RANGES_ONLY_VALUE = 1; + /** + *
      +     * Force the use of VPC Access Connector for all egress traffic from the
      +     * function.
      +     * 
      + * + * ALL_TRAFFIC = 2; + */ + public static final int ALL_TRAFFIC_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 VpcConnectorEgressSettings 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 VpcConnectorEgressSettings forNumber(int value) { + switch (value) { + case 0: return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED; + case 1: return PRIVATE_RANGES_ONLY; + case 2: return ALL_TRAFFIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + VpcConnectorEgressSettings> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VpcConnectorEgressSettings findValueByNumber(int number) { + return VpcConnectorEgressSettings.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.v2.ServiceConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final VpcConnectorEgressSettings[] VALUES = values(); + + public static VpcConnectorEgressSettings 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 VpcConnectorEgressSettings(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings) + } + + /** + *
      +   * Available ingress settings.
      +   * This controls what traffic can reach the function.
      +   * If unspecified, ALLOW_ALL will be used.
      +   * 
      + * + * Protobuf enum {@code google.cloud.functions.v2.ServiceConfig.IngressSettings} + */ + public enum IngressSettings + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
      +     * Unspecified.
      +     * 
      + * + * INGRESS_SETTINGS_UNSPECIFIED = 0; + */ + INGRESS_SETTINGS_UNSPECIFIED(0), + /** + *
      +     * Allow HTTP traffic from public and private sources.
      +     * 
      + * + * ALLOW_ALL = 1; + */ + ALLOW_ALL(1), + /** + *
      +     * Allow HTTP traffic from only private VPC sources.
      +     * 
      + * + * ALLOW_INTERNAL_ONLY = 2; + */ + ALLOW_INTERNAL_ONLY(2), + /** + *
      +     * Allow HTTP traffic from private VPC sources and through GCLB.
      +     * 
      + * + * ALLOW_INTERNAL_AND_GCLB = 3; + */ + ALLOW_INTERNAL_AND_GCLB(3), + UNRECOGNIZED(-1), + ; + + /** + *
      +     * Unspecified.
      +     * 
      + * + * INGRESS_SETTINGS_UNSPECIFIED = 0; + */ + public static final int INGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; + /** + *
      +     * Allow HTTP traffic from public and private sources.
      +     * 
      + * + * ALLOW_ALL = 1; + */ + public static final int ALLOW_ALL_VALUE = 1; + /** + *
      +     * Allow HTTP traffic from only private VPC sources.
      +     * 
      + * + * ALLOW_INTERNAL_ONLY = 2; + */ + public static final int ALLOW_INTERNAL_ONLY_VALUE = 2; + /** + *
      +     * Allow HTTP traffic from private VPC sources and through GCLB.
      +     * 
      + * + * ALLOW_INTERNAL_AND_GCLB = 3; + */ + public static final int ALLOW_INTERNAL_AND_GCLB_VALUE = 3; + + + 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 IngressSettings 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 IngressSettings forNumber(int value) { + switch (value) { + case 0: return INGRESS_SETTINGS_UNSPECIFIED; + case 1: return ALLOW_ALL; + case 2: return ALLOW_INTERNAL_ONLY; + case 3: return ALLOW_INTERNAL_AND_GCLB; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + IngressSettings> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IngressSettings findValueByNumber(int number) { + return IngressSettings.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.v2.ServiceConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final IngressSettings[] VALUES = values(); + + public static IngressSettings 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 IngressSettings(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2.ServiceConfig.IngressSettings) + } + + public static final int SERVICE_FIELD_NUMBER = 1; + private volatile java.lang.Object service_; + /** + *
      +   * 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) = { ... } + * @return The service. + */ + @java.lang.Override + public java.lang.String getService() { + java.lang.Object ref = service_; + 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(); + service_ = s; + return s; + } + } + /** + *
      +   * 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) = { ... } + * @return The bytes for service. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 2; + private int timeoutSeconds_; + /** + *
      +   * The function execution timeout. Execution is considered failed and
      +   * can be terminated if the function is not completed at the end of the
      +   * timeout period. Defaults to 60 seconds.
      +   * 
      + * + * int32 timeout_seconds = 2; + * @return The timeoutSeconds. + */ + @java.lang.Override + public int getTimeoutSeconds() { + return timeoutSeconds_; + } + + public static final int AVAILABLE_MEMORY_FIELD_NUMBER = 13; + private volatile java.lang.Object availableMemory_; + /** + *
      +   * The amount of memory available for a function.
      +   * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
      +   * supplied the value is interpreted as bytes.
      +   * See
      +   * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
      +   * a full description.
      +   * 
      + * + * string available_memory = 13; + * @return The availableMemory. + */ + @java.lang.Override + public java.lang.String getAvailableMemory() { + java.lang.Object ref = availableMemory_; + 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(); + availableMemory_ = s; + return s; + } + } + /** + *
      +   * The amount of memory available for a function.
      +   * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
      +   * supplied the value is interpreted as bytes.
      +   * See
      +   * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
      +   * a full description.
      +   * 
      + * + * string available_memory = 13; + * @return The bytes for availableMemory. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAvailableMemoryBytes() { + java.lang.Object ref = availableMemory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + availableMemory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 4; + private static final class EnvironmentVariablesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; + private com.google.protobuf.MapField + internalGetEnvironmentVariables() { + if (environmentVariables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); + } + return environmentVariables_; + } + + public int getEnvironmentVariablesCount() { + return internalGetEnvironmentVariables().getMap().size(); + } + /** + *
      +   * Environment variables that shall be available during function execution.
      +   * 
      + * + * map<string, string> environment_variables = 4; + */ + + @java.lang.Override + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetEnvironmentVariables().getMap().containsKey(key); + } + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEnvironmentVariables() { + return getEnvironmentVariablesMap(); + } + /** + *
      +   * Environment variables that shall be available during function execution.
      +   * 
      + * + * map<string, string> environment_variables = 4; + */ + @java.lang.Override + + public java.util.Map getEnvironmentVariablesMap() { + return internalGetEnvironmentVariables().getMap(); + } + /** + *
      +   * Environment variables that shall be available during function execution.
      +   * 
      + * + * map<string, string> environment_variables = 4; + */ + @java.lang.Override + + public java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnvironmentVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
      +   * Environment variables that shall be available during function execution.
      +   * 
      + * + * map<string, string> environment_variables = 4; + */ + @java.lang.Override + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnvironmentVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int MAX_INSTANCE_COUNT_FIELD_NUMBER = 5; + private int maxInstanceCount_; + /** + *
      +   * 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.
      +   * 
      + * + * int32 max_instance_count = 5; + * @return The maxInstanceCount. + */ + @java.lang.Override + public int getMaxInstanceCount() { + return maxInstanceCount_; + } + + public static final int MIN_INSTANCE_COUNT_FIELD_NUMBER = 12; + private int minInstanceCount_; + /** + *
      +   * 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
      +   * number of instances are kept running in idle state always. This can help
      +   * with cold start times when jump in incoming request count occurs after the
      +   * idle instance would have been stopped in the default case.
      +   * 
      + * + * int32 min_instance_count = 12; + * @return The minInstanceCount. + */ + @java.lang.Override + public int getMinInstanceCount() { + return minInstanceCount_; + } + + public static final int VPC_CONNECTOR_FIELD_NUMBER = 6; + private volatile java.lang.Object vpcConnector_; + /** + *
      +   * 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) = { ... } + * @return The vpcConnector. + */ + @java.lang.Override + public java.lang.String getVpcConnector() { + java.lang.Object ref = vpcConnector_; + 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(); + vpcConnector_ = s; + return s; + } + } + /** + *
      +   * 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) = { ... } + * @return The bytes for vpcConnector. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVpcConnectorBytes() { + java.lang.Object ref = vpcConnector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vpcConnector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER = 7; + private int vpcConnectorEgressSettings_; + /** + *
      +   * The egress settings for the connector, controlling what traffic is diverted
      +   * through it.
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * @return The enum numeric value on the wire for vpcConnectorEgressSettings. + */ + @java.lang.Override public int getVpcConnectorEgressSettingsValue() { + return vpcConnectorEgressSettings_; + } + /** + *
      +   * The egress settings for the connector, controlling what traffic is diverted
      +   * through it.
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * @return The vpcConnectorEgressSettings. + */ + @java.lang.Override public com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings result = com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); + return result == null ? com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED : result; + } + + public static final int INGRESS_SETTINGS_FIELD_NUMBER = 8; + private int ingressSettings_; + /** + *
      +   * The ingress settings for the function, controlling what traffic can reach
      +   * it.
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * @return The enum numeric value on the wire for ingressSettings. + */ + @java.lang.Override public int getIngressSettingsValue() { + return ingressSettings_; + } + /** + *
      +   * The ingress settings for the function, controlling what traffic can reach
      +   * it.
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * @return The ingressSettings. + */ + @java.lang.Override public com.google.cloud.functions.v2.ServiceConfig.IngressSettings getIngressSettings() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.ServiceConfig.IngressSettings result = com.google.cloud.functions.v2.ServiceConfig.IngressSettings.valueOf(ingressSettings_); + return result == null ? com.google.cloud.functions.v2.ServiceConfig.IngressSettings.UNRECOGNIZED : result; + } + + public static final int URI_FIELD_NUMBER = 9; + private volatile java.lang.Object uri_; + /** + *
      +   * Output only. URI of the Service deployed.
      +   * 
      + * + * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + *
      +   * Output only. URI of the Service deployed.
      +   * 
      + * + * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 10; + private volatile java.lang.Object serviceAccountEmail_; + /** + *
      +   * The email of the service's service account. If empty, defaults to
      +   * `{project_number}-compute@developer.gserviceaccount.com`.
      +   * 
      + * + * string service_account_email = 10; + * @return The serviceAccountEmail. + */ + @java.lang.Override + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + 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(); + serviceAccountEmail_ = s; + return s; + } + } + /** + *
      +   * The email of the service's service account. If empty, defaults to
      +   * `{project_number}-compute@developer.gserviceaccount.com`.
      +   * 
      + * + * string service_account_email = 10; + * @return The bytes for serviceAccountEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER = 16; + private boolean allTrafficOnLatestRevision_; + /** + *
      +   * Whether 100% of traffic is routed to the latest revision.
      +   * On CreateFunction and UpdateFunction, when set to true, the revision being
      +   * deployed will serve 100% of traffic, ignoring any traffic split settings,
      +   * if any. On GetFunction, true will be returned if the latest revision is
      +   * serving 100% of traffic.
      +   * 
      + * + * bool all_traffic_on_latest_revision = 16; + * @return The allTrafficOnLatestRevision. + */ + @java.lang.Override + public boolean getAllTrafficOnLatestRevision() { + return allTrafficOnLatestRevision_; + } + + public static final int SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER = 17; + private java.util.List secretEnvironmentVariables_; + /** + *
      +   * Secret environment variables configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + @java.lang.Override + public java.util.List getSecretEnvironmentVariablesList() { + return secretEnvironmentVariables_; + } + /** + *
      +   * Secret environment variables configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + @java.lang.Override + public java.util.List + getSecretEnvironmentVariablesOrBuilderList() { + return secretEnvironmentVariables_; + } + /** + *
      +   * Secret environment variables configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + @java.lang.Override + public int getSecretEnvironmentVariablesCount() { + return secretEnvironmentVariables_.size(); + } + /** + *
      +   * Secret environment variables configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + @java.lang.Override + public com.google.cloud.functions.v2.SecretEnvVar getSecretEnvironmentVariables(int index) { + return secretEnvironmentVariables_.get(index); + } + /** + *
      +   * Secret environment variables configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + @java.lang.Override + public com.google.cloud.functions.v2.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( + int index) { + return secretEnvironmentVariables_.get(index); + } + + public static final int SECRET_VOLUMES_FIELD_NUMBER = 19; + private java.util.List secretVolumes_; + /** + *
      +   * Secret volumes configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + @java.lang.Override + public java.util.List getSecretVolumesList() { + return secretVolumes_; + } + /** + *
      +   * Secret volumes configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + @java.lang.Override + public java.util.List + getSecretVolumesOrBuilderList() { + return secretVolumes_; + } + /** + *
      +   * Secret volumes configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + @java.lang.Override + public int getSecretVolumesCount() { + return secretVolumes_.size(); + } + /** + *
      +   * Secret volumes configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + @java.lang.Override + public com.google.cloud.functions.v2.SecretVolume getSecretVolumes(int index) { + return secretVolumes_.get(index); + } + /** + *
      +   * Secret volumes configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + @java.lang.Override + public com.google.cloud.functions.v2.SecretVolumeOrBuilder getSecretVolumesOrBuilder( + int index) { + return secretVolumes_.get(index); + } + + public static final int REVISION_FIELD_NUMBER = 18; + private volatile java.lang.Object revision_; + /** + *
      +   * Output only. The name of service revision.
      +   * 
      + * + * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The revision. + */ + @java.lang.Override + public java.lang.String getRevision() { + java.lang.Object ref = revision_; + 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(); + revision_ = s; + return s; + } + } + /** + *
      +   * Output only. The name of service revision.
      +   * 
      + * + * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for revision. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRevisionBytes() { + java.lang.Object ref = revision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + revision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); + } + if (timeoutSeconds_ != 0) { + output.writeInt32(2, timeoutSeconds_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetEnvironmentVariables(), + EnvironmentVariablesDefaultEntryHolder.defaultEntry, + 4); + if (maxInstanceCount_ != 0) { + output.writeInt32(5, maxInstanceCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vpcConnector_); + } + if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + output.writeEnum(7, vpcConnectorEgressSettings_); + } + if (ingressSettings_ != com.google.cloud.functions.v2.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + output.writeEnum(8, ingressSettings_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, serviceAccountEmail_); + } + if (minInstanceCount_ != 0) { + output.writeInt32(12, minInstanceCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableMemory_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, availableMemory_); + } + if (allTrafficOnLatestRevision_ != false) { + output.writeBool(16, allTrafficOnLatestRevision_); + } + for (int i = 0; i < secretEnvironmentVariables_.size(); i++) { + output.writeMessage(17, secretEnvironmentVariables_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, revision_); + } + for (int i = 0; i < secretVolumes_.size(); i++) { + output.writeMessage(19, secretVolumes_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); + } + if (timeoutSeconds_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, timeoutSeconds_); + } + for (java.util.Map.Entry entry + : internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, environmentVariables__); + } + if (maxInstanceCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, maxInstanceCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vpcConnector_); + } + if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, vpcConnectorEgressSettings_); + } + if (ingressSettings_ != com.google.cloud.functions.v2.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, ingressSettings_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, serviceAccountEmail_); + } + if (minInstanceCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(12, minInstanceCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableMemory_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, availableMemory_); + } + if (allTrafficOnLatestRevision_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(16, allTrafficOnLatestRevision_); + } + for (int i = 0; i < secretEnvironmentVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, secretEnvironmentVariables_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, revision_); + } + for (int i = 0; i < secretVolumes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, secretVolumes_.get(i)); + } + size += unknownFields.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.ServiceConfig)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.ServiceConfig other = (com.google.cloud.functions.v2.ServiceConfig) obj; + + if (!getService() + .equals(other.getService())) return false; + if (getTimeoutSeconds() + != other.getTimeoutSeconds()) return false; + if (!getAvailableMemory() + .equals(other.getAvailableMemory())) return false; + if (!internalGetEnvironmentVariables().equals( + other.internalGetEnvironmentVariables())) return false; + if (getMaxInstanceCount() + != other.getMaxInstanceCount()) return false; + if (getMinInstanceCount() + != other.getMinInstanceCount()) return false; + if (!getVpcConnector() + .equals(other.getVpcConnector())) return false; + if (vpcConnectorEgressSettings_ != other.vpcConnectorEgressSettings_) return false; + if (ingressSettings_ != other.ingressSettings_) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; + if (getAllTrafficOnLatestRevision() + != other.getAllTrafficOnLatestRevision()) return false; + if (!getSecretEnvironmentVariablesList() + .equals(other.getSecretEnvironmentVariablesList())) return false; + if (!getSecretVolumesList() + .equals(other.getSecretVolumesList())) return false; + if (!getRevision() + .equals(other.getRevision())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + hash = (37 * hash) + TIMEOUT_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getTimeoutSeconds(); + hash = (37 * hash) + AVAILABLE_MEMORY_FIELD_NUMBER; + hash = (53 * hash) + getAvailableMemory().hashCode(); + if (!internalGetEnvironmentVariables().getMap().isEmpty()) { + hash = (37 * hash) + ENVIRONMENT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + internalGetEnvironmentVariables().hashCode(); + } + hash = (37 * hash) + MAX_INSTANCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxInstanceCount(); + hash = (37 * hash) + MIN_INSTANCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMinInstanceCount(); + hash = (37 * hash) + VPC_CONNECTOR_FIELD_NUMBER; + hash = (53 * hash) + getVpcConnector().hashCode(); + hash = (37 * hash) + VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + vpcConnectorEgressSettings_; + hash = (37 * hash) + INGRESS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + ingressSettings_; + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountEmail().hashCode(); + hash = (37 * hash) + ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllTrafficOnLatestRevision()); + if (getSecretEnvironmentVariablesCount() > 0) { + hash = (37 * hash) + SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getSecretEnvironmentVariablesList().hashCode(); + } + if (getSecretVolumesCount() > 0) { + hash = (37 * hash) + SECRET_VOLUMES_FIELD_NUMBER; + hash = (53 * hash) + getSecretVolumesList().hashCode(); + } + hash = (37 * hash) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + getRevision().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.ServiceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ServiceConfig 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.ServiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ServiceConfig 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.ServiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.ServiceConfig 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.ServiceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.ServiceConfig 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.ServiceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.ServiceConfig 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.ServiceConfig 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.ServiceConfig 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.ServiceConfig 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; + } + /** + *
      +   * Describes the Service being deployed.
      +   * Currently Supported : Cloud Run (fully managed).
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.ServiceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ServiceConfig) + com.google.cloud.functions.v2.ServiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ServiceConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetEnvironmentVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableEnvironmentVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.ServiceConfig.class, com.google.cloud.functions.v2.ServiceConfig.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.ServiceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSecretEnvironmentVariablesFieldBuilder(); + getSecretVolumesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + service_ = ""; + + timeoutSeconds_ = 0; + + availableMemory_ = ""; + + internalGetMutableEnvironmentVariables().clear(); + maxInstanceCount_ = 0; + + minInstanceCount_ = 0; + + vpcConnector_ = ""; + + vpcConnectorEgressSettings_ = 0; + + ingressSettings_ = 0; + + uri_ = ""; + + serviceAccountEmail_ = ""; + + allTrafficOnLatestRevision_ = false; + + if (secretEnvironmentVariablesBuilder_ == null) { + secretEnvironmentVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + secretEnvironmentVariablesBuilder_.clear(); + } + if (secretVolumesBuilder_ == null) { + secretVolumes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + secretVolumesBuilder_.clear(); + } + revision_ = ""; + + 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_ServiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.ServiceConfig getDefaultInstanceForType() { + return com.google.cloud.functions.v2.ServiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.ServiceConfig build() { + com.google.cloud.functions.v2.ServiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.ServiceConfig buildPartial() { + com.google.cloud.functions.v2.ServiceConfig result = new com.google.cloud.functions.v2.ServiceConfig(this); + int from_bitField0_ = bitField0_; + result.service_ = service_; + result.timeoutSeconds_ = timeoutSeconds_; + result.availableMemory_ = availableMemory_; + result.environmentVariables_ = internalGetEnvironmentVariables(); + result.environmentVariables_.makeImmutable(); + result.maxInstanceCount_ = maxInstanceCount_; + result.minInstanceCount_ = minInstanceCount_; + result.vpcConnector_ = vpcConnector_; + result.vpcConnectorEgressSettings_ = vpcConnectorEgressSettings_; + result.ingressSettings_ = ingressSettings_; + result.uri_ = uri_; + result.serviceAccountEmail_ = serviceAccountEmail_; + result.allTrafficOnLatestRevision_ = allTrafficOnLatestRevision_; + if (secretEnvironmentVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.secretEnvironmentVariables_ = secretEnvironmentVariables_; + } else { + result.secretEnvironmentVariables_ = secretEnvironmentVariablesBuilder_.build(); + } + if (secretVolumesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + secretVolumes_ = java.util.Collections.unmodifiableList(secretVolumes_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.secretVolumes_ = secretVolumes_; + } else { + result.secretVolumes_ = secretVolumesBuilder_.build(); + } + result.revision_ = revision_; + onBuilt(); + 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.v2.ServiceConfig) { + return mergeFrom((com.google.cloud.functions.v2.ServiceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.ServiceConfig other) { + if (other == com.google.cloud.functions.v2.ServiceConfig.getDefaultInstance()) return this; + if (!other.getService().isEmpty()) { + service_ = other.service_; + onChanged(); + } + if (other.getTimeoutSeconds() != 0) { + setTimeoutSeconds(other.getTimeoutSeconds()); + } + if (!other.getAvailableMemory().isEmpty()) { + availableMemory_ = other.availableMemory_; + onChanged(); + } + internalGetMutableEnvironmentVariables().mergeFrom( + other.internalGetEnvironmentVariables()); + if (other.getMaxInstanceCount() != 0) { + setMaxInstanceCount(other.getMaxInstanceCount()); + } + if (other.getMinInstanceCount() != 0) { + setMinInstanceCount(other.getMinInstanceCount()); + } + if (!other.getVpcConnector().isEmpty()) { + vpcConnector_ = other.vpcConnector_; + onChanged(); + } + if (other.vpcConnectorEgressSettings_ != 0) { + setVpcConnectorEgressSettingsValue(other.getVpcConnectorEgressSettingsValue()); + } + if (other.ingressSettings_ != 0) { + setIngressSettingsValue(other.getIngressSettingsValue()); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (!other.getServiceAccountEmail().isEmpty()) { + serviceAccountEmail_ = other.serviceAccountEmail_; + onChanged(); + } + if (other.getAllTrafficOnLatestRevision() != false) { + setAllTrafficOnLatestRevision(other.getAllTrafficOnLatestRevision()); + } + if (secretEnvironmentVariablesBuilder_ == null) { + if (!other.secretEnvironmentVariables_.isEmpty()) { + if (secretEnvironmentVariables_.isEmpty()) { + secretEnvironmentVariables_ = other.secretEnvironmentVariables_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSecretEnvironmentVariablesIsMutable(); + secretEnvironmentVariables_.addAll(other.secretEnvironmentVariables_); + } + onChanged(); + } + } else { + if (!other.secretEnvironmentVariables_.isEmpty()) { + if (secretEnvironmentVariablesBuilder_.isEmpty()) { + secretEnvironmentVariablesBuilder_.dispose(); + secretEnvironmentVariablesBuilder_ = null; + secretEnvironmentVariables_ = other.secretEnvironmentVariables_; + bitField0_ = (bitField0_ & ~0x00000002); + secretEnvironmentVariablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecretEnvironmentVariablesFieldBuilder() : null; + } else { + secretEnvironmentVariablesBuilder_.addAllMessages(other.secretEnvironmentVariables_); + } + } + } + if (secretVolumesBuilder_ == null) { + if (!other.secretVolumes_.isEmpty()) { + if (secretVolumes_.isEmpty()) { + secretVolumes_ = other.secretVolumes_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSecretVolumesIsMutable(); + secretVolumes_.addAll(other.secretVolumes_); + } + onChanged(); + } + } else { + if (!other.secretVolumes_.isEmpty()) { + if (secretVolumesBuilder_.isEmpty()) { + secretVolumesBuilder_.dispose(); + secretVolumesBuilder_ = null; + secretVolumes_ = other.secretVolumes_; + bitField0_ = (bitField0_ & ~0x00000004); + secretVolumesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecretVolumesFieldBuilder() : null; + } else { + secretVolumesBuilder_.addAllMessages(other.secretVolumes_); + } + } + } + if (!other.getRevision().isEmpty()) { + revision_ = other.revision_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.ServiceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.ServiceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object service_ = ""; + /** + *
      +     * 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) = { ... } + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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) = { ... } + * @return The bytes for service. + */ + public com.google.protobuf.ByteString + getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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) = { ... } + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + service_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @return This builder for chaining. + */ + public Builder clearService() { + + service_ = getDefaultInstance().getService(); + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + service_ = value; + onChanged(); + return this; + } + + private int timeoutSeconds_ ; + /** + *
      +     * The function execution timeout. Execution is considered failed and
      +     * can be terminated if the function is not completed at the end of the
      +     * timeout period. Defaults to 60 seconds.
      +     * 
      + * + * int32 timeout_seconds = 2; + * @return The timeoutSeconds. + */ + @java.lang.Override + public int getTimeoutSeconds() { + return timeoutSeconds_; + } + /** + *
      +     * The function execution timeout. Execution is considered failed and
      +     * can be terminated if the function is not completed at the end of the
      +     * timeout period. Defaults to 60 seconds.
      +     * 
      + * + * int32 timeout_seconds = 2; + * @param value The timeoutSeconds to set. + * @return This builder for chaining. + */ + public Builder setTimeoutSeconds(int value) { + + timeoutSeconds_ = value; + onChanged(); + return this; + } + /** + *
      +     * The function execution timeout. Execution is considered failed and
      +     * can be terminated if the function is not completed at the end of the
      +     * timeout period. Defaults to 60 seconds.
      +     * 
      + * + * int32 timeout_seconds = 2; + * @return This builder for chaining. + */ + public Builder clearTimeoutSeconds() { + + timeoutSeconds_ = 0; + onChanged(); + return this; + } + + private java.lang.Object availableMemory_ = ""; + /** + *
      +     * The amount of memory available for a function.
      +     * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
      +     * supplied the value is interpreted as bytes.
      +     * See
      +     * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
      +     * a full description.
      +     * 
      + * + * string available_memory = 13; + * @return The availableMemory. + */ + public java.lang.String getAvailableMemory() { + java.lang.Object ref = availableMemory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + availableMemory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * The amount of memory available for a function.
      +     * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
      +     * supplied the value is interpreted as bytes.
      +     * See
      +     * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
      +     * a full description.
      +     * 
      + * + * string available_memory = 13; + * @return The bytes for availableMemory. + */ + public com.google.protobuf.ByteString + getAvailableMemoryBytes() { + java.lang.Object ref = availableMemory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + availableMemory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * The amount of memory available for a function.
      +     * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
      +     * supplied the value is interpreted as bytes.
      +     * See
      +     * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
      +     * a full description.
      +     * 
      + * + * string available_memory = 13; + * @param value The availableMemory to set. + * @return This builder for chaining. + */ + public Builder setAvailableMemory( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + availableMemory_ = value; + onChanged(); + return this; + } + /** + *
      +     * The amount of memory available for a function.
      +     * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
      +     * supplied the value is interpreted as bytes.
      +     * See
      +     * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
      +     * a full description.
      +     * 
      + * + * string available_memory = 13; + * @return This builder for chaining. + */ + public Builder clearAvailableMemory() { + + availableMemory_ = getDefaultInstance().getAvailableMemory(); + onChanged(); + return this; + } + /** + *
      +     * The amount of memory available for a function.
      +     * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
      +     * supplied the value is interpreted as bytes.
      +     * See
      +     * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
      +     * a full description.
      +     * 
      + * + * string available_memory = 13; + * @param value The bytes for availableMemory to set. + * @return This builder for chaining. + */ + public Builder setAvailableMemoryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + availableMemory_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; + private com.google.protobuf.MapField + internalGetEnvironmentVariables() { + if (environmentVariables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); + } + return environmentVariables_; + } + private com.google.protobuf.MapField + internalGetMutableEnvironmentVariables() { + onChanged();; + if (environmentVariables_ == null) { + environmentVariables_ = com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); + } + if (!environmentVariables_.isMutable()) { + environmentVariables_ = environmentVariables_.copy(); + } + return environmentVariables_; + } + + public int getEnvironmentVariablesCount() { + return internalGetEnvironmentVariables().getMap().size(); + } + /** + *
      +     * Environment variables that shall be available during function execution.
      +     * 
      + * + * map<string, string> environment_variables = 4; + */ + + @java.lang.Override + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetEnvironmentVariables().getMap().containsKey(key); + } + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEnvironmentVariables() { + return getEnvironmentVariablesMap(); + } + /** + *
      +     * Environment variables that shall be available during function execution.
      +     * 
      + * + * map<string, string> environment_variables = 4; + */ + @java.lang.Override + + public java.util.Map getEnvironmentVariablesMap() { + return internalGetEnvironmentVariables().getMap(); + } + /** + *
      +     * Environment variables that shall be available during function execution.
      +     * 
      + * + * map<string, string> environment_variables = 4; + */ + @java.lang.Override + + public java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnvironmentVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
      +     * Environment variables that shall be available during function execution.
      +     * 
      + * + * map<string, string> environment_variables = 4; + */ + @java.lang.Override + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnvironmentVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearEnvironmentVariables() { + internalGetMutableEnvironmentVariables().getMutableMap() + .clear(); + return this; + } + /** + *
      +     * Environment variables that shall be available during function execution.
      +     * 
      + * + * map<string, string> environment_variables = 4; + */ + + public Builder removeEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableEnvironmentVariables().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableEnvironmentVariables() { + return internalGetMutableEnvironmentVariables().getMutableMap(); + } + /** + *
      +     * Environment variables that shall be available during function execution.
      +     * 
      + * + * map<string, string> environment_variables = 4; + */ + public Builder putEnvironmentVariables( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableEnvironmentVariables().getMutableMap() + .put(key, value); + return this; + } + /** + *
      +     * Environment variables that shall be available during function execution.
      +     * 
      + * + * map<string, string> environment_variables = 4; + */ + + public Builder putAllEnvironmentVariables( + java.util.Map values) { + internalGetMutableEnvironmentVariables().getMutableMap() + .putAll(values); + return this; + } + + private int maxInstanceCount_ ; + /** + *
      +     * 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.
      +     * 
      + * + * int32 max_instance_count = 5; + * @return The maxInstanceCount. + */ + @java.lang.Override + public int getMaxInstanceCount() { + return maxInstanceCount_; + } + /** + *
      +     * 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.
      +     * 
      + * + * int32 max_instance_count = 5; + * @param value The maxInstanceCount to set. + * @return This builder for chaining. + */ + public Builder setMaxInstanceCount(int value) { + + maxInstanceCount_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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.
      +     * 
      + * + * int32 max_instance_count = 5; + * @return This builder for chaining. + */ + public Builder clearMaxInstanceCount() { + + maxInstanceCount_ = 0; + onChanged(); + return this; + } + + private int minInstanceCount_ ; + /** + *
      +     * 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
      +     * number of instances are kept running in idle state always. This can help
      +     * with cold start times when jump in incoming request count occurs after the
      +     * idle instance would have been stopped in the default case.
      +     * 
      + * + * int32 min_instance_count = 12; + * @return The minInstanceCount. + */ + @java.lang.Override + public int getMinInstanceCount() { + return minInstanceCount_; + } + /** + *
      +     * 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
      +     * number of instances are kept running in idle state always. This can help
      +     * with cold start times when jump in incoming request count occurs after the
      +     * idle instance would have been stopped in the default case.
      +     * 
      + * + * int32 min_instance_count = 12; + * @param value The minInstanceCount to set. + * @return This builder for chaining. + */ + public Builder setMinInstanceCount(int value) { + + minInstanceCount_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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
      +     * number of instances are kept running in idle state always. This can help
      +     * with cold start times when jump in incoming request count occurs after the
      +     * idle instance would have been stopped in the default case.
      +     * 
      + * + * int32 min_instance_count = 12; + * @return This builder for chaining. + */ + public Builder clearMinInstanceCount() { + + minInstanceCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object vpcConnector_ = ""; + /** + *
      +     * 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) = { ... } + * @return The vpcConnector. + */ + public java.lang.String getVpcConnector() { + java.lang.Object ref = vpcConnector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcConnector_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * 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) = { ... } + * @return The bytes for vpcConnector. + */ + public com.google.protobuf.ByteString + getVpcConnectorBytes() { + java.lang.Object ref = vpcConnector_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vpcConnector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * 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) = { ... } + * @param value The vpcConnector to set. + * @return This builder for chaining. + */ + public Builder setVpcConnector( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vpcConnector_ = value; + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @return This builder for chaining. + */ + public Builder clearVpcConnector() { + + vpcConnector_ = getDefaultInstance().getVpcConnector(); + onChanged(); + return this; + } + /** + *
      +     * 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) = { ... } + * @param value The bytes for vpcConnector to set. + * @return This builder for chaining. + */ + public Builder setVpcConnectorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vpcConnector_ = value; + onChanged(); + return this; + } + + private int vpcConnectorEgressSettings_ = 0; + /** + *
      +     * The egress settings for the connector, controlling what traffic is diverted
      +     * through it.
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * @return The enum numeric value on the wire for vpcConnectorEgressSettings. + */ + @java.lang.Override public int getVpcConnectorEgressSettingsValue() { + return vpcConnectorEgressSettings_; + } + /** + *
      +     * The egress settings for the connector, controlling what traffic is diverted
      +     * through it.
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * @param value The enum numeric value on the wire for vpcConnectorEgressSettings to set. + * @return This builder for chaining. + */ + public Builder setVpcConnectorEgressSettingsValue(int value) { + + vpcConnectorEgressSettings_ = value; + onChanged(); + return this; + } + /** + *
      +     * The egress settings for the connector, controlling what traffic is diverted
      +     * through it.
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * @return The vpcConnectorEgressSettings. + */ + @java.lang.Override + public com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings result = com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); + return result == null ? com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED : result; + } + /** + *
      +     * The egress settings for the connector, controlling what traffic is diverted
      +     * through it.
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * @param value The vpcConnectorEgressSettings to set. + * @return This builder for chaining. + */ + public Builder setVpcConnectorEgressSettings(com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings value) { + if (value == null) { + throw new NullPointerException(); + } + + vpcConnectorEgressSettings_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
      +     * The egress settings for the connector, controlling what traffic is diverted
      +     * through it.
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * @return This builder for chaining. + */ + public Builder clearVpcConnectorEgressSettings() { + + vpcConnectorEgressSettings_ = 0; + onChanged(); + return this; + } + + private int ingressSettings_ = 0; + /** + *
      +     * The ingress settings for the function, controlling what traffic can reach
      +     * it.
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * @return The enum numeric value on the wire for ingressSettings. + */ + @java.lang.Override public int getIngressSettingsValue() { + return ingressSettings_; + } + /** + *
      +     * The ingress settings for the function, controlling what traffic can reach
      +     * it.
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * @param value The enum numeric value on the wire for ingressSettings to set. + * @return This builder for chaining. + */ + public Builder setIngressSettingsValue(int value) { + + ingressSettings_ = value; + onChanged(); + return this; + } + /** + *
      +     * The ingress settings for the function, controlling what traffic can reach
      +     * it.
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * @return The ingressSettings. + */ + @java.lang.Override + public com.google.cloud.functions.v2.ServiceConfig.IngressSettings getIngressSettings() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.ServiceConfig.IngressSettings result = com.google.cloud.functions.v2.ServiceConfig.IngressSettings.valueOf(ingressSettings_); + return result == null ? com.google.cloud.functions.v2.ServiceConfig.IngressSettings.UNRECOGNIZED : result; + } + /** + *
      +     * The ingress settings for the function, controlling what traffic can reach
      +     * it.
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * @param value The ingressSettings to set. + * @return This builder for chaining. + */ + public Builder setIngressSettings(com.google.cloud.functions.v2.ServiceConfig.IngressSettings value) { + if (value == null) { + throw new NullPointerException(); + } + + ingressSettings_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
      +     * The ingress settings for the function, controlling what traffic can reach
      +     * it.
      +     * 
      + * + * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * @return This builder for chaining. + */ + public Builder clearIngressSettings() { + + ingressSettings_ = 0; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + *
      +     * Output only. URI of the Service deployed.
      +     * 
      + * + * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Output only. URI of the Service deployed.
      +     * 
      + * + * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Output only. URI of the Service deployed.
      +     * 
      + * + * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + *
      +     * Output only. URI of the Service deployed.
      +     * 
      + * + * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + *
      +     * Output only. URI of the Service deployed.
      +     * 
      + * + * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceAccountEmail_ = ""; + /** + *
      +     * The email of the service's service account. If empty, defaults to
      +     * `{project_number}-compute@developer.gserviceaccount.com`.
      +     * 
      + * + * string service_account_email = 10; + * @return The serviceAccountEmail. + */ + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * The email of the service's service account. If empty, defaults to
      +     * `{project_number}-compute@developer.gserviceaccount.com`.
      +     * 
      + * + * string service_account_email = 10; + * @return The bytes for serviceAccountEmail. + */ + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * The email of the service's service account. If empty, defaults to
      +     * `{project_number}-compute@developer.gserviceaccount.com`.
      +     * 
      + * + * string service_account_email = 10; + * @param value The serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccountEmail_ = value; + onChanged(); + return this; + } + /** + *
      +     * The email of the service's service account. If empty, defaults to
      +     * `{project_number}-compute@developer.gserviceaccount.com`.
      +     * 
      + * + * string service_account_email = 10; + * @return This builder for chaining. + */ + public Builder clearServiceAccountEmail() { + + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); + onChanged(); + return this; + } + /** + *
      +     * The email of the service's service account. If empty, defaults to
      +     * `{project_number}-compute@developer.gserviceaccount.com`.
      +     * 
      + * + * string service_account_email = 10; + * @param value The bytes for serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccountEmail_ = value; + onChanged(); + return this; + } + + private boolean allTrafficOnLatestRevision_ ; + /** + *
      +     * Whether 100% of traffic is routed to the latest revision.
      +     * On CreateFunction and UpdateFunction, when set to true, the revision being
      +     * deployed will serve 100% of traffic, ignoring any traffic split settings,
      +     * if any. On GetFunction, true will be returned if the latest revision is
      +     * serving 100% of traffic.
      +     * 
      + * + * bool all_traffic_on_latest_revision = 16; + * @return The allTrafficOnLatestRevision. + */ + @java.lang.Override + public boolean getAllTrafficOnLatestRevision() { + return allTrafficOnLatestRevision_; + } + /** + *
      +     * Whether 100% of traffic is routed to the latest revision.
      +     * On CreateFunction and UpdateFunction, when set to true, the revision being
      +     * deployed will serve 100% of traffic, ignoring any traffic split settings,
      +     * if any. On GetFunction, true will be returned if the latest revision is
      +     * serving 100% of traffic.
      +     * 
      + * + * bool all_traffic_on_latest_revision = 16; + * @param value The allTrafficOnLatestRevision to set. + * @return This builder for chaining. + */ + public Builder setAllTrafficOnLatestRevision(boolean value) { + + allTrafficOnLatestRevision_ = value; + onChanged(); + return this; + } + /** + *
      +     * Whether 100% of traffic is routed to the latest revision.
      +     * On CreateFunction and UpdateFunction, when set to true, the revision being
      +     * deployed will serve 100% of traffic, ignoring any traffic split settings,
      +     * if any. On GetFunction, true will be returned if the latest revision is
      +     * serving 100% of traffic.
      +     * 
      + * + * bool all_traffic_on_latest_revision = 16; + * @return This builder for chaining. + */ + public Builder clearAllTrafficOnLatestRevision() { + + allTrafficOnLatestRevision_ = false; + onChanged(); + return this; + } + + private java.util.List secretEnvironmentVariables_ = + java.util.Collections.emptyList(); + private void ensureSecretEnvironmentVariablesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + secretEnvironmentVariables_ = new java.util.ArrayList(secretEnvironmentVariables_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.SecretEnvVar, com.google.cloud.functions.v2.SecretEnvVar.Builder, com.google.cloud.functions.v2.SecretEnvVarOrBuilder> secretEnvironmentVariablesBuilder_; + + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public java.util.List getSecretEnvironmentVariablesList() { + if (secretEnvironmentVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(secretEnvironmentVariables_); + } else { + return secretEnvironmentVariablesBuilder_.getMessageList(); + } + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public int getSecretEnvironmentVariablesCount() { + if (secretEnvironmentVariablesBuilder_ == null) { + return secretEnvironmentVariables_.size(); + } else { + return secretEnvironmentVariablesBuilder_.getCount(); + } + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public com.google.cloud.functions.v2.SecretEnvVar getSecretEnvironmentVariables(int index) { + if (secretEnvironmentVariablesBuilder_ == null) { + return secretEnvironmentVariables_.get(index); + } else { + return secretEnvironmentVariablesBuilder_.getMessage(index); + } + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public Builder setSecretEnvironmentVariables( + int index, com.google.cloud.functions.v2.SecretEnvVar value) { + if (secretEnvironmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretEnvironmentVariablesIsMutable(); + secretEnvironmentVariables_.set(index, value); + onChanged(); + } else { + secretEnvironmentVariablesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public Builder setSecretEnvironmentVariables( + int index, com.google.cloud.functions.v2.SecretEnvVar.Builder builderForValue) { + if (secretEnvironmentVariablesBuilder_ == null) { + ensureSecretEnvironmentVariablesIsMutable(); + secretEnvironmentVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + secretEnvironmentVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public Builder addSecretEnvironmentVariables(com.google.cloud.functions.v2.SecretEnvVar value) { + if (secretEnvironmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretEnvironmentVariablesIsMutable(); + secretEnvironmentVariables_.add(value); + onChanged(); + } else { + secretEnvironmentVariablesBuilder_.addMessage(value); + } + return this; + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public Builder addSecretEnvironmentVariables( + int index, com.google.cloud.functions.v2.SecretEnvVar value) { + if (secretEnvironmentVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretEnvironmentVariablesIsMutable(); + secretEnvironmentVariables_.add(index, value); + onChanged(); + } else { + secretEnvironmentVariablesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public Builder addSecretEnvironmentVariables( + com.google.cloud.functions.v2.SecretEnvVar.Builder builderForValue) { + if (secretEnvironmentVariablesBuilder_ == null) { + ensureSecretEnvironmentVariablesIsMutable(); + secretEnvironmentVariables_.add(builderForValue.build()); + onChanged(); + } else { + secretEnvironmentVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public Builder addSecretEnvironmentVariables( + int index, com.google.cloud.functions.v2.SecretEnvVar.Builder builderForValue) { + if (secretEnvironmentVariablesBuilder_ == null) { + ensureSecretEnvironmentVariablesIsMutable(); + secretEnvironmentVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + secretEnvironmentVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public Builder addAllSecretEnvironmentVariables( + java.lang.Iterable values) { + if (secretEnvironmentVariablesBuilder_ == null) { + ensureSecretEnvironmentVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secretEnvironmentVariables_); + onChanged(); + } else { + secretEnvironmentVariablesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public Builder clearSecretEnvironmentVariables() { + if (secretEnvironmentVariablesBuilder_ == null) { + secretEnvironmentVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + secretEnvironmentVariablesBuilder_.clear(); + } + return this; + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public Builder removeSecretEnvironmentVariables(int index) { + if (secretEnvironmentVariablesBuilder_ == null) { + ensureSecretEnvironmentVariablesIsMutable(); + secretEnvironmentVariables_.remove(index); + onChanged(); + } else { + secretEnvironmentVariablesBuilder_.remove(index); + } + return this; + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public com.google.cloud.functions.v2.SecretEnvVar.Builder getSecretEnvironmentVariablesBuilder( + int index) { + return getSecretEnvironmentVariablesFieldBuilder().getBuilder(index); + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public com.google.cloud.functions.v2.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( + int index) { + if (secretEnvironmentVariablesBuilder_ == null) { + return secretEnvironmentVariables_.get(index); } else { + return secretEnvironmentVariablesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public java.util.List + getSecretEnvironmentVariablesOrBuilderList() { + if (secretEnvironmentVariablesBuilder_ != null) { + return secretEnvironmentVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secretEnvironmentVariables_); + } + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public com.google.cloud.functions.v2.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder() { + return getSecretEnvironmentVariablesFieldBuilder().addBuilder( + com.google.cloud.functions.v2.SecretEnvVar.getDefaultInstance()); + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public com.google.cloud.functions.v2.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder( + int index) { + return getSecretEnvironmentVariablesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2.SecretEnvVar.getDefaultInstance()); + } + /** + *
      +     * Secret environment variables configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + public java.util.List + getSecretEnvironmentVariablesBuilderList() { + return getSecretEnvironmentVariablesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.SecretEnvVar, com.google.cloud.functions.v2.SecretEnvVar.Builder, com.google.cloud.functions.v2.SecretEnvVarOrBuilder> + getSecretEnvironmentVariablesFieldBuilder() { + if (secretEnvironmentVariablesBuilder_ == null) { + secretEnvironmentVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.SecretEnvVar, com.google.cloud.functions.v2.SecretEnvVar.Builder, com.google.cloud.functions.v2.SecretEnvVarOrBuilder>( + secretEnvironmentVariables_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + secretEnvironmentVariables_ = null; + } + return secretEnvironmentVariablesBuilder_; + } + + private java.util.List secretVolumes_ = + java.util.Collections.emptyList(); + private void ensureSecretVolumesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + secretVolumes_ = new java.util.ArrayList(secretVolumes_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.SecretVolume, com.google.cloud.functions.v2.SecretVolume.Builder, com.google.cloud.functions.v2.SecretVolumeOrBuilder> secretVolumesBuilder_; + + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public java.util.List getSecretVolumesList() { + if (secretVolumesBuilder_ == null) { + return java.util.Collections.unmodifiableList(secretVolumes_); + } else { + return secretVolumesBuilder_.getMessageList(); + } + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public int getSecretVolumesCount() { + if (secretVolumesBuilder_ == null) { + return secretVolumes_.size(); + } else { + return secretVolumesBuilder_.getCount(); + } + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public com.google.cloud.functions.v2.SecretVolume getSecretVolumes(int index) { + if (secretVolumesBuilder_ == null) { + return secretVolumes_.get(index); + } else { + return secretVolumesBuilder_.getMessage(index); + } + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public Builder setSecretVolumes( + int index, com.google.cloud.functions.v2.SecretVolume value) { + if (secretVolumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretVolumesIsMutable(); + secretVolumes_.set(index, value); + onChanged(); + } else { + secretVolumesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public Builder setSecretVolumes( + int index, com.google.cloud.functions.v2.SecretVolume.Builder builderForValue) { + if (secretVolumesBuilder_ == null) { + ensureSecretVolumesIsMutable(); + secretVolumes_.set(index, builderForValue.build()); + onChanged(); + } else { + secretVolumesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public Builder addSecretVolumes(com.google.cloud.functions.v2.SecretVolume value) { + if (secretVolumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretVolumesIsMutable(); + secretVolumes_.add(value); + onChanged(); + } else { + secretVolumesBuilder_.addMessage(value); + } + return this; + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public Builder addSecretVolumes( + int index, com.google.cloud.functions.v2.SecretVolume value) { + if (secretVolumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretVolumesIsMutable(); + secretVolumes_.add(index, value); + onChanged(); + } else { + secretVolumesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public Builder addSecretVolumes( + com.google.cloud.functions.v2.SecretVolume.Builder builderForValue) { + if (secretVolumesBuilder_ == null) { + ensureSecretVolumesIsMutable(); + secretVolumes_.add(builderForValue.build()); + onChanged(); + } else { + secretVolumesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public Builder addSecretVolumes( + int index, com.google.cloud.functions.v2.SecretVolume.Builder builderForValue) { + if (secretVolumesBuilder_ == null) { + ensureSecretVolumesIsMutable(); + secretVolumes_.add(index, builderForValue.build()); + onChanged(); + } else { + secretVolumesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public Builder addAllSecretVolumes( + java.lang.Iterable values) { + if (secretVolumesBuilder_ == null) { + ensureSecretVolumesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secretVolumes_); + onChanged(); + } else { + secretVolumesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public Builder clearSecretVolumes() { + if (secretVolumesBuilder_ == null) { + secretVolumes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + secretVolumesBuilder_.clear(); + } + return this; + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public Builder removeSecretVolumes(int index) { + if (secretVolumesBuilder_ == null) { + ensureSecretVolumesIsMutable(); + secretVolumes_.remove(index); + onChanged(); + } else { + secretVolumesBuilder_.remove(index); + } + return this; + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public com.google.cloud.functions.v2.SecretVolume.Builder getSecretVolumesBuilder( + int index) { + return getSecretVolumesFieldBuilder().getBuilder(index); + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public com.google.cloud.functions.v2.SecretVolumeOrBuilder getSecretVolumesOrBuilder( + int index) { + if (secretVolumesBuilder_ == null) { + return secretVolumes_.get(index); } else { + return secretVolumesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public java.util.List + getSecretVolumesOrBuilderList() { + if (secretVolumesBuilder_ != null) { + return secretVolumesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secretVolumes_); + } + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public com.google.cloud.functions.v2.SecretVolume.Builder addSecretVolumesBuilder() { + return getSecretVolumesFieldBuilder().addBuilder( + com.google.cloud.functions.v2.SecretVolume.getDefaultInstance()); + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public com.google.cloud.functions.v2.SecretVolume.Builder addSecretVolumesBuilder( + int index) { + return getSecretVolumesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2.SecretVolume.getDefaultInstance()); + } + /** + *
      +     * Secret volumes configuration.
      +     * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + public java.util.List + getSecretVolumesBuilderList() { + return getSecretVolumesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.SecretVolume, com.google.cloud.functions.v2.SecretVolume.Builder, com.google.cloud.functions.v2.SecretVolumeOrBuilder> + getSecretVolumesFieldBuilder() { + if (secretVolumesBuilder_ == null) { + secretVolumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.SecretVolume, com.google.cloud.functions.v2.SecretVolume.Builder, com.google.cloud.functions.v2.SecretVolumeOrBuilder>( + secretVolumes_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + secretVolumes_ = null; + } + return secretVolumesBuilder_; + } + + private java.lang.Object revision_ = ""; + /** + *
      +     * Output only. The name of service revision.
      +     * 
      + * + * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The revision. + */ + public java.lang.String getRevision() { + java.lang.Object ref = revision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Output only. The name of service revision.
      +     * 
      + * + * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for revision. + */ + public com.google.protobuf.ByteString + getRevisionBytes() { + java.lang.Object ref = revision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + revision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Output only. The name of service revision.
      +     * 
      + * + * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The revision to set. + * @return This builder for chaining. + */ + public Builder setRevision( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + revision_ = value; + onChanged(); + return this; + } + /** + *
      +     * Output only. The name of service revision.
      +     * 
      + * + * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearRevision() { + + revision_ = getDefaultInstance().getRevision(); + onChanged(); + return this; + } + /** + *
      +     * Output only. The name of service revision.
      +     * 
      + * + * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for revision to set. + * @return This builder for chaining. + */ + public Builder setRevisionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + revision_ = 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.ServiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ServiceConfig) + private static final com.google.cloud.functions.v2.ServiceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ServiceConfig(); + } + + public static com.google.cloud.functions.v2.ServiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServiceConfig(input, extensionRegistry); + } + }; + + 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.ServiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java new file mode 100644 index 00000000..0bffcd65 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java @@ -0,0 +1,395 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface ServiceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.ServiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * 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) = { ... } + * @return The service. + */ + java.lang.String getService(); + /** + *
      +   * 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) = { ... } + * @return The bytes for service. + */ + com.google.protobuf.ByteString + getServiceBytes(); + + /** + *
      +   * The function execution timeout. Execution is considered failed and
      +   * can be terminated if the function is not completed at the end of the
      +   * timeout period. Defaults to 60 seconds.
      +   * 
      + * + * int32 timeout_seconds = 2; + * @return The timeoutSeconds. + */ + int getTimeoutSeconds(); + + /** + *
      +   * The amount of memory available for a function.
      +   * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
      +   * supplied the value is interpreted as bytes.
      +   * See
      +   * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
      +   * a full description.
      +   * 
      + * + * string available_memory = 13; + * @return The availableMemory. + */ + java.lang.String getAvailableMemory(); + /** + *
      +   * The amount of memory available for a function.
      +   * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
      +   * supplied the value is interpreted as bytes.
      +   * See
      +   * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
      +   * a full description.
      +   * 
      + * + * string available_memory = 13; + * @return The bytes for availableMemory. + */ + com.google.protobuf.ByteString + getAvailableMemoryBytes(); + + /** + *
      +   * Environment variables that shall be available during function execution.
      +   * 
      + * + * map<string, string> environment_variables = 4; + */ + int getEnvironmentVariablesCount(); + /** + *
      +   * Environment variables that shall be available during function execution.
      +   * 
      + * + * map<string, string> environment_variables = 4; + */ + boolean containsEnvironmentVariables( + java.lang.String key); + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getEnvironmentVariables(); + /** + *
      +   * Environment variables that shall be available during function execution.
      +   * 
      + * + * map<string, string> environment_variables = 4; + */ + java.util.Map + getEnvironmentVariablesMap(); + /** + *
      +   * Environment variables that shall be available during function execution.
      +   * 
      + * + * map<string, string> environment_variables = 4; + */ + + /* nullable */ +java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
      +   * Environment variables that shall be available during function execution.
      +   * 
      + * + * map<string, string> environment_variables = 4; + */ + + 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.
      +   * 
      + * + * int32 max_instance_count = 5; + * @return The maxInstanceCount. + */ + 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
      +   * number of instances are kept running in idle state always. This can help
      +   * with cold start times when jump in incoming request count occurs after the
      +   * idle instance would have been stopped in the default case.
      +   * 
      + * + * int32 min_instance_count = 12; + * @return The minInstanceCount. + */ + int getMinInstanceCount(); + + /** + *
      +   * 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) = { ... } + * @return The vpcConnector. + */ + java.lang.String getVpcConnector(); + /** + *
      +   * 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) = { ... } + * @return The bytes for vpcConnector. + */ + com.google.protobuf.ByteString + getVpcConnectorBytes(); + + /** + *
      +   * The egress settings for the connector, controlling what traffic is diverted
      +   * through it.
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * @return The enum numeric value on the wire for vpcConnectorEgressSettings. + */ + int getVpcConnectorEgressSettingsValue(); + /** + *
      +   * The egress settings for the connector, controlling what traffic is diverted
      +   * through it.
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * @return The vpcConnectorEgressSettings. + */ + com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings(); + + /** + *
      +   * The ingress settings for the function, controlling what traffic can reach
      +   * it.
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * @return The enum numeric value on the wire for ingressSettings. + */ + int getIngressSettingsValue(); + /** + *
      +   * The ingress settings for the function, controlling what traffic can reach
      +   * it.
      +   * 
      + * + * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * @return The ingressSettings. + */ + com.google.cloud.functions.v2.ServiceConfig.IngressSettings getIngressSettings(); + + /** + *
      +   * Output only. URI of the Service deployed.
      +   * 
      + * + * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The uri. + */ + java.lang.String getUri(); + /** + *
      +   * Output only. URI of the Service deployed.
      +   * 
      + * + * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for uri. + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + *
      +   * The email of the service's service account. If empty, defaults to
      +   * `{project_number}-compute@developer.gserviceaccount.com`.
      +   * 
      + * + * string service_account_email = 10; + * @return The serviceAccountEmail. + */ + java.lang.String getServiceAccountEmail(); + /** + *
      +   * The email of the service's service account. If empty, defaults to
      +   * `{project_number}-compute@developer.gserviceaccount.com`.
      +   * 
      + * + * string service_account_email = 10; + * @return The bytes for serviceAccountEmail. + */ + com.google.protobuf.ByteString + getServiceAccountEmailBytes(); + + /** + *
      +   * Whether 100% of traffic is routed to the latest revision.
      +   * On CreateFunction and UpdateFunction, when set to true, the revision being
      +   * deployed will serve 100% of traffic, ignoring any traffic split settings,
      +   * if any. On GetFunction, true will be returned if the latest revision is
      +   * serving 100% of traffic.
      +   * 
      + * + * bool all_traffic_on_latest_revision = 16; + * @return The allTrafficOnLatestRevision. + */ + boolean getAllTrafficOnLatestRevision(); + + /** + *
      +   * Secret environment variables configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + java.util.List + getSecretEnvironmentVariablesList(); + /** + *
      +   * Secret environment variables configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + com.google.cloud.functions.v2.SecretEnvVar getSecretEnvironmentVariables(int index); + /** + *
      +   * Secret environment variables configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + int getSecretEnvironmentVariablesCount(); + /** + *
      +   * Secret environment variables configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + java.util.List + getSecretEnvironmentVariablesOrBuilderList(); + /** + *
      +   * Secret environment variables configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + */ + com.google.cloud.functions.v2.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( + int index); + + /** + *
      +   * Secret volumes configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + java.util.List + getSecretVolumesList(); + /** + *
      +   * Secret volumes configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + com.google.cloud.functions.v2.SecretVolume getSecretVolumes(int index); + /** + *
      +   * Secret volumes configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + int getSecretVolumesCount(); + /** + *
      +   * Secret volumes configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + java.util.List + getSecretVolumesOrBuilderList(); + /** + *
      +   * Secret volumes configuration.
      +   * 
      + * + * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; + */ + com.google.cloud.functions.v2.SecretVolumeOrBuilder getSecretVolumesOrBuilder( + int index); + + /** + *
      +   * Output only. The name of service revision.
      +   * 
      + * + * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The revision. + */ + java.lang.String getRevision(); + /** + *
      +   * Output only. The name of service revision.
      +   * 
      + * + * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for revision. + */ + com.google.protobuf.ByteString + getRevisionBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java new file mode 100644 index 00000000..c3725b9e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java @@ -0,0 +1,1036 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * The location of the function source code.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.Source} + */ +public final class Source extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.Source) + SourceOrBuilder { +private static final long serialVersionUID = 0L; + // Use Source.newBuilder() to construct. + private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Source() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Source(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Source( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.functions.v2.StorageSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.functions.v2.StorageSource) source_).toBuilder(); + } + source_ = + input.readMessage(com.google.cloud.functions.v2.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.functions.v2.StorageSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; + } + case 18: { + com.google.cloud.functions.v2.RepoSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.functions.v2.RepoSource) source_).toBuilder(); + } + source_ = + input.readMessage(com.google.cloud.functions.v2.RepoSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.functions.v2.RepoSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Source_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Source_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.Source.class, com.google.cloud.functions.v2.Source.Builder.class); + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + public enum SourceCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STORAGE_SOURCE(1), + REPO_SOURCE(2), + SOURCE_NOT_SET(0); + private final int value; + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: return STORAGE_SOURCE; + case 2: return REPO_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public static final int STORAGE_SOURCE_FIELD_NUMBER = 1; + /** + *
      +   * If provided, get the source from this location in Google Cloud Storage.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + * @return Whether the storageSource field is set. + */ + @java.lang.Override + public boolean hasStorageSource() { + return sourceCase_ == 1; + } + /** + *
      +   * If provided, get the source from this location in Google Cloud Storage.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + * @return The storageSource. + */ + @java.lang.Override + public com.google.cloud.functions.v2.StorageSource getStorageSource() { + if (sourceCase_ == 1) { + return (com.google.cloud.functions.v2.StorageSource) source_; + } + return com.google.cloud.functions.v2.StorageSource.getDefaultInstance(); + } + /** + *
      +   * If provided, get the source from this location in Google Cloud Storage.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + */ + @java.lang.Override + public com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.cloud.functions.v2.StorageSource) source_; + } + return com.google.cloud.functions.v2.StorageSource.getDefaultInstance(); + } + + public static final int REPO_SOURCE_FIELD_NUMBER = 2; + /** + *
      +   * If provided, get the source from this location in a Cloud Source
      +   * Repository.
      +   * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + * @return Whether the repoSource field is set. + */ + @java.lang.Override + public boolean hasRepoSource() { + return sourceCase_ == 2; + } + /** + *
      +   * If provided, get the source from this location in a Cloud Source
      +   * Repository.
      +   * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + * @return The repoSource. + */ + @java.lang.Override + public com.google.cloud.functions.v2.RepoSource getRepoSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.functions.v2.RepoSource) source_; + } + return com.google.cloud.functions.v2.RepoSource.getDefaultInstance(); + } + /** + *
      +   * If provided, get the source from this location in a Cloud Source
      +   * Repository.
      +   * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + */ + @java.lang.Override + public com.google.cloud.functions.v2.RepoSourceOrBuilder getRepoSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.functions.v2.RepoSource) source_; + } + return com.google.cloud.functions.v2.RepoSource.getDefaultInstance(); + } + + 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 { + if (sourceCase_ == 1) { + output.writeMessage(1, (com.google.cloud.functions.v2.StorageSource) source_); + } + if (sourceCase_ == 2) { + output.writeMessage(2, (com.google.cloud.functions.v2.RepoSource) source_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.functions.v2.StorageSource) source_); + } + if (sourceCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.functions.v2.RepoSource) source_); + } + size += unknownFields.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.Source)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.Source other = (com.google.cloud.functions.v2.Source) obj; + + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 1: + if (!getStorageSource() + .equals(other.getStorageSource())) return false; + break; + case 2: + if (!getRepoSource() + .equals(other.getRepoSource())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (sourceCase_) { + case 1: + hash = (37 * hash) + STORAGE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getStorageSource().hashCode(); + break; + case 2: + hash = (37 * hash) + REPO_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRepoSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.Source parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.Source 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.Source parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.Source 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.Source parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.Source 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.Source parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.Source 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.Source parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.Source 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.Source 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.Source 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.Source 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; + } + /** + *
      +   * The location of the function source code.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.Source} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.Source) + com.google.cloud.functions.v2.SourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Source_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Source_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.Source.class, com.google.cloud.functions.v2.Source.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.Source.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + sourceCase_ = 0; + source_ = null; + 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_Source_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.Source getDefaultInstanceForType() { + return com.google.cloud.functions.v2.Source.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.Source build() { + com.google.cloud.functions.v2.Source result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.Source buildPartial() { + com.google.cloud.functions.v2.Source result = new com.google.cloud.functions.v2.Source(this); + if (sourceCase_ == 1) { + if (storageSourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = storageSourceBuilder_.build(); + } + } + if (sourceCase_ == 2) { + if (repoSourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = repoSourceBuilder_.build(); + } + } + result.sourceCase_ = sourceCase_; + onBuilt(); + 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.v2.Source) { + return mergeFrom((com.google.cloud.functions.v2.Source)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.Source other) { + if (other == com.google.cloud.functions.v2.Source.getDefaultInstance()) return this; + switch (other.getSourceCase()) { + case STORAGE_SOURCE: { + mergeStorageSource(other.getStorageSource()); + break; + } + case REPO_SOURCE: { + mergeRepoSource(other.getRepoSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.Source parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.Source) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int sourceCase_ = 0; + private java.lang.Object source_; + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder> storageSourceBuilder_; + /** + *
      +     * If provided, get the source from this location in Google Cloud Storage.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + * @return Whether the storageSource field is set. + */ + @java.lang.Override + public boolean hasStorageSource() { + return sourceCase_ == 1; + } + /** + *
      +     * If provided, get the source from this location in Google Cloud Storage.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + * @return The storageSource. + */ + @java.lang.Override + public com.google.cloud.functions.v2.StorageSource getStorageSource() { + if (storageSourceBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.cloud.functions.v2.StorageSource) source_; + } + return com.google.cloud.functions.v2.StorageSource.getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return storageSourceBuilder_.getMessage(); + } + return com.google.cloud.functions.v2.StorageSource.getDefaultInstance(); + } + } + /** + *
      +     * If provided, get the source from this location in Google Cloud Storage.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + */ + public Builder setStorageSource(com.google.cloud.functions.v2.StorageSource value) { + if (storageSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + storageSourceBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + /** + *
      +     * If provided, get the source from this location in Google Cloud Storage.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + */ + public Builder setStorageSource( + com.google.cloud.functions.v2.StorageSource.Builder builderForValue) { + if (storageSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + storageSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 1; + return this; + } + /** + *
      +     * If provided, get the source from this location in Google Cloud Storage.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + */ + public Builder mergeStorageSource(com.google.cloud.functions.v2.StorageSource value) { + if (storageSourceBuilder_ == null) { + if (sourceCase_ == 1 && + source_ != com.google.cloud.functions.v2.StorageSource.getDefaultInstance()) { + source_ = com.google.cloud.functions.v2.StorageSource.newBuilder((com.google.cloud.functions.v2.StorageSource) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 1) { + storageSourceBuilder_.mergeFrom(value); + } else { + storageSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 1; + return this; + } + /** + *
      +     * If provided, get the source from this location in Google Cloud Storage.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + */ + public Builder clearStorageSource() { + if (storageSourceBuilder_ == null) { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + } + storageSourceBuilder_.clear(); + } + return this; + } + /** + *
      +     * If provided, get the source from this location in Google Cloud Storage.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + */ + public com.google.cloud.functions.v2.StorageSource.Builder getStorageSourceBuilder() { + return getStorageSourceFieldBuilder().getBuilder(); + } + /** + *
      +     * If provided, get the source from this location in Google Cloud Storage.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + */ + @java.lang.Override + public com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBuilder() { + if ((sourceCase_ == 1) && (storageSourceBuilder_ != null)) { + return storageSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.cloud.functions.v2.StorageSource) source_; + } + return com.google.cloud.functions.v2.StorageSource.getDefaultInstance(); + } + } + /** + *
      +     * If provided, get the source from this location in Google Cloud Storage.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder> + getStorageSourceFieldBuilder() { + if (storageSourceBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = com.google.cloud.functions.v2.StorageSource.getDefaultInstance(); + } + storageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder>( + (com.google.cloud.functions.v2.StorageSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged();; + return storageSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.RepoSource, com.google.cloud.functions.v2.RepoSource.Builder, com.google.cloud.functions.v2.RepoSourceOrBuilder> repoSourceBuilder_; + /** + *
      +     * If provided, get the source from this location in a Cloud Source
      +     * Repository.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + * @return Whether the repoSource field is set. + */ + @java.lang.Override + public boolean hasRepoSource() { + return sourceCase_ == 2; + } + /** + *
      +     * If provided, get the source from this location in a Cloud Source
      +     * Repository.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + * @return The repoSource. + */ + @java.lang.Override + public com.google.cloud.functions.v2.RepoSource getRepoSource() { + if (repoSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.functions.v2.RepoSource) source_; + } + return com.google.cloud.functions.v2.RepoSource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return repoSourceBuilder_.getMessage(); + } + return com.google.cloud.functions.v2.RepoSource.getDefaultInstance(); + } + } + /** + *
      +     * If provided, get the source from this location in a Cloud Source
      +     * Repository.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + */ + public Builder setRepoSource(com.google.cloud.functions.v2.RepoSource value) { + if (repoSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + repoSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + *
      +     * If provided, get the source from this location in a Cloud Source
      +     * Repository.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + */ + public Builder setRepoSource( + com.google.cloud.functions.v2.RepoSource.Builder builderForValue) { + if (repoSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + repoSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + *
      +     * If provided, get the source from this location in a Cloud Source
      +     * Repository.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + */ + public Builder mergeRepoSource(com.google.cloud.functions.v2.RepoSource value) { + if (repoSourceBuilder_ == null) { + if (sourceCase_ == 2 && + source_ != com.google.cloud.functions.v2.RepoSource.getDefaultInstance()) { + source_ = com.google.cloud.functions.v2.RepoSource.newBuilder((com.google.cloud.functions.v2.RepoSource) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + repoSourceBuilder_.mergeFrom(value); + } else { + repoSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + /** + *
      +     * If provided, get the source from this location in a Cloud Source
      +     * Repository.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + */ + public Builder clearRepoSource() { + if (repoSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + repoSourceBuilder_.clear(); + } + return this; + } + /** + *
      +     * If provided, get the source from this location in a Cloud Source
      +     * Repository.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + */ + public com.google.cloud.functions.v2.RepoSource.Builder getRepoSourceBuilder() { + return getRepoSourceFieldBuilder().getBuilder(); + } + /** + *
      +     * If provided, get the source from this location in a Cloud Source
      +     * Repository.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + */ + @java.lang.Override + public com.google.cloud.functions.v2.RepoSourceOrBuilder getRepoSourceOrBuilder() { + if ((sourceCase_ == 2) && (repoSourceBuilder_ != null)) { + return repoSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.functions.v2.RepoSource) source_; + } + return com.google.cloud.functions.v2.RepoSource.getDefaultInstance(); + } + } + /** + *
      +     * If provided, get the source from this location in a Cloud Source
      +     * Repository.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.RepoSource, com.google.cloud.functions.v2.RepoSource.Builder, com.google.cloud.functions.v2.RepoSourceOrBuilder> + getRepoSourceFieldBuilder() { + if (repoSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = com.google.cloud.functions.v2.RepoSource.getDefaultInstance(); + } + repoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.RepoSource, com.google.cloud.functions.v2.RepoSource.Builder, com.google.cloud.functions.v2.RepoSourceOrBuilder>( + (com.google.cloud.functions.v2.RepoSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged();; + return repoSourceBuilder_; + } + @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.Source) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.Source) + private static final com.google.cloud.functions.v2.Source DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.Source(); + } + + public static com.google.cloud.functions.v2.Source getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Source parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Source(input, extensionRegistry); + } + }; + + 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.Source getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java new file mode 100644 index 00000000..cf45eb55 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface SourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.Source) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * If provided, get the source from this location in Google Cloud Storage.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + * @return Whether the storageSource field is set. + */ + boolean hasStorageSource(); + /** + *
      +   * If provided, get the source from this location in Google Cloud Storage.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + * @return The storageSource. + */ + com.google.cloud.functions.v2.StorageSource getStorageSource(); + /** + *
      +   * If provided, get the source from this location in Google Cloud Storage.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource storage_source = 1; + */ + com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBuilder(); + + /** + *
      +   * If provided, get the source from this location in a Cloud Source
      +   * Repository.
      +   * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + * @return Whether the repoSource field is set. + */ + boolean hasRepoSource(); + /** + *
      +   * If provided, get the source from this location in a Cloud Source
      +   * Repository.
      +   * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + * @return The repoSource. + */ + com.google.cloud.functions.v2.RepoSource getRepoSource(); + /** + *
      +   * If provided, get the source from this location in a Cloud Source
      +   * Repository.
      +   * 
      + * + * .google.cloud.functions.v2.RepoSource repo_source = 2; + */ + com.google.cloud.functions.v2.RepoSourceOrBuilder getRepoSourceOrBuilder(); + + public com.google.cloud.functions.v2.Source.SourceCase getSourceCase(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java new file mode 100644 index 00000000..37f1e13d --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java @@ -0,0 +1,927 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Provenance of the source. Ways to find the original source, or verify that
      + * some source was used for this build.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.SourceProvenance} + */ +public final class SourceProvenance extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.SourceProvenance) + SourceProvenanceOrBuilder { +private static final long serialVersionUID = 0L; + // Use SourceProvenance.newBuilder() to construct. + private SourceProvenance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SourceProvenance() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SourceProvenance(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SourceProvenance( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.functions.v2.StorageSource.Builder subBuilder = null; + if (resolvedStorageSource_ != null) { + subBuilder = resolvedStorageSource_.toBuilder(); + } + resolvedStorageSource_ = input.readMessage(com.google.cloud.functions.v2.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resolvedStorageSource_); + resolvedStorageSource_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.cloud.functions.v2.RepoSource.Builder subBuilder = null; + if (resolvedRepoSource_ != null) { + subBuilder = resolvedRepoSource_.toBuilder(); + } + resolvedRepoSource_ = input.readMessage(com.google.cloud.functions.v2.RepoSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resolvedRepoSource_); + resolvedRepoSource_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SourceProvenance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SourceProvenance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.SourceProvenance.class, com.google.cloud.functions.v2.SourceProvenance.Builder.class); + } + + public static final int RESOLVED_STORAGE_SOURCE_FIELD_NUMBER = 1; + private com.google.cloud.functions.v2.StorageSource resolvedStorageSource_; + /** + *
      +   * A copy of the build's `source.storage_source`, if exists, with any
      +   * generations resolved.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + * @return Whether the resolvedStorageSource field is set. + */ + @java.lang.Override + public boolean hasResolvedStorageSource() { + return resolvedStorageSource_ != null; + } + /** + *
      +   * A copy of the build's `source.storage_source`, if exists, with any
      +   * generations resolved.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + * @return The resolvedStorageSource. + */ + @java.lang.Override + public com.google.cloud.functions.v2.StorageSource getResolvedStorageSource() { + return resolvedStorageSource_ == null ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance() : resolvedStorageSource_; + } + /** + *
      +   * A copy of the build's `source.storage_source`, if exists, with any
      +   * generations resolved.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + */ + @java.lang.Override + public com.google.cloud.functions.v2.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder() { + return getResolvedStorageSource(); + } + + public static final int RESOLVED_REPO_SOURCE_FIELD_NUMBER = 2; + private com.google.cloud.functions.v2.RepoSource resolvedRepoSource_; + /** + *
      +   * A copy of the build's `source.repo_source`, if exists, with any
      +   * revisions resolved.
      +   * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + * @return Whether the resolvedRepoSource field is set. + */ + @java.lang.Override + public boolean hasResolvedRepoSource() { + return resolvedRepoSource_ != null; + } + /** + *
      +   * A copy of the build's `source.repo_source`, if exists, with any
      +   * revisions resolved.
      +   * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + * @return The resolvedRepoSource. + */ + @java.lang.Override + public com.google.cloud.functions.v2.RepoSource getResolvedRepoSource() { + return resolvedRepoSource_ == null ? com.google.cloud.functions.v2.RepoSource.getDefaultInstance() : resolvedRepoSource_; + } + /** + *
      +   * A copy of the build's `source.repo_source`, if exists, with any
      +   * revisions resolved.
      +   * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + */ + @java.lang.Override + public com.google.cloud.functions.v2.RepoSourceOrBuilder getResolvedRepoSourceOrBuilder() { + return getResolvedRepoSource(); + } + + 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 { + if (resolvedStorageSource_ != null) { + output.writeMessage(1, getResolvedStorageSource()); + } + if (resolvedRepoSource_ != null) { + output.writeMessage(2, getResolvedRepoSource()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resolvedStorageSource_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResolvedStorageSource()); + } + if (resolvedRepoSource_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getResolvedRepoSource()); + } + size += unknownFields.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.SourceProvenance)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.SourceProvenance other = (com.google.cloud.functions.v2.SourceProvenance) obj; + + if (hasResolvedStorageSource() != other.hasResolvedStorageSource()) return false; + if (hasResolvedStorageSource()) { + if (!getResolvedStorageSource() + .equals(other.getResolvedStorageSource())) return false; + } + if (hasResolvedRepoSource() != other.hasResolvedRepoSource()) return false; + if (hasResolvedRepoSource()) { + if (!getResolvedRepoSource() + .equals(other.getResolvedRepoSource())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResolvedStorageSource()) { + hash = (37 * hash) + RESOLVED_STORAGE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResolvedStorageSource().hashCode(); + } + if (hasResolvedRepoSource()) { + hash = (37 * hash) + RESOLVED_REPO_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResolvedRepoSource().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.SourceProvenance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.SourceProvenance 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.SourceProvenance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.SourceProvenance 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.SourceProvenance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.SourceProvenance 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.SourceProvenance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.SourceProvenance 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.SourceProvenance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.SourceProvenance 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.SourceProvenance 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.SourceProvenance 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.SourceProvenance 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; + } + /** + *
      +   * Provenance of the source. Ways to find the original source, or verify that
      +   * some source was used for this build.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.SourceProvenance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.SourceProvenance) + com.google.cloud.functions.v2.SourceProvenanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SourceProvenance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SourceProvenance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.SourceProvenance.class, com.google.cloud.functions.v2.SourceProvenance.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.SourceProvenance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (resolvedStorageSourceBuilder_ == null) { + resolvedStorageSource_ = null; + } else { + resolvedStorageSource_ = null; + resolvedStorageSourceBuilder_ = null; + } + if (resolvedRepoSourceBuilder_ == null) { + resolvedRepoSource_ = null; + } else { + resolvedRepoSource_ = null; + resolvedRepoSourceBuilder_ = null; + } + 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_SourceProvenance_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.SourceProvenance getDefaultInstanceForType() { + return com.google.cloud.functions.v2.SourceProvenance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.SourceProvenance build() { + com.google.cloud.functions.v2.SourceProvenance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.SourceProvenance buildPartial() { + com.google.cloud.functions.v2.SourceProvenance result = new com.google.cloud.functions.v2.SourceProvenance(this); + if (resolvedStorageSourceBuilder_ == null) { + result.resolvedStorageSource_ = resolvedStorageSource_; + } else { + result.resolvedStorageSource_ = resolvedStorageSourceBuilder_.build(); + } + if (resolvedRepoSourceBuilder_ == null) { + result.resolvedRepoSource_ = resolvedRepoSource_; + } else { + result.resolvedRepoSource_ = resolvedRepoSourceBuilder_.build(); + } + onBuilt(); + 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.v2.SourceProvenance) { + return mergeFrom((com.google.cloud.functions.v2.SourceProvenance)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.SourceProvenance other) { + if (other == com.google.cloud.functions.v2.SourceProvenance.getDefaultInstance()) return this; + if (other.hasResolvedStorageSource()) { + mergeResolvedStorageSource(other.getResolvedStorageSource()); + } + if (other.hasResolvedRepoSource()) { + mergeResolvedRepoSource(other.getResolvedRepoSource()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.SourceProvenance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.SourceProvenance) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.functions.v2.StorageSource resolvedStorageSource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder> resolvedStorageSourceBuilder_; + /** + *
      +     * A copy of the build's `source.storage_source`, if exists, with any
      +     * generations resolved.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + * @return Whether the resolvedStorageSource field is set. + */ + public boolean hasResolvedStorageSource() { + return resolvedStorageSourceBuilder_ != null || resolvedStorageSource_ != null; + } + /** + *
      +     * A copy of the build's `source.storage_source`, if exists, with any
      +     * generations resolved.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + * @return The resolvedStorageSource. + */ + public com.google.cloud.functions.v2.StorageSource getResolvedStorageSource() { + if (resolvedStorageSourceBuilder_ == null) { + return resolvedStorageSource_ == null ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance() : resolvedStorageSource_; + } else { + return resolvedStorageSourceBuilder_.getMessage(); + } + } + /** + *
      +     * A copy of the build's `source.storage_source`, if exists, with any
      +     * generations resolved.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + */ + public Builder setResolvedStorageSource(com.google.cloud.functions.v2.StorageSource value) { + if (resolvedStorageSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resolvedStorageSource_ = value; + onChanged(); + } else { + resolvedStorageSourceBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * A copy of the build's `source.storage_source`, if exists, with any
      +     * generations resolved.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + */ + public Builder setResolvedStorageSource( + com.google.cloud.functions.v2.StorageSource.Builder builderForValue) { + if (resolvedStorageSourceBuilder_ == null) { + resolvedStorageSource_ = builderForValue.build(); + onChanged(); + } else { + resolvedStorageSourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * A copy of the build's `source.storage_source`, if exists, with any
      +     * generations resolved.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + */ + public Builder mergeResolvedStorageSource(com.google.cloud.functions.v2.StorageSource value) { + if (resolvedStorageSourceBuilder_ == null) { + if (resolvedStorageSource_ != null) { + resolvedStorageSource_ = + com.google.cloud.functions.v2.StorageSource.newBuilder(resolvedStorageSource_).mergeFrom(value).buildPartial(); + } else { + resolvedStorageSource_ = value; + } + onChanged(); + } else { + resolvedStorageSourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * A copy of the build's `source.storage_source`, if exists, with any
      +     * generations resolved.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + */ + public Builder clearResolvedStorageSource() { + if (resolvedStorageSourceBuilder_ == null) { + resolvedStorageSource_ = null; + onChanged(); + } else { + resolvedStorageSource_ = null; + resolvedStorageSourceBuilder_ = null; + } + + return this; + } + /** + *
      +     * A copy of the build's `source.storage_source`, if exists, with any
      +     * generations resolved.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + */ + public com.google.cloud.functions.v2.StorageSource.Builder getResolvedStorageSourceBuilder() { + + onChanged(); + return getResolvedStorageSourceFieldBuilder().getBuilder(); + } + /** + *
      +     * A copy of the build's `source.storage_source`, if exists, with any
      +     * generations resolved.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + */ + public com.google.cloud.functions.v2.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder() { + if (resolvedStorageSourceBuilder_ != null) { + return resolvedStorageSourceBuilder_.getMessageOrBuilder(); + } else { + return resolvedStorageSource_ == null ? + com.google.cloud.functions.v2.StorageSource.getDefaultInstance() : resolvedStorageSource_; + } + } + /** + *
      +     * A copy of the build's `source.storage_source`, if exists, with any
      +     * generations resolved.
      +     * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder> + getResolvedStorageSourceFieldBuilder() { + if (resolvedStorageSourceBuilder_ == null) { + resolvedStorageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder>( + getResolvedStorageSource(), + getParentForChildren(), + isClean()); + resolvedStorageSource_ = null; + } + return resolvedStorageSourceBuilder_; + } + + private com.google.cloud.functions.v2.RepoSource resolvedRepoSource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.RepoSource, com.google.cloud.functions.v2.RepoSource.Builder, com.google.cloud.functions.v2.RepoSourceOrBuilder> resolvedRepoSourceBuilder_; + /** + *
      +     * A copy of the build's `source.repo_source`, if exists, with any
      +     * revisions resolved.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + * @return Whether the resolvedRepoSource field is set. + */ + public boolean hasResolvedRepoSource() { + return resolvedRepoSourceBuilder_ != null || resolvedRepoSource_ != null; + } + /** + *
      +     * A copy of the build's `source.repo_source`, if exists, with any
      +     * revisions resolved.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + * @return The resolvedRepoSource. + */ + public com.google.cloud.functions.v2.RepoSource getResolvedRepoSource() { + if (resolvedRepoSourceBuilder_ == null) { + return resolvedRepoSource_ == null ? com.google.cloud.functions.v2.RepoSource.getDefaultInstance() : resolvedRepoSource_; + } else { + return resolvedRepoSourceBuilder_.getMessage(); + } + } + /** + *
      +     * A copy of the build's `source.repo_source`, if exists, with any
      +     * revisions resolved.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + */ + public Builder setResolvedRepoSource(com.google.cloud.functions.v2.RepoSource value) { + if (resolvedRepoSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resolvedRepoSource_ = value; + onChanged(); + } else { + resolvedRepoSourceBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * A copy of the build's `source.repo_source`, if exists, with any
      +     * revisions resolved.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + */ + public Builder setResolvedRepoSource( + com.google.cloud.functions.v2.RepoSource.Builder builderForValue) { + if (resolvedRepoSourceBuilder_ == null) { + resolvedRepoSource_ = builderForValue.build(); + onChanged(); + } else { + resolvedRepoSourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * A copy of the build's `source.repo_source`, if exists, with any
      +     * revisions resolved.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + */ + public Builder mergeResolvedRepoSource(com.google.cloud.functions.v2.RepoSource value) { + if (resolvedRepoSourceBuilder_ == null) { + if (resolvedRepoSource_ != null) { + resolvedRepoSource_ = + com.google.cloud.functions.v2.RepoSource.newBuilder(resolvedRepoSource_).mergeFrom(value).buildPartial(); + } else { + resolvedRepoSource_ = value; + } + onChanged(); + } else { + resolvedRepoSourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * A copy of the build's `source.repo_source`, if exists, with any
      +     * revisions resolved.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + */ + public Builder clearResolvedRepoSource() { + if (resolvedRepoSourceBuilder_ == null) { + resolvedRepoSource_ = null; + onChanged(); + } else { + resolvedRepoSource_ = null; + resolvedRepoSourceBuilder_ = null; + } + + return this; + } + /** + *
      +     * A copy of the build's `source.repo_source`, if exists, with any
      +     * revisions resolved.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + */ + public com.google.cloud.functions.v2.RepoSource.Builder getResolvedRepoSourceBuilder() { + + onChanged(); + return getResolvedRepoSourceFieldBuilder().getBuilder(); + } + /** + *
      +     * A copy of the build's `source.repo_source`, if exists, with any
      +     * revisions resolved.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + */ + public com.google.cloud.functions.v2.RepoSourceOrBuilder getResolvedRepoSourceOrBuilder() { + if (resolvedRepoSourceBuilder_ != null) { + return resolvedRepoSourceBuilder_.getMessageOrBuilder(); + } else { + return resolvedRepoSource_ == null ? + com.google.cloud.functions.v2.RepoSource.getDefaultInstance() : resolvedRepoSource_; + } + } + /** + *
      +     * A copy of the build's `source.repo_source`, if exists, with any
      +     * revisions resolved.
      +     * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.RepoSource, com.google.cloud.functions.v2.RepoSource.Builder, com.google.cloud.functions.v2.RepoSourceOrBuilder> + getResolvedRepoSourceFieldBuilder() { + if (resolvedRepoSourceBuilder_ == null) { + resolvedRepoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.RepoSource, com.google.cloud.functions.v2.RepoSource.Builder, com.google.cloud.functions.v2.RepoSourceOrBuilder>( + getResolvedRepoSource(), + getParentForChildren(), + isClean()); + resolvedRepoSource_ = null; + } + return resolvedRepoSourceBuilder_; + } + @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.SourceProvenance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.SourceProvenance) + private static final com.google.cloud.functions.v2.SourceProvenance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.SourceProvenance(); + } + + public static com.google.cloud.functions.v2.SourceProvenance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceProvenance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SourceProvenance(input, extensionRegistry); + } + }; + + 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.SourceProvenance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenanceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenanceOrBuilder.java new file mode 100644 index 00000000..c7bebdca --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenanceOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface SourceProvenanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.SourceProvenance) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * A copy of the build's `source.storage_source`, if exists, with any
      +   * generations resolved.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + * @return Whether the resolvedStorageSource field is set. + */ + boolean hasResolvedStorageSource(); + /** + *
      +   * A copy of the build's `source.storage_source`, if exists, with any
      +   * generations resolved.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + * @return The resolvedStorageSource. + */ + com.google.cloud.functions.v2.StorageSource getResolvedStorageSource(); + /** + *
      +   * A copy of the build's `source.storage_source`, if exists, with any
      +   * generations resolved.
      +   * 
      + * + * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + */ + com.google.cloud.functions.v2.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder(); + + /** + *
      +   * A copy of the build's `source.repo_source`, if exists, with any
      +   * revisions resolved.
      +   * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + * @return Whether the resolvedRepoSource field is set. + */ + boolean hasResolvedRepoSource(); + /** + *
      +   * A copy of the build's `source.repo_source`, if exists, with any
      +   * revisions resolved.
      +   * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + * @return The resolvedRepoSource. + */ + com.google.cloud.functions.v2.RepoSource getResolvedRepoSource(); + /** + *
      +   * A copy of the build's `source.repo_source`, if exists, with any
      +   * revisions resolved.
      +   * 
      + * + * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + */ + com.google.cloud.functions.v2.RepoSourceOrBuilder getResolvedRepoSourceOrBuilder(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java new file mode 100644 index 00000000..cf9a9dc8 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java @@ -0,0 +1,1993 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Each Stage of the deployment process
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.Stage} + */ +public final class Stage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.Stage) + StageOrBuilder { +private static final long serialVersionUID = 0L; + // Use Stage.newBuilder() to construct. + private Stage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Stage() { + name_ = 0; + message_ = ""; + state_ = 0; + resource_ = ""; + resourceUri_ = ""; + stateMessages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Stage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Stage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + name_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + resource_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceUri_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stateMessages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stateMessages_.add( + input.readMessage(com.google.cloud.functions.v2.StateMessage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Stage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Stage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.Stage.class, com.google.cloud.functions.v2.Stage.Builder.class); + } + + /** + *
      +   * Possible names for a Stage
      +   * 
      + * + * Protobuf enum {@code google.cloud.functions.v2.Stage.Name} + */ + public enum Name + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
      +     * Not specified. Invalid name.
      +     * 
      + * + * NAME_UNSPECIFIED = 0; + */ + NAME_UNSPECIFIED(0), + /** + *
      +     * Artifact Regsitry Stage
      +     * 
      + * + * ARTIFACT_REGISTRY = 1; + */ + ARTIFACT_REGISTRY(1), + /** + *
      +     * Build Stage
      +     * 
      + * + * BUILD = 2; + */ + BUILD(2), + /** + *
      +     * Service Stage
      +     * 
      + * + * SERVICE = 3; + */ + SERVICE(3), + /** + *
      +     * Trigger Stage
      +     * 
      + * + * TRIGGER = 4; + */ + TRIGGER(4), + /** + *
      +     * Service Rollback Stage
      +     * 
      + * + * SERVICE_ROLLBACK = 5; + */ + SERVICE_ROLLBACK(5), + /** + *
      +     * Trigger Rollback Stage
      +     * 
      + * + * TRIGGER_ROLLBACK = 6; + */ + TRIGGER_ROLLBACK(6), + UNRECOGNIZED(-1), + ; + + /** + *
      +     * Not specified. Invalid name.
      +     * 
      + * + * NAME_UNSPECIFIED = 0; + */ + public static final int NAME_UNSPECIFIED_VALUE = 0; + /** + *
      +     * Artifact Regsitry Stage
      +     * 
      + * + * ARTIFACT_REGISTRY = 1; + */ + public static final int ARTIFACT_REGISTRY_VALUE = 1; + /** + *
      +     * Build Stage
      +     * 
      + * + * BUILD = 2; + */ + public static final int BUILD_VALUE = 2; + /** + *
      +     * Service Stage
      +     * 
      + * + * SERVICE = 3; + */ + public static final int SERVICE_VALUE = 3; + /** + *
      +     * Trigger Stage
      +     * 
      + * + * TRIGGER = 4; + */ + public static final int TRIGGER_VALUE = 4; + /** + *
      +     * Service Rollback Stage
      +     * 
      + * + * SERVICE_ROLLBACK = 5; + */ + public static final int SERVICE_ROLLBACK_VALUE = 5; + /** + *
      +     * Trigger Rollback Stage
      +     * 
      + * + * TRIGGER_ROLLBACK = 6; + */ + public static final int TRIGGER_ROLLBACK_VALUE = 6; + + + 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 Name 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 Name forNumber(int value) { + switch (value) { + case 0: return NAME_UNSPECIFIED; + case 1: return ARTIFACT_REGISTRY; + case 2: return BUILD; + case 3: return SERVICE; + case 4: return TRIGGER; + case 5: return SERVICE_ROLLBACK; + case 6: return TRIGGER_ROLLBACK; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Name> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Name findValueByNumber(int number) { + return Name.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.v2.Stage.getDescriptor().getEnumTypes().get(0); + } + + private static final Name[] VALUES = values(); + + public static Name 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 Name(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2.Stage.Name) + } + + /** + *
      +   * Possible states for a Stage
      +   * 
      + * + * Protobuf enum {@code google.cloud.functions.v2.Stage.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
      +     * Not specified. Invalid state.
      +     * 
      + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + *
      +     * Stage has not started.
      +     * 
      + * + * NOT_STARTED = 1; + */ + NOT_STARTED(1), + /** + *
      +     * Stage is in progress.
      +     * 
      + * + * IN_PROGRESS = 2; + */ + IN_PROGRESS(2), + /** + *
      +     * Stage has completed.
      +     * 
      + * + * COMPLETE = 3; + */ + COMPLETE(3), + UNRECOGNIZED(-1), + ; + + /** + *
      +     * Not specified. Invalid state.
      +     * 
      + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *
      +     * Stage has not started.
      +     * 
      + * + * NOT_STARTED = 1; + */ + public static final int NOT_STARTED_VALUE = 1; + /** + *
      +     * Stage is in progress.
      +     * 
      + * + * IN_PROGRESS = 2; + */ + public static final int IN_PROGRESS_VALUE = 2; + /** + *
      +     * Stage has completed.
      +     * 
      + * + * COMPLETE = 3; + */ + public static final int COMPLETE_VALUE = 3; + + + 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 State 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 State forNumber(int value) { + switch (value) { + case 0: return STATE_UNSPECIFIED; + case 1: return NOT_STARTED; + case 2: return IN_PROGRESS; + case 3: return COMPLETE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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.v2.Stage.getDescriptor().getEnumTypes().get(1); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2.Stage.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + private int name_; + /** + *
      +   * Name of the Stage. This will be unique for each Stage.
      +   * 
      + * + * .google.cloud.functions.v2.Stage.Name name = 1; + * @return The enum numeric value on the wire for name. + */ + @java.lang.Override public int getNameValue() { + return name_; + } + /** + *
      +   * Name of the Stage. This will be unique for each Stage.
      +   * 
      + * + * .google.cloud.functions.v2.Stage.Name name = 1; + * @return The name. + */ + @java.lang.Override public com.google.cloud.functions.v2.Stage.Name getName() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.Stage.Name result = com.google.cloud.functions.v2.Stage.Name.valueOf(name_); + return result == null ? com.google.cloud.functions.v2.Stage.Name.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
      +   * Message describing the Stage
      +   * 
      + * + * string message = 2; + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + *
      +   * Message describing the Stage
      +   * 
      + * + * string message = 2; + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_; + /** + *
      +   * Current state of the Stage
      +   * 
      + * + * .google.cloud.functions.v2.Stage.State state = 3; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
      +   * Current state of the Stage
      +   * 
      + * + * .google.cloud.functions.v2.Stage.State state = 3; + * @return The state. + */ + @java.lang.Override public com.google.cloud.functions.v2.Stage.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.Stage.State result = com.google.cloud.functions.v2.Stage.State.valueOf(state_); + return result == null ? com.google.cloud.functions.v2.Stage.State.UNRECOGNIZED : result; + } + + public static final int RESOURCE_FIELD_NUMBER = 4; + private volatile java.lang.Object resource_; + /** + *
      +   * Resource of the Stage
      +   * 
      + * + * string resource = 4; + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + /** + *
      +   * Resource of the Stage
      +   * 
      + * + * string resource = 4; + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_URI_FIELD_NUMBER = 5; + private volatile java.lang.Object resourceUri_; + /** + *
      +   * Link to the current Stage resource
      +   * 
      + * + * string resource_uri = 5; + * @return The resourceUri. + */ + @java.lang.Override + public java.lang.String getResourceUri() { + java.lang.Object ref = resourceUri_; + 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(); + resourceUri_ = s; + return s; + } + } + /** + *
      +   * Link to the current Stage resource
      +   * 
      + * + * string resource_uri = 5; + * @return The bytes for resourceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceUriBytes() { + java.lang.Object ref = resourceUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_MESSAGES_FIELD_NUMBER = 6; + private java.util.List stateMessages_; + /** + *
      +   * State messages from the current Stage.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + @java.lang.Override + public java.util.List getStateMessagesList() { + return stateMessages_; + } + /** + *
      +   * State messages from the current Stage.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + @java.lang.Override + public java.util.List + getStateMessagesOrBuilderList() { + return stateMessages_; + } + /** + *
      +   * State messages from the current Stage.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + @java.lang.Override + public int getStateMessagesCount() { + return stateMessages_.size(); + } + /** + *
      +   * State messages from the current Stage.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + @java.lang.Override + public com.google.cloud.functions.v2.StateMessage getStateMessages(int index) { + return stateMessages_.get(index); + } + /** + *
      +   * State messages from the current Stage.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + @java.lang.Override + public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder( + int index) { + return stateMessages_.get(index); + } + + 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 { + if (name_ != com.google.cloud.functions.v2.Stage.Name.NAME_UNSPECIFIED.getNumber()) { + output.writeEnum(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (state_ != com.google.cloud.functions.v2.Stage.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, resourceUri_); + } + for (int i = 0; i < stateMessages_.size(); i++) { + output.writeMessage(6, stateMessages_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (name_ != com.google.cloud.functions.v2.Stage.Name.NAME_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (state_ != com.google.cloud.functions.v2.Stage.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, resourceUri_); + } + for (int i = 0; i < stateMessages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, stateMessages_.get(i)); + } + size += unknownFields.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.Stage)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.Stage other = (com.google.cloud.functions.v2.Stage) obj; + + if (name_ != other.name_) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (state_ != other.state_) return false; + if (!getResource() + .equals(other.getResource())) return false; + if (!getResourceUri() + .equals(other.getResourceUri())) return false; + if (!getStateMessagesList() + .equals(other.getStateMessagesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + name_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (37 * hash) + RESOURCE_URI_FIELD_NUMBER; + hash = (53 * hash) + getResourceUri().hashCode(); + if (getStateMessagesCount() > 0) { + hash = (37 * hash) + STATE_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getStateMessagesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.Stage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.Stage 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.Stage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.Stage 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.Stage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.Stage 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.Stage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.Stage 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.Stage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.Stage 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.Stage 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.Stage 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.Stage 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; + } + /** + *
      +   * Each Stage of the deployment process
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.Stage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.Stage) + com.google.cloud.functions.v2.StageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Stage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Stage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.Stage.class, com.google.cloud.functions.v2.Stage.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.Stage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStateMessagesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = 0; + + message_ = ""; + + state_ = 0; + + resource_ = ""; + + resourceUri_ = ""; + + if (stateMessagesBuilder_ == null) { + stateMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + stateMessagesBuilder_.clear(); + } + 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_Stage_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.Stage getDefaultInstanceForType() { + return com.google.cloud.functions.v2.Stage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.Stage build() { + com.google.cloud.functions.v2.Stage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.Stage buildPartial() { + com.google.cloud.functions.v2.Stage result = new com.google.cloud.functions.v2.Stage(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.message_ = message_; + result.state_ = state_; + result.resource_ = resource_; + result.resourceUri_ = resourceUri_; + if (stateMessagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.stateMessages_ = stateMessages_; + } else { + result.stateMessages_ = stateMessagesBuilder_.build(); + } + onBuilt(); + 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.v2.Stage) { + return mergeFrom((com.google.cloud.functions.v2.Stage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.Stage other) { + if (other == com.google.cloud.functions.v2.Stage.getDefaultInstance()) return this; + if (other.name_ != 0) { + setNameValue(other.getNameValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + onChanged(); + } + if (!other.getResourceUri().isEmpty()) { + resourceUri_ = other.resourceUri_; + onChanged(); + } + if (stateMessagesBuilder_ == null) { + if (!other.stateMessages_.isEmpty()) { + if (stateMessages_.isEmpty()) { + stateMessages_ = other.stateMessages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStateMessagesIsMutable(); + stateMessages_.addAll(other.stateMessages_); + } + onChanged(); + } + } else { + if (!other.stateMessages_.isEmpty()) { + if (stateMessagesBuilder_.isEmpty()) { + stateMessagesBuilder_.dispose(); + stateMessagesBuilder_ = null; + stateMessages_ = other.stateMessages_; + bitField0_ = (bitField0_ & ~0x00000001); + stateMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStateMessagesFieldBuilder() : null; + } else { + stateMessagesBuilder_.addAllMessages(other.stateMessages_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.Stage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.Stage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int name_ = 0; + /** + *
      +     * Name of the Stage. This will be unique for each Stage.
      +     * 
      + * + * .google.cloud.functions.v2.Stage.Name name = 1; + * @return The enum numeric value on the wire for name. + */ + @java.lang.Override public int getNameValue() { + return name_; + } + /** + *
      +     * Name of the Stage. This will be unique for each Stage.
      +     * 
      + * + * .google.cloud.functions.v2.Stage.Name name = 1; + * @param value The enum numeric value on the wire for name to set. + * @return This builder for chaining. + */ + public Builder setNameValue(int value) { + + name_ = value; + onChanged(); + return this; + } + /** + *
      +     * Name of the Stage. This will be unique for each Stage.
      +     * 
      + * + * .google.cloud.functions.v2.Stage.Name name = 1; + * @return The name. + */ + @java.lang.Override + public com.google.cloud.functions.v2.Stage.Name getName() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.Stage.Name result = com.google.cloud.functions.v2.Stage.Name.valueOf(name_); + return result == null ? com.google.cloud.functions.v2.Stage.Name.UNRECOGNIZED : result; + } + /** + *
      +     * Name of the Stage. This will be unique for each Stage.
      +     * 
      + * + * .google.cloud.functions.v2.Stage.Name name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(com.google.cloud.functions.v2.Stage.Name value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
      +     * Name of the Stage. This will be unique for each Stage.
      +     * 
      + * + * .google.cloud.functions.v2.Stage.Name name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
      +     * Message describing the Stage
      +     * 
      + * + * string message = 2; + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Message describing the Stage
      +     * 
      + * + * string message = 2; + * @return The bytes for message. + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Message describing the Stage
      +     * 
      + * + * string message = 2; + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
      +     * Message describing the Stage
      +     * 
      + * + * string message = 2; + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
      +     * Message describing the Stage
      +     * 
      + * + * string message = 2; + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + *
      +     * Current state of the Stage
      +     * 
      + * + * .google.cloud.functions.v2.Stage.State state = 3; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
      +     * Current state of the Stage
      +     * 
      + * + * .google.cloud.functions.v2.Stage.State state = 3; + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + *
      +     * Current state of the Stage
      +     * 
      + * + * .google.cloud.functions.v2.Stage.State state = 3; + * @return The state. + */ + @java.lang.Override + public com.google.cloud.functions.v2.Stage.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.Stage.State result = com.google.cloud.functions.v2.Stage.State.valueOf(state_); + return result == null ? com.google.cloud.functions.v2.Stage.State.UNRECOGNIZED : result; + } + /** + *
      +     * Current state of the Stage
      +     * 
      + * + * .google.cloud.functions.v2.Stage.State state = 3; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.functions.v2.Stage.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
      +     * Current state of the Stage
      +     * 
      + * + * .google.cloud.functions.v2.Stage.State state = 3; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + /** + *
      +     * Resource of the Stage
      +     * 
      + * + * string resource = 4; + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Resource of the Stage
      +     * 
      + * + * string resource = 4; + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Resource of the Stage
      +     * 
      + * + * string resource = 4; + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resource_ = value; + onChanged(); + return this; + } + /** + *
      +     * Resource of the Stage
      +     * 
      + * + * string resource = 4; + * @return This builder for chaining. + */ + public Builder clearResource() { + + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + *
      +     * Resource of the Stage
      +     * 
      + * + * string resource = 4; + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resource_ = value; + onChanged(); + return this; + } + + private java.lang.Object resourceUri_ = ""; + /** + *
      +     * Link to the current Stage resource
      +     * 
      + * + * string resource_uri = 5; + * @return The resourceUri. + */ + public java.lang.String getResourceUri() { + java.lang.Object ref = resourceUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Link to the current Stage resource
      +     * 
      + * + * string resource_uri = 5; + * @return The bytes for resourceUri. + */ + public com.google.protobuf.ByteString + getResourceUriBytes() { + java.lang.Object ref = resourceUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Link to the current Stage resource
      +     * 
      + * + * string resource_uri = 5; + * @param value The resourceUri to set. + * @return This builder for chaining. + */ + public Builder setResourceUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceUri_ = value; + onChanged(); + return this; + } + /** + *
      +     * Link to the current Stage resource
      +     * 
      + * + * string resource_uri = 5; + * @return This builder for chaining. + */ + public Builder clearResourceUri() { + + resourceUri_ = getDefaultInstance().getResourceUri(); + onChanged(); + return this; + } + /** + *
      +     * Link to the current Stage resource
      +     * 
      + * + * string resource_uri = 5; + * @param value The bytes for resourceUri to set. + * @return This builder for chaining. + */ + public Builder setResourceUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceUri_ = value; + onChanged(); + return this; + } + + private java.util.List stateMessages_ = + java.util.Collections.emptyList(); + private void ensureStateMessagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + stateMessages_ = new java.util.ArrayList(stateMessages_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.StateMessage, com.google.cloud.functions.v2.StateMessage.Builder, com.google.cloud.functions.v2.StateMessageOrBuilder> stateMessagesBuilder_; + + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public java.util.List getStateMessagesList() { + if (stateMessagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(stateMessages_); + } else { + return stateMessagesBuilder_.getMessageList(); + } + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public int getStateMessagesCount() { + if (stateMessagesBuilder_ == null) { + return stateMessages_.size(); + } else { + return stateMessagesBuilder_.getCount(); + } + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public com.google.cloud.functions.v2.StateMessage getStateMessages(int index) { + if (stateMessagesBuilder_ == null) { + return stateMessages_.get(index); + } else { + return stateMessagesBuilder_.getMessage(index); + } + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public Builder setStateMessages( + int index, com.google.cloud.functions.v2.StateMessage value) { + if (stateMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateMessagesIsMutable(); + stateMessages_.set(index, value); + onChanged(); + } else { + stateMessagesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public Builder setStateMessages( + int index, com.google.cloud.functions.v2.StateMessage.Builder builderForValue) { + if (stateMessagesBuilder_ == null) { + ensureStateMessagesIsMutable(); + stateMessages_.set(index, builderForValue.build()); + onChanged(); + } else { + stateMessagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public Builder addStateMessages(com.google.cloud.functions.v2.StateMessage value) { + if (stateMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateMessagesIsMutable(); + stateMessages_.add(value); + onChanged(); + } else { + stateMessagesBuilder_.addMessage(value); + } + return this; + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public Builder addStateMessages( + int index, com.google.cloud.functions.v2.StateMessage value) { + if (stateMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateMessagesIsMutable(); + stateMessages_.add(index, value); + onChanged(); + } else { + stateMessagesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public Builder addStateMessages( + com.google.cloud.functions.v2.StateMessage.Builder builderForValue) { + if (stateMessagesBuilder_ == null) { + ensureStateMessagesIsMutable(); + stateMessages_.add(builderForValue.build()); + onChanged(); + } else { + stateMessagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public Builder addStateMessages( + int index, com.google.cloud.functions.v2.StateMessage.Builder builderForValue) { + if (stateMessagesBuilder_ == null) { + ensureStateMessagesIsMutable(); + stateMessages_.add(index, builderForValue.build()); + onChanged(); + } else { + stateMessagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public Builder addAllStateMessages( + java.lang.Iterable values) { + if (stateMessagesBuilder_ == null) { + ensureStateMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stateMessages_); + onChanged(); + } else { + stateMessagesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public Builder clearStateMessages() { + if (stateMessagesBuilder_ == null) { + stateMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + stateMessagesBuilder_.clear(); + } + return this; + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public Builder removeStateMessages(int index) { + if (stateMessagesBuilder_ == null) { + ensureStateMessagesIsMutable(); + stateMessages_.remove(index); + onChanged(); + } else { + stateMessagesBuilder_.remove(index); + } + return this; + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public com.google.cloud.functions.v2.StateMessage.Builder getStateMessagesBuilder( + int index) { + return getStateMessagesFieldBuilder().getBuilder(index); + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder( + int index) { + if (stateMessagesBuilder_ == null) { + return stateMessages_.get(index); } else { + return stateMessagesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public java.util.List + getStateMessagesOrBuilderList() { + if (stateMessagesBuilder_ != null) { + return stateMessagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stateMessages_); + } + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilder() { + return getStateMessagesFieldBuilder().addBuilder( + com.google.cloud.functions.v2.StateMessage.getDefaultInstance()); + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilder( + int index) { + return getStateMessagesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2.StateMessage.getDefaultInstance()); + } + /** + *
      +     * State messages from the current Stage.
      +     * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + public java.util.List + getStateMessagesBuilderList() { + return getStateMessagesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.StateMessage, com.google.cloud.functions.v2.StateMessage.Builder, com.google.cloud.functions.v2.StateMessageOrBuilder> + getStateMessagesFieldBuilder() { + if (stateMessagesBuilder_ == null) { + stateMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.StateMessage, com.google.cloud.functions.v2.StateMessage.Builder, com.google.cloud.functions.v2.StateMessageOrBuilder>( + stateMessages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + stateMessages_ = null; + } + return stateMessagesBuilder_; + } + @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.Stage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.Stage) + private static final com.google.cloud.functions.v2.Stage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.Stage(); + } + + public static com.google.cloud.functions.v2.Stage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Stage(input, extensionRegistry); + } + }; + + 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.Stage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StageOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StageOrBuilder.java new file mode 100644 index 00000000..d1b51104 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StageOrBuilder.java @@ -0,0 +1,151 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface StageOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.Stage) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Name of the Stage. This will be unique for each Stage.
      +   * 
      + * + * .google.cloud.functions.v2.Stage.Name name = 1; + * @return The enum numeric value on the wire for name. + */ + int getNameValue(); + /** + *
      +   * Name of the Stage. This will be unique for each Stage.
      +   * 
      + * + * .google.cloud.functions.v2.Stage.Name name = 1; + * @return The name. + */ + com.google.cloud.functions.v2.Stage.Name getName(); + + /** + *
      +   * Message describing the Stage
      +   * 
      + * + * string message = 2; + * @return The message. + */ + java.lang.String getMessage(); + /** + *
      +   * Message describing the Stage
      +   * 
      + * + * string message = 2; + * @return The bytes for message. + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + *
      +   * Current state of the Stage
      +   * 
      + * + * .google.cloud.functions.v2.Stage.State state = 3; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + *
      +   * Current state of the Stage
      +   * 
      + * + * .google.cloud.functions.v2.Stage.State state = 3; + * @return The state. + */ + com.google.cloud.functions.v2.Stage.State getState(); + + /** + *
      +   * Resource of the Stage
      +   * 
      + * + * string resource = 4; + * @return The resource. + */ + java.lang.String getResource(); + /** + *
      +   * Resource of the Stage
      +   * 
      + * + * string resource = 4; + * @return The bytes for resource. + */ + com.google.protobuf.ByteString + getResourceBytes(); + + /** + *
      +   * Link to the current Stage resource
      +   * 
      + * + * string resource_uri = 5; + * @return The resourceUri. + */ + java.lang.String getResourceUri(); + /** + *
      +   * Link to the current Stage resource
      +   * 
      + * + * string resource_uri = 5; + * @return The bytes for resourceUri. + */ + com.google.protobuf.ByteString + getResourceUriBytes(); + + /** + *
      +   * State messages from the current Stage.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + java.util.List + getStateMessagesList(); + /** + *
      +   * State messages from the current Stage.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + com.google.cloud.functions.v2.StateMessage getStateMessages(int index); + /** + *
      +   * State messages from the current Stage.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + int getStateMessagesCount(); + /** + *
      +   * State messages from the current Stage.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + java.util.List + getStateMessagesOrBuilderList(); + /** + *
      +   * State messages from the current Stage.
      +   * 
      + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; + */ + com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder( + int index); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java new file mode 100644 index 00000000..a341285b --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java @@ -0,0 +1,1047 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Informational messages about the state of the Cloud Function or Operation.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.StateMessage} + */ +public final class StateMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.StateMessage) + StateMessageOrBuilder { +private static final long serialVersionUID = 0L; + // Use StateMessage.newBuilder() to construct. + private StateMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StateMessage() { + severity_ = 0; + type_ = ""; + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StateMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StateMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + severity_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StateMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StateMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.StateMessage.class, com.google.cloud.functions.v2.StateMessage.Builder.class); + } + + /** + *
      +   * Severity of the state message.
      +   * 
      + * + * Protobuf enum {@code google.cloud.functions.v2.StateMessage.Severity} + */ + public enum Severity + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
      +     * Not specified. Invalid severity.
      +     * 
      + * + * SEVERITY_UNSPECIFIED = 0; + */ + SEVERITY_UNSPECIFIED(0), + /** + *
      +     * ERROR-level severity.
      +     * 
      + * + * ERROR = 1; + */ + ERROR(1), + /** + *
      +     * WARNING-level severity.
      +     * 
      + * + * WARNING = 2; + */ + WARNING(2), + /** + *
      +     * INFO-level severity.
      +     * 
      + * + * INFO = 3; + */ + INFO(3), + UNRECOGNIZED(-1), + ; + + /** + *
      +     * Not specified. Invalid severity.
      +     * 
      + * + * SEVERITY_UNSPECIFIED = 0; + */ + public static final int SEVERITY_UNSPECIFIED_VALUE = 0; + /** + *
      +     * ERROR-level severity.
      +     * 
      + * + * ERROR = 1; + */ + public static final int ERROR_VALUE = 1; + /** + *
      +     * WARNING-level severity.
      +     * 
      + * + * WARNING = 2; + */ + public static final int WARNING_VALUE = 2; + /** + *
      +     * INFO-level severity.
      +     * 
      + * + * INFO = 3; + */ + public static final int INFO_VALUE = 3; + + + 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 Severity 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 Severity forNumber(int value) { + switch (value) { + case 0: return SEVERITY_UNSPECIFIED; + case 1: return ERROR; + case 2: return WARNING; + case 3: return INFO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Severity> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.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.v2.StateMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final Severity[] VALUES = values(); + + public static Severity 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 Severity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2.StateMessage.Severity) + } + + public static final int SEVERITY_FIELD_NUMBER = 1; + private int severity_; + /** + *
      +   * Severity of the state message.
      +   * 
      + * + * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override public int getSeverityValue() { + return severity_; + } + /** + *
      +   * Severity of the state message.
      +   * 
      + * + * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * @return The severity. + */ + @java.lang.Override public com.google.cloud.functions.v2.StateMessage.Severity getSeverity() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.StateMessage.Severity result = com.google.cloud.functions.v2.StateMessage.Severity.valueOf(severity_); + return result == null ? com.google.cloud.functions.v2.StateMessage.Severity.UNRECOGNIZED : result; + } + + public static final int TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object type_; + /** + *
      +   * One-word CamelCase type of the state message.
      +   * 
      + * + * string type = 2; + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + *
      +   * One-word CamelCase type of the state message.
      +   * 
      + * + * string type = 2; + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 3; + private volatile java.lang.Object message_; + /** + *
      +   * The message.
      +   * 
      + * + * string message = 3; + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + *
      +   * The message.
      +   * 
      + * + * string message = 3; + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (severity_ != com.google.cloud.functions.v2.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + output.writeEnum(1, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (severity_ != com.google.cloud.functions.v2.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); + } + size += unknownFields.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.StateMessage)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.StateMessage other = (com.google.cloud.functions.v2.StateMessage) obj; + + if (severity_ != other.severity_) return false; + if (!getType() + .equals(other.getType())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.StateMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.StateMessage 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.StateMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.StateMessage 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.StateMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.StateMessage 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.StateMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.StateMessage 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.StateMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.StateMessage 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.StateMessage 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.StateMessage 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.StateMessage 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; + } + /** + *
      +   * Informational messages about the state of the Cloud Function or Operation.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.StateMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.StateMessage) + com.google.cloud.functions.v2.StateMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StateMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StateMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.StateMessage.class, com.google.cloud.functions.v2.StateMessage.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.StateMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + severity_ = 0; + + type_ = ""; + + message_ = ""; + + 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_StateMessage_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.StateMessage getDefaultInstanceForType() { + return com.google.cloud.functions.v2.StateMessage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.StateMessage build() { + com.google.cloud.functions.v2.StateMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.StateMessage buildPartial() { + com.google.cloud.functions.v2.StateMessage result = new com.google.cloud.functions.v2.StateMessage(this); + result.severity_ = severity_; + result.type_ = type_; + result.message_ = message_; + onBuilt(); + 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.v2.StateMessage) { + return mergeFrom((com.google.cloud.functions.v2.StateMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.StateMessage other) { + if (other == com.google.cloud.functions.v2.StateMessage.getDefaultInstance()) return this; + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.StateMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.StateMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int severity_ = 0; + /** + *
      +     * Severity of the state message.
      +     * 
      + * + * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override public int getSeverityValue() { + return severity_; + } + /** + *
      +     * Severity of the state message.
      +     * 
      + * + * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + + severity_ = value; + onChanged(); + return this; + } + /** + *
      +     * Severity of the state message.
      +     * 
      + * + * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.functions.v2.StateMessage.Severity getSeverity() { + @SuppressWarnings("deprecation") + com.google.cloud.functions.v2.StateMessage.Severity result = com.google.cloud.functions.v2.StateMessage.Severity.valueOf(severity_); + return result == null ? com.google.cloud.functions.v2.StateMessage.Severity.UNRECOGNIZED : result; + } + /** + *
      +     * Severity of the state message.
      +     * 
      + * + * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(com.google.cloud.functions.v2.StateMessage.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + + severity_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
      +     * Severity of the state message.
      +     * 
      + * + * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * @return This builder for chaining. + */ + public Builder clearSeverity() { + + severity_ = 0; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + *
      +     * One-word CamelCase type of the state message.
      +     * 
      + * + * string type = 2; + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * One-word CamelCase type of the state message.
      +     * 
      + * + * string type = 2; + * @return The bytes for type. + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * One-word CamelCase type of the state message.
      +     * 
      + * + * string type = 2; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + *
      +     * One-word CamelCase type of the state message.
      +     * 
      + * + * string type = 2; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
      +     * One-word CamelCase type of the state message.
      +     * 
      + * + * string type = 2; + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
      +     * The message.
      +     * 
      + * + * string message = 3; + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * The message.
      +     * 
      + * + * string message = 3; + * @return The bytes for message. + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * The message.
      +     * 
      + * + * string message = 3; + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
      +     * The message.
      +     * 
      + * + * string message = 3; + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
      +     * The message.
      +     * 
      + * + * string message = 3; + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = 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.StateMessage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.StateMessage) + private static final com.google.cloud.functions.v2.StateMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.StateMessage(); + } + + public static com.google.cloud.functions.v2.StateMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateMessage(input, extensionRegistry); + } + }; + + 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.StateMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessageOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessageOrBuilder.java new file mode 100644 index 00000000..2592fa78 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessageOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface StateMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.StateMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Severity of the state message.
      +   * 
      + * + * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + /** + *
      +   * Severity of the state message.
      +   * 
      + * + * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * @return The severity. + */ + com.google.cloud.functions.v2.StateMessage.Severity getSeverity(); + + /** + *
      +   * One-word CamelCase type of the state message.
      +   * 
      + * + * string type = 2; + * @return The type. + */ + java.lang.String getType(); + /** + *
      +   * One-word CamelCase type of the state message.
      +   * 
      + * + * string type = 2; + * @return The bytes for type. + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
      +   * The message.
      +   * 
      + * + * string message = 3; + * @return The message. + */ + java.lang.String getMessage(); + /** + *
      +   * The message.
      +   * 
      + * + * string message = 3; + * @return The bytes for message. + */ + com.google.protobuf.ByteString + getMessageBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java new file mode 100644 index 00000000..fcdae0ab --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java @@ -0,0 +1,874 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Location of the source in an archive file in Google Cloud Storage.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.StorageSource} + */ +public final class StorageSource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.StorageSource) + StorageSourceOrBuilder { +private static final long serialVersionUID = 0L; + // Use StorageSource.newBuilder() to construct. + private StorageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StorageSource() { + bucket_ = ""; + object_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StorageSource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StorageSource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + bucket_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + object_ = s; + break; + } + case 24: { + + generation_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StorageSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StorageSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.StorageSource.class, com.google.cloud.functions.v2.StorageSource.Builder.class); + } + + public static final int BUCKET_FIELD_NUMBER = 1; + private volatile java.lang.Object bucket_; + /** + *
      +   * Google Cloud Storage bucket containing the source (see
      +   * [Bucket Name
      +   * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      +   * 
      + * + * string bucket = 1; + * @return The bucket. + */ + @java.lang.Override + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + 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(); + bucket_ = s; + return s; + } + } + /** + *
      +   * Google Cloud Storage bucket containing the source (see
      +   * [Bucket Name
      +   * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      +   * 
      + * + * string bucket = 1; + * @return The bytes for bucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_FIELD_NUMBER = 2; + private volatile java.lang.Object object_; + /** + *
      +   * Google Cloud Storage object containing the source.
      +   * This object must be a gzipped archive file (`.tar.gz`) containing source to
      +   * build.
      +   * 
      + * + * string object = 2; + * @return The object. + */ + @java.lang.Override + public java.lang.String getObject() { + java.lang.Object ref = object_; + 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(); + object_ = s; + return s; + } + } + /** + *
      +   * Google Cloud Storage object containing the source.
      +   * This object must be a gzipped archive file (`.tar.gz`) containing source to
      +   * build.
      +   * 
      + * + * string object = 2; + * @return The bytes for object. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getObjectBytes() { + java.lang.Object ref = object_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + object_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GENERATION_FIELD_NUMBER = 3; + private long generation_; + /** + *
      +   * Google Cloud Storage generation for the object. If the generation is
      +   * omitted, the latest generation will be used.
      +   * 
      + * + * int64 generation = 3; + * @return The generation. + */ + @java.lang.Override + public long getGeneration() { + return generation_; + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, object_); + } + if (generation_ != 0L) { + output.writeInt64(3, generation_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); + } + if (generation_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, generation_); + } + size += unknownFields.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.StorageSource)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.StorageSource other = (com.google.cloud.functions.v2.StorageSource) obj; + + if (!getBucket() + .equals(other.getBucket())) return false; + if (!getObject() + .equals(other.getObject())) return false; + if (getGeneration() + != other.getGeneration()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + hash = (37 * hash) + OBJECT_FIELD_NUMBER; + hash = (53 * hash) + getObject().hashCode(); + hash = (37 * hash) + GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGeneration()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.StorageSource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.StorageSource 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.StorageSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.StorageSource 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.StorageSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.StorageSource 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.StorageSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.StorageSource 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.StorageSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.StorageSource 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.StorageSource 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.StorageSource 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.StorageSource 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; + } + /** + *
      +   * Location of the source in an archive file in Google Cloud Storage.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.StorageSource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.StorageSource) + com.google.cloud.functions.v2.StorageSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StorageSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StorageSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.StorageSource.class, com.google.cloud.functions.v2.StorageSource.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.StorageSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bucket_ = ""; + + object_ = ""; + + generation_ = 0L; + + 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_StorageSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.StorageSource getDefaultInstanceForType() { + return com.google.cloud.functions.v2.StorageSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.StorageSource build() { + com.google.cloud.functions.v2.StorageSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.StorageSource buildPartial() { + com.google.cloud.functions.v2.StorageSource result = new com.google.cloud.functions.v2.StorageSource(this); + result.bucket_ = bucket_; + result.object_ = object_; + result.generation_ = generation_; + onBuilt(); + 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.v2.StorageSource) { + return mergeFrom((com.google.cloud.functions.v2.StorageSource)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.StorageSource other) { + if (other == com.google.cloud.functions.v2.StorageSource.getDefaultInstance()) return this; + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + onChanged(); + } + if (!other.getObject().isEmpty()) { + object_ = other.object_; + onChanged(); + } + if (other.getGeneration() != 0L) { + setGeneration(other.getGeneration()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.StorageSource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.StorageSource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object bucket_ = ""; + /** + *
      +     * Google Cloud Storage bucket containing the source (see
      +     * [Bucket Name
      +     * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      +     * 
      + * + * string bucket = 1; + * @return The bucket. + */ + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Google Cloud Storage bucket containing the source (see
      +     * [Bucket Name
      +     * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      +     * 
      + * + * string bucket = 1; + * @return The bytes for bucket. + */ + public com.google.protobuf.ByteString + getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Google Cloud Storage bucket containing the source (see
      +     * [Bucket Name
      +     * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      +     * 
      + * + * string bucket = 1; + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bucket_ = value; + onChanged(); + return this; + } + /** + *
      +     * Google Cloud Storage bucket containing the source (see
      +     * [Bucket Name
      +     * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      +     * 
      + * + * string bucket = 1; + * @return This builder for chaining. + */ + public Builder clearBucket() { + + bucket_ = getDefaultInstance().getBucket(); + onChanged(); + return this; + } + /** + *
      +     * Google Cloud Storage bucket containing the source (see
      +     * [Bucket Name
      +     * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      +     * 
      + * + * string bucket = 1; + * @param value The bytes for bucket to set. + * @return This builder for chaining. + */ + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bucket_ = value; + onChanged(); + return this; + } + + private java.lang.Object object_ = ""; + /** + *
      +     * Google Cloud Storage object containing the source.
      +     * This object must be a gzipped archive file (`.tar.gz`) containing source to
      +     * build.
      +     * 
      + * + * string object = 2; + * @return The object. + */ + public java.lang.String getObject() { + java.lang.Object ref = object_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + object_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Google Cloud Storage object containing the source.
      +     * This object must be a gzipped archive file (`.tar.gz`) containing source to
      +     * build.
      +     * 
      + * + * string object = 2; + * @return The bytes for object. + */ + public com.google.protobuf.ByteString + getObjectBytes() { + java.lang.Object ref = object_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + object_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Google Cloud Storage object containing the source.
      +     * This object must be a gzipped archive file (`.tar.gz`) containing source to
      +     * build.
      +     * 
      + * + * string object = 2; + * @param value The object to set. + * @return This builder for chaining. + */ + public Builder setObject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + object_ = value; + onChanged(); + return this; + } + /** + *
      +     * Google Cloud Storage object containing the source.
      +     * This object must be a gzipped archive file (`.tar.gz`) containing source to
      +     * build.
      +     * 
      + * + * string object = 2; + * @return This builder for chaining. + */ + public Builder clearObject() { + + object_ = getDefaultInstance().getObject(); + onChanged(); + return this; + } + /** + *
      +     * Google Cloud Storage object containing the source.
      +     * This object must be a gzipped archive file (`.tar.gz`) containing source to
      +     * build.
      +     * 
      + * + * string object = 2; + * @param value The bytes for object to set. + * @return This builder for chaining. + */ + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + object_ = value; + onChanged(); + return this; + } + + private long generation_ ; + /** + *
      +     * Google Cloud Storage generation for the object. If the generation is
      +     * omitted, the latest generation will be used.
      +     * 
      + * + * int64 generation = 3; + * @return The generation. + */ + @java.lang.Override + public long getGeneration() { + return generation_; + } + /** + *
      +     * Google Cloud Storage generation for the object. If the generation is
      +     * omitted, the latest generation will be used.
      +     * 
      + * + * int64 generation = 3; + * @param value The generation to set. + * @return This builder for chaining. + */ + public Builder setGeneration(long value) { + + generation_ = value; + onChanged(); + return this; + } + /** + *
      +     * Google Cloud Storage generation for the object. If the generation is
      +     * omitted, the latest generation will be used.
      +     * 
      + * + * int64 generation = 3; + * @return This builder for chaining. + */ + public Builder clearGeneration() { + + generation_ = 0L; + 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.StorageSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.StorageSource) + private static final com.google.cloud.functions.v2.StorageSource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.StorageSource(); + } + + public static com.google.cloud.functions.v2.StorageSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageSource(input, extensionRegistry); + } + }; + + 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.StorageSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java new file mode 100644 index 00000000..ab65a7a9 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface StorageSourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.StorageSource) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Google Cloud Storage bucket containing the source (see
      +   * [Bucket Name
      +   * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      +   * 
      + * + * string bucket = 1; + * @return The bucket. + */ + java.lang.String getBucket(); + /** + *
      +   * Google Cloud Storage bucket containing the source (see
      +   * [Bucket Name
      +   * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
      +   * 
      + * + * string bucket = 1; + * @return The bytes for bucket. + */ + 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.
      +   * 
      + * + * string object = 2; + * @return The object. + */ + 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.
      +   * 
      + * + * string object = 2; + * @return The bytes for object. + */ + com.google.protobuf.ByteString + getObjectBytes(); + + /** + *
      +   * Google Cloud Storage generation for the object. If the generation is
      +   * omitted, the latest generation will be used.
      +   * 
      + * + * int64 generation = 3; + * @return The generation. + */ + long getGeneration(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java new file mode 100644 index 00000000..65ba0f46 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java @@ -0,0 +1,925 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + *
      + * Request for the `UpdateFunction` method.
      + * 
      + * + * Protobuf type {@code google.cloud.functions.v2.UpdateFunctionRequest} + */ +public final class UpdateFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.UpdateFunctionRequest) + UpdateFunctionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateFunctionRequest.newBuilder() to construct. + private UpdateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateFunctionRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateFunctionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateFunctionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.functions.v2.Function.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); + } + function_ = input.readMessage(com.google.cloud.functions.v2.Function.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_UpdateFunctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.UpdateFunctionRequest.class, com.google.cloud.functions.v2.UpdateFunctionRequest.Builder.class); + } + + public static final int FUNCTION_FIELD_NUMBER = 1; + private com.google.cloud.functions.v2.Function function_; + /** + *
      +   * Required. New version of the function.
      +   * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the function field is set. + */ + @java.lang.Override + public boolean hasFunction() { + return function_ != null; + } + /** + *
      +   * Required. New version of the function.
      +   * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The function. + */ + @java.lang.Override + public com.google.cloud.functions.v2.Function getFunction() { + return function_ == null ? com.google.cloud.functions.v2.Function.getDefaultInstance() : function_; + } + /** + *
      +   * Required. New version of the function.
      +   * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() { + return getFunction(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
      +   * The list of fields to be updated.
      +   * If no field mask is provided, all provided fields in the request will be
      +   * updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
      +   * The list of fields to be updated.
      +   * If no field mask is provided, all provided fields in the request will be
      +   * updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
      +   * The list of fields to be updated.
      +   * If no field mask is provided, all provided fields in the request will be
      +   * updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 { + if (function_ != null) { + output.writeMessage(1, getFunction()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (function_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFunction()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.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.UpdateFunctionRequest)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.UpdateFunctionRequest other = (com.google.cloud.functions.v2.UpdateFunctionRequest) obj; + + if (hasFunction() != other.hasFunction()) return false; + if (hasFunction()) { + if (!getFunction() + .equals(other.getFunction())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFunction()) { + hash = (37 * hash) + FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getFunction().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.UpdateFunctionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.UpdateFunctionRequest 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.UpdateFunctionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.UpdateFunctionRequest 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.UpdateFunctionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.functions.v2.UpdateFunctionRequest 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.UpdateFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.UpdateFunctionRequest 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.UpdateFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.functions.v2.UpdateFunctionRequest 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.UpdateFunctionRequest 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.UpdateFunctionRequest 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.UpdateFunctionRequest 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; + } + /** + *
      +   * Request for the `UpdateFunction` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.functions.v2.UpdateFunctionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.UpdateFunctionRequest) + com.google.cloud.functions.v2.UpdateFunctionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_UpdateFunctionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.UpdateFunctionRequest.class, com.google.cloud.functions.v2.UpdateFunctionRequest.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.UpdateFunctionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (functionBuilder_ == null) { + function_ = null; + } else { + function_ = null; + functionBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + 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_UpdateFunctionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.UpdateFunctionRequest getDefaultInstanceForType() { + return com.google.cloud.functions.v2.UpdateFunctionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.UpdateFunctionRequest build() { + com.google.cloud.functions.v2.UpdateFunctionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.UpdateFunctionRequest buildPartial() { + com.google.cloud.functions.v2.UpdateFunctionRequest result = new com.google.cloud.functions.v2.UpdateFunctionRequest(this); + if (functionBuilder_ == null) { + result.function_ = function_; + } else { + result.function_ = functionBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + 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.v2.UpdateFunctionRequest) { + return mergeFrom((com.google.cloud.functions.v2.UpdateFunctionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.UpdateFunctionRequest other) { + if (other == com.google.cloud.functions.v2.UpdateFunctionRequest.getDefaultInstance()) return this; + if (other.hasFunction()) { + mergeFunction(other.getFunction()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.functions.v2.UpdateFunctionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.functions.v2.UpdateFunctionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.functions.v2.Function function_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder> functionBuilder_; + /** + *
      +     * Required. New version of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the function field is set. + */ + public boolean hasFunction() { + return functionBuilder_ != null || function_ != null; + } + /** + *
      +     * Required. New version of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The function. + */ + public com.google.cloud.functions.v2.Function getFunction() { + if (functionBuilder_ == null) { + return function_ == null ? com.google.cloud.functions.v2.Function.getDefaultInstance() : function_; + } else { + return functionBuilder_.getMessage(); + } + } + /** + *
      +     * Required. New version of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setFunction(com.google.cloud.functions.v2.Function value) { + if (functionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + function_ = value; + onChanged(); + } else { + functionBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * Required. New version of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setFunction( + com.google.cloud.functions.v2.Function.Builder builderForValue) { + if (functionBuilder_ == null) { + function_ = builderForValue.build(); + onChanged(); + } else { + functionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * Required. New version of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeFunction(com.google.cloud.functions.v2.Function value) { + if (functionBuilder_ == null) { + if (function_ != null) { + function_ = + com.google.cloud.functions.v2.Function.newBuilder(function_).mergeFrom(value).buildPartial(); + } else { + function_ = value; + } + onChanged(); + } else { + functionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * Required. New version of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearFunction() { + if (functionBuilder_ == null) { + function_ = null; + onChanged(); + } else { + function_ = null; + functionBuilder_ = null; + } + + return this; + } + /** + *
      +     * Required. New version of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.functions.v2.Function.Builder getFunctionBuilder() { + + onChanged(); + return getFunctionFieldBuilder().getBuilder(); + } + /** + *
      +     * Required. New version of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() { + if (functionBuilder_ != null) { + return functionBuilder_.getMessageOrBuilder(); + } else { + return function_ == null ? + com.google.cloud.functions.v2.Function.getDefaultInstance() : function_; + } + } + /** + *
      +     * Required. New version of the function.
      +     * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder> + getFunctionFieldBuilder() { + if (functionBuilder_ == null) { + functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder>( + getFunction(), + getParentForChildren(), + isClean()); + function_ = null; + } + return functionBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** + *
      +     * The list of fields to be updated.
      +     * If no field mask is provided, all provided fields in the request will be
      +     * updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
      +     * The list of fields to be updated.
      +     * If no field mask is provided, all provided fields in the request will be
      +     * updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
      +     * The list of fields to be updated.
      +     * If no field mask is provided, all provided fields in the request will be
      +     * updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * The list of fields to be updated.
      +     * If no field mask is provided, all provided fields in the request will be
      +     * updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * The list of fields to be updated.
      +     * If no field mask is provided, all provided fields in the request will be
      +     * updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * The list of fields to be updated.
      +     * If no field mask is provided, all provided fields in the request will be
      +     * updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
      +     * The list of fields to be updated.
      +     * If no field mask is provided, all provided fields in the request will be
      +     * updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
      +     * The list of fields to be updated.
      +     * If no field mask is provided, all provided fields in the request will be
      +     * updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
      +     * The list of fields to be updated.
      +     * If no field mask is provided, all provided fields in the request will be
      +     * updated.
      +     * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + @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.UpdateFunctionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.UpdateFunctionRequest) + private static final com.google.cloud.functions.v2.UpdateFunctionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.UpdateFunctionRequest(); + } + + public static com.google.cloud.functions.v2.UpdateFunctionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFunctionRequest(input, extensionRegistry); + } + }; + + 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.UpdateFunctionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequestOrBuilder.java new file mode 100644 index 00000000..4dfe37fb --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequestOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface UpdateFunctionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.UpdateFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Required. New version of the function.
      +   * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the function field is set. + */ + boolean hasFunction(); + /** + *
      +   * Required. New version of the function.
      +   * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The function. + */ + com.google.cloud.functions.v2.Function getFunction(); + /** + *
      +   * Required. New version of the function.
      +   * 
      + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder(); + + /** + *
      +   * The list of fields to be updated.
      +   * If no field mask is provided, all provided fields in the request will be
      +   * updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
      +   * The list of fields to be updated.
      +   * If no field mask is provided, all provided fields in the request will be
      +   * updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
      +   * The list of fields to be updated.
      +   * If no field mask is provided, all provided fields in the request will be
      +   * updated.
      +   * 
      + * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/proto/google/cloud/functions/v2/functions.proto b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/proto/google/cloud/functions/v2/functions.proto new file mode 100644 index 00000000..6af26ee8 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/proto/google/cloud/functions/v2/functions.proto @@ -0,0 +1,1037 @@ +// 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.functions.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/functions/v2;functions"; +option java_multiple_files = true; +option java_outer_classname = "FunctionsProto"; +option java_package = "com.google.cloud.functions.v2"; +option objc_class_prefix = "GCF"; +option (google.api.resource_definition) = { + type: "artifactregistry.googleapis.com/Repository" + pattern: "projects/{project}/locations/{location}/repositories/{repository}" +}; +option (google.api.resource_definition) = { + type: "cloudbuild.googleapis.com/Build" + pattern: "projects/{project}/locations/{location}/builds/{build}" +}; +option (google.api.resource_definition) = { + type: "cloudbuild.googleapis.com/WorkerPool" + pattern: "projects/{project}/locations/{location}/workerPools/{worker_pool}" +}; +option (google.api.resource_definition) = { + type: "run.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/services/{service}" +}; +option (google.api.resource_definition) = { + type: "vpcaccess.googleapis.com/Connector" + pattern: "projects/{project}/locations/{location}/connectors/{connector}" +}; +option (google.api.resource_definition) = { + type: "eventarc.googleapis.com/Trigger" + pattern: "projects/{project}/locations/{location}/triggers/{trigger}" +}; +option (google.api.resource_definition) = { + type: "eventarc.googleapis.com/Channel" + pattern: "projects/{project}/locations/{location}/channels/{channel}" +}; +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 +// passed to a function as the input data. +// +// A **function** is a resource which describes a function that should be +// 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"; + + // Returns a function with the given name from the requested project. + rpc GetFunction(GetFunctionRequest) returns (Function) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/functions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns a list of functions that belong to the requested project. + rpc ListFunctions(ListFunctionsRequest) returns (ListFunctionsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*}/functions" + }; + option (google.api.method_signature) = "parent"; + } + + // 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) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/locations/*}/functions" + body: "function" + }; + option (google.api.method_signature) = "parent,function,function_id"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.functions.v2.Function" + metadata_type: "google.cloud.functions.v2.OperationMetadata" + }; + } + + // Updates existing function. + rpc UpdateFunction(UpdateFunctionRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2/{function.name=projects/*/locations/*/functions/*}" + body: "function" + }; + option (google.api.method_signature) = "function,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.functions.v2.Function" + metadata_type: "google.cloud.functions.v2.OperationMetadata" + }; + } + + // 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) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/locations/*/functions/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.functions.v2.OperationMetadata" + }; + } + + // Returns a signed URL for uploading a function source code. + // For more information about the signed URL usage see: + // https://cloud.google.com/storage/docs/access-control/signed-urls. + // Once the function source code upload is complete, the used signed + // URL should be provided in CreateFunction or UpdateFunction request + // as a reference to the function source code. + // + // When uploading source code to the generated signed URL, please follow + // these restrictions: + // + // * Source file type should be a zip file. + // * No credentials should be attached - the signed URLs provide access to the + // target bucket using internal service identity; if credentials were + // attached, the identity from the credentials would be used, but that + // identity does not have permissions to upload files to the URL. + // + // When making a HTTP PUT request, these two headers need to be specified: + // + // * `content-type: application/zip` + // + // And this header SHOULD NOT be specified: + // + // * `Authorization: Bearer YOUR_TOKEN` + rpc GenerateUploadUrl(GenerateUploadUrlRequest) returns (GenerateUploadUrlResponse) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/locations/*}/functions:generateUploadUrl" + body: "*" + }; + } + + // Returns a signed URL for downloading deployed function source code. + // The URL is only valid for a limited period and should be used within + // 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) { + option (google.api.http) = { + post: "/v2/{name=projects/*/locations/*/functions/*}:generateDownloadUrl" + body: "*" + }; + } + + // Returns a list of runtimes that are supported for the requested project. + rpc ListRuntimes(ListRuntimesRequest) returns (ListRuntimesResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*}/runtimes" + }; + option (google.api.method_signature) = "parent"; + } +} + +// The environment the function is hosted on. +enum Environment { + // Unspecified + ENVIRONMENT_UNSPECIFIED = 0; + + // Gen 1 + GEN_1 = 1; + + // Gen 2 + GEN_2 = 2; +} + +// Describes a Cloud Function that contains user computation executed in +// response to an event. It encapsulates function and trigger configurations. +message Function { + option (google.api.resource) = { + type: "cloudfunctions.googleapis.com/Function" + pattern: "projects/{project}/locations/{location}/functions/{function}" + plural: "functions" + singular: "function" + }; + + // Describes the current state of the function. + enum State { + // Not specified. Invalid state. + STATE_UNSPECIFIED = 0; + + // Function has been successfully deployed and is serving. + ACTIVE = 1; + + // Function deployment failed and the function is not serving. + FAILED = 2; + + // Function is being created or updated. + DEPLOYING = 3; + + // Function is being deleted. + DELETING = 4; + + // Function deployment failed and the function serving state is undefined. + // The function should be updated or deleted to move it out of this state. + UNKNOWN = 5; + } + + // A user-defined name of the function. Function names must be unique + // 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; + + // Describes the Build step of the function that builds a container from the + // given source. + BuildConfig build_config = 3; + + // Describes the Service being deployed. Currently deploys services to Cloud + // Run (fully managed). + ServiceConfig service_config = 4; + + // An Eventarc trigger managed by Google Cloud Functions that fires events in + // response to a condition in another service. + EventTrigger event_trigger = 5; + + // Output only. State of the 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]; + + // 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]; +} + +// Informational messages about the state of the Cloud Function or Operation. +message StateMessage { + // Severity of the state message. + enum Severity { + // Not specified. Invalid severity. + SEVERITY_UNSPECIFIED = 0; + + // ERROR-level severity. + ERROR = 1; + + // WARNING-level severity. + WARNING = 2; + + // INFO-level severity. + INFO = 3; + } + + // Severity of the state message. + Severity severity = 1; + + // One-word CamelCase type of the state message. + string type = 2; + + // The message. + string message = 3; +} + +// Location of the source in an archive file in Google Cloud Storage. +message StorageSource { + // Google Cloud Storage bucket containing the source (see + // [Bucket Name + // Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). + string bucket = 1; + + // Google Cloud Storage object containing the source. + // + // This object must be a gzipped archive file (`.tar.gz`) containing source to + // build. + string object = 2; + + // Google Cloud Storage generation for the object. If the generation is + // omitted, the latest generation will be used. + int64 generation = 3; +} + +// Location of the source in a Google Cloud Source Repository. +message RepoSource { + // A revision within the Cloud Source Repository must be specified in + // one of these ways. + oneof revision { + // 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 + string branch_name = 3; + + // 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 + string tag_name = 4; + + // Explicit commit SHA to build. + string commit_sha = 5; + } + + // ID of the project that owns the Cloud Source Repository. If omitted, the + // project ID requesting the build is assumed. + string project_id = 1; + + // Name of the Cloud Source Repository. + string repo_name = 2; + + // 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) + string dir = 6; + + // Only trigger a build if the revision regex does NOT match the revision + // regex. + bool invert_regex = 7; +} + +// The location of the function source code. +message Source { + // Location of the source. + // At least one source needs to be provided for the deployment to succeed. + oneof source { + // If provided, get the source from this location in Google Cloud Storage. + StorageSource storage_source = 1; + + // If provided, get the source from this location in a Cloud Source + // Repository. + RepoSource repo_source = 2; + } +} + +// Provenance of the source. Ways to find the original source, or verify that +// some source was used for this build. +message SourceProvenance { + // A copy of the build's `source.storage_source`, if exists, with any + // generations resolved. + StorageSource resolved_storage_source = 1; + + // A copy of the build's `source.repo_source`, if exists, with any + // revisions resolved. + RepoSource resolved_repo_source = 2; +} + +// 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. + string build = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudbuild.googleapis.com/Build" + } + ]; + + // The runtime in which to run the function. Required when deploying a new + // function, optional when updating an existing function. For a complete + // list of possible choices, see the + // [`gcloud` command + // reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime). + string runtime = 2; + + // The name of the function (as defined in source code) that will be + // executed. Defaults to the resource name suffix, if not specified. For + // backward compatibility, if function with given name is not found, then the + // system will try to use function named "function". + // For Node.js this is name of a function exported by the module specified + // in `source_location`. + string entry_point = 3; + + // The location of the function source code. + Source source = 4; + + // Output only. A permanent fixed identifier for source. + 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 + // `projects/{project}/locations/{region}/workerPools/{workerPool}` where + // {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-@gcf-admin-robot.iam.gserviceaccount.com) must be + // 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" + }]; + + // 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 + // 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) = { + type: "artifactregistry.googleapis.com/Repository" + } + ]; +} + +// Describes the Service being deployed. +// Currently Supported : Cloud Run (fully managed). +message ServiceConfig { + // Available egress settings. + // + // This controls what traffic is diverted through the VPC Access Connector + // resource. By default PRIVATE_RANGES_ONLY will be used. + enum VpcConnectorEgressSettings { + // Unspecified. + VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0; + + // Use the VPC Access Connector only for private IP space from RFC1918. + PRIVATE_RANGES_ONLY = 1; + + // Force the use of VPC Access Connector for all egress traffic from the + // function. + ALL_TRAFFIC = 2; + } + + // Available ingress settings. + // + // This controls what traffic can reach the function. + // + // If unspecified, ALLOW_ALL will be used. + enum IngressSettings { + // Unspecified. + INGRESS_SETTINGS_UNSPECIFIED = 0; + + // Allow HTTP traffic from public and private sources. + ALLOW_ALL = 1; + + // Allow HTTP traffic from only private VPC sources. + ALLOW_INTERNAL_ONLY = 2; + + // Allow HTTP traffic from private VPC sources and through GCLB. + ALLOW_INTERNAL_AND_GCLB = 3; + } + + // 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" + } + ]; + + // The function execution timeout. Execution is considered failed and + // can be terminated if the function is not completed at the end of the + // timeout period. Defaults to 60 seconds. + int32 timeout_seconds = 2; + + // The amount of memory available for a function. + // Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is + // supplied the value is interpreted as bytes. + // See + // https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go + // a full description. + string available_memory = 13; + + // Environment variables that shall be available during function execution. + map environment_variables = 4; + + // 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. + int32 max_instance_count = 5; + + // 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 + // number of instances are kept running in idle state always. This can help + // with cold start times when jump in incoming request count occurs after the + // idle instance would have been stopped in the default case. + int32 min_instance_count = 12; + + // 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" + }]; + + // The egress settings for the connector, controlling what traffic is diverted + // through it. + VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + + // The ingress settings for the function, controlling what traffic can reach + // it. + IngressSettings ingress_settings = 8; + + // Output only. URI of the Service deployed. + string uri = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The email of the service's service account. If empty, defaults to + // `{project_number}-compute@developer.gserviceaccount.com`. + string service_account_email = 10; + + // Whether 100% of traffic is routed to the latest revision. + // On CreateFunction and UpdateFunction, when set to true, the revision being + // deployed will serve 100% of traffic, ignoring any traffic split settings, + // if any. On GetFunction, true will be returned if the latest revision is + // serving 100% of traffic. + bool all_traffic_on_latest_revision = 16; + + // Secret environment variables configuration. + repeated SecretEnvVar secret_environment_variables = 17; + + // Secret volumes configuration. + repeated SecretVolume secret_volumes = 19; + + // Output only. The name of service revision. + string revision = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Configuration for a secret environment variable. It has the information +// necessary to fetch the secret value from secret manager and expose it as an +// environment variable. +message SecretEnvVar { + // Name of the environment variable. + string key = 1; + + // Project identifier (preferably project number but can also be the + // project ID) of the project that contains the secret. If not set, it is + // assumed that the secret is in the same project as the function. + string project_id = 2; + + // Name of the secret in secret manager (not the full resource name). + string secret = 3; + + // Version of the secret (version number or the string 'latest'). It is + // recommended to use a numeric version for secret environment variables as + // any updates to the secret value is not reflected until new instances + // start. + string version = 4; +} + +// Configuration for a secret volume. It has the information necessary to fetch +// the secret value from secret manager and make it available as files mounted +// at the requested paths within the application container. +message SecretVolume { + // Configuration for a single version. + message SecretVersion { + // Version of the secret (version number or the string 'latest'). It is + // preferable to use `latest` version with secret volumes as secret value + // changes are reflected immediately. + string version = 1; + + // Relative path of the file under the mount path where the secret value for + // this version will be fetched and made available. For example, setting the + // mount_path as '/etc/secrets' and path as `secret_foo` would mount the + // secret value file at `/etc/secrets/secret_foo`. + string path = 2; + } + + // The path within the container to mount the secret volume. For example, + // setting the mount_path as `/etc/secrets` would mount the secret value files + // under the `/etc/secrets` directory. This directory will also be completely + // shadowed and unavailable to mount any other secrets. + // Recommended mount path: /etc/secrets + string mount_path = 1; + + // Project identifier (preferably project number but can also be the project + // ID) of the project that contains the secret. If not set, it is + // assumed that the secret is in the same project as the function. + string project_id = 2; + + // Name of the secret in secret manager (not the full resource name). + string secret = 3; + + // List of secret versions to mount for this secret. If empty, the `latest` + // version of the secret will be made available in a file named after the + // secret under the mount point. + repeated SecretVersion versions = 4; +} + +// Describes EventTrigger, used to request events to be sent from another +// service. +message EventTrigger { + // Describes the retry policy in case of function's execution failure. + // Retried execution is charged as any other execution. + enum RetryPolicy { + // Not specified. + RETRY_POLICY_UNSPECIFIED = 0; + + // Do not retry. + RETRY_POLICY_DO_NOT_RETRY = 1; + + // Retry on any failure, retry up to 7 days with an exponential backoff + // (capped at 10 seconds). + 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}`. + string trigger = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "eventarc.googleapis.com/Trigger" + } + ]; + + // The region that the trigger will be in. The trigger will only receive + // events originating in this region. It can be the same + // region as the function, a different region or multi-region, or the global + // region. If not provided, defaults to the same region as the function. + string trigger_region = 2; + + // Required. The type of event to observe. For example: + // `google.cloud.audit.log.v1.written` or + // `google.cloud.pubsub.topic.v1.messagePublished`. + string event_type = 3 [(google.api.field_behavior) = REQUIRED]; + + // Criteria used to filter events. + repeated EventFilter event_filters = 4; + + // 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. + string pubsub_topic = 5 [ + (google.api.field_behavior) = OPTIONAL, + (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 + // `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). + RetryPolicy retry_policy = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the channel associated with the trigger in + // `projects/{project}/locations/{location}/channels/{channel}` format. + // You must provide a channel to receive events from Eventarc SaaS partners. + string channel = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "eventarc.googleapis.com/Channel" + } + ]; +} + +// Filters events based on exact matches on the CloudEvents attributes. +message EventFilter { + // Required. The name of a CloudEvents attribute. + string attribute = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The value for the attribute. + string value = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The operator used for matching the events with the value of the + // filter. If not specified, only events that have an exact key-value pair + // specified in the filter are matched. The only allowed value is + // `match-path-pattern`. + string operator = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request for the `GetFunction` method. +message GetFunctionRequest { + // Required. The name of the function which details should be obtained. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudfunctions.googleapis.com/Function" + } + ]; +} + +// 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. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "cloudfunctions.googleapis.com/Function" + } + ]; + + // Maximum number of functions to return per call. + int32 page_size = 2; + + // The value returned by the last + // `ListFunctionsResponse`; indicates that + // this is a continuation of a prior `ListFunctions` call, and that the + // system should return the next page of data. + string page_token = 3; + + // The filter for Functions that match the filter expression, + // following the syntax outlined in https://google.aip.dev/160. + string filter = 4; + + // The sorting order of the resources returned. Value should be a comma + // separated list of fields. The default sorting oder is ascending. + // See https://google.aip.dev/132#ordering. + string order_by = 5; +} + +// Response for the `ListFunctions` method. +message ListFunctionsResponse { + // The functions that match the request. + repeated Function functions = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached. The response does not include any + // functions from these locations. + repeated string unreachable = 3; +} + +// 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/*` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. Function to be created. + Function function = 2 [(google.api.field_behavior) = REQUIRED]; + + // 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]-/. + string function_id = 3; +} + +// Request for the `UpdateFunction` method. +message UpdateFunctionRequest { + // Required. New version of the function. + Function function = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. + // If no field mask is provided, all provided fields in the request will be + // updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request for the `DeleteFunction` method. +message DeleteFunctionRequest { + // Required. The name of the function which should be deleted. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudfunctions.googleapis.com/Function" + } + ]; +} + +// 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/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; +} + +// Response of `GenerateSourceUploadUrl` method. +message GenerateUploadUrlResponse { + // The generated Google Cloud Storage signed URL that should be used for a + // function source code upload. The uploaded file should be a zip archive + // which contains a function. + string upload_url = 1; + + // 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. + StorageSource storage_source = 2; +} + +// Request of `GenerateDownloadUrl` method. +message GenerateDownloadUrlRequest { + // 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) = { + type: "cloudfunctions.googleapis.com/Function" + } + ]; +} + +// Response of `GenerateDownloadUrl` method. +message GenerateDownloadUrlResponse { + // The generated Google Cloud Storage signed URL that should be used for + // function source code download. + string download_url = 1; +} + +// 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/*` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The filter for Runtimes that match the filter expression, + // following the syntax outlined in https://google.aip.dev/160. + string filter = 2; +} + +// Response for the `ListRuntimes` method. +message ListRuntimesResponse { + // Describes a runtime and any special information (e.g., deprecation status) + // related to it. + message Runtime { + // The name of the runtime, e.g., 'go113', 'nodejs12', etc. + string name = 1; + + // The user facing name, eg 'Go 1.13', 'Node.js 12', etc. + string display_name = 5; + + // The stage of life this runtime is in, e.g., BETA, GA, etc. + RuntimeStage stage = 2; + + // Warning messages, e.g., a deprecation warning. + repeated string warnings = 3; + + // The environment for the runtime. + Environment environment = 4; + } + + // The various stages that a runtime can be in. + enum RuntimeStage { + // Not specified. + RUNTIME_STAGE_UNSPECIFIED = 0; + + // The runtime is in development. + DEVELOPMENT = 1; + + // The runtime is in the Alpha stage. + ALPHA = 2; + + // The runtime is in the Beta stage. + BETA = 3; + + // The runtime is generally available. + GA = 4; + + // The runtime is deprecated. + DEPRECATED = 5; + + // The runtime is no longer supported. + DECOMMISSIONED = 6; + } + + // The runtimes that match the request. + repeated Runtime runtimes = 1; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // The time the operation was created. + google.protobuf.Timestamp create_time = 1; + + // The time the operation finished running. + google.protobuf.Timestamp end_time = 2; + + // Server-defined resource path for the target of the operation. + string target = 3; + + // Name of the verb executed by the operation. + string verb = 4; + + // Human-readable status of the operation, if any. + string status_detail = 5; + + // 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`. + bool cancel_requested = 6; + + // API version used to start the operation. + string api_version = 7; + + // The original request that started the operation. + google.protobuf.Any request_resource = 8; + + // Mechanism for reporting in-progress stages + repeated Stage stages = 9; +} + +// Each Stage of the deployment process +message Stage { + // Possible names for a Stage + enum Name { + // Not specified. Invalid name. + NAME_UNSPECIFIED = 0; + + // Artifact Regsitry Stage + ARTIFACT_REGISTRY = 1; + + // Build Stage + BUILD = 2; + + // Service Stage + SERVICE = 3; + + // Trigger Stage + TRIGGER = 4; + + // Service Rollback Stage + SERVICE_ROLLBACK = 5; + + // Trigger Rollback Stage + TRIGGER_ROLLBACK = 6; + } + + // Possible states for a Stage + enum State { + // Not specified. Invalid state. + STATE_UNSPECIFIED = 0; + + // Stage has not started. + NOT_STARTED = 1; + + // Stage is in progress. + IN_PROGRESS = 2; + + // Stage has completed. + COMPLETE = 3; + } + + // Name of the Stage. This will be unique for each Stage. + Name name = 1; + + // Message describing the Stage + string message = 2; + + // Current state of the Stage + State state = 3; + + // Resource of the Stage + string resource = 4; + + // Link to the current Stage resource + string resource_uri = 5; + + // State messages from the current Stage. + repeated StateMessage state_messages = 6; +} diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..d369d758 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.FunctionServiceSettings; +import com.google.cloud.functions.v2.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + FunctionServiceSettings functionServiceSettings = + FunctionServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + FunctionServiceClient functionServiceClient = + FunctionServiceClient.create(functionServiceSettings); + } +} +// [END functions_v2_generated_functionserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..d3a21931 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.FunctionServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + FunctionServiceSettings functionServiceSettings = + FunctionServiceSettings.newBuilder() + .setTransportChannelProvider( + FunctionServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + FunctionServiceClient functionServiceClient = + FunctionServiceClient.create(functionServiceSettings); + } +} +// [END functions_v2_generated_functionserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..9b4c7413 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_create_setendpoint_sync] +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.FunctionServiceSettings; +import com.google.cloud.functions.v2.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + FunctionServiceSettings functionServiceSettings = + FunctionServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + FunctionServiceClient functionServiceClient = + FunctionServiceClient.create(functionServiceSettings); + } +} +// [END functions_v2_generated_functionserviceclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunction.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunction.java new file mode 100644 index 00000000..dfa81da4 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunction.java @@ -0,0 +1,50 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_createfunction_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.functions.v2.CreateFunctionRequest; +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateFunction { + + public static void main(String[] args) throws Exception { + asyncCreateFunction(); + } + + public static void asyncCreateFunction() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + CreateFunctionRequest request = + CreateFunctionRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFunction(Function.newBuilder().build()) + .setFunctionId("functionId-62789869") + .build(); + ApiFuture future = + functionServiceClient.createFunctionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_createfunction_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunctionLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunctionLRO.java new file mode 100644 index 00000000..946631eb --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunctionLRO.java @@ -0,0 +1,50 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_createfunction_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.functions.v2.CreateFunctionRequest; +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.LocationName; +import com.google.cloud.functions.v2.OperationMetadata; + +public class AsyncCreateFunctionLRO { + + public static void main(String[] args) throws Exception { + asyncCreateFunctionLRO(); + } + + public static void asyncCreateFunctionLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + CreateFunctionRequest request = + CreateFunctionRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFunction(Function.newBuilder().build()) + .setFunctionId("functionId-62789869") + .build(); + OperationFuture future = + functionServiceClient.createFunctionOperationCallable().futureCall(request); + // Do something. + Function response = future.get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_createfunction_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunction.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunction.java new file mode 100644 index 00000000..71951fad --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunction.java @@ -0,0 +1,45 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_createfunction_sync] +import com.google.cloud.functions.v2.CreateFunctionRequest; +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.LocationName; + +public class SyncCreateFunction { + + public static void main(String[] args) throws Exception { + syncCreateFunction(); + } + + public static void syncCreateFunction() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + CreateFunctionRequest request = + CreateFunctionRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFunction(Function.newBuilder().build()) + .setFunctionId("functionId-62789869") + .build(); + Function response = functionServiceClient.createFunctionAsync(request).get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_createfunction_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionLocationnameFunctionString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionLocationnameFunctionString.java new file mode 100644 index 00000000..5920d62e --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionLocationnameFunctionString.java @@ -0,0 +1,42 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_createfunction_locationnamefunctionstring_sync] +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.LocationName; + +public class SyncCreateFunctionLocationnameFunctionString { + + public static void main(String[] args) throws Exception { + syncCreateFunctionLocationnameFunctionString(); + } + + public static void syncCreateFunctionLocationnameFunctionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Function function = Function.newBuilder().build(); + String functionId = "functionId-62789869"; + Function response = + functionServiceClient.createFunctionAsync(parent, function, functionId).get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_createfunction_locationnamefunctionstring_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionStringFunctionString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionStringFunctionString.java new file mode 100644 index 00000000..a24b81c5 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionStringFunctionString.java @@ -0,0 +1,42 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_createfunction_stringfunctionstring_sync] +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.LocationName; + +public class SyncCreateFunctionStringFunctionString { + + public static void main(String[] args) throws Exception { + syncCreateFunctionStringFunctionString(); + } + + public static void syncCreateFunctionStringFunctionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Function function = Function.newBuilder().build(); + String functionId = "functionId-62789869"; + Function response = + functionServiceClient.createFunctionAsync(parent, function, functionId).get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_createfunction_stringfunctionstring_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunction.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunction.java new file mode 100644 index 00000000..975df2e4 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunction.java @@ -0,0 +1,47 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_deletefunction_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.functions.v2.DeleteFunctionRequest; +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteFunction { + + public static void main(String[] args) throws Exception { + asyncDeleteFunction(); + } + + public static void asyncDeleteFunction() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + DeleteFunctionRequest request = + DeleteFunctionRequest.newBuilder() + .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .build(); + ApiFuture future = + functionServiceClient.deleteFunctionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_deletefunction_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunctionLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunctionLRO.java new file mode 100644 index 00000000..75795c32 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunctionLRO.java @@ -0,0 +1,48 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_deletefunction_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.functions.v2.DeleteFunctionRequest; +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteFunctionLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteFunctionLRO(); + } + + public static void asyncDeleteFunctionLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + DeleteFunctionRequest request = + DeleteFunctionRequest.newBuilder() + .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .build(); + OperationFuture future = + functionServiceClient.deleteFunctionOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_deletefunction_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunction.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunction.java new file mode 100644 index 00000000..3ec0efb0 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunction.java @@ -0,0 +1,43 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_deletefunction_sync] +import com.google.cloud.functions.v2.DeleteFunctionRequest; +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFunction { + + public static void main(String[] args) throws Exception { + syncDeleteFunction(); + } + + public static void syncDeleteFunction() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + DeleteFunctionRequest request = + DeleteFunctionRequest.newBuilder() + .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .build(); + functionServiceClient.deleteFunctionAsync(request).get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_deletefunction_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionFunctionname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionFunctionname.java new file mode 100644 index 00000000..0f5abcbb --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionFunctionname.java @@ -0,0 +1,39 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_deletefunction_functionname_sync] +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFunctionFunctionname { + + public static void main(String[] args) throws Exception { + syncDeleteFunctionFunctionname(); + } + + public static void syncDeleteFunctionFunctionname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]"); + functionServiceClient.deleteFunctionAsync(name).get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_deletefunction_functionname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionString.java new file mode 100644 index 00000000..fa9dc4bf --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionString.java @@ -0,0 +1,39 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_deletefunction_string_sync] +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteFunctionString { + + public static void main(String[] args) throws Exception { + syncDeleteFunctionString(); + } + + public static void syncDeleteFunctionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + String name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString(); + functionServiceClient.deleteFunctionAsync(name).get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_deletefunction_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java new file mode 100644 index 00000000..c6a19a34 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java @@ -0,0 +1,47 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_generatedownloadurl_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.GenerateDownloadUrlRequest; +import com.google.cloud.functions.v2.GenerateDownloadUrlResponse; + +public class AsyncGenerateDownloadUrl { + + public static void main(String[] args) throws Exception { + asyncGenerateDownloadUrl(); + } + + public static void asyncGenerateDownloadUrl() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + GenerateDownloadUrlRequest request = + GenerateDownloadUrlRequest.newBuilder() + .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .build(); + ApiFuture future = + functionServiceClient.generateDownloadUrlCallable().futureCall(request); + // Do something. + GenerateDownloadUrlResponse response = future.get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_generatedownloadurl_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java new file mode 100644 index 00000000..af3159ee --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java @@ -0,0 +1,43 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_generatedownloadurl_sync] +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.GenerateDownloadUrlRequest; +import com.google.cloud.functions.v2.GenerateDownloadUrlResponse; + +public class SyncGenerateDownloadUrl { + + public static void main(String[] args) throws Exception { + syncGenerateDownloadUrl(); + } + + public static void syncGenerateDownloadUrl() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + GenerateDownloadUrlRequest request = + GenerateDownloadUrlRequest.newBuilder() + .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .build(); + GenerateDownloadUrlResponse response = functionServiceClient.generateDownloadUrl(request); + } + } +} +// [END functions_v2_generated_functionserviceclient_generatedownloadurl_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java new file mode 100644 index 00000000..13ff09cd --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java @@ -0,0 +1,47 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_generateuploadurl_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.GenerateUploadUrlRequest; +import com.google.cloud.functions.v2.GenerateUploadUrlResponse; +import com.google.cloud.functions.v2.LocationName; + +public class AsyncGenerateUploadUrl { + + public static void main(String[] args) throws Exception { + asyncGenerateUploadUrl(); + } + + public static void asyncGenerateUploadUrl() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + GenerateUploadUrlRequest request = + GenerateUploadUrlRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + ApiFuture future = + functionServiceClient.generateUploadUrlCallable().futureCall(request); + // Do something. + GenerateUploadUrlResponse response = future.get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_generateuploadurl_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/SyncGenerateUploadUrl.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/SyncGenerateUploadUrl.java new file mode 100644 index 00000000..2a668364 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/SyncGenerateUploadUrl.java @@ -0,0 +1,43 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_generateuploadurl_sync] +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.GenerateUploadUrlRequest; +import com.google.cloud.functions.v2.GenerateUploadUrlResponse; +import com.google.cloud.functions.v2.LocationName; + +public class SyncGenerateUploadUrl { + + public static void main(String[] args) throws Exception { + syncGenerateUploadUrl(); + } + + public static void syncGenerateUploadUrl() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + GenerateUploadUrlRequest request = + GenerateUploadUrlRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + GenerateUploadUrlResponse response = functionServiceClient.generateUploadUrl(request); + } + } +} +// [END functions_v2_generated_functionserviceclient_generateuploadurl_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/AsyncGetFunction.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/AsyncGetFunction.java new file mode 100644 index 00000000..2bf58306 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/AsyncGetFunction.java @@ -0,0 +1,46 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_getfunction_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.GetFunctionRequest; + +public class AsyncGetFunction { + + public static void main(String[] args) throws Exception { + asyncGetFunction(); + } + + public static void asyncGetFunction() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + GetFunctionRequest request = + GetFunctionRequest.newBuilder() + .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .build(); + ApiFuture future = functionServiceClient.getFunctionCallable().futureCall(request); + // Do something. + Function response = future.get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_getfunction_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunction.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunction.java new file mode 100644 index 00000000..1ca01831 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunction.java @@ -0,0 +1,43 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_getfunction_sync] +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.GetFunctionRequest; + +public class SyncGetFunction { + + public static void main(String[] args) throws Exception { + syncGetFunction(); + } + + public static void syncGetFunction() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + GetFunctionRequest request = + GetFunctionRequest.newBuilder() + .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .build(); + Function response = functionServiceClient.getFunction(request); + } + } +} +// [END functions_v2_generated_functionserviceclient_getfunction_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionFunctionname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionFunctionname.java new file mode 100644 index 00000000..28dd7989 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionFunctionname.java @@ -0,0 +1,39 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_getfunction_functionname_sync] +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; + +public class SyncGetFunctionFunctionname { + + public static void main(String[] args) throws Exception { + syncGetFunctionFunctionname(); + } + + public static void syncGetFunctionFunctionname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + FunctionName name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]"); + Function response = functionServiceClient.getFunction(name); + } + } +} +// [END functions_v2_generated_functionserviceclient_getfunction_functionname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionString.java new file mode 100644 index 00000000..d5b89540 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionString.java @@ -0,0 +1,39 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_getfunction_string_sync] +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; + +public class SyncGetFunctionString { + + public static void main(String[] args) throws Exception { + syncGetFunctionString(); + } + + public static void syncGetFunctionString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + String name = FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString(); + Function response = functionServiceClient.getFunction(name); + } + } +} +// [END functions_v2_generated_functionserviceclient_getfunction_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 00000000..c6e76912 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_getiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = functionServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_getiampolicy_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 00000000..9d768ecd --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,45 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_getiampolicy_sync] +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = functionServiceClient.getIamPolicy(request); + } + } +} +// [END functions_v2_generated_functionserviceclient_getiampolicy_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctions.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctions.java new file mode 100644 index 00000000..d10b57e7 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctions.java @@ -0,0 +1,53 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_listfunctions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.ListFunctionsRequest; +import com.google.cloud.functions.v2.LocationName; + +public class AsyncListFunctions { + + public static void main(String[] args) throws Exception { + asyncListFunctions(); + } + + public static void asyncListFunctions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + ListFunctionsRequest request = + ListFunctionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + functionServiceClient.listFunctionsPagedCallable().futureCall(request); + // Do something. + for (Function element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END functions_v2_generated_functionserviceclient_listfunctions_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctionsPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctionsPaged.java new file mode 100644 index 00000000..586d7782 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctionsPaged.java @@ -0,0 +1,61 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_listfunctions_paged_async] +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.ListFunctionsRequest; +import com.google.cloud.functions.v2.ListFunctionsResponse; +import com.google.cloud.functions.v2.LocationName; +import com.google.common.base.Strings; + +public class AsyncListFunctionsPaged { + + public static void main(String[] args) throws Exception { + asyncListFunctionsPaged(); + } + + public static void asyncListFunctionsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + ListFunctionsRequest request = + ListFunctionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListFunctionsResponse response = + functionServiceClient.listFunctionsCallable().call(request); + for (Function element : response.getFunctionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END functions_v2_generated_functionserviceclient_listfunctions_paged_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctions.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctions.java new file mode 100644 index 00000000..aeb6bae5 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctions.java @@ -0,0 +1,49 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_listfunctions_sync] +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.ListFunctionsRequest; +import com.google.cloud.functions.v2.LocationName; + +public class SyncListFunctions { + + public static void main(String[] args) throws Exception { + syncListFunctions(); + } + + public static void syncListFunctions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + ListFunctionsRequest request = + ListFunctionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Function element : functionServiceClient.listFunctions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END functions_v2_generated_functionserviceclient_listfunctions_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsLocationname.java new file mode 100644 index 00000000..2fc7bf5b --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsLocationname.java @@ -0,0 +1,41 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_listfunctions_locationname_sync] +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.LocationName; + +public class SyncListFunctionsLocationname { + + public static void main(String[] args) throws Exception { + syncListFunctionsLocationname(); + } + + public static void syncListFunctionsLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Function element : functionServiceClient.listFunctions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END functions_v2_generated_functionserviceclient_listfunctions_locationname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsString.java new file mode 100644 index 00000000..da749b6c --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsString.java @@ -0,0 +1,41 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_listfunctions_string_sync] +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.LocationName; + +public class SyncListFunctionsString { + + public static void main(String[] args) throws Exception { + syncListFunctionsString(); + } + + public static void syncListFunctionsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Function element : functionServiceClient.listFunctions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END functions_v2_generated_functionserviceclient_listfunctions_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocations.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocations.java new file mode 100644 index 00000000..10907211 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocations.java @@ -0,0 +1,51 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_listlocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + functionServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END functions_v2_generated_functionserviceclient_listlocations_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 00000000..efaa47c4 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,59 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_listlocations_paged_async] +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + functionServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END functions_v2_generated_functionserviceclient_listlocations_paged_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/SyncListLocations.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/SyncListLocations.java new file mode 100644 index 00000000..6a3417e2 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/SyncListLocations.java @@ -0,0 +1,47 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_listlocations_sync] +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : functionServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END functions_v2_generated_functionserviceclient_listlocations_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/AsyncListRuntimes.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/AsyncListRuntimes.java new file mode 100644 index 00000000..359a58a2 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/AsyncListRuntimes.java @@ -0,0 +1,48 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_listruntimes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.ListRuntimesRequest; +import com.google.cloud.functions.v2.ListRuntimesResponse; +import com.google.cloud.functions.v2.LocationName; + +public class AsyncListRuntimes { + + public static void main(String[] args) throws Exception { + asyncListRuntimes(); + } + + public static void asyncListRuntimes() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + ListRuntimesRequest request = + ListRuntimesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + functionServiceClient.listRuntimesCallable().futureCall(request); + // Do something. + ListRuntimesResponse response = future.get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_listruntimes_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimes.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimes.java new file mode 100644 index 00000000..e5421610 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimes.java @@ -0,0 +1,44 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_listruntimes_sync] +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.ListRuntimesRequest; +import com.google.cloud.functions.v2.ListRuntimesResponse; +import com.google.cloud.functions.v2.LocationName; + +public class SyncListRuntimes { + + public static void main(String[] args) throws Exception { + syncListRuntimes(); + } + + public static void syncListRuntimes() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + ListRuntimesRequest request = + ListRuntimesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .build(); + ListRuntimesResponse response = functionServiceClient.listRuntimes(request); + } + } +} +// [END functions_v2_generated_functionserviceclient_listruntimes_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesLocationname.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesLocationname.java new file mode 100644 index 00000000..6811da07 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesLocationname.java @@ -0,0 +1,39 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_listruntimes_locationname_sync] +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.ListRuntimesResponse; +import com.google.cloud.functions.v2.LocationName; + +public class SyncListRuntimesLocationname { + + public static void main(String[] args) throws Exception { + syncListRuntimesLocationname(); + } + + public static void syncListRuntimesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ListRuntimesResponse response = functionServiceClient.listRuntimes(parent); + } + } +} +// [END functions_v2_generated_functionserviceclient_listruntimes_locationname_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesString.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesString.java new file mode 100644 index 00000000..5414645f --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesString.java @@ -0,0 +1,39 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_listruntimes_string_sync] +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.ListRuntimesResponse; +import com.google.cloud.functions.v2.LocationName; + +public class SyncListRuntimesString { + + public static void main(String[] args) throws Exception { + syncListRuntimesString(); + } + + public static void syncListRuntimesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + ListRuntimesResponse response = functionServiceClient.listRuntimes(parent); + } + } +} +// [END functions_v2_generated_functionserviceclient_listruntimes_string_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 00000000..6afb7817 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_setiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = functionServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_setiampolicy_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 00000000..b86eb9ba --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,46 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_setiampolicy_sync] +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = functionServiceClient.setIamPolicy(request); + } + } +} +// [END functions_v2_generated_functionserviceclient_setiampolicy_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 00000000..0d99a64c --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,49 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_testiampermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + functionServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_testiampermissions_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 00000000..dd3e04b4 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,45 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_testiampermissions_sync] +import com.google.cloud.functions.v2.FunctionName; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = functionServiceClient.testIamPermissions(request); + } + } +} +// [END functions_v2_generated_functionserviceclient_testiampermissions_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunction.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunction.java new file mode 100644 index 00000000..f346b080 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunction.java @@ -0,0 +1,49 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_updatefunction_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.UpdateFunctionRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFunction { + + public static void main(String[] args) throws Exception { + asyncUpdateFunction(); + } + + public static void asyncUpdateFunction() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + UpdateFunctionRequest request = + UpdateFunctionRequest.newBuilder() + .setFunction(Function.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + functionServiceClient.updateFunctionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_updatefunction_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunctionLRO.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunctionLRO.java new file mode 100644 index 00000000..35b8ff41 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunctionLRO.java @@ -0,0 +1,49 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_updatefunction_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.OperationMetadata; +import com.google.cloud.functions.v2.UpdateFunctionRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFunctionLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateFunctionLRO(); + } + + public static void asyncUpdateFunctionLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + UpdateFunctionRequest request = + UpdateFunctionRequest.newBuilder() + .setFunction(Function.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + functionServiceClient.updateFunctionOperationCallable().futureCall(request); + // Do something. + Function response = future.get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_updatefunction_lro_async] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunction.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunction.java new file mode 100644 index 00000000..4081efd1 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunction.java @@ -0,0 +1,44 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_updatefunction_sync] +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.cloud.functions.v2.UpdateFunctionRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFunction { + + public static void main(String[] args) throws Exception { + syncUpdateFunction(); + } + + public static void syncUpdateFunction() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + UpdateFunctionRequest request = + UpdateFunctionRequest.newBuilder() + .setFunction(Function.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Function response = functionServiceClient.updateFunctionAsync(request).get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_updatefunction_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunctionFunctionFieldmask.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunctionFunctionFieldmask.java new file mode 100644 index 00000000..4b2474b0 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunctionFunctionFieldmask.java @@ -0,0 +1,40 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionserviceclient_updatefunction_functionfieldmask_sync] +import com.google.cloud.functions.v2.Function; +import com.google.cloud.functions.v2.FunctionServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFunctionFunctionFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFunctionFunctionFieldmask(); + } + + public static void syncUpdateFunctionFunctionFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (FunctionServiceClient functionServiceClient = FunctionServiceClient.create()) { + Function function = Function.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Function response = functionServiceClient.updateFunctionAsync(function, updateMask).get(); + } + } +} +// [END functions_v2_generated_functionserviceclient_updatefunction_functionfieldmask_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionservicesettings/getfunction/SyncGetFunction.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionservicesettings/getfunction/SyncGetFunction.java new file mode 100644 index 00000000..63f588b5 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionservicesettings/getfunction/SyncGetFunction.java @@ -0,0 +1,46 @@ +/* + * 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.v2.samples; + +// [START functions_v2_generated_functionservicesettings_getfunction_sync] +import com.google.cloud.functions.v2.FunctionServiceSettings; +import java.time.Duration; + +public class SyncGetFunction { + + public static void main(String[] args) throws Exception { + syncGetFunction(); + } + + public static void syncGetFunction() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + FunctionServiceSettings.Builder functionServiceSettingsBuilder = + FunctionServiceSettings.newBuilder(); + functionServiceSettingsBuilder + .getFunctionSettings() + .setRetrySettings( + functionServiceSettingsBuilder + .getFunctionSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + FunctionServiceSettings functionServiceSettings = functionServiceSettingsBuilder.build(); + } +} +// [END functions_v2_generated_functionservicesettings_getfunction_sync] diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/stub/functionservicestubsettings/getfunction/SyncGetFunction.java b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/stub/functionservicestubsettings/getfunction/SyncGetFunction.java new file mode 100644 index 00000000..d4098147 --- /dev/null +++ b/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/stub/functionservicestubsettings/getfunction/SyncGetFunction.java @@ -0,0 +1,46 @@ +/* + * 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.v2.stub.samples; + +// [START functions_v2_generated_functionservicestubsettings_getfunction_sync] +import com.google.cloud.functions.v2.stub.FunctionServiceStubSettings; +import java.time.Duration; + +public class SyncGetFunction { + + public static void main(String[] args) throws Exception { + syncGetFunction(); + } + + public static void syncGetFunction() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + FunctionServiceStubSettings.Builder functionServiceSettingsBuilder = + FunctionServiceStubSettings.newBuilder(); + functionServiceSettingsBuilder + .getFunctionSettings() + .setRetrySettings( + functionServiceSettingsBuilder + .getFunctionSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + FunctionServiceStubSettings functionServiceSettings = functionServiceSettingsBuilder.build(); + } +} +// [END functions_v2_generated_functionservicestubsettings_getfunction_sync] diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java similarity index 98% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java index c4e4823a..8dffde6e 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java +++ b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java @@ -76,13 +76,13 @@ * methods: * *
        - *
      1. A "flattened" method. With this type of method, the fields of the request type have been + *
      2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
      3. A "request object" method. This type of method only takes one parameter, a request object, + *
      4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
      5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
      6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
      * @@ -879,8 +879,8 @@ public final UnaryCallable deleteFunctionCalla *

      When uploading source code to the generated signed URL, please follow these restrictions: * *

        - *
      • Source file type should be a zip file. - *
      • No credentials should be attached - the signed URLs provide access to the target bucket + *
      • Source file type should be a zip file. + *
      • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -889,13 +889,13 @@ public final UnaryCallable deleteFunctionCalla *

        When making a HTTP PUT request, these two headers need to be specified: * *

          - *
        • `content-type: application/zip` + *
        • `content-type: application/zip` *
        * *

        And this header SHOULD NOT be specified: * *

          - *
        • `Authorization: Bearer YOUR_TOKEN` + *
        • `Authorization: Bearer YOUR_TOKEN` *
        * *

        Sample code: @@ -929,8 +929,8 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

        When uploading source code to the generated signed URL, please follow these restrictions: * *

          - *
        • Source file type should be a zip file. - *
        • No credentials should be attached - the signed URLs provide access to the target bucket + *
        • Source file type should be a zip file. + *
        • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -939,13 +939,13 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

          When making a HTTP PUT request, these two headers need to be specified: * *

            - *
          • `content-type: application/zip` + *
          • `content-type: application/zip` *
          * *

          And this header SHOULD NOT be specified: * *

            - *
          • `Authorization: Bearer YOUR_TOKEN` + *
          • `Authorization: Bearer YOUR_TOKEN` *
          * *

          Sample code: @@ -1431,10 +1431,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListFunctionsPagedResponse extends AbstractPagedListResponse< - ListFunctionsRequest, - ListFunctionsResponse, - Function, - ListFunctionsPage, + ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage, ListFunctionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1484,10 +1481,7 @@ public ApiFuture createPageAsync( public static class ListFunctionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFunctionsRequest, - ListFunctionsResponse, - Function, - ListFunctionsPage, + ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage, ListFunctionsFixedSizeCollection> { private ListFunctionsFixedSizeCollection(List pages, int collectionSize) { @@ -1507,10 +1501,7 @@ protected ListFunctionsFixedSizeCollection createCollection( public static class ListLocationsPagedResponse extends AbstractPagedListResponse< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1560,10 +1551,7 @@ public ApiFuture createPageAsync( public static class ListLocationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, ListLocationsFixedSizeCollection> { private ListLocationsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java similarity index 98% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java index e7cb6d98..c99e3df7 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java +++ b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java @@ -30,6 +30,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.functions.v2alpha.stub.FunctionServiceStubSettings; @@ -53,10 +54,10 @@ *

          The default instance has everything set to sensible defaults: * *

            - *
          • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
          • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
          • Credentials are acquired automatically through Application Default Credentials. - *
          • Retries are configured for idempotent methods but not for non-idempotent methods. + *
          • Credentials are acquired automatically through Application Default Credentials. + *
          • Retries are configured for idempotent methods but not for non-idempotent methods. *
          * *

          The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/gapic_metadata.json b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/gapic_metadata.json similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/gapic_metadata.json rename to owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/gapic_metadata.json diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/package-info.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/package-info.java similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/package-info.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/package-info.java diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java similarity index 99% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java index 55f82c08..0d794d84 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java +++ b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java @@ -88,10 +88,10 @@ *

          The default instance has everything set to sensible defaults: * *

            - *
          • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
          • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
          • Credentials are acquired automatically through Application Default Credentials. - *
          • Retries are configured for idempotent methods but not for non-idempotent methods. + *
          • Credentials are acquired automatically through Application Default Credentials. + *
          • Retries are configured for idempotent methods but not for non-idempotent methods. *
          * *

          The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceCallableFactory.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceCallableFactory.java similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceCallableFactory.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceCallableFactory.java diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java similarity index 99% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java index c8d33c6d..a63a3572 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java +++ b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java @@ -55,6 +55,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceCallableFactory.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceCallableFactory.java similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceCallableFactory.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceCallableFactory.java diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java similarity index 99% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java index cbd0c128..cf16cbfe 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java +++ b/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java @@ -31,6 +31,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientHttpJsonTest.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientHttpJsonTest.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientHttpJsonTest.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientHttpJsonTest.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientTest.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientTest.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientTest.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientTest.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionService.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionService.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionService.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionService.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionServiceImpl.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionServiceImpl.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionServiceImpl.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionServiceImpl.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicy.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicy.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicy.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicy.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicyImpl.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicyImpl.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicyImpl.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicyImpl.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocations.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocations.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocations.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocations.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocationsImpl.java b/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocationsImpl.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocationsImpl.java rename to owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocationsImpl.java diff --git a/owl-bot-staging/v2alpha/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java b/owl-bot-staging/v2alpha/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java new file mode 100644 index 00000000..062a7246 --- /dev/null +++ b/owl-bot-staging/v2alpha/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java @@ -0,0 +1,1021 @@ +package com.google.cloud.functions.v2alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

          + * Google Cloud Functions is used to deploy functions that are executed by
          + * Google in response to various events. Data connected with that event is
          + * passed to a function as the input data.
          + * A **function** is a resource which describes a function that should be
          + * executed and how it is triggered.
          + * 
          + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/functions/v2alpha/functions.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class FunctionServiceGrpc { + + private FunctionServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.functions.v2alpha.FunctionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFunction", + requestType = com.google.cloud.functions.v2alpha.GetFunctionRequest.class, + responseType = com.google.cloud.functions.v2alpha.Function.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFunctionMethod() { + io.grpc.MethodDescriptor getGetFunctionMethod; + if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { + FunctionServiceGrpc.getGetFunctionMethod = getGetFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.GetFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.Function.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GetFunction")) + .build(); + } + } + } + return getGetFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFunctionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFunctions", + requestType = com.google.cloud.functions.v2alpha.ListFunctionsRequest.class, + responseType = com.google.cloud.functions.v2alpha.ListFunctionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFunctionsMethod() { + io.grpc.MethodDescriptor getListFunctionsMethod; + if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { + FunctionServiceGrpc.getListFunctionsMethod = getListFunctionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.ListFunctionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.ListFunctionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListFunctions")) + .build(); + } + } + } + return getListFunctionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFunction", + requestType = com.google.cloud.functions.v2alpha.CreateFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFunctionMethod() { + io.grpc.MethodDescriptor getCreateFunctionMethod; + if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { + FunctionServiceGrpc.getCreateFunctionMethod = getCreateFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.CreateFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("CreateFunction")) + .build(); + } + } + } + return getCreateFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFunction", + requestType = com.google.cloud.functions.v2alpha.UpdateFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateFunctionMethod() { + io.grpc.MethodDescriptor getUpdateFunctionMethod; + if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { + FunctionServiceGrpc.getUpdateFunctionMethod = getUpdateFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.UpdateFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("UpdateFunction")) + .build(); + } + } + } + return getUpdateFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFunction", + requestType = com.google.cloud.functions.v2alpha.DeleteFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteFunctionMethod() { + io.grpc.MethodDescriptor getDeleteFunctionMethod; + if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { + FunctionServiceGrpc.getDeleteFunctionMethod = getDeleteFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.DeleteFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("DeleteFunction")) + .build(); + } + } + } + return getDeleteFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateUploadUrlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateUploadUrl", + requestType = com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.class, + responseType = com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateUploadUrlMethod() { + io.grpc.MethodDescriptor getGenerateUploadUrlMethod; + if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { + FunctionServiceGrpc.getGenerateUploadUrlMethod = getGenerateUploadUrlMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GenerateUploadUrl")) + .build(); + } + } + } + return getGenerateUploadUrlMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateDownloadUrl", + requestType = com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.class, + responseType = com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateDownloadUrlMethod() { + io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; + if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { + FunctionServiceGrpc.getGenerateDownloadUrlMethod = getGenerateDownloadUrlMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GenerateDownloadUrl")) + .build(); + } + } + } + return getGenerateDownloadUrlMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRuntimesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", + requestType = com.google.cloud.functions.v2alpha.ListRuntimesRequest.class, + responseType = com.google.cloud.functions.v2alpha.ListRuntimesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRuntimesMethod() { + io.grpc.MethodDescriptor getListRuntimesMethod; + if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { + FunctionServiceGrpc.getListRuntimesMethod = getListRuntimesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.ListRuntimesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.ListRuntimesResponse.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListRuntimes")) + .build(); + } + } + } + return getListRuntimesMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static FunctionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceStub(channel, callOptions); + } + }; + return FunctionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static FunctionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceBlockingStub(channel, callOptions); + } + }; + return FunctionServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static FunctionServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceFutureStub(channel, callOptions); + } + }; + return FunctionServiceFutureStub.newStub(factory, channel); + } + + /** + *
          +   * Google Cloud Functions is used to deploy functions that are executed by
          +   * Google in response to various events. Data connected with that event is
          +   * passed to a function as the input data.
          +   * A **function** is a resource which describes a function that should be
          +   * executed and how it is triggered.
          +   * 
          + */ + public static abstract class FunctionServiceImplBase implements io.grpc.BindableService { + + /** + *
          +     * Returns a function with the given name from the requested project.
          +     * 
          + */ + public void getFunction(com.google.cloud.functions.v2alpha.GetFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFunctionMethod(), responseObserver); + } + + /** + *
          +     * Returns a list of functions that belong to the requested project.
          +     * 
          + */ + public void listFunctions(com.google.cloud.functions.v2alpha.ListFunctionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFunctionsMethod(), responseObserver); + } + + /** + *
          +     * 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.
          +     * 
          + */ + public void createFunction(com.google.cloud.functions.v2alpha.CreateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFunctionMethod(), responseObserver); + } + + /** + *
          +     * Updates existing function.
          +     * 
          + */ + public void updateFunction(com.google.cloud.functions.v2alpha.UpdateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFunctionMethod(), responseObserver); + } + + /** + *
          +     * Deletes a function with the given name from the specified project. If the
          +     * given function is used by some trigger, the trigger will be updated to
          +     * remove this function.
          +     * 
          + */ + public void deleteFunction(com.google.cloud.functions.v2alpha.DeleteFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFunctionMethod(), responseObserver); + } + + /** + *
          +     * Returns a signed URL for uploading a function source code.
          +     * For more information about the signed URL usage see:
          +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
          +     * Once the function source code upload is complete, the used signed
          +     * URL should be provided in CreateFunction or UpdateFunction request
          +     * as a reference to the function source code.
          +     * When uploading source code to the generated signed URL, please follow
          +     * these restrictions:
          +     * * Source file type should be a zip file.
          +     * * No credentials should be attached - the signed URLs provide access to the
          +     *   target bucket using internal service identity; if credentials were
          +     *   attached, the identity from the credentials would be used, but that
          +     *   identity does not have permissions to upload files to the URL.
          +     * When making a HTTP PUT request, these two headers need to be specified:
          +     * * `content-type: application/zip`
          +     * And this header SHOULD NOT be specified:
          +     * * `Authorization: Bearer YOUR_TOKEN`
          +     * 
          + */ + public void generateUploadUrl(com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateUploadUrlMethod(), responseObserver); + } + + /** + *
          +     * Returns a signed URL for downloading deployed function source code.
          +     * The URL is only valid for a limited period and should be used within
          +     * 30 minutes of generation.
          +     * For more information about the signed URL usage see:
          +     * https://cloud.google.com/storage/docs/access-control/signed-urls
          +     * 
          + */ + public void generateDownloadUrl(com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateDownloadUrlMethod(), responseObserver); + } + + /** + *
          +     * Returns a list of runtimes that are supported for the requested project.
          +     * 
          + */ + public void listRuntimes(com.google.cloud.functions.v2alpha.ListRuntimesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuntimesMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.GetFunctionRequest, + com.google.cloud.functions.v2alpha.Function>( + this, METHODID_GET_FUNCTION))) + .addMethod( + getListFunctionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.ListFunctionsRequest, + com.google.cloud.functions.v2alpha.ListFunctionsResponse>( + this, METHODID_LIST_FUNCTIONS))) + .addMethod( + getCreateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.CreateFunctionRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_FUNCTION))) + .addMethod( + getUpdateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.UpdateFunctionRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_FUNCTION))) + .addMethod( + getDeleteFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.DeleteFunctionRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_FUNCTION))) + .addMethod( + getGenerateUploadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest, + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse>( + this, METHODID_GENERATE_UPLOAD_URL))) + .addMethod( + getGenerateDownloadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse>( + this, METHODID_GENERATE_DOWNLOAD_URL))) + .addMethod( + getListRuntimesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.ListRuntimesRequest, + com.google.cloud.functions.v2alpha.ListRuntimesResponse>( + this, METHODID_LIST_RUNTIMES))) + .build(); + } + } + + /** + *
          +   * Google Cloud Functions is used to deploy functions that are executed by
          +   * Google in response to various events. Data connected with that event is
          +   * passed to a function as the input data.
          +   * A **function** is a resource which describes a function that should be
          +   * executed and how it is triggered.
          +   * 
          + */ + public static final class FunctionServiceStub extends io.grpc.stub.AbstractAsyncStub { + private FunctionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceStub(channel, callOptions); + } + + /** + *
          +     * Returns a function with the given name from the requested project.
          +     * 
          + */ + public void getFunction(com.google.cloud.functions.v2alpha.GetFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
          +     * Returns a list of functions that belong to the requested project.
          +     * 
          + */ + public void listFunctions(com.google.cloud.functions.v2alpha.ListFunctionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
          +     * 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.
          +     * 
          + */ + public void createFunction(com.google.cloud.functions.v2alpha.CreateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
          +     * Updates existing function.
          +     * 
          + */ + public void updateFunction(com.google.cloud.functions.v2alpha.UpdateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
          +     * Deletes a function with the given name from the specified project. If the
          +     * given function is used by some trigger, the trigger will be updated to
          +     * remove this function.
          +     * 
          + */ + public void deleteFunction(com.google.cloud.functions.v2alpha.DeleteFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
          +     * Returns a signed URL for uploading a function source code.
          +     * For more information about the signed URL usage see:
          +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
          +     * Once the function source code upload is complete, the used signed
          +     * URL should be provided in CreateFunction or UpdateFunction request
          +     * as a reference to the function source code.
          +     * When uploading source code to the generated signed URL, please follow
          +     * these restrictions:
          +     * * Source file type should be a zip file.
          +     * * No credentials should be attached - the signed URLs provide access to the
          +     *   target bucket using internal service identity; if credentials were
          +     *   attached, the identity from the credentials would be used, but that
          +     *   identity does not have permissions to upload files to the URL.
          +     * When making a HTTP PUT request, these two headers need to be specified:
          +     * * `content-type: application/zip`
          +     * And this header SHOULD NOT be specified:
          +     * * `Authorization: Bearer YOUR_TOKEN`
          +     * 
          + */ + public void generateUploadUrl(com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
          +     * Returns a signed URL for downloading deployed function source code.
          +     * The URL is only valid for a limited period and should be used within
          +     * 30 minutes of generation.
          +     * For more information about the signed URL usage see:
          +     * https://cloud.google.com/storage/docs/access-control/signed-urls
          +     * 
          + */ + public void generateDownloadUrl(com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
          +     * Returns a list of runtimes that are supported for the requested project.
          +     * 
          + */ + public void listRuntimes(com.google.cloud.functions.v2alpha.ListRuntimesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
          +   * Google Cloud Functions is used to deploy functions that are executed by
          +   * Google in response to various events. Data connected with that event is
          +   * passed to a function as the input data.
          +   * A **function** is a resource which describes a function that should be
          +   * executed and how it is triggered.
          +   * 
          + */ + public static final class FunctionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private FunctionServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceBlockingStub(channel, callOptions); + } + + /** + *
          +     * Returns a function with the given name from the requested project.
          +     * 
          + */ + public com.google.cloud.functions.v2alpha.Function getFunction(com.google.cloud.functions.v2alpha.GetFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFunctionMethod(), getCallOptions(), request); + } + + /** + *
          +     * Returns a list of functions that belong to the requested project.
          +     * 
          + */ + public com.google.cloud.functions.v2alpha.ListFunctionsResponse listFunctions(com.google.cloud.functions.v2alpha.ListFunctionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFunctionsMethod(), getCallOptions(), request); + } + + /** + *
          +     * 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.
          +     * 
          + */ + public com.google.longrunning.Operation createFunction(com.google.cloud.functions.v2alpha.CreateFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFunctionMethod(), getCallOptions(), request); + } + + /** + *
          +     * Updates existing function.
          +     * 
          + */ + public com.google.longrunning.Operation updateFunction(com.google.cloud.functions.v2alpha.UpdateFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); + } + + /** + *
          +     * Deletes a function with the given name from the specified project. If the
          +     * given function is used by some trigger, the trigger will be updated to
          +     * remove this function.
          +     * 
          + */ + public com.google.longrunning.Operation deleteFunction(com.google.cloud.functions.v2alpha.DeleteFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); + } + + /** + *
          +     * Returns a signed URL for uploading a function source code.
          +     * For more information about the signed URL usage see:
          +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
          +     * Once the function source code upload is complete, the used signed
          +     * URL should be provided in CreateFunction or UpdateFunction request
          +     * as a reference to the function source code.
          +     * When uploading source code to the generated signed URL, please follow
          +     * these restrictions:
          +     * * Source file type should be a zip file.
          +     * * No credentials should be attached - the signed URLs provide access to the
          +     *   target bucket using internal service identity; if credentials were
          +     *   attached, the identity from the credentials would be used, but that
          +     *   identity does not have permissions to upload files to the URL.
          +     * When making a HTTP PUT request, these two headers need to be specified:
          +     * * `content-type: application/zip`
          +     * And this header SHOULD NOT be specified:
          +     * * `Authorization: Bearer YOUR_TOKEN`
          +     * 
          + */ + public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse generateUploadUrl(com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); + } + + /** + *
          +     * Returns a signed URL for downloading deployed function source code.
          +     * The URL is only valid for a limited period and should be used within
          +     * 30 minutes of generation.
          +     * For more information about the signed URL usage see:
          +     * https://cloud.google.com/storage/docs/access-control/signed-urls
          +     * 
          + */ + public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse generateDownloadUrl(com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); + } + + /** + *
          +     * Returns a list of runtimes that are supported for the requested project.
          +     * 
          + */ + public com.google.cloud.functions.v2alpha.ListRuntimesResponse listRuntimes(com.google.cloud.functions.v2alpha.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRuntimesMethod(), getCallOptions(), request); + } + } + + /** + *
          +   * Google Cloud Functions is used to deploy functions that are executed by
          +   * Google in response to various events. Data connected with that event is
          +   * passed to a function as the input data.
          +   * A **function** is a resource which describes a function that should be
          +   * executed and how it is triggered.
          +   * 
          + */ + public static final class FunctionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private FunctionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceFutureStub(channel, callOptions); + } + + /** + *
          +     * Returns a function with the given name from the requested project.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture getFunction( + com.google.cloud.functions.v2alpha.GetFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request); + } + + /** + *
          +     * Returns a list of functions that belong to the requested project.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture listFunctions( + com.google.cloud.functions.v2alpha.ListFunctionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request); + } + + /** + *
          +     * 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.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture createFunction( + com.google.cloud.functions.v2alpha.CreateFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request); + } + + /** + *
          +     * Updates existing function.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture updateFunction( + com.google.cloud.functions.v2alpha.UpdateFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request); + } + + /** + *
          +     * Deletes a function with the given name from the specified project. If the
          +     * given function is used by some trigger, the trigger will be updated to
          +     * remove this function.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture deleteFunction( + com.google.cloud.functions.v2alpha.DeleteFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request); + } + + /** + *
          +     * Returns a signed URL for uploading a function source code.
          +     * For more information about the signed URL usage see:
          +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
          +     * Once the function source code upload is complete, the used signed
          +     * URL should be provided in CreateFunction or UpdateFunction request
          +     * as a reference to the function source code.
          +     * When uploading source code to the generated signed URL, please follow
          +     * these restrictions:
          +     * * Source file type should be a zip file.
          +     * * No credentials should be attached - the signed URLs provide access to the
          +     *   target bucket using internal service identity; if credentials were
          +     *   attached, the identity from the credentials would be used, but that
          +     *   identity does not have permissions to upload files to the URL.
          +     * When making a HTTP PUT request, these two headers need to be specified:
          +     * * `content-type: application/zip`
          +     * And this header SHOULD NOT be specified:
          +     * * `Authorization: Bearer YOUR_TOKEN`
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture generateUploadUrl( + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request); + } + + /** + *
          +     * Returns a signed URL for downloading deployed function source code.
          +     * The URL is only valid for a limited period and should be used within
          +     * 30 minutes of generation.
          +     * For more information about the signed URL usage see:
          +     * https://cloud.google.com/storage/docs/access-control/signed-urls
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture generateDownloadUrl( + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request); + } + + /** + *
          +     * Returns a list of runtimes that are supported for the requested project.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture listRuntimes( + com.google.cloud.functions.v2alpha.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_FUNCTION = 0; + private static final int METHODID_LIST_FUNCTIONS = 1; + private static final int METHODID_CREATE_FUNCTION = 2; + private static final int METHODID_UPDATE_FUNCTION = 3; + private static final int METHODID_DELETE_FUNCTION = 4; + private static final int METHODID_GENERATE_UPLOAD_URL = 5; + private static final int METHODID_GENERATE_DOWNLOAD_URL = 6; + private static final int METHODID_LIST_RUNTIMES = 7; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final FunctionServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(FunctionServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_FUNCTION: + serviceImpl.getFunction((com.google.cloud.functions.v2alpha.GetFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FUNCTIONS: + serviceImpl.listFunctions((com.google.cloud.functions.v2alpha.ListFunctionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FUNCTION: + serviceImpl.createFunction((com.google.cloud.functions.v2alpha.CreateFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FUNCTION: + serviceImpl.updateFunction((com.google.cloud.functions.v2alpha.UpdateFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FUNCTION: + serviceImpl.deleteFunction((com.google.cloud.functions.v2alpha.DeleteFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_UPLOAD_URL: + serviceImpl.generateUploadUrl((com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_DOWNLOAD_URL: + serviceImpl.generateDownloadUrl((com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RUNTIMES: + serviceImpl.listRuntimes((com.google.cloud.functions.v2alpha.ListRuntimesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class FunctionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + FunctionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("FunctionService"); + } + } + + private static final class FunctionServiceFileDescriptorSupplier + extends FunctionServiceBaseDescriptorSupplier { + FunctionServiceFileDescriptorSupplier() {} + } + + private static final class FunctionServiceMethodDescriptorSupplier + extends FunctionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + FunctionServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (FunctionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new FunctionServiceFileDescriptorSupplier()) + .addMethod(getGetFunctionMethod()) + .addMethod(getListFunctionsMethod()) + .addMethod(getCreateFunctionMethod()) + .addMethod(getUpdateFunctionMethod()) + .addMethod(getDeleteFunctionMethod()) + .addMethod(getGenerateUploadUrlMethod()) + .addMethod(getGenerateDownloadUrlMethod()) + .addMethod(getListRuntimesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java similarity index 70% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java index cc229f07..917eec77 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java @@ -1,26 +1,9 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Describes the Build step of the function that builds a container from the
            * given source.
          @@ -28,16 +11,15 @@
            *
            * Protobuf type {@code google.cloud.functions.v2alpha.BuildConfig}
            */
          -public final class BuildConfig extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class BuildConfig extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.BuildConfig)
               BuildConfigOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use BuildConfig.newBuilder() to construct.
             private BuildConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private BuildConfig() {
               build_ = "";
               runtime_ = "";
          @@ -48,15 +30,16 @@ private BuildConfig() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new BuildConfig();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet
          +  getUnknownFields() {
               return this.unknownFields;
             }
          -
             private BuildConfig(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -76,99 +59,82 @@ private BuildConfig(
                     case 0:
                       done = true;
                       break;
          -          case 10:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +          case 10: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              build_ = s;
          -              break;
          -            }
          -          case 18:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            build_ = s;
          +            break;
          +          }
          +          case 18: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              runtime_ = s;
          -              break;
          -            }
          -          case 26:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            runtime_ = s;
          +            break;
          +          }
          +          case 26: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              entryPoint_ = s;
          -              break;
          +            entryPoint_ = s;
          +            break;
          +          }
          +          case 34: {
          +            com.google.cloud.functions.v2alpha.Source.Builder subBuilder = null;
          +            if (source_ != null) {
          +              subBuilder = source_.toBuilder();
                       }
          -          case 34:
          -            {
          -              com.google.cloud.functions.v2alpha.Source.Builder subBuilder = null;
          -              if (source_ != null) {
          -                subBuilder = source_.toBuilder();
          -              }
          -              source_ =
          -                  input.readMessage(
          -                      com.google.cloud.functions.v2alpha.Source.parser(), extensionRegistry);
          -              if (subBuilder != null) {
          -                subBuilder.mergeFrom(source_);
          -                source_ = subBuilder.buildPartial();
          -              }
          -
          -              break;
          +            source_ = input.readMessage(com.google.cloud.functions.v2alpha.Source.parser(), extensionRegistry);
          +            if (subBuilder != null) {
          +              subBuilder.mergeFrom(source_);
          +              source_ = subBuilder.buildPartial();
                       }
          -          case 42:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
           
          -              workerPool_ = s;
          -              break;
          -            }
          -          case 50:
          -            {
          -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          -                environmentVariables_ =
          -                    com.google.protobuf.MapField.newMapField(
          -                        EnvironmentVariablesDefaultEntryHolder.defaultEntry);
          -                mutable_bitField0_ |= 0x00000001;
          -              }
          -              com.google.protobuf.MapEntry
          -                  environmentVariables__ =
          -                      input.readMessage(
          -                          EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
          -                          extensionRegistry);
          -              environmentVariables_
          -                  .getMutableMap()
          -                  .put(environmentVariables__.getKey(), environmentVariables__.getValue());
          -              break;
          +            break;
          +          }
          +          case 42: {
          +            java.lang.String s = input.readStringRequireUtf8();
          +
          +            workerPool_ = s;
          +            break;
          +          }
          +          case 50: {
          +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          +              environmentVariables_ = com.google.protobuf.MapField.newMapField(
          +                  EnvironmentVariablesDefaultEntryHolder.defaultEntry);
          +              mutable_bitField0_ |= 0x00000001;
                       }
          -          case 58:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            com.google.protobuf.MapEntry
          +            environmentVariables__ = input.readMessage(
          +                EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
          +            environmentVariables_.getMutableMap().put(
          +                environmentVariables__.getKey(), environmentVariables__.getValue());
          +            break;
          +          }
          +          case 58: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              dockerRepository_ = s;
          -              break;
          +            dockerRepository_ = s;
          +            break;
          +          }
          +          case 66: {
          +            com.google.cloud.functions.v2alpha.SourceProvenance.Builder subBuilder = null;
          +            if (sourceProvenance_ != null) {
          +              subBuilder = sourceProvenance_.toBuilder();
                       }
          -          case 66:
          -            {
          -              com.google.cloud.functions.v2alpha.SourceProvenance.Builder subBuilder = null;
          -              if (sourceProvenance_ != null) {
          -                subBuilder = sourceProvenance_.toBuilder();
          -              }
          -              sourceProvenance_ =
          -                  input.readMessage(
          -                      com.google.cloud.functions.v2alpha.SourceProvenance.parser(),
          -                      extensionRegistry);
          -              if (subBuilder != null) {
          -                subBuilder.mergeFrom(sourceProvenance_);
          -                sourceProvenance_ = subBuilder.buildPartial();
          -              }
          -
          -              break;
          +            sourceProvenance_ = input.readMessage(com.google.cloud.functions.v2alpha.SourceProvenance.parser(), extensionRegistry);
          +            if (subBuilder != null) {
          +              subBuilder.mergeFrom(sourceProvenance_);
          +              sourceProvenance_ = subBuilder.buildPartial();
                       }
          -          default:
          -            {
          -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          -                done = true;
          -              }
          -              break;
          +
          +            break;
          +          }
          +          default: {
          +            if (!parseUnknownField(
          +                input, unknownFields, extensionRegistry, tag)) {
          +              done = true;
                       }
          +            break;
          +          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -176,53 +142,47 @@ private BuildConfig(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(
          +          e).setUnfinishedMessage(this);
               } finally {
                 this.unknownFields = unknownFields.build();
                 makeExtensionsImmutable();
               }
             }
          -
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor;
             }
           
             @SuppressWarnings({"rawtypes"})
             @java.lang.Override
          -  protected com.google.protobuf.MapField internalGetMapField(int number) {
          +  protected com.google.protobuf.MapField internalGetMapField(
          +      int number) {
               switch (number) {
                 case 6:
                   return internalGetEnvironmentVariables();
                 default:
          -        throw new RuntimeException("Invalid map field number: " + number);
          +        throw new RuntimeException(
          +            "Invalid map field number: " + number);
               }
             }
          -
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.functions.v2alpha.BuildConfig.class,
          -            com.google.cloud.functions.v2alpha.BuildConfig.Builder.class);
          +            com.google.cloud.functions.v2alpha.BuildConfig.class, com.google.cloud.functions.v2alpha.BuildConfig.Builder.class);
             }
           
             public static final int BUILD_FIELD_NUMBER = 1;
             private volatile java.lang.Object build_;
             /**
          -   *
          -   *
              * 
              * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The build. */ @java.lang.Override @@ -231,32 +191,30 @@ public java.lang.String getBuild() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; } } /** - * - * *
              * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for build. */ @java.lang.Override - public com.google.protobuf.ByteString getBuildBytes() { + public com.google.protobuf.ByteString + getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); build_ = b; return b; } else { @@ -267,8 +225,6 @@ public com.google.protobuf.ByteString getBuildBytes() { public static final int RUNTIME_FIELD_NUMBER = 2; private volatile java.lang.Object runtime_; /** - * - * *
              * The runtime in which to run the function. Required when deploying a new
              * function, optional when updating an existing function. For a complete
          @@ -278,7 +234,6 @@ public com.google.protobuf.ByteString getBuildBytes() {
              * 
          * * string runtime = 2; - * * @return The runtime. */ @java.lang.Override @@ -287,15 +242,14 @@ public java.lang.String getRuntime() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; } } /** - * - * *
              * The runtime in which to run the function. Required when deploying a new
              * function, optional when updating an existing function. For a complete
          @@ -305,15 +259,16 @@ public java.lang.String getRuntime() {
              * 
          * * string runtime = 2; - * * @return The bytes for runtime. */ @java.lang.Override - public com.google.protobuf.ByteString getRuntimeBytes() { + public com.google.protobuf.ByteString + getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); runtime_ = b; return b; } else { @@ -324,8 +279,6 @@ public com.google.protobuf.ByteString getRuntimeBytes() { public static final int ENTRY_POINT_FIELD_NUMBER = 3; private volatile java.lang.Object entryPoint_; /** - * - * *
              * The name of the function (as defined in source code) that will be
              * executed. Defaults to the resource name suffix, if not specified. For
          @@ -336,7 +289,6 @@ public com.google.protobuf.ByteString getRuntimeBytes() {
              * 
          * * string entry_point = 3; - * * @return The entryPoint. */ @java.lang.Override @@ -345,15 +297,14 @@ public java.lang.String getEntryPoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; } } /** - * - * *
              * The name of the function (as defined in source code) that will be
              * executed. Defaults to the resource name suffix, if not specified. For
          @@ -364,15 +315,16 @@ public java.lang.String getEntryPoint() {
              * 
          * * string entry_point = 3; - * * @return The bytes for entryPoint. */ @java.lang.Override - public com.google.protobuf.ByteString getEntryPointBytes() { + public com.google.protobuf.ByteString + getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -383,14 +335,11 @@ public com.google.protobuf.ByteString getEntryPointBytes() { public static final int SOURCE_FIELD_NUMBER = 4; private com.google.cloud.functions.v2alpha.Source source_; /** - * - * *
              * The location of the function source code.
              * 
          * * .google.cloud.functions.v2alpha.Source source = 4; - * * @return Whether the source field is set. */ @java.lang.Override @@ -398,25 +347,18 @@ public boolean hasSource() { return source_ != null; } /** - * - * *
              * The location of the function source code.
              * 
          * * .google.cloud.functions.v2alpha.Source source = 4; - * * @return The source. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Source getSource() { - return source_ == null - ? com.google.cloud.functions.v2alpha.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.functions.v2alpha.Source.getDefaultInstance() : source_; } /** - * - * *
              * The location of the function source code.
              * 
          @@ -431,16 +373,11 @@ public com.google.cloud.functions.v2alpha.SourceOrBuilder getSourceOrBuilder() { public static final int SOURCE_PROVENANCE_FIELD_NUMBER = 8; private com.google.cloud.functions.v2alpha.SourceProvenance sourceProvenance_; /** - * - * *
              * Output only. A permanent fixed identifier for source.
              * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sourceProvenance field is set. */ @java.lang.Override @@ -448,46 +385,32 @@ public boolean hasSourceProvenance() { return sourceProvenance_ != null; } /** - * - * *
              * Output only. A permanent fixed identifier for source.
              * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceProvenance. */ @java.lang.Override public com.google.cloud.functions.v2alpha.SourceProvenance getSourceProvenance() { - return sourceProvenance_ == null - ? com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance() - : sourceProvenance_; + return sourceProvenance_ == null ? com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance() : sourceProvenance_; } /** - * - * *
              * Output only. A permanent fixed identifier for source.
              * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder - getSourceProvenanceOrBuilder() { + public com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { return getSourceProvenance(); } public static final int WORKER_POOL_FIELD_NUMBER = 5; private volatile java.lang.Object workerPool_; /** - * - * *
              * Name of the Cloud Build Custom Worker Pool that should be used to build the
              * function. The format of this field is
          @@ -503,7 +426,6 @@ public com.google.cloud.functions.v2alpha.SourceProvenance getSourceProvenance()
              * 
          * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return The workerPool. */ @java.lang.Override @@ -512,15 +434,14 @@ public java.lang.String getWorkerPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerPool_ = s; return s; } } /** - * - * *
              * Name of the Cloud Build Custom Worker Pool that should be used to build the
              * function. The format of this field is
          @@ -536,15 +457,16 @@ public java.lang.String getWorkerPool() {
              * 
          * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for workerPool. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkerPoolBytes() { + public com.google.protobuf.ByteString + getWorkerPoolBytes() { java.lang.Object ref = workerPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workerPool_ = b; return b; } else { @@ -553,22 +475,21 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() { } public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 6; - private static final class EnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField environmentVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -580,30 +501,28 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** - * - * *
              * User-provided build-time environment variables for the function
              * 
          * * map<string, string> environment_variables = 6; */ + @java.lang.Override - public boolean containsEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** - * - * *
              * User-provided build-time environment variables for the function
              * 
          @@ -611,12 +530,11 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override + public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** - * - * *
              * User-provided build-time environment variables for the function
              * 
          @@ -624,18 +542,16 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override + public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
              * User-provided build-time environment variables for the function
              * 
          @@ -643,10 +559,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -658,8 +574,6 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { public static final int DOCKER_REPOSITORY_FIELD_NUMBER = 7; private volatile 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
          @@ -673,10 +587,7 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) {
              * Repository format must be 'DOCKER'.
              * 
          * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The dockerRepository. */ @java.lang.Override @@ -685,15 +596,14 @@ public java.lang.String getDockerRepository() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; } } /** - * - * *
              * Optional. User managed repository created in Artifact Registry optionally with a
              * customer managed encryption key. This is the repository to which the
          @@ -707,18 +617,17 @@ public java.lang.String getDockerRepository() {
              * Repository format must be 'DOCKER'.
              * 
          * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for dockerRepository. */ @java.lang.Override - public com.google.protobuf.ByteString getDockerRepositoryBytes() { + public com.google.protobuf.ByteString + getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -727,7 +636,6 @@ public com.google.protobuf.ByteString getDockerRepositoryBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -739,7 +647,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(build_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, build_); } @@ -755,7 +664,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workerPool_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -785,26 +695,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entryPoint_); } if (source_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workerPool_); } - for (java.util.Map.Entry entry : - internalGetEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry environmentVariables__ = - EnvironmentVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, environmentVariables__); + for (java.util.Map.Entry entry + : internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, environmentVariables__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dockerRepository_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, dockerRepository_); } if (sourceProvenance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSourceProvenance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSourceProvenance()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -814,29 +726,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.BuildConfig)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.BuildConfig other = - (com.google.cloud.functions.v2alpha.BuildConfig) obj; + com.google.cloud.functions.v2alpha.BuildConfig other = (com.google.cloud.functions.v2alpha.BuildConfig) obj; - if (!getBuild().equals(other.getBuild())) return false; - if (!getRuntime().equals(other.getRuntime())) return false; - if (!getEntryPoint().equals(other.getEntryPoint())) return false; + if (!getBuild() + .equals(other.getBuild())) return false; + if (!getRuntime() + .equals(other.getRuntime())) return false; + if (!getEntryPoint() + .equals(other.getEntryPoint())) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource().equals(other.getSource())) return false; + if (!getSource() + .equals(other.getSource())) return false; } if (hasSourceProvenance() != other.hasSourceProvenance()) return false; if (hasSourceProvenance()) { - if (!getSourceProvenance().equals(other.getSourceProvenance())) return false; - } - if (!getWorkerPool().equals(other.getWorkerPool())) return false; - if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) - return false; - if (!getDockerRepository().equals(other.getDockerRepository())) return false; + if (!getSourceProvenance() + .equals(other.getSourceProvenance())) return false; + } + if (!getWorkerPool() + .equals(other.getWorkerPool())) return false; + if (!internalGetEnvironmentVariables().equals( + other.internalGetEnvironmentVariables())) return false; + if (!getDockerRepository() + .equals(other.getDockerRepository())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -875,104 +793,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.BuildConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.BuildConfig 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.v2alpha.BuildConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.BuildConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.BuildConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.BuildConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.BuildConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Describes the Build step of the function that builds a container from the
              * given source.
          @@ -980,43 +891,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.cloud.functions.v2alpha.BuildConfig}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.BuildConfig)
                 com.google.cloud.functions.v2alpha.BuildConfigOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor;
               }
           
               @SuppressWarnings({"rawtypes"})
          -    protected com.google.protobuf.MapField internalGetMapField(int number) {
          +    protected com.google.protobuf.MapField internalGetMapField(
          +        int number) {
                 switch (number) {
                   case 6:
                     return internalGetEnvironmentVariables();
                   default:
          -          throw new RuntimeException("Invalid map field number: " + number);
          +          throw new RuntimeException(
          +              "Invalid map field number: " + number);
                 }
               }
          -
               @SuppressWarnings({"rawtypes"})
          -    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
          +    protected com.google.protobuf.MapField internalGetMutableMapField(
          +        int number) {
                 switch (number) {
                   case 6:
                     return internalGetMutableEnvironmentVariables();
                   default:
          -          throw new RuntimeException("Invalid map field number: " + number);
          +          throw new RuntimeException(
          +              "Invalid map field number: " + number);
                 }
               }
          -
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.functions.v2alpha.BuildConfig.class,
          -              com.google.cloud.functions.v2alpha.BuildConfig.Builder.class);
          +              com.google.cloud.functions.v2alpha.BuildConfig.class, com.google.cloud.functions.v2alpha.BuildConfig.Builder.class);
               }
           
               // Construct using com.google.cloud.functions.v2alpha.BuildConfig.newBuilder()
          @@ -1024,15 +935,16 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          -
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
          +      if (com.google.protobuf.GeneratedMessageV3
          +              .alwaysUseFieldBuilders) {
          +      }
               }
          -
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1063,9 +975,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor;
               }
           
               @java.lang.Override
          @@ -1084,8 +996,7 @@ public com.google.cloud.functions.v2alpha.BuildConfig build() {
           
               @java.lang.Override
               public com.google.cloud.functions.v2alpha.BuildConfig buildPartial() {
          -      com.google.cloud.functions.v2alpha.BuildConfig result =
          -          new com.google.cloud.functions.v2alpha.BuildConfig(this);
          +      com.google.cloud.functions.v2alpha.BuildConfig result = new com.google.cloud.functions.v2alpha.BuildConfig(this);
                 int from_bitField0_ = bitField0_;
                 result.build_ = build_;
                 result.runtime_ = runtime_;
          @@ -1112,39 +1023,38 @@ public com.google.cloud.functions.v2alpha.BuildConfig buildPartial() {
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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) {
          -        return mergeFrom((com.google.cloud.functions.v2alpha.BuildConfig) other);
          +        return mergeFrom((com.google.cloud.functions.v2alpha.BuildConfig)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1175,7 +1085,8 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.BuildConfig other) {
                   workerPool_ = other.workerPool_;
                   onChanged();
                 }
          -      internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables());
          +      internalGetMutableEnvironmentVariables().mergeFrom(
          +          other.internalGetEnvironmentVariables());
                 if (!other.getDockerRepository().isEmpty()) {
                   dockerRepository_ = other.dockerRepository_;
                   onChanged();
          @@ -1208,28 +1119,23 @@ public Builder mergeFrom(
                 }
                 return this;
               }
          -
               private int bitField0_;
           
               private java.lang.Object build_ = "";
               /**
          -     *
          -     *
                * 
                * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The build. */ public java.lang.String getBuild() { java.lang.Object ref = build_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; @@ -1238,24 +1144,21 @@ public java.lang.String getBuild() { } } /** - * - * *
                * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for build. */ - public com.google.protobuf.ByteString getBuildBytes() { + public com.google.protobuf.ByteString + getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); build_ = b; return b; } else { @@ -1263,70 +1166,57 @@ public com.google.protobuf.ByteString getBuildBytes() { } } /** - * - * *
                * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The build to set. * @return This builder for chaining. */ - public Builder setBuild(java.lang.String value) { + public Builder setBuild( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + build_ = value; onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBuild() { - + build_ = getDefaultInstance().getBuild(); onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for build to set. * @return This builder for chaining. */ - public Builder setBuildBytes(com.google.protobuf.ByteString value) { + public Builder setBuildBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + build_ = value; onChanged(); return this; @@ -1334,8 +1224,6 @@ public Builder setBuildBytes(com.google.protobuf.ByteString value) { private java.lang.Object runtime_ = ""; /** - * - * *
                * The runtime in which to run the function. Required when deploying a new
                * function, optional when updating an existing function. For a complete
          @@ -1345,13 +1233,13 @@ public Builder setBuildBytes(com.google.protobuf.ByteString value) {
                * 
          * * string runtime = 2; - * * @return The runtime. */ public java.lang.String getRuntime() { java.lang.Object ref = runtime_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; @@ -1360,8 +1248,6 @@ public java.lang.String getRuntime() { } } /** - * - * *
                * The runtime in which to run the function. Required when deploying a new
                * function, optional when updating an existing function. For a complete
          @@ -1371,14 +1257,15 @@ public java.lang.String getRuntime() {
                * 
          * * string runtime = 2; - * * @return The bytes for runtime. */ - public com.google.protobuf.ByteString getRuntimeBytes() { + public com.google.protobuf.ByteString + getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); runtime_ = b; return b; } else { @@ -1386,8 +1273,6 @@ public com.google.protobuf.ByteString getRuntimeBytes() { } } /** - * - * *
                * The runtime in which to run the function. Required when deploying a new
                * function, optional when updating an existing function. For a complete
          @@ -1397,22 +1282,20 @@ public com.google.protobuf.ByteString getRuntimeBytes() {
                * 
          * * string runtime = 2; - * * @param value The runtime to set. * @return This builder for chaining. */ - public Builder setRuntime(java.lang.String value) { + public Builder setRuntime( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + runtime_ = value; onChanged(); return this; } /** - * - * *
                * The runtime in which to run the function. Required when deploying a new
                * function, optional when updating an existing function. For a complete
          @@ -1422,18 +1305,15 @@ public Builder setRuntime(java.lang.String value) {
                * 
          * * string runtime = 2; - * * @return This builder for chaining. */ public Builder clearRuntime() { - + runtime_ = getDefaultInstance().getRuntime(); onChanged(); return this; } /** - * - * *
                * The runtime in which to run the function. Required when deploying a new
                * function, optional when updating an existing function. For a complete
          @@ -1443,16 +1323,16 @@ public Builder clearRuntime() {
                * 
          * * string runtime = 2; - * * @param value The bytes for runtime to set. * @return This builder for chaining. */ - public Builder setRuntimeBytes(com.google.protobuf.ByteString value) { + public Builder setRuntimeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + runtime_ = value; onChanged(); return this; @@ -1460,8 +1340,6 @@ public Builder setRuntimeBytes(com.google.protobuf.ByteString value) { private java.lang.Object entryPoint_ = ""; /** - * - * *
                * The name of the function (as defined in source code) that will be
                * executed. Defaults to the resource name suffix, if not specified. For
          @@ -1472,13 +1350,13 @@ public Builder setRuntimeBytes(com.google.protobuf.ByteString value) {
                * 
          * * string entry_point = 3; - * * @return The entryPoint. */ public java.lang.String getEntryPoint() { java.lang.Object ref = entryPoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; @@ -1487,8 +1365,6 @@ public java.lang.String getEntryPoint() { } } /** - * - * *
                * The name of the function (as defined in source code) that will be
                * executed. Defaults to the resource name suffix, if not specified. For
          @@ -1499,14 +1375,15 @@ public java.lang.String getEntryPoint() {
                * 
          * * string entry_point = 3; - * * @return The bytes for entryPoint. */ - public com.google.protobuf.ByteString getEntryPointBytes() { + public com.google.protobuf.ByteString + getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -1514,8 +1391,6 @@ public com.google.protobuf.ByteString getEntryPointBytes() { } } /** - * - * *
                * The name of the function (as defined in source code) that will be
                * executed. Defaults to the resource name suffix, if not specified. For
          @@ -1526,22 +1401,20 @@ public com.google.protobuf.ByteString getEntryPointBytes() {
                * 
          * * string entry_point = 3; - * * @param value The entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPoint(java.lang.String value) { + public Builder setEntryPoint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entryPoint_ = value; onChanged(); return this; } /** - * - * *
                * The name of the function (as defined in source code) that will be
                * executed. Defaults to the resource name suffix, if not specified. For
          @@ -1552,18 +1425,15 @@ public Builder setEntryPoint(java.lang.String value) {
                * 
          * * string entry_point = 3; - * * @return This builder for chaining. */ public Builder clearEntryPoint() { - + entryPoint_ = getDefaultInstance().getEntryPoint(); onChanged(); return this; } /** - * - * *
                * The name of the function (as defined in source code) that will be
                * executed. Defaults to the resource name suffix, if not specified. For
          @@ -1574,16 +1444,16 @@ public Builder clearEntryPoint() {
                * 
          * * string entry_point = 3; - * * @param value The bytes for entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPointBytes(com.google.protobuf.ByteString value) { + public Builder setEntryPointBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryPoint_ = value; onChanged(); return this; @@ -1591,47 +1461,34 @@ public Builder setEntryPointBytes(com.google.protobuf.ByteString value) { private com.google.cloud.functions.v2alpha.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Source, - com.google.cloud.functions.v2alpha.Source.Builder, - com.google.cloud.functions.v2alpha.SourceOrBuilder> - sourceBuilder_; + com.google.cloud.functions.v2alpha.Source, com.google.cloud.functions.v2alpha.Source.Builder, com.google.cloud.functions.v2alpha.SourceOrBuilder> sourceBuilder_; /** - * - * *
                * The location of the function source code.
                * 
          * * .google.cloud.functions.v2alpha.Source source = 4; - * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** - * - * *
                * The location of the function source code.
                * 
          * * .google.cloud.functions.v2alpha.Source source = 4; - * * @return The source. */ public com.google.cloud.functions.v2alpha.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null - ? com.google.cloud.functions.v2alpha.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.functions.v2alpha.Source.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** - * - * *
                * The location of the function source code.
                * 
          @@ -1652,15 +1509,14 @@ public Builder setSource(com.google.cloud.functions.v2alpha.Source value) { return this; } /** - * - * *
                * The location of the function source code.
                * 
          * * .google.cloud.functions.v2alpha.Source source = 4; */ - public Builder setSource(com.google.cloud.functions.v2alpha.Source.Builder builderForValue) { + public Builder setSource( + com.google.cloud.functions.v2alpha.Source.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -1671,8 +1527,6 @@ public Builder setSource(com.google.cloud.functions.v2alpha.Source.Builder build return this; } /** - * - * *
                * The location of the function source code.
                * 
          @@ -1683,9 +1537,7 @@ public Builder mergeSource(com.google.cloud.functions.v2alpha.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.functions.v2alpha.Source.newBuilder(source_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.functions.v2alpha.Source.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -1697,8 +1549,6 @@ public Builder mergeSource(com.google.cloud.functions.v2alpha.Source value) { return this; } /** - * - * *
                * The location of the function source code.
                * 
          @@ -1717,8 +1567,6 @@ public Builder clearSource() { return this; } /** - * - * *
                * The location of the function source code.
                * 
          @@ -1726,13 +1574,11 @@ public Builder clearSource() { * .google.cloud.functions.v2alpha.Source source = 4; */ public com.google.cloud.functions.v2alpha.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** - * - * *
                * The location of the function source code.
                * 
          @@ -1743,14 +1589,11 @@ public com.google.cloud.functions.v2alpha.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null - ? com.google.cloud.functions.v2alpha.Source.getDefaultInstance() - : source_; + return source_ == null ? + com.google.cloud.functions.v2alpha.Source.getDefaultInstance() : source_; } } /** - * - * *
                * The location of the function source code.
                * 
          @@ -1758,17 +1601,14 @@ public com.google.cloud.functions.v2alpha.SourceOrBuilder getSourceOrBuilder() { * .google.cloud.functions.v2alpha.Source source = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Source, - com.google.cloud.functions.v2alpha.Source.Builder, - com.google.cloud.functions.v2alpha.SourceOrBuilder> + com.google.cloud.functions.v2alpha.Source, com.google.cloud.functions.v2alpha.Source.Builder, com.google.cloud.functions.v2alpha.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Source, - com.google.cloud.functions.v2alpha.Source.Builder, - com.google.cloud.functions.v2alpha.SourceOrBuilder>( - getSource(), getParentForChildren(), isClean()); + sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2alpha.Source, com.google.cloud.functions.v2alpha.Source.Builder, com.google.cloud.functions.v2alpha.SourceOrBuilder>( + getSource(), + getParentForChildren(), + isClean()); source_ = null; } return sourceBuilder_; @@ -1776,58 +1616,39 @@ public com.google.cloud.functions.v2alpha.SourceOrBuilder getSourceOrBuilder() { private com.google.cloud.functions.v2alpha.SourceProvenance sourceProvenance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.SourceProvenance, - com.google.cloud.functions.v2alpha.SourceProvenance.Builder, - com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder> - sourceProvenanceBuilder_; + com.google.cloud.functions.v2alpha.SourceProvenance, com.google.cloud.functions.v2alpha.SourceProvenance.Builder, com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder> sourceProvenanceBuilder_; /** - * - * *
                * Output only. A permanent fixed identifier for source.
                * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sourceProvenance field is set. */ public boolean hasSourceProvenance() { return sourceProvenanceBuilder_ != null || sourceProvenance_ != null; } /** - * - * *
                * Output only. A permanent fixed identifier for source.
                * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceProvenance. */ public com.google.cloud.functions.v2alpha.SourceProvenance getSourceProvenance() { if (sourceProvenanceBuilder_ == null) { - return sourceProvenance_ == null - ? com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance() - : sourceProvenance_; + return sourceProvenance_ == null ? com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance() : sourceProvenance_; } else { return sourceProvenanceBuilder_.getMessage(); } } /** - * - * *
                * Output only. A permanent fixed identifier for source.
                * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSourceProvenance(com.google.cloud.functions.v2alpha.SourceProvenance value) { if (sourceProvenanceBuilder_ == null) { @@ -1843,15 +1664,11 @@ public Builder setSourceProvenance(com.google.cloud.functions.v2alpha.SourceProv return this; } /** - * - * *
                * Output only. A permanent fixed identifier for source.
                * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSourceProvenance( com.google.cloud.functions.v2alpha.SourceProvenance.Builder builderForValue) { @@ -1865,24 +1682,17 @@ public Builder setSourceProvenance( return this; } /** - * - * *
                * Output only. A permanent fixed identifier for source.
                * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeSourceProvenance( - com.google.cloud.functions.v2alpha.SourceProvenance value) { + public Builder mergeSourceProvenance(com.google.cloud.functions.v2alpha.SourceProvenance value) { if (sourceProvenanceBuilder_ == null) { if (sourceProvenance_ != null) { sourceProvenance_ = - com.google.cloud.functions.v2alpha.SourceProvenance.newBuilder(sourceProvenance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.functions.v2alpha.SourceProvenance.newBuilder(sourceProvenance_).mergeFrom(value).buildPartial(); } else { sourceProvenance_ = value; } @@ -1894,15 +1704,11 @@ public Builder mergeSourceProvenance( return this; } /** - * - * *
                * Output only. A permanent fixed identifier for source.
                * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSourceProvenance() { if (sourceProvenanceBuilder_ == null) { @@ -1916,66 +1722,48 @@ public Builder clearSourceProvenance() { return this; } /** - * - * *
                * Output only. A permanent fixed identifier for source.
                * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.functions.v2alpha.SourceProvenance.Builder - getSourceProvenanceBuilder() { - + public com.google.cloud.functions.v2alpha.SourceProvenance.Builder getSourceProvenanceBuilder() { + onChanged(); return getSourceProvenanceFieldBuilder().getBuilder(); } /** - * - * *
                * Output only. A permanent fixed identifier for source.
                * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder - getSourceProvenanceOrBuilder() { + public com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { if (sourceProvenanceBuilder_ != null) { return sourceProvenanceBuilder_.getMessageOrBuilder(); } else { - return sourceProvenance_ == null - ? com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance() - : sourceProvenance_; + return sourceProvenance_ == null ? + com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance() : sourceProvenance_; } } /** - * - * *
                * Output only. A permanent fixed identifier for source.
                * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.SourceProvenance, - com.google.cloud.functions.v2alpha.SourceProvenance.Builder, - com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder> + com.google.cloud.functions.v2alpha.SourceProvenance, com.google.cloud.functions.v2alpha.SourceProvenance.Builder, com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder> getSourceProvenanceFieldBuilder() { if (sourceProvenanceBuilder_ == null) { - sourceProvenanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.SourceProvenance, - com.google.cloud.functions.v2alpha.SourceProvenance.Builder, - com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder>( - getSourceProvenance(), getParentForChildren(), isClean()); + sourceProvenanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2alpha.SourceProvenance, com.google.cloud.functions.v2alpha.SourceProvenance.Builder, com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder>( + getSourceProvenance(), + getParentForChildren(), + isClean()); sourceProvenance_ = null; } return sourceProvenanceBuilder_; @@ -1983,8 +1771,6 @@ public Builder clearSourceProvenance() { private java.lang.Object workerPool_ = ""; /** - * - * *
                * Name of the Cloud Build Custom Worker Pool that should be used to build the
                * function. The format of this field is
          @@ -2000,13 +1786,13 @@ public Builder clearSourceProvenance() {
                * 
          * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return The workerPool. */ public java.lang.String getWorkerPool() { java.lang.Object ref = workerPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerPool_ = s; return s; @@ -2015,8 +1801,6 @@ public java.lang.String getWorkerPool() { } } /** - * - * *
                * Name of the Cloud Build Custom Worker Pool that should be used to build the
                * function. The format of this field is
          @@ -2032,14 +1816,15 @@ public java.lang.String getWorkerPool() {
                * 
          * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for workerPool. */ - public com.google.protobuf.ByteString getWorkerPoolBytes() { + public com.google.protobuf.ByteString + getWorkerPoolBytes() { java.lang.Object ref = workerPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workerPool_ = b; return b; } else { @@ -2047,8 +1832,6 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() { } } /** - * - * *
                * Name of the Cloud Build Custom Worker Pool that should be used to build the
                * function. The format of this field is
          @@ -2064,22 +1847,20 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() {
                * 
          * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @param value The workerPool to set. * @return This builder for chaining. */ - public Builder setWorkerPool(java.lang.String value) { + public Builder setWorkerPool( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workerPool_ = value; onChanged(); return this; } /** - * - * *
                * Name of the Cloud Build Custom Worker Pool that should be used to build the
                * function. The format of this field is
          @@ -2095,18 +1876,15 @@ public Builder setWorkerPool(java.lang.String value) {
                * 
          * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearWorkerPool() { - + workerPool_ = getDefaultInstance().getWorkerPool(); onChanged(); return this; } /** - * - * *
                * Name of the Cloud Build Custom Worker Pool that should be used to build the
                * function. The format of this field is
          @@ -2122,40 +1900,37 @@ public Builder clearWorkerPool() {
                * 
          * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for workerPool to set. * @return This builder for chaining. */ - public Builder setWorkerPoolBytes(com.google.protobuf.ByteString value) { + public Builder setWorkerPoolBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerPool_ = value; onChanged(); return this; } - private com.google.protobuf.MapField environmentVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } - private com.google.protobuf.MapField - internalGetMutableEnvironmentVariables() { - onChanged(); - ; + internalGetMutableEnvironmentVariables() { + onChanged();; if (environmentVariables_ == null) { - environmentVariables_ = - com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); + environmentVariables_ = com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); @@ -2167,30 +1942,28 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** - * - * *
                * User-provided build-time environment variables for the function
                * 
          * * map<string, string> environment_variables = 6; */ + @java.lang.Override - public boolean containsEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** - * - * *
                * User-provided build-time environment variables for the function
                * 
          @@ -2198,12 +1971,11 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override + public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** - * - * *
                * User-provided build-time environment variables for the function
                * 
          @@ -2211,18 +1983,16 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override + public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
                * User-provided build-time environment variables for the function
                * 
          @@ -2230,10 +2000,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -2243,69 +2013,69 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { } public Builder clearEnvironmentVariables() { - internalGetMutableEnvironmentVariables().getMutableMap().clear(); + internalGetMutableEnvironmentVariables().getMutableMap() + .clear(); return this; } /** - * - * *
                * User-provided build-time environment variables for the function
                * 
          * * map<string, string> environment_variables = 6; */ - public Builder removeEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableEnvironmentVariables().getMutableMap().remove(key); + + public Builder removeEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableEnvironmentVariables().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableEnvironmentVariables() { + public java.util.Map + getMutableEnvironmentVariables() { return internalGetMutableEnvironmentVariables().getMutableMap(); } /** - * - * *
                * User-provided build-time environment variables for the function
                * 
          * * map<string, string> environment_variables = 6; */ - public Builder putEnvironmentVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putEnvironmentVariables( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableEnvironmentVariables().getMutableMap().put(key, value); + internalGetMutableEnvironmentVariables().getMutableMap() + .put(key, value); return this; } /** - * - * *
                * User-provided build-time environment variables for the function
                * 
          * * map<string, string> environment_variables = 6; */ + public Builder putAllEnvironmentVariables( java.util.Map values) { - internalGetMutableEnvironmentVariables().getMutableMap().putAll(values); + internalGetMutableEnvironmentVariables().getMutableMap() + .putAll(values); 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
          @@ -2319,16 +2089,14 @@ public Builder putAllEnvironmentVariables(
                * Repository format must be 'DOCKER'.
                * 
          * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The dockerRepository. */ public java.lang.String getDockerRepository() { java.lang.Object ref = dockerRepository_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; @@ -2337,8 +2105,6 @@ 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
          @@ -2352,17 +2118,16 @@ public java.lang.String getDockerRepository() {
                * Repository format must be 'DOCKER'.
                * 
          * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for dockerRepository. */ - public com.google.protobuf.ByteString getDockerRepositoryBytes() { + public com.google.protobuf.ByteString + getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -2370,8 +2135,6 @@ 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
          @@ -2385,25 +2148,21 @@ public com.google.protobuf.ByteString getDockerRepositoryBytes() {
                * Repository format must be 'DOCKER'.
                * 
          * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepository(java.lang.String value) { + public Builder setDockerRepository( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dockerRepository_ = value; onChanged(); return this; } /** - * - * *
                * Optional. User managed repository created in Artifact Registry optionally with a
                * customer managed encryption key. This is the repository to which the
          @@ -2417,21 +2176,16 @@ public Builder setDockerRepository(java.lang.String value) {
                * Repository format must be 'DOCKER'.
                * 
          * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDockerRepository() { - + dockerRepository_ = getDefaultInstance().getDockerRepository(); onChanged(); return this; } /** - * - * *
                * Optional. User managed repository created in Artifact Registry optionally with a
                * customer managed encryption key. This is the repository to which the
          @@ -2445,26 +2199,24 @@ public Builder clearDockerRepository() {
                * Repository format must be 'DOCKER'.
                * 
          * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value) { + public Builder setDockerRepositoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dockerRepository_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2474,12 +2226,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.BuildConfig) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.BuildConfig) private static final com.google.cloud.functions.v2alpha.BuildConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.BuildConfig(); } @@ -2488,16 +2240,16 @@ public static com.google.cloud.functions.v2alpha.BuildConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BuildConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BuildConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuildConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BuildConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2512,4 +2264,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.BuildConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java similarity index 75% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java index 67f27dbc..c5187e41 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface BuildConfigOrBuilder - extends +public interface BuildConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.BuildConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The build. */ java.lang.String getBuild(); /** - * - * *
              * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for build. */ - com.google.protobuf.ByteString getBuildBytes(); + com.google.protobuf.ByteString + getBuildBytes(); /** - * - * *
              * The runtime in which to run the function. Required when deploying a new
              * function, optional when updating an existing function. For a complete
          @@ -66,13 +39,10 @@ public interface BuildConfigOrBuilder
              * 
          * * string runtime = 2; - * * @return The runtime. */ java.lang.String getRuntime(); /** - * - * *
              * The runtime in which to run the function. Required when deploying a new
              * function, optional when updating an existing function. For a complete
          @@ -82,14 +52,12 @@ public interface BuildConfigOrBuilder
              * 
          * * string runtime = 2; - * * @return The bytes for runtime. */ - com.google.protobuf.ByteString getRuntimeBytes(); + com.google.protobuf.ByteString + getRuntimeBytes(); /** - * - * *
              * The name of the function (as defined in source code) that will be
              * executed. Defaults to the resource name suffix, if not specified. For
          @@ -100,13 +68,10 @@ public interface BuildConfigOrBuilder
              * 
          * * string entry_point = 3; - * * @return The entryPoint. */ java.lang.String getEntryPoint(); /** - * - * *
              * The name of the function (as defined in source code) that will be
              * executed. Defaults to the resource name suffix, if not specified. For
          @@ -117,38 +82,30 @@ public interface BuildConfigOrBuilder
              * 
          * * string entry_point = 3; - * * @return The bytes for entryPoint. */ - com.google.protobuf.ByteString getEntryPointBytes(); + com.google.protobuf.ByteString + getEntryPointBytes(); /** - * - * *
              * The location of the function source code.
              * 
          * * .google.cloud.functions.v2alpha.Source source = 4; - * * @return Whether the source field is set. */ boolean hasSource(); /** - * - * *
              * The location of the function source code.
              * 
          * * .google.cloud.functions.v2alpha.Source source = 4; - * * @return The source. */ com.google.cloud.functions.v2alpha.Source getSource(); /** - * - * *
              * The location of the function source code.
              * 
          @@ -158,49 +115,33 @@ public interface BuildConfigOrBuilder com.google.cloud.functions.v2alpha.SourceOrBuilder getSourceOrBuilder(); /** - * - * *
              * Output only. A permanent fixed identifier for source.
              * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sourceProvenance field is set. */ boolean hasSourceProvenance(); /** - * - * *
              * Output only. A permanent fixed identifier for source.
              * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceProvenance. */ com.google.cloud.functions.v2alpha.SourceProvenance getSourceProvenance(); /** - * - * *
              * Output only. A permanent fixed identifier for source.
              * 
          * - * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder(); /** - * - * *
              * Name of the Cloud Build Custom Worker Pool that should be used to build the
              * function. The format of this field is
          @@ -216,13 +157,10 @@ public interface BuildConfigOrBuilder
              * 
          * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return The workerPool. */ java.lang.String getWorkerPool(); /** - * - * *
              * Name of the Cloud Build Custom Worker Pool that should be used to build the
              * function. The format of this field is
          @@ -238,14 +176,12 @@ public interface BuildConfigOrBuilder
              * 
          * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for workerPool. */ - com.google.protobuf.ByteString getWorkerPoolBytes(); + com.google.protobuf.ByteString + getWorkerPoolBytes(); /** - * - * *
              * User-provided build-time environment variables for the function
              * 
          @@ -254,31 +190,30 @@ public interface BuildConfigOrBuilder */ int getEnvironmentVariablesCount(); /** - * - * *
              * User-provided build-time environment variables for the function
              * 
          * * map<string, string> environment_variables = 6; */ - boolean containsEnvironmentVariables(java.lang.String key); - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + boolean containsEnvironmentVariables( + java.lang.String key); + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getEnvironmentVariables(); + java.util.Map + getEnvironmentVariables(); /** - * - * *
              * User-provided build-time environment variables for the function
              * 
          * * map<string, string> environment_variables = 6; */ - java.util.Map getEnvironmentVariablesMap(); + java.util.Map + getEnvironmentVariablesMap(); /** - * - * *
              * User-provided build-time environment variables for the function
              * 
          @@ -287,24 +222,22 @@ public interface BuildConfigOrBuilder */ /* nullable */ - java.lang.String getEnvironmentVariablesOrDefault( +java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
              * User-provided build-time environment variables for the function
              * 
          * * map<string, string> environment_variables = 6; */ - java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key); + + 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
          @@ -318,16 +251,11 @@ java.lang.String getEnvironmentVariablesOrDefault(
              * Repository format must be 'DOCKER'.
              * 
          * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The dockerRepository. */ 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
          @@ -341,11 +269,9 @@ java.lang.String getEnvironmentVariablesOrDefault(
              * Repository format must be 'DOCKER'.
              * 
          * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for dockerRepository. */ - com.google.protobuf.ByteString getDockerRepositoryBytes(); + com.google.protobuf.ByteString + getDockerRepositoryBytes(); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java similarity index 65% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java index 7865a8a7..9e3def53 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java @@ -1,42 +1,24 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Request for the `CreateFunction` method.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.CreateFunctionRequest} */ -public final class CreateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.CreateFunctionRequest) CreateFunctionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFunctionRequest.newBuilder() to construct. private CreateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFunctionRequest() { parent_ = ""; functionId_ = ""; @@ -44,15 +26,16 @@ private CreateFunctionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateFunctionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.functions.v2alpha.Function.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); } - case 18: - { - com.google.cloud.functions.v2alpha.Function.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); - } - function_ = - input.readMessage( - com.google.cloud.functions.v2alpha.Function.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); - } - - break; + function_ = input.readMessage(com.google.cloud.functions.v2alpha.Function.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - functionId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + functionId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,42 +93,35 @@ private CreateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.CreateFunctionRequest.class, - com.google.cloud.functions.v2alpha.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.CreateFunctionRequest.class, com.google.cloud.functions.v2alpha.CreateFunctionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
              * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -159,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
              * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -195,16 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FUNCTION_FIELD_NUMBER = 2; private com.google.cloud.functions.v2alpha.Function function_; /** - * - * *
              * Required. Function to be created.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ @java.lang.Override @@ -212,34 +176,23 @@ public boolean hasFunction() { return function_ != null; } /** - * - * *
              * Required. Function to be created.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Function getFunction() { - return function_ == null - ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() - : function_; + return function_ == null ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() : function_; } /** - * - * *
              * Required. Function to be created.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder() { @@ -249,8 +202,6 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder public static final int FUNCTION_ID_FIELD_NUMBER = 3; private volatile java.lang.Object functionId_; /** - * - * *
              * The ID to use for the function, which will become the final component of
              * the function's resource name.
          @@ -259,7 +210,6 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder
              * 
          * * string function_id = 3; - * * @return The functionId. */ @java.lang.Override @@ -268,15 +218,14 @@ public java.lang.String getFunctionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } } /** - * - * *
              * The ID to use for the function, which will become the final component of
              * the function's resource name.
          @@ -285,15 +234,16 @@ public java.lang.String getFunctionId() {
              * 
          * * string function_id = 3; - * * @return The bytes for functionId. */ @java.lang.Override - public com.google.protobuf.ByteString getFunctionIdBytes() { + public com.google.protobuf.ByteString + getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); functionId_ = b; return b; } else { @@ -302,7 +252,6 @@ public com.google.protobuf.ByteString getFunctionIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -337,7 +287,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (function_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFunction()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFunction()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, functionId_); @@ -350,20 +301,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.CreateFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.CreateFunctionRequest other = - (com.google.cloud.functions.v2alpha.CreateFunctionRequest) obj; + com.google.cloud.functions.v2alpha.CreateFunctionRequest other = (com.google.cloud.functions.v2alpha.CreateFunctionRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasFunction() != other.hasFunction()) return false; if (hasFunction()) { - if (!getFunction().equals(other.getFunction())) return false; + if (!getFunction() + .equals(other.getFunction())) return false; } - if (!getFunctionId().equals(other.getFunctionId())) return false; + if (!getFunctionId() + .equals(other.getFunctionId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -389,127 +342,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.CreateFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.CreateFunctionRequest 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.v2alpha.CreateFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2alpha.CreateFunctionRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2alpha.CreateFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Request for the `CreateFunction` method.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.CreateFunctionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.CreateFunctionRequest) com.google.cloud.functions.v2alpha.CreateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.CreateFunctionRequest.class, - com.google.cloud.functions.v2alpha.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.CreateFunctionRequest.class, com.google.cloud.functions.v2alpha.CreateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.CreateFunctionRequest.newBuilder() @@ -517,15 +460,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; } @java.lang.Override @@ -564,8 +508,7 @@ public com.google.cloud.functions.v2alpha.CreateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.CreateFunctionRequest buildPartial() { - com.google.cloud.functions.v2alpha.CreateFunctionRequest result = - new com.google.cloud.functions.v2alpha.CreateFunctionRequest(this); + com.google.cloud.functions.v2alpha.CreateFunctionRequest result = new com.google.cloud.functions.v2alpha.CreateFunctionRequest(this); result.parent_ = parent_; if (functionBuilder_ == null) { result.function_ = function_; @@ -581,39 +524,38 @@ public com.google.cloud.functions.v2alpha.CreateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.CreateFunctionRequest) other); + return mergeFrom((com.google.cloud.functions.v2alpha.CreateFunctionRequest)other); } else { super.mergeFrom(other); return this; @@ -621,8 +563,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.CreateFunctionRequest other) { - if (other == com.google.cloud.functions.v2alpha.CreateFunctionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.CreateFunctionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -653,8 +594,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.CreateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.CreateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,23 +606,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
                * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -691,24 +627,21 @@ public java.lang.String getParent() { } } /** - * - * *
                * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -716,70 +649,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -787,58 +707,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.functions.v2alpha.Function function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, - com.google.cloud.functions.v2alpha.Function.Builder, - com.google.cloud.functions.v2alpha.FunctionOrBuilder> - functionBuilder_; + com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder> functionBuilder_; /** - * - * *
                * Required. Function to be created.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** - * - * *
                * Required. Function to be created.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ public com.google.cloud.functions.v2alpha.Function getFunction() { if (functionBuilder_ == null) { - return function_ == null - ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() - : function_; + return function_ == null ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() : function_; } else { return functionBuilder_.getMessage(); } } /** - * - * *
                * Required. Function to be created.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFunction(com.google.cloud.functions.v2alpha.Function value) { if (functionBuilder_ == null) { @@ -854,15 +755,11 @@ public Builder setFunction(com.google.cloud.functions.v2alpha.Function value) { return this; } /** - * - * *
                * Required. Function to be created.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFunction( com.google.cloud.functions.v2alpha.Function.Builder builderForValue) { @@ -876,23 +773,17 @@ public Builder setFunction( return this; } /** - * - * *
                * Required. Function to be created.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFunction(com.google.cloud.functions.v2alpha.Function value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v2alpha.Function.newBuilder(function_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.functions.v2alpha.Function.newBuilder(function_).mergeFrom(value).buildPartial(); } else { function_ = value; } @@ -904,15 +795,11 @@ public Builder mergeFunction(com.google.cloud.functions.v2alpha.Function value) return this; } /** - * - * *
                * Required. Function to be created.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -926,64 +813,48 @@ public Builder clearFunction() { return this; } /** - * - * *
                * Required. Function to be created.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.functions.v2alpha.Function.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** - * - * *
                * Required. Function to be created.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null - ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() - : function_; + return function_ == null ? + com.google.cloud.functions.v2alpha.Function.getDefaultInstance() : function_; } } /** - * - * *
                * Required. Function to be created.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, - com.google.cloud.functions.v2alpha.Function.Builder, - com.google.cloud.functions.v2alpha.FunctionOrBuilder> + com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, - com.google.cloud.functions.v2alpha.Function.Builder, - com.google.cloud.functions.v2alpha.FunctionOrBuilder>( - getFunction(), getParentForChildren(), isClean()); + functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder>( + getFunction(), + getParentForChildren(), + isClean()); function_ = null; } return functionBuilder_; @@ -991,8 +862,6 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder private java.lang.Object functionId_ = ""; /** - * - * *
                * The ID to use for the function, which will become the final component of
                * the function's resource name.
          @@ -1001,13 +870,13 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder
                * 
          * * string function_id = 3; - * * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; @@ -1016,8 +885,6 @@ public java.lang.String getFunctionId() { } } /** - * - * *
                * The ID to use for the function, which will become the final component of
                * the function's resource name.
          @@ -1026,14 +893,15 @@ public java.lang.String getFunctionId() {
                * 
          * * string function_id = 3; - * * @return The bytes for functionId. */ - public com.google.protobuf.ByteString getFunctionIdBytes() { + public com.google.protobuf.ByteString + getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); functionId_ = b; return b; } else { @@ -1041,8 +909,6 @@ 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.
          @@ -1051,22 +917,20 @@ public com.google.protobuf.ByteString getFunctionIdBytes() {
                * 
          * * string function_id = 3; - * * @param value The functionId to set. * @return This builder for chaining. */ - public Builder setFunctionId(java.lang.String value) { + public Builder setFunctionId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + functionId_ = value; onChanged(); return this; } /** - * - * *
                * The ID to use for the function, which will become the final component of
                * the function's resource name.
          @@ -1075,18 +939,15 @@ public Builder setFunctionId(java.lang.String value) {
                * 
          * * string function_id = 3; - * * @return This builder for chaining. */ public Builder clearFunctionId() { - + functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** - * - * *
                * The ID to use for the function, which will become the final component of
                * the function's resource name.
          @@ -1095,23 +956,23 @@ public Builder clearFunctionId() {
                * 
          * * string function_id = 3; - * * @param value The bytes for functionId to set. * @return This builder for chaining. */ - public Builder setFunctionIdBytes(com.google.protobuf.ByteString value) { + public Builder setFunctionIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + functionId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,12 +982,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.CreateFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.CreateFunctionRequest) private static final com.google.cloud.functions.v2alpha.CreateFunctionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.CreateFunctionRequest(); } @@ -1135,16 +996,16 @@ public static com.google.cloud.functions.v2alpha.CreateFunctionRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1159,4 +1020,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.CreateFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java index 44bd88c4..8acde70d 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface CreateFunctionRequestOrBuilder - extends +public interface CreateFunctionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.CreateFunctionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
              * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
              * Required. Function to be created.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ boolean hasFunction(); /** - * - * *
              * Required. Function to be created.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ com.google.cloud.functions.v2alpha.Function getFunction(); /** - * - * *
              * Required. Function to be created.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ 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.
          @@ -106,13 +65,10 @@ public interface CreateFunctionRequestOrBuilder
              * 
          * * string function_id = 3; - * * @return The functionId. */ java.lang.String getFunctionId(); /** - * - * *
              * The ID to use for the function, which will become the final component of
              * the function's resource name.
          @@ -121,8 +77,8 @@ public interface CreateFunctionRequestOrBuilder
              * 
          * * string function_id = 3; - * * @return The bytes for functionId. */ - com.google.protobuf.ByteString getFunctionIdBytes(); + com.google.protobuf.ByteString + getFunctionIdBytes(); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java similarity index 64% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java index 4bd8cd10..e0d5eb72 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java @@ -1,57 +1,40 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Request for the `DeleteFunction` method.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.DeleteFunctionRequest} */ -public final class DeleteFunctionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.DeleteFunctionRequest) DeleteFunctionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteFunctionRequest.newBuilder() to construct. private DeleteFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteFunctionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private DeleteFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.DeleteFunctionRequest.class, - com.google.cloud.functions.v2alpha.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.DeleteFunctionRequest.class, com.google.cloud.functions.v2alpha.DeleteFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
              * Required. The name of the function which should be deleted.
              * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
              * Required. The name of the function which should be deleted.
              * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.DeleteFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.DeleteFunctionRequest other = - (com.google.cloud.functions.v2alpha.DeleteFunctionRequest) obj; + com.google.cloud.functions.v2alpha.DeleteFunctionRequest other = (com.google.cloud.functions.v2alpha.DeleteFunctionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.DeleteFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest 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.v2alpha.DeleteFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2alpha.DeleteFunctionRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2alpha.DeleteFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Request for the `DeleteFunction` method.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.DeleteFunctionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.DeleteFunctionRequest) com.google.cloud.functions.v2alpha.DeleteFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.DeleteFunctionRequest.class, - com.google.cloud.functions.v2alpha.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.DeleteFunctionRequest.class, com.google.cloud.functions.v2alpha.DeleteFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.DeleteFunctionRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.functions.v2alpha.DeleteFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.DeleteFunctionRequest buildPartial() { - com.google.cloud.functions.v2alpha.DeleteFunctionRequest result = - new com.google.cloud.functions.v2alpha.DeleteFunctionRequest(this); + com.google.cloud.functions.v2alpha.DeleteFunctionRequest result = new com.google.cloud.functions.v2alpha.DeleteFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.functions.v2alpha.DeleteFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.DeleteFunctionRequest) other); + return mergeFrom((com.google.cloud.functions.v2alpha.DeleteFunctionRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.DeleteFunctionRequest other) { - if (other == com.google.cloud.functions.v2alpha.DeleteFunctionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.DeleteFunctionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.DeleteFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.DeleteFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
                * Required. The name of the function which should be deleted.
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
                * Required. The name of the function which should be deleted.
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -535,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                * Required. The name of the function which should be deleted.
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
                * Required. The name of the function which should be deleted.
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
                * Required. The name of the function which should be deleted.
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.DeleteFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.DeleteFunctionRequest) private static final com.google.cloud.functions.v2alpha.DeleteFunctionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.DeleteFunctionRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.DeleteFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java new file mode 100644 index 00000000..278f1f9d --- /dev/null +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2alpha/functions.proto + +package com.google.cloud.functions.v2alpha; + +public interface DeleteFunctionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.DeleteFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +   * Required. The name of the function which should be deleted.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
          +   * Required. The name of the function which should be deleted.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Environment.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Environment.java similarity index 65% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Environment.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Environment.java index 289502af..08641799 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Environment.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Environment.java @@ -1,36 +1,18 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * The environment the function is hosted on.
            * 
          * * Protobuf enum {@code google.cloud.functions.v2alpha.Environment} */ -public enum Environment implements com.google.protobuf.ProtocolMessageEnum { +public enum Environment + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
              * Unspecified
              * 
          @@ -39,8 +21,6 @@ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { */ ENVIRONMENT_UNSPECIFIED(0), /** - * - * *
              * Gen 1
              * 
          @@ -49,8 +29,6 @@ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { */ GEN_1(1), /** - * - * *
              * Gen 2
              * 
          @@ -62,8 +40,6 @@ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
              * Unspecified
              * 
          @@ -72,8 +48,6 @@ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENVIRONMENT_UNSPECIFIED_VALUE = 0; /** - * - * *
              * Gen 1
              * 
          @@ -82,8 +56,6 @@ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GEN_1_VALUE = 1; /** - * - * *
              * Gen 2
              * 
          @@ -92,6 +64,7 @@ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GEN_2_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,49 +89,49 @@ public static Environment valueOf(int value) { */ public static Environment forNumber(int value) { switch (value) { - case 0: - return ENVIRONMENT_UNSPECIFIED; - case 1: - return GEN_1; - case 2: - return GEN_2; - default: - return null; + case 0: return ENVIRONMENT_UNSPECIFIED; + case 1: return GEN_1; + case 2: return GEN_2; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 Environment findValueByNumber(int number) { - return Environment.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Environment> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Environment findValueByNumber(int number) { + return Environment.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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto.getDescriptor().getEnumTypes().get(0); } private static final Environment[] VALUES = values(); - public static Environment valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Environment valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -174,3 +147,4 @@ private Environment(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2alpha.Environment) } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java similarity index 72% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java index d148dbc7..b9dd0205 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java @@ -1,42 +1,24 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Filters events based on exact matches on the CloudEvents attributes.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.EventFilter} */ -public final class EventFilter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EventFilter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.EventFilter) EventFilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EventFilter.newBuilder() to construct. private EventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EventFilter() { attribute_ = ""; value_ = ""; @@ -45,15 +27,16 @@ private EventFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EventFilter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EventFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,31 @@ private EventFilter( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - attribute_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + attribute_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + value_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - operator_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + operator_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,39 +87,34 @@ private EventFilter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.EventFilter.class, - com.google.cloud.functions.v2alpha.EventFilter.Builder.class); + com.google.cloud.functions.v2alpha.EventFilter.class, com.google.cloud.functions.v2alpha.EventFilter.Builder.class); } public static final int ATTRIBUTE_FIELD_NUMBER = 1; private volatile java.lang.Object attribute_; /** - * - * *
              * Required. The name of a CloudEvents attribute.
              * 
          * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attribute. */ @java.lang.Override @@ -148,29 +123,29 @@ public java.lang.String getAttribute() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; } } /** - * - * *
              * Required. The name of a CloudEvents attribute.
              * 
          * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attribute. */ @java.lang.Override - public com.google.protobuf.ByteString getAttributeBytes() { + public com.google.protobuf.ByteString + getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attribute_ = b; return b; } else { @@ -181,14 +156,11 @@ public com.google.protobuf.ByteString getAttributeBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
              * Required. The value for the attribute.
              * 
          * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ @java.lang.Override @@ -197,29 +169,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
              * Required. The value for the attribute.
              * 
          * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -230,8 +202,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int OPERATOR_FIELD_NUMBER = 3; private volatile java.lang.Object operator_; /** - * - * *
              * Optional. The operator used for matching the events with the value of the
              * filter. If not specified, only events that have an exact key-value pair
          @@ -240,7 +210,6 @@ public com.google.protobuf.ByteString getValueBytes() {
              * 
          * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The operator. */ @java.lang.Override @@ -249,15 +218,14 @@ public java.lang.String getOperator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operator_ = s; return s; } } /** - * - * *
              * Optional. The operator used for matching the events with the value of the
              * filter. If not specified, only events that have an exact key-value pair
          @@ -266,15 +234,16 @@ public java.lang.String getOperator() {
              * 
          * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for operator. */ @java.lang.Override - public com.google.protobuf.ByteString getOperatorBytes() { + public com.google.protobuf.ByteString + getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operator_ = b; return b; } else { @@ -283,7 +252,6 @@ public com.google.protobuf.ByteString getOperatorBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -295,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attribute_); } @@ -331,17 +300,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.EventFilter)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.EventFilter other = - (com.google.cloud.functions.v2alpha.EventFilter) obj; + com.google.cloud.functions.v2alpha.EventFilter other = (com.google.cloud.functions.v2alpha.EventFilter) obj; - if (!getAttribute().equals(other.getAttribute())) return false; - if (!getValue().equals(other.getValue())) return false; - if (!getOperator().equals(other.getOperator())) return false; + if (!getAttribute() + .equals(other.getAttribute())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!getOperator() + .equals(other.getOperator())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -364,127 +335,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.EventFilter parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.EventFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.EventFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.EventFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.EventFilter 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.v2alpha.EventFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.EventFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.EventFilter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.EventFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.EventFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.EventFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.EventFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.EventFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.EventFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.EventFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Filters events based on exact matches on the CloudEvents attributes.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.EventFilter} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.EventFilter) com.google.cloud.functions.v2alpha.EventFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.EventFilter.class, - com.google.cloud.functions.v2alpha.EventFilter.Builder.class); + com.google.cloud.functions.v2alpha.EventFilter.class, com.google.cloud.functions.v2alpha.EventFilter.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.EventFilter.newBuilder() @@ -492,15 +454,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -514,9 +477,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; } @java.lang.Override @@ -535,8 +498,7 @@ public com.google.cloud.functions.v2alpha.EventFilter build() { @java.lang.Override public com.google.cloud.functions.v2alpha.EventFilter buildPartial() { - com.google.cloud.functions.v2alpha.EventFilter result = - new com.google.cloud.functions.v2alpha.EventFilter(this); + com.google.cloud.functions.v2alpha.EventFilter result = new com.google.cloud.functions.v2alpha.EventFilter(this); result.attribute_ = attribute_; result.value_ = value_; result.operator_ = operator_; @@ -548,39 +510,38 @@ public com.google.cloud.functions.v2alpha.EventFilter buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.EventFilter) other); + return mergeFrom((com.google.cloud.functions.v2alpha.EventFilter)other); } else { super.mergeFrom(other); return this; @@ -632,20 +593,18 @@ public Builder mergeFrom( private java.lang.Object attribute_ = ""; /** - * - * *
                * Required. The name of a CloudEvents attribute.
                * 
          * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attribute. */ public java.lang.String getAttribute() { java.lang.Object ref = attribute_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; @@ -654,21 +613,20 @@ public java.lang.String getAttribute() { } } /** - * - * *
                * Required. The name of a CloudEvents attribute.
                * 
          * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attribute. */ - public com.google.protobuf.ByteString getAttributeBytes() { + public com.google.protobuf.ByteString + getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attribute_ = b; return b; } else { @@ -676,61 +634,54 @@ public com.google.protobuf.ByteString getAttributeBytes() { } } /** - * - * *
                * Required. The name of a CloudEvents attribute.
                * 
          * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The attribute to set. * @return This builder for chaining. */ - public Builder setAttribute(java.lang.String value) { + public Builder setAttribute( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attribute_ = value; onChanged(); return this; } /** - * - * *
                * Required. The name of a CloudEvents attribute.
                * 
          * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAttribute() { - + attribute_ = getDefaultInstance().getAttribute(); onChanged(); return this; } /** - * - * *
                * Required. The name of a CloudEvents attribute.
                * 
          * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for attribute to set. * @return This builder for chaining. */ - public Builder setAttributeBytes(com.google.protobuf.ByteString value) { + public Builder setAttributeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attribute_ = value; onChanged(); return this; @@ -738,20 +689,18 @@ public Builder setAttributeBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
                * Required. The value for the attribute.
                * 
          * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -760,21 +709,20 @@ public java.lang.String getValue() { } } /** - * - * *
                * Required. The value for the attribute.
                * 
          * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -782,61 +730,54 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
                * Required. The value for the attribute.
                * 
          * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
                * Required. The value for the attribute.
                * 
          * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
                * Required. The value for the attribute.
                * 
          * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; @@ -844,8 +785,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { private java.lang.Object operator_ = ""; /** - * - * *
                * Optional. The operator used for matching the events with the value of the
                * filter. If not specified, only events that have an exact key-value pair
          @@ -854,13 +793,13 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
                * 
          * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The operator. */ public java.lang.String getOperator() { java.lang.Object ref = operator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operator_ = s; return s; @@ -869,8 +808,6 @@ public java.lang.String getOperator() { } } /** - * - * *
                * Optional. The operator used for matching the events with the value of the
                * filter. If not specified, only events that have an exact key-value pair
          @@ -879,14 +816,15 @@ public java.lang.String getOperator() {
                * 
          * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for operator. */ - public com.google.protobuf.ByteString getOperatorBytes() { + public com.google.protobuf.ByteString + getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operator_ = b; return b; } else { @@ -894,8 +832,6 @@ public com.google.protobuf.ByteString getOperatorBytes() { } } /** - * - * *
                * Optional. The operator used for matching the events with the value of the
                * filter. If not specified, only events that have an exact key-value pair
          @@ -904,22 +840,20 @@ public com.google.protobuf.ByteString getOperatorBytes() {
                * 
          * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The operator to set. * @return This builder for chaining. */ - public Builder setOperator(java.lang.String value) { + public Builder setOperator( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operator_ = value; onChanged(); return this; } /** - * - * *
                * Optional. The operator used for matching the events with the value of the
                * filter. If not specified, only events that have an exact key-value pair
          @@ -928,18 +862,15 @@ public Builder setOperator(java.lang.String value) {
                * 
          * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOperator() { - + operator_ = getDefaultInstance().getOperator(); onChanged(); return this; } /** - * - * *
                * Optional. The operator used for matching the events with the value of the
                * filter. If not specified, only events that have an exact key-value pair
          @@ -948,23 +879,23 @@ public Builder clearOperator() {
                * 
          * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for operator to set. * @return This builder for chaining. */ - public Builder setOperatorBytes(com.google.protobuf.ByteString value) { + public Builder setOperatorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operator_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -974,12 +905,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.EventFilter) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.EventFilter) private static final com.google.cloud.functions.v2alpha.EventFilter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.EventFilter(); } @@ -988,16 +919,16 @@ public static com.google.cloud.functions.v2alpha.EventFilter getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventFilter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventFilter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1012,4 +943,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.EventFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java similarity index 69% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java index 47ae6b37..bddd280f 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java @@ -1,81 +1,53 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface EventFilterOrBuilder - extends +public interface EventFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.EventFilter) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Required. The name of a CloudEvents attribute.
              * 
          * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attribute. */ java.lang.String getAttribute(); /** - * - * *
              * Required. The name of a CloudEvents attribute.
              * 
          * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attribute. */ - com.google.protobuf.ByteString getAttributeBytes(); + com.google.protobuf.ByteString + getAttributeBytes(); /** - * - * *
              * Required. The value for the attribute.
              * 
          * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
              * Required. The value for the attribute.
              * 
          * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
              * Optional. The operator used for matching the events with the value of the
              * filter. If not specified, only events that have an exact key-value pair
          @@ -84,13 +56,10 @@ public interface EventFilterOrBuilder
              * 
          * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The operator. */ java.lang.String getOperator(); /** - * - * *
              * Optional. The operator used for matching the events with the value of the
              * filter. If not specified, only events that have an exact key-value pair
          @@ -99,8 +68,8 @@ public interface EventFilterOrBuilder
              * 
          * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for operator. */ - com.google.protobuf.ByteString getOperatorBytes(); + com.google.protobuf.ByteString + getOperatorBytes(); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java similarity index 73% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java index 95129990..0fcd3524 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java @@ -1,26 +1,9 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Describes EventTrigger, used to request events to be sent from another
            * service.
          @@ -28,16 +11,15 @@
            *
            * Protobuf type {@code google.cloud.functions.v2alpha.EventTrigger}
            */
          -public final class EventTrigger extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class EventTrigger extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.EventTrigger)
               EventTriggerOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use EventTrigger.newBuilder() to construct.
             private EventTrigger(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private EventTrigger() {
               trigger_ = "";
               triggerRegion_ = "";
          @@ -51,15 +33,16 @@ private EventTrigger() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new EventTrigger();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet
          +  getUnknownFields() {
               return this.unknownFields;
             }
          -
             private EventTrigger(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -79,74 +62,64 @@ private EventTrigger(
                     case 0:
                       done = true;
                       break;
          -          case 10:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +          case 10: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              trigger_ = s;
          -              break;
          -            }
          -          case 18:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            trigger_ = s;
          +            break;
          +          }
          +          case 18: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              triggerRegion_ = s;
          -              break;
          -            }
          -          case 26:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            triggerRegion_ = s;
          +            break;
          +          }
          +          case 26: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              eventType_ = s;
          -              break;
          -            }
          -          case 34:
          -            {
          -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          -                eventFilters_ =
          -                    new java.util.ArrayList();
          -                mutable_bitField0_ |= 0x00000001;
          -              }
          -              eventFilters_.add(
          -                  input.readMessage(
          -                      com.google.cloud.functions.v2alpha.EventFilter.parser(), extensionRegistry));
          -              break;
          +            eventType_ = s;
          +            break;
          +          }
          +          case 34: {
          +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          +              eventFilters_ = new java.util.ArrayList();
          +              mutable_bitField0_ |= 0x00000001;
                       }
          -          case 42:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            eventFilters_.add(
          +                input.readMessage(com.google.cloud.functions.v2alpha.EventFilter.parser(), extensionRegistry));
          +            break;
          +          }
          +          case 42: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              pubsubTopic_ = s;
          -              break;
          -            }
          -          case 50:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            pubsubTopic_ = s;
          +            break;
          +          }
          +          case 50: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              serviceAccountEmail_ = s;
          -              break;
          -            }
          -          case 56:
          -            {
          -              int rawValue = input.readEnum();
          +            serviceAccountEmail_ = s;
          +            break;
          +          }
          +          case 56: {
          +            int rawValue = input.readEnum();
           
          -              retryPolicy_ = rawValue;
          -              break;
          -            }
          -          case 66:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            retryPolicy_ = rawValue;
          +            break;
          +          }
          +          case 66: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              channel_ = s;
          -              break;
          -            }
          -          default:
          -            {
          -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          -                done = true;
          -              }
          -              break;
          +            channel_ = s;
          +            break;
          +          }
          +          default: {
          +            if (!parseUnknownField(
          +                input, unknownFields, extensionRegistry, tag)) {
          +              done = true;
                       }
          +            break;
          +          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -154,7 +127,8 @@ private EventTrigger(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(
          +          e).setUnfinishedMessage(this);
               } finally {
                 if (((mutable_bitField0_ & 0x00000001) != 0)) {
                   eventFilters_ = java.util.Collections.unmodifiableList(eventFilters_);
          @@ -163,25 +137,20 @@ private EventTrigger(
                 makeExtensionsImmutable();
               }
             }
          -
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.functions.v2alpha.EventTrigger.class,
          -            com.google.cloud.functions.v2alpha.EventTrigger.Builder.class);
          +            com.google.cloud.functions.v2alpha.EventTrigger.class, com.google.cloud.functions.v2alpha.EventTrigger.Builder.class);
             }
           
             /**
          -   *
          -   *
              * 
              * Describes the retry policy in case of function's execution failure.
              * Retried execution is charged as any other execution.
          @@ -189,10 +158,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              *
              * Protobuf enum {@code google.cloud.functions.v2alpha.EventTrigger.RetryPolicy}
              */
          -  public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum {
          +  public enum RetryPolicy
          +      implements com.google.protobuf.ProtocolMessageEnum {
               /**
          -     *
          -     *
                * 
                * Not specified.
                * 
          @@ -201,8 +169,6 @@ public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum { */ RETRY_POLICY_UNSPECIFIED(0), /** - * - * *
                * Do not retry.
                * 
          @@ -211,8 +177,6 @@ public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum { */ RETRY_POLICY_DO_NOT_RETRY(1), /** - * - * *
                * Retry on any failure, retry up to 7 days with an exponential backoff
                * (capped at 10 seconds).
          @@ -225,8 +189,6 @@ public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum {
               ;
           
               /**
          -     *
          -     *
                * 
                * Not specified.
                * 
          @@ -235,8 +197,6 @@ public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RETRY_POLICY_UNSPECIFIED_VALUE = 0; /** - * - * *
                * Do not retry.
                * 
          @@ -245,8 +205,6 @@ public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RETRY_POLICY_DO_NOT_RETRY_VALUE = 1; /** - * - * *
                * Retry on any failure, retry up to 7 days with an exponential backoff
                * (capped at 10 seconds).
          @@ -256,6 +214,7 @@ public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int RETRY_POLICY_RETRY_VALUE = 2;
           
          +
               public final int getNumber() {
                 if (this == UNRECOGNIZED) {
                   throw new java.lang.IllegalArgumentException(
          @@ -280,49 +239,49 @@ public static RetryPolicy valueOf(int value) {
                */
               public static RetryPolicy forNumber(int value) {
                 switch (value) {
          -        case 0:
          -          return RETRY_POLICY_UNSPECIFIED;
          -        case 1:
          -          return RETRY_POLICY_DO_NOT_RETRY;
          -        case 2:
          -          return RETRY_POLICY_RETRY;
          -        default:
          -          return null;
          +        case 0: return RETRY_POLICY_UNSPECIFIED;
          +        case 1: return RETRY_POLICY_DO_NOT_RETRY;
          +        case 2: return RETRY_POLICY_RETRY;
          +        default: return null;
                 }
               }
           
          -    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
          +    public static com.google.protobuf.Internal.EnumLiteMap
          +        internalGetValueMap() {
                 return internalValueMap;
               }
          +    private static final com.google.protobuf.Internal.EnumLiteMap<
          +        RetryPolicy> internalValueMap =
          +          new com.google.protobuf.Internal.EnumLiteMap() {
          +            public RetryPolicy findValueByNumber(int number) {
          +              return RetryPolicy.forNumber(number);
          +            }
          +          };
           
          -    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          -        new com.google.protobuf.Internal.EnumLiteMap() {
          -          public RetryPolicy findValueByNumber(int number) {
          -            return RetryPolicy.forNumber(number);
          -          }
          -        };
          -
          -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
          +    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() {
          +    public final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptorForType() {
                 return getDescriptor();
               }
          -
          -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          +    public static final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptor() {
                 return com.google.cloud.functions.v2alpha.EventTrigger.getDescriptor().getEnumTypes().get(0);
               }
           
               private static final RetryPolicy[] VALUES = values();
           
          -    public static RetryPolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          +    public static RetryPolicy valueOf(
          +        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                 if (desc.getType() != getDescriptor()) {
          -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
          +        throw new java.lang.IllegalArgumentException(
          +          "EnumValueDescriptor is not for this type.");
                 }
                 if (desc.getIndex() == -1) {
                   return UNRECOGNIZED;
          @@ -342,17 +301,12 @@ private RetryPolicy(int value) {
             public static final int TRIGGER_FIELD_NUMBER = 1;
             private volatile java.lang.Object 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) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The trigger. */ @java.lang.Override @@ -361,32 +315,30 @@ public java.lang.String getTrigger() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trigger_ = s; return s; } } /** - * - * *
              * 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) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for trigger. */ @java.lang.Override - public com.google.protobuf.ByteString getTriggerBytes() { + public com.google.protobuf.ByteString + getTriggerBytes() { java.lang.Object ref = trigger_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trigger_ = b; return b; } else { @@ -397,8 +349,6 @@ public com.google.protobuf.ByteString getTriggerBytes() { public static final int TRIGGER_REGION_FIELD_NUMBER = 2; private volatile java.lang.Object triggerRegion_; /** - * - * *
              * The region that the trigger will be in. The trigger will only receive
              * events originating in this region. It can be the same
          @@ -407,7 +357,6 @@ public com.google.protobuf.ByteString getTriggerBytes() {
              * 
          * * string trigger_region = 2; - * * @return The triggerRegion. */ @java.lang.Override @@ -416,15 +365,14 @@ public java.lang.String getTriggerRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); triggerRegion_ = s; return s; } } /** - * - * *
              * The region that the trigger will be in. The trigger will only receive
              * events originating in this region. It can be the same
          @@ -433,15 +381,16 @@ public java.lang.String getTriggerRegion() {
              * 
          * * string trigger_region = 2; - * * @return The bytes for triggerRegion. */ @java.lang.Override - public com.google.protobuf.ByteString getTriggerRegionBytes() { + public com.google.protobuf.ByteString + getTriggerRegionBytes() { java.lang.Object ref = triggerRegion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); triggerRegion_ = b; return b; } else { @@ -452,8 +401,6 @@ public com.google.protobuf.ByteString getTriggerRegionBytes() { public static final int EVENT_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object eventType_; /** - * - * *
              * Required. The type of event to observe. For example:
              * `google.cloud.audit.log.v1.written` or
          @@ -461,7 +408,6 @@ public com.google.protobuf.ByteString getTriggerRegionBytes() {
              * 
          * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The eventType. */ @java.lang.Override @@ -470,15 +416,14 @@ public java.lang.String getEventType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; } } /** - * - * *
              * Required. The type of event to observe. For example:
              * `google.cloud.audit.log.v1.written` or
          @@ -486,15 +431,16 @@ public java.lang.String getEventType() {
              * 
          * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for eventType. */ @java.lang.Override - public com.google.protobuf.ByteString getEventTypeBytes() { + public com.google.protobuf.ByteString + getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); eventType_ = b; return b; } else { @@ -505,8 +451,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() { public static final int EVENT_FILTERS_FIELD_NUMBER = 4; private java.util.List eventFilters_; /** - * - * *
              * Criteria used to filter events.
              * 
          @@ -518,8 +462,6 @@ public java.util.List getEventFi return eventFilters_; } /** - * - * *
              * Criteria used to filter events.
              * 
          @@ -527,13 +469,11 @@ public java.util.List getEventFi * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ @java.lang.Override - public java.util.List + public java.util.List getEventFiltersOrBuilderList() { return eventFilters_; } /** - * - * *
              * Criteria used to filter events.
              * 
          @@ -545,8 +485,6 @@ public int getEventFiltersCount() { return eventFilters_.size(); } /** - * - * *
              * Criteria used to filter events.
              * 
          @@ -558,8 +496,6 @@ public com.google.cloud.functions.v2alpha.EventFilter getEventFilters(int index) return eventFilters_.get(index); } /** - * - * *
              * Criteria used to filter events.
              * 
          @@ -575,8 +511,6 @@ public com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOr public static final int PUBSUB_TOPIC_FIELD_NUMBER = 5; private volatile java.lang.Object pubsubTopic_; /** - * - * *
              * 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:
          @@ -586,10 +520,7 @@ public com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOr
              * will not be deleted at function deletion.
              * 
          * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The pubsubTopic. */ @java.lang.Override @@ -598,15 +529,14 @@ public java.lang.String getPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; } } /** - * - * *
              * 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:
          @@ -616,18 +546,17 @@ public java.lang.String getPubsubTopic() {
              * will not be deleted at function deletion.
              * 
          * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -638,8 +567,6 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 6; private volatile java.lang.Object serviceAccountEmail_; /** - * - * *
              * Optional. The email of the trigger's service account. The service account must have
              * permission to invoke Cloud Run services, the permission is
          @@ -649,7 +576,6 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
              * 
          * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccountEmail. */ @java.lang.Override @@ -658,15 +584,14 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** - * - * *
              * Optional. The email of the trigger's service account. The service account must have
              * permission to invoke Cloud Run services, the permission is
          @@ -676,15 +601,16 @@ public java.lang.String getServiceAccountEmail() {
              * 
          * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -695,60 +621,40 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { public static final int RETRY_POLICY_FIELD_NUMBER = 7; private int retryPolicy_; /** - * - * *
              * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
              * 
          * - * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for retryPolicy. */ - @java.lang.Override - public int getRetryPolicyValue() { + @java.lang.Override public int getRetryPolicyValue() { return retryPolicy_; } /** - * - * *
              * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
              * 
          * - * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The retryPolicy. */ - @java.lang.Override - public com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy getRetryPolicy() { + @java.lang.Override public com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy getRetryPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy result = - com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.valueOf(retryPolicy_); - return result == null - ? com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.UNRECOGNIZED - : result; + com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy result = com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.valueOf(retryPolicy_); + return result == null ? com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.UNRECOGNIZED : result; } public static final int CHANNEL_FIELD_NUMBER = 8; private volatile java.lang.Object channel_; /** - * - * *
              * Optional. The name of the channel associated with the trigger in
              * `projects/{project}/locations/{location}/channels/{channel}` format.
              * You must provide a channel to receive events from Eventarc SaaS partners.
              * 
          * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The channel. */ @java.lang.Override @@ -757,33 +663,31 @@ public java.lang.String getChannel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; } } /** - * - * *
              * Optional. The name of the channel associated with the trigger in
              * `projects/{project}/locations/{location}/channels/{channel}` format.
              * You must provide a channel to receive events from Eventarc SaaS partners.
              * 
          * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for channel. */ @java.lang.Override - public com.google.protobuf.ByteString getChannelBytes() { + public com.google.protobuf.ByteString + getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); channel_ = b; return b; } else { @@ -792,7 +696,6 @@ public com.google.protobuf.ByteString getChannelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -804,7 +707,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trigger_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trigger_); } @@ -823,9 +727,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAccountEmail_); } - if (retryPolicy_ - != com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED - .getNumber()) { + if (retryPolicy_ != com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(7, retryPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { @@ -850,7 +752,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, eventType_); } for (int i = 0; i < eventFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, eventFilters_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, eventFilters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pubsubTopic_); @@ -858,10 +761,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAccountEmail_); } - if (retryPolicy_ - != com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, retryPolicy_); + if (retryPolicy_ != com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, retryPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, channel_); @@ -874,22 +776,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.EventTrigger)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.EventTrigger other = - (com.google.cloud.functions.v2alpha.EventTrigger) obj; - - if (!getTrigger().equals(other.getTrigger())) return false; - if (!getTriggerRegion().equals(other.getTriggerRegion())) return false; - if (!getEventType().equals(other.getEventType())) return false; - if (!getEventFiltersList().equals(other.getEventFiltersList())) return false; - if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; + com.google.cloud.functions.v2alpha.EventTrigger other = (com.google.cloud.functions.v2alpha.EventTrigger) obj; + + if (!getTrigger() + .equals(other.getTrigger())) return false; + if (!getTriggerRegion() + .equals(other.getTriggerRegion())) return false; + if (!getEventType() + .equals(other.getEventType())) return false; + if (!getEventFiltersList() + .equals(other.getEventFiltersList())) return false; + if (!getPubsubTopic() + .equals(other.getPubsubTopic())) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; if (retryPolicy_ != other.retryPolicy_) return false; - if (!getChannel().equals(other.getChannel())) return false; + if (!getChannel() + .equals(other.getChannel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -924,104 +832,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.EventTrigger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.EventTrigger 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.v2alpha.EventTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.EventTrigger parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.EventTrigger parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.EventTrigger parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.EventTrigger prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Describes EventTrigger, used to request events to be sent from another
              * service.
          @@ -1029,23 +930,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.cloud.functions.v2alpha.EventTrigger}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.EventTrigger)
                 com.google.cloud.functions.v2alpha.EventTriggerOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.functions.v2alpha.EventTrigger.class,
          -              com.google.cloud.functions.v2alpha.EventTrigger.Builder.class);
          +              com.google.cloud.functions.v2alpha.EventTrigger.class, com.google.cloud.functions.v2alpha.EventTrigger.Builder.class);
               }
           
               // Construct using com.google.cloud.functions.v2alpha.EventTrigger.newBuilder()
          @@ -1053,17 +952,17 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          -
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3
          +              .alwaysUseFieldBuilders) {
                   getEventFiltersFieldBuilder();
                 }
               }
          -
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1091,9 +990,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor;
               }
           
               @java.lang.Override
          @@ -1112,8 +1011,7 @@ public com.google.cloud.functions.v2alpha.EventTrigger build() {
           
               @java.lang.Override
               public com.google.cloud.functions.v2alpha.EventTrigger buildPartial() {
          -      com.google.cloud.functions.v2alpha.EventTrigger result =
          -          new com.google.cloud.functions.v2alpha.EventTrigger(this);
          +      com.google.cloud.functions.v2alpha.EventTrigger result = new com.google.cloud.functions.v2alpha.EventTrigger(this);
                 int from_bitField0_ = bitField0_;
                 result.trigger_ = trigger_;
                 result.triggerRegion_ = triggerRegion_;
          @@ -1139,39 +1037,38 @@ public com.google.cloud.functions.v2alpha.EventTrigger buildPartial() {
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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) {
          -        return mergeFrom((com.google.cloud.functions.v2alpha.EventTrigger) other);
          +        return mergeFrom((com.google.cloud.functions.v2alpha.EventTrigger)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1179,8 +1076,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.cloud.functions.v2alpha.EventTrigger other) {
          -      if (other == com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance())
          -        return this;
          +      if (other == com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance()) return this;
                 if (!other.getTrigger().isEmpty()) {
                   trigger_ = other.trigger_;
                   onChanged();
          @@ -1211,10 +1107,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.EventTrigger other)
                       eventFiltersBuilder_ = null;
                       eventFilters_ = other.eventFilters_;
                       bitField0_ = (bitField0_ & ~0x00000001);
          -            eventFiltersBuilder_ =
          -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          -                    ? getEventFiltersFieldBuilder()
          -                    : null;
          +            eventFiltersBuilder_ = 
          +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          +                 getEventFiltersFieldBuilder() : null;
                     } else {
                       eventFiltersBuilder_.addAllMessages(other.eventFilters_);
                     }
          @@ -1263,28 +1158,23 @@ public Builder mergeFrom(
                 }
                 return this;
               }
          -
               private int bitField0_;
           
               private java.lang.Object 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) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The trigger. */ public java.lang.String getTrigger() { java.lang.Object ref = trigger_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trigger_ = s; return s; @@ -1293,24 +1183,21 @@ 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}`.
                * 
          * - * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for trigger. */ - public com.google.protobuf.ByteString getTriggerBytes() { + public com.google.protobuf.ByteString + getTriggerBytes() { java.lang.Object ref = trigger_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trigger_ = b; return b; } else { @@ -1318,70 +1205,57 @@ 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}`.
                * 
          * - * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The trigger to set. * @return This builder for chaining. */ - public Builder setTrigger(java.lang.String value) { + public Builder setTrigger( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trigger_ = value; onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearTrigger() { - + trigger_ = getDefaultInstance().getTrigger(); onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for trigger to set. * @return This builder for chaining. */ - public Builder setTriggerBytes(com.google.protobuf.ByteString value) { + public Builder setTriggerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trigger_ = value; onChanged(); return this; @@ -1389,8 +1263,6 @@ public Builder setTriggerBytes(com.google.protobuf.ByteString value) { private java.lang.Object triggerRegion_ = ""; /** - * - * *
                * The region that the trigger will be in. The trigger will only receive
                * events originating in this region. It can be the same
          @@ -1399,13 +1271,13 @@ public Builder setTriggerBytes(com.google.protobuf.ByteString value) {
                * 
          * * string trigger_region = 2; - * * @return The triggerRegion. */ public java.lang.String getTriggerRegion() { java.lang.Object ref = triggerRegion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); triggerRegion_ = s; return s; @@ -1414,8 +1286,6 @@ public java.lang.String getTriggerRegion() { } } /** - * - * *
                * The region that the trigger will be in. The trigger will only receive
                * events originating in this region. It can be the same
          @@ -1424,14 +1294,15 @@ public java.lang.String getTriggerRegion() {
                * 
          * * string trigger_region = 2; - * * @return The bytes for triggerRegion. */ - public com.google.protobuf.ByteString getTriggerRegionBytes() { + public com.google.protobuf.ByteString + getTriggerRegionBytes() { java.lang.Object ref = triggerRegion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); triggerRegion_ = b; return b; } else { @@ -1439,8 +1310,6 @@ public com.google.protobuf.ByteString getTriggerRegionBytes() { } } /** - * - * *
                * The region that the trigger will be in. The trigger will only receive
                * events originating in this region. It can be the same
          @@ -1449,22 +1318,20 @@ public com.google.protobuf.ByteString getTriggerRegionBytes() {
                * 
          * * string trigger_region = 2; - * * @param value The triggerRegion to set. * @return This builder for chaining. */ - public Builder setTriggerRegion(java.lang.String value) { + public Builder setTriggerRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + triggerRegion_ = value; onChanged(); return this; } /** - * - * *
                * The region that the trigger will be in. The trigger will only receive
                * events originating in this region. It can be the same
          @@ -1473,18 +1340,15 @@ public Builder setTriggerRegion(java.lang.String value) {
                * 
          * * string trigger_region = 2; - * * @return This builder for chaining. */ public Builder clearTriggerRegion() { - + triggerRegion_ = getDefaultInstance().getTriggerRegion(); onChanged(); return this; } /** - * - * *
                * The region that the trigger will be in. The trigger will only receive
                * events originating in this region. It can be the same
          @@ -1493,16 +1357,16 @@ public Builder clearTriggerRegion() {
                * 
          * * string trigger_region = 2; - * * @param value The bytes for triggerRegion to set. * @return This builder for chaining. */ - public Builder setTriggerRegionBytes(com.google.protobuf.ByteString value) { + public Builder setTriggerRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + triggerRegion_ = value; onChanged(); return this; @@ -1510,8 +1374,6 @@ public Builder setTriggerRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object eventType_ = ""; /** - * - * *
                * Required. The type of event to observe. For example:
                * `google.cloud.audit.log.v1.written` or
          @@ -1519,13 +1381,13 @@ public Builder setTriggerRegionBytes(com.google.protobuf.ByteString value) {
                * 
          * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The eventType. */ public java.lang.String getEventType() { java.lang.Object ref = eventType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; @@ -1534,8 +1396,6 @@ public java.lang.String getEventType() { } } /** - * - * *
                * Required. The type of event to observe. For example:
                * `google.cloud.audit.log.v1.written` or
          @@ -1543,14 +1403,15 @@ public java.lang.String getEventType() {
                * 
          * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for eventType. */ - public com.google.protobuf.ByteString getEventTypeBytes() { + public com.google.protobuf.ByteString + getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); eventType_ = b; return b; } else { @@ -1558,8 +1419,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() { } } /** - * - * *
                * Required. The type of event to observe. For example:
                * `google.cloud.audit.log.v1.written` or
          @@ -1567,22 +1426,20 @@ public com.google.protobuf.ByteString getEventTypeBytes() {
                * 
          * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType(java.lang.String value) { + public Builder setEventType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + eventType_ = value; onChanged(); return this; } /** - * - * *
                * Required. The type of event to observe. For example:
                * `google.cloud.audit.log.v1.written` or
          @@ -1590,18 +1447,15 @@ public Builder setEventType(java.lang.String value) {
                * 
          * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearEventType() { - + eventType_ = getDefaultInstance().getEventType(); onChanged(); return this; } /** - * - * *
                * Required. The type of event to observe. For example:
                * `google.cloud.audit.log.v1.written` or
          @@ -1609,41 +1463,34 @@ public Builder clearEventType() {
                * 
          * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for eventType to set. * @return This builder for chaining. */ - public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { + public Builder setEventTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventType_ = value; onChanged(); return this; } private java.util.List eventFilters_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEventFiltersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - eventFilters_ = - new java.util.ArrayList(eventFilters_); + eventFilters_ = new java.util.ArrayList(eventFilters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.EventFilter, - com.google.cloud.functions.v2alpha.EventFilter.Builder, - com.google.cloud.functions.v2alpha.EventFilterOrBuilder> - eventFiltersBuilder_; + com.google.cloud.functions.v2alpha.EventFilter, com.google.cloud.functions.v2alpha.EventFilter.Builder, com.google.cloud.functions.v2alpha.EventFilterOrBuilder> eventFiltersBuilder_; /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1658,8 +1505,6 @@ public java.util.List getEventFi } } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1674,8 +1519,6 @@ public int getEventFiltersCount() { } } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1690,8 +1533,6 @@ public com.google.cloud.functions.v2alpha.EventFilter getEventFilters(int index) } } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1713,8 +1554,6 @@ public Builder setEventFilters( return this; } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1733,8 +1572,6 @@ public Builder setEventFilters( return this; } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1755,8 +1592,6 @@ public Builder addEventFilters(com.google.cloud.functions.v2alpha.EventFilter va return this; } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1778,8 +1613,6 @@ public Builder addEventFilters( return this; } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1798,8 +1631,6 @@ public Builder addEventFilters( return this; } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1818,8 +1649,6 @@ public Builder addEventFilters( return this; } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1830,7 +1659,8 @@ public Builder addAllEventFilters( java.lang.Iterable values) { if (eventFiltersBuilder_ == null) { ensureEventFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventFilters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, eventFilters_); onChanged(); } else { eventFiltersBuilder_.addAllMessages(values); @@ -1838,8 +1668,6 @@ public Builder addAllEventFilters( return this; } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1857,8 +1685,6 @@ public Builder clearEventFilters() { return this; } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1876,8 +1702,6 @@ public Builder removeEventFilters(int index) { return this; } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1889,8 +1713,6 @@ public com.google.cloud.functions.v2alpha.EventFilter.Builder getEventFiltersBui return getEventFiltersFieldBuilder().getBuilder(index); } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1900,22 +1722,19 @@ public com.google.cloud.functions.v2alpha.EventFilter.Builder getEventFiltersBui public com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOrBuilder( int index) { if (eventFiltersBuilder_ == null) { - return eventFilters_.get(index); - } else { + return eventFilters_.get(index); } else { return eventFiltersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * Criteria used to filter events.
                * 
          * * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ - public java.util.List - getEventFiltersOrBuilderList() { + public java.util.List + getEventFiltersOrBuilderList() { if (eventFiltersBuilder_ != null) { return eventFiltersBuilder_.getMessageOrBuilderList(); } else { @@ -1923,8 +1742,6 @@ public com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOr } } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1932,12 +1749,10 @@ public com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOr * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ public com.google.cloud.functions.v2alpha.EventFilter.Builder addEventFiltersBuilder() { - return getEventFiltersFieldBuilder() - .addBuilder(com.google.cloud.functions.v2alpha.EventFilter.getDefaultInstance()); + return getEventFiltersFieldBuilder().addBuilder( + com.google.cloud.functions.v2alpha.EventFilter.getDefaultInstance()); } /** - * - * *
                * Criteria used to filter events.
                * 
          @@ -1946,35 +1761,30 @@ public com.google.cloud.functions.v2alpha.EventFilter.Builder addEventFiltersBui */ public com.google.cloud.functions.v2alpha.EventFilter.Builder addEventFiltersBuilder( int index) { - return getEventFiltersFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2alpha.EventFilter.getDefaultInstance()); + return getEventFiltersFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2alpha.EventFilter.getDefaultInstance()); } /** - * - * *
                * Criteria used to filter events.
                * 
          * * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ - public java.util.List - getEventFiltersBuilderList() { + public java.util.List + getEventFiltersBuilderList() { return getEventFiltersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.EventFilter, - com.google.cloud.functions.v2alpha.EventFilter.Builder, - com.google.cloud.functions.v2alpha.EventFilterOrBuilder> + com.google.cloud.functions.v2alpha.EventFilter, com.google.cloud.functions.v2alpha.EventFilter.Builder, com.google.cloud.functions.v2alpha.EventFilterOrBuilder> getEventFiltersFieldBuilder() { if (eventFiltersBuilder_ == null) { - eventFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.EventFilter, - com.google.cloud.functions.v2alpha.EventFilter.Builder, - com.google.cloud.functions.v2alpha.EventFilterOrBuilder>( - eventFilters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + eventFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.EventFilter, com.google.cloud.functions.v2alpha.EventFilter.Builder, com.google.cloud.functions.v2alpha.EventFilterOrBuilder>( + eventFilters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); eventFilters_ = null; } return eventFiltersBuilder_; @@ -1982,8 +1792,6 @@ public com.google.cloud.functions.v2alpha.EventFilter.Builder addEventFiltersBui private java.lang.Object pubsubTopic_ = ""; /** - * - * *
                * 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:
          @@ -1993,16 +1801,14 @@ public com.google.cloud.functions.v2alpha.EventFilter.Builder addEventFiltersBui
                * will not be deleted at function deletion.
                * 
          * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; @@ -2011,8 +1817,6 @@ 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:
          @@ -2022,17 +1826,16 @@ public java.lang.String getPubsubTopic() {
                * will not be deleted at function deletion.
                * 
          * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -2040,8 +1843,6 @@ 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:
          @@ -2051,25 +1852,21 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
                * will not be deleted at function deletion.
                * 
          * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic(java.lang.String value) { + public Builder setPubsubTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopic_ = value; onChanged(); return this; } /** - * - * *
                * 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:
          @@ -2079,21 +1876,16 @@ public Builder setPubsubTopic(java.lang.String value) {
                * will not be deleted at function deletion.
                * 
          * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearPubsubTopic() { - + pubsubTopic_ = getDefaultInstance().getPubsubTopic(); onChanged(); return this; } /** - * - * *
                * 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:
          @@ -2103,19 +1895,17 @@ public Builder clearPubsubTopic() {
                * will not be deleted at function deletion.
                * 
          * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { + public Builder setPubsubTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopic_ = value; onChanged(); return this; @@ -2123,8 +1913,6 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
                * Optional. The email of the trigger's service account. The service account must have
                * permission to invoke Cloud Run services, the permission is
          @@ -2134,13 +1922,13 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) {
                * 
          * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -2149,8 +1937,6 @@ 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
          @@ -2160,14 +1946,15 @@ public java.lang.String getServiceAccountEmail() {
                * 
          * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -2175,8 +1962,6 @@ 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
          @@ -2186,22 +1971,20 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() {
                * 
          * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail(java.lang.String value) { + public Builder setServiceAccountEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** - * - * *
                * Optional. The email of the trigger's service account. The service account must have
                * permission to invoke Cloud Run services, the permission is
          @@ -2211,18 +1994,15 @@ public Builder setServiceAccountEmail(java.lang.String value) {
                * 
          * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** - * - * *
                * Optional. The email of the trigger's service account. The service account must have
                * permission to invoke Cloud Run services, the permission is
          @@ -2232,16 +2012,16 @@ public Builder clearServiceAccountEmail() {
                * 
          * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; @@ -2249,103 +2029,73 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) private int retryPolicy_ = 0; /** - * - * *
                * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                * 
          * - * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for retryPolicy. */ - @java.lang.Override - public int getRetryPolicyValue() { + @java.lang.Override public int getRetryPolicyValue() { return retryPolicy_; } /** - * - * *
                * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                * 
          * - * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for retryPolicy to set. * @return This builder for chaining. */ public Builder setRetryPolicyValue(int value) { - + retryPolicy_ = value; onChanged(); return this; } /** - * - * *
                * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                * 
          * - * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The retryPolicy. */ @java.lang.Override public com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy getRetryPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy result = - com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.valueOf(retryPolicy_); - return result == null - ? com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.UNRECOGNIZED - : result; + com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy result = com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.valueOf(retryPolicy_); + return result == null ? com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.UNRECOGNIZED : result; } /** - * - * *
                * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                * 
          * - * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param value The retryPolicy to set. * @return This builder for chaining. */ - public Builder setRetryPolicy( - com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy value) { + public Builder setRetryPolicy(com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy value) { if (value == null) { throw new NullPointerException(); } - + retryPolicy_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                * 
          * - * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearRetryPolicy() { - + retryPolicy_ = 0; onChanged(); return this; @@ -2353,24 +2103,20 @@ public Builder clearRetryPolicy() { private java.lang.Object channel_ = ""; /** - * - * *
                * Optional. The name of the channel associated with the trigger in
                * `projects/{project}/locations/{location}/channels/{channel}` format.
                * You must provide a channel to receive events from Eventarc SaaS partners.
                * 
          * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The channel. */ public java.lang.String getChannel() { java.lang.Object ref = channel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; @@ -2379,25 +2125,22 @@ public java.lang.String getChannel() { } } /** - * - * *
                * Optional. The name of the channel associated with the trigger in
                * `projects/{project}/locations/{location}/channels/{channel}` format.
                * You must provide a channel to receive events from Eventarc SaaS partners.
                * 
          * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for channel. */ - public com.google.protobuf.ByteString getChannelBytes() { + public com.google.protobuf.ByteString + getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); channel_ = b; return b; } else { @@ -2405,80 +2148,67 @@ public com.google.protobuf.ByteString getChannelBytes() { } } /** - * - * *
                * Optional. The name of the channel associated with the trigger in
                * `projects/{project}/locations/{location}/channels/{channel}` format.
                * You must provide a channel to receive events from Eventarc SaaS partners.
                * 
          * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The channel to set. * @return This builder for chaining. */ - public Builder setChannel(java.lang.String value) { + public Builder setChannel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + channel_ = value; onChanged(); return this; } /** - * - * *
                * Optional. The name of the channel associated with the trigger in
                * `projects/{project}/locations/{location}/channels/{channel}` format.
                * You must provide a channel to receive events from Eventarc SaaS partners.
                * 
          * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearChannel() { - + channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } /** - * - * *
                * Optional. The name of the channel associated with the trigger in
                * `projects/{project}/locations/{location}/channels/{channel}` format.
                * You must provide a channel to receive events from Eventarc SaaS partners.
                * 
          * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for channel to set. * @return This builder for chaining. */ - public Builder setChannelBytes(com.google.protobuf.ByteString value) { + public Builder setChannelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channel_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2488,12 +2218,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.EventTrigger) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.EventTrigger) private static final com.google.cloud.functions.v2alpha.EventTrigger DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.EventTrigger(); } @@ -2502,16 +2232,16 @@ public static com.google.cloud.functions.v2alpha.EventTrigger getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventTrigger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventTrigger(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventTrigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventTrigger(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2526,4 +2256,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.EventTrigger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java similarity index 72% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java index b716b4ef..bad1cc32 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface EventTriggerOrBuilder - extends +public interface EventTriggerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.EventTrigger) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * 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) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The trigger. */ 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}`.
              * 
          * - * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for trigger. */ - com.google.protobuf.ByteString getTriggerBytes(); + com.google.protobuf.ByteString + getTriggerBytes(); /** - * - * *
              * The region that the trigger will be in. The trigger will only receive
              * events originating in this region. It can be the same
          @@ -65,13 +38,10 @@ public interface EventTriggerOrBuilder
              * 
          * * string trigger_region = 2; - * * @return The triggerRegion. */ java.lang.String getTriggerRegion(); /** - * - * *
              * The region that the trigger will be in. The trigger will only receive
              * events originating in this region. It can be the same
          @@ -80,14 +50,12 @@ public interface EventTriggerOrBuilder
              * 
          * * string trigger_region = 2; - * * @return The bytes for triggerRegion. */ - com.google.protobuf.ByteString getTriggerRegionBytes(); + com.google.protobuf.ByteString + getTriggerRegionBytes(); /** - * - * *
              * Required. The type of event to observe. For example:
              * `google.cloud.audit.log.v1.written` or
          @@ -95,13 +63,10 @@ public interface EventTriggerOrBuilder
              * 
          * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The eventType. */ java.lang.String getEventType(); /** - * - * *
              * Required. The type of event to observe. For example:
              * `google.cloud.audit.log.v1.written` or
          @@ -109,24 +74,21 @@ public interface EventTriggerOrBuilder
              * 
          * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for eventType. */ - com.google.protobuf.ByteString getEventTypeBytes(); + com.google.protobuf.ByteString + getEventTypeBytes(); /** - * - * *
              * Criteria used to filter events.
              * 
          * * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ - java.util.List getEventFiltersList(); + java.util.List + getEventFiltersList(); /** - * - * *
              * Criteria used to filter events.
              * 
          @@ -135,8 +97,6 @@ public interface EventTriggerOrBuilder */ com.google.cloud.functions.v2alpha.EventFilter getEventFilters(int index); /** - * - * *
              * Criteria used to filter events.
              * 
          @@ -145,30 +105,25 @@ public interface EventTriggerOrBuilder */ int getEventFiltersCount(); /** - * - * *
              * Criteria used to filter events.
              * 
          * * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ - java.util.List + java.util.List getEventFiltersOrBuilderList(); /** - * - * *
              * Criteria used to filter events.
              * 
          * * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ - com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOrBuilder(int index); + com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOrBuilder( + int index); /** - * - * *
              * 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:
          @@ -178,16 +133,11 @@ public interface EventTriggerOrBuilder
              * will not be deleted at function deletion.
              * 
          * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The pubsubTopic. */ 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:
          @@ -197,17 +147,13 @@ public interface EventTriggerOrBuilder
              * will not be deleted at function deletion.
              * 
          * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString getPubsubTopicBytes(); + 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
          @@ -217,13 +163,10 @@ public interface EventTriggerOrBuilder
              * 
          * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccountEmail. */ 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
          @@ -233,70 +176,51 @@ public interface EventTriggerOrBuilder
              * 
          * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getServiceAccountEmailBytes(); /** - * - * *
              * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
              * 
          * - * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for retryPolicy. */ int getRetryPolicyValue(); /** - * - * *
              * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
              * 
          * - * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The retryPolicy. */ com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy getRetryPolicy(); /** - * - * *
              * Optional. The name of the channel associated with the trigger in
              * `projects/{project}/locations/{location}/channels/{channel}` format.
              * You must provide a channel to receive events from Eventarc SaaS partners.
              * 
          * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The channel. */ java.lang.String getChannel(); /** - * - * *
              * Optional. The name of the channel associated with the trigger in
              * `projects/{project}/locations/{location}/channels/{channel}` format.
              * You must provide a channel to receive events from Eventarc SaaS partners.
              * 
          * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for channel. */ - com.google.protobuf.ByteString getChannelBytes(); + com.google.protobuf.ByteString + getChannelBytes(); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java similarity index 68% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java index 269eb5a6..b13e4d79 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java @@ -1,26 +1,9 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Describes a Cloud Function that contains user computation executed in
            * response to an event. It encapsulates function and trigger configurations.
          @@ -28,16 +11,15 @@
            *
            * Protobuf type {@code google.cloud.functions.v2alpha.Function}
            */
          -public final class Function extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class Function extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.Function)
               FunctionOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use Function.newBuilder() to construct.
             private Function(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private Function() {
               name_ = "";
               environment_ = 0;
          @@ -48,15 +30,16 @@ private Function() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new Function();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet
          +  getUnknownFields() {
               return this.unknownFields;
             }
          -
             private Function(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -76,129 +59,111 @@ private Function(
                     case 0:
                       done = true;
                       break;
          -          case 10:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +          case 10: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              name_ = s;
          -              break;
          -            }
          -          case 18:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            name_ = s;
          +            break;
          +          }
          +          case 18: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              description_ = s;
          -              break;
          +            description_ = s;
          +            break;
          +          }
          +          case 26: {
          +            com.google.cloud.functions.v2alpha.BuildConfig.Builder subBuilder = null;
          +            if (buildConfig_ != null) {
          +              subBuilder = buildConfig_.toBuilder();
                       }
          -          case 26:
          -            {
          -              com.google.cloud.functions.v2alpha.BuildConfig.Builder subBuilder = null;
          -              if (buildConfig_ != null) {
          -                subBuilder = buildConfig_.toBuilder();
          -              }
          -              buildConfig_ =
          -                  input.readMessage(
          -                      com.google.cloud.functions.v2alpha.BuildConfig.parser(), extensionRegistry);
          -              if (subBuilder != null) {
          -                subBuilder.mergeFrom(buildConfig_);
          -                buildConfig_ = subBuilder.buildPartial();
          -              }
          -
          -              break;
          +            buildConfig_ = input.readMessage(com.google.cloud.functions.v2alpha.BuildConfig.parser(), extensionRegistry);
          +            if (subBuilder != null) {
          +              subBuilder.mergeFrom(buildConfig_);
          +              buildConfig_ = subBuilder.buildPartial();
                       }
          -          case 34:
          -            {
          -              com.google.cloud.functions.v2alpha.ServiceConfig.Builder subBuilder = null;
          -              if (serviceConfig_ != null) {
          -                subBuilder = serviceConfig_.toBuilder();
          -              }
          -              serviceConfig_ =
          -                  input.readMessage(
          -                      com.google.cloud.functions.v2alpha.ServiceConfig.parser(), extensionRegistry);
          -              if (subBuilder != null) {
          -                subBuilder.mergeFrom(serviceConfig_);
          -                serviceConfig_ = subBuilder.buildPartial();
          -              }
          -
          -              break;
          +
          +            break;
          +          }
          +          case 34: {
          +            com.google.cloud.functions.v2alpha.ServiceConfig.Builder subBuilder = null;
          +            if (serviceConfig_ != null) {
          +              subBuilder = serviceConfig_.toBuilder();
                       }
          -          case 42:
          -            {
          -              com.google.cloud.functions.v2alpha.EventTrigger.Builder subBuilder = null;
          -              if (eventTrigger_ != null) {
          -                subBuilder = eventTrigger_.toBuilder();
          -              }
          -              eventTrigger_ =
          -                  input.readMessage(
          -                      com.google.cloud.functions.v2alpha.EventTrigger.parser(), extensionRegistry);
          -              if (subBuilder != null) {
          -                subBuilder.mergeFrom(eventTrigger_);
          -                eventTrigger_ = subBuilder.buildPartial();
          -              }
          -
          -              break;
          +            serviceConfig_ = input.readMessage(com.google.cloud.functions.v2alpha.ServiceConfig.parser(), extensionRegistry);
          +            if (subBuilder != null) {
          +              subBuilder.mergeFrom(serviceConfig_);
          +              serviceConfig_ = subBuilder.buildPartial();
                       }
          -          case 48:
          -            {
          -              int rawValue = input.readEnum();
           
          -              state_ = rawValue;
          -              break;
          +            break;
          +          }
          +          case 42: {
          +            com.google.cloud.functions.v2alpha.EventTrigger.Builder subBuilder = null;
          +            if (eventTrigger_ != null) {
          +              subBuilder = eventTrigger_.toBuilder();
                       }
          -          case 58:
          -            {
          -              com.google.protobuf.Timestamp.Builder subBuilder = null;
          -              if (updateTime_ != null) {
          -                subBuilder = updateTime_.toBuilder();
          -              }
          -              updateTime_ =
          -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
          -              if (subBuilder != null) {
          -                subBuilder.mergeFrom(updateTime_);
          -                updateTime_ = subBuilder.buildPartial();
          -              }
          -
          -              break;
          +            eventTrigger_ = input.readMessage(com.google.cloud.functions.v2alpha.EventTrigger.parser(), extensionRegistry);
          +            if (subBuilder != null) {
          +              subBuilder.mergeFrom(eventTrigger_);
          +              eventTrigger_ = subBuilder.buildPartial();
                       }
          -          case 66:
          -            {
          -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          -                labels_ =
          -                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
          -                mutable_bitField0_ |= 0x00000001;
          -              }
          -              com.google.protobuf.MapEntry labels__ =
          -                  input.readMessage(
          -                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
          -              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
          -              break;
          +
          +            break;
          +          }
          +          case 48: {
          +            int rawValue = input.readEnum();
          +
          +            state_ = rawValue;
          +            break;
          +          }
          +          case 58: {
          +            com.google.protobuf.Timestamp.Builder subBuilder = null;
          +            if (updateTime_ != null) {
          +              subBuilder = updateTime_.toBuilder();
                       }
          -          case 74:
          -            {
          -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
          -                stateMessages_ =
          -                    new java.util.ArrayList();
          -                mutable_bitField0_ |= 0x00000002;
          -              }
          -              stateMessages_.add(
          -                  input.readMessage(
          -                      com.google.cloud.functions.v2alpha.StateMessage.parser(), extensionRegistry));
          -              break;
          +            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
          +            if (subBuilder != null) {
          +              subBuilder.mergeFrom(updateTime_);
          +              updateTime_ = subBuilder.buildPartial();
                       }
          -          case 80:
          -            {
          -              int rawValue = input.readEnum();
           
          -              environment_ = rawValue;
          -              break;
          +            break;
          +          }
          +          case 66: {
          +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          +              labels_ = com.google.protobuf.MapField.newMapField(
          +                  LabelsDefaultEntryHolder.defaultEntry);
          +              mutable_bitField0_ |= 0x00000001;
                       }
          -          default:
          -            {
          -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          -                done = true;
          -              }
          -              break;
          +            com.google.protobuf.MapEntry
          +            labels__ = input.readMessage(
          +                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
          +            labels_.getMutableMap().put(
          +                labels__.getKey(), labels__.getValue());
          +            break;
          +          }
          +          case 74: {
          +            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
          +              stateMessages_ = new java.util.ArrayList();
          +              mutable_bitField0_ |= 0x00000002;
                       }
          +            stateMessages_.add(
          +                input.readMessage(com.google.cloud.functions.v2alpha.StateMessage.parser(), extensionRegistry));
          +            break;
          +          }
          +          case 80: {
          +            int rawValue = input.readEnum();
          +
          +            environment_ = rawValue;
          +            break;
          +          }
          +          default: {
          +            if (!parseUnknownField(
          +                input, unknownFields, extensionRegistry, tag)) {
          +              done = true;
          +            }
          +            break;
          +          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -206,7 +171,8 @@ private Function(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(
          +          e).setUnfinishedMessage(this);
               } finally {
                 if (((mutable_bitField0_ & 0x00000002) != 0)) {
                   stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_);
          @@ -215,46 +181,41 @@ private Function(
                 makeExtensionsImmutable();
               }
             }
          -
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_Function_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Function_descriptor;
             }
           
             @SuppressWarnings({"rawtypes"})
             @java.lang.Override
          -  protected com.google.protobuf.MapField internalGetMapField(int number) {
          +  protected com.google.protobuf.MapField internalGetMapField(
          +      int number) {
               switch (number) {
                 case 8:
                   return internalGetLabels();
                 default:
          -        throw new RuntimeException("Invalid map field number: " + number);
          +        throw new RuntimeException(
          +            "Invalid map field number: " + number);
               }
             }
          -
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.functions.v2alpha.Function.class,
          -            com.google.cloud.functions.v2alpha.Function.Builder.class);
          +            com.google.cloud.functions.v2alpha.Function.class, com.google.cloud.functions.v2alpha.Function.Builder.class);
             }
           
             /**
          -   *
          -   *
              * 
              * Describes the current state of the function.
              * 
          * * Protobuf enum {@code google.cloud.functions.v2alpha.Function.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                * Not specified. Invalid state.
                * 
          @@ -263,8 +224,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
                * Function has been successfully deployed and is serving.
                * 
          @@ -273,8 +232,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
                * Function deployment failed and the function is not serving.
                * 
          @@ -283,8 +240,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(2), /** - * - * *
                * Function is being created or updated.
                * 
          @@ -293,8 +248,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DEPLOYING(3), /** - * - * *
                * Function is being deleted.
                * 
          @@ -303,8 +256,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
                * Function deployment failed and the function serving state is undefined.
                * The function should be updated or deleted to move it out of this state.
          @@ -317,8 +268,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
               ;
           
               /**
          -     *
          -     *
                * 
                * Not specified. Invalid state.
                * 
          @@ -327,8 +276,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
                * Function has been successfully deployed and is serving.
                * 
          @@ -337,8 +284,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
                * Function deployment failed and the function is not serving.
                * 
          @@ -347,8 +292,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 2; /** - * - * *
                * Function is being created or updated.
                * 
          @@ -357,8 +300,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPLOYING_VALUE = 3; /** - * - * *
                * Function is being deleted.
                * 
          @@ -367,8 +308,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
                * Function deployment failed and the function serving state is undefined.
                * The function should be updated or deleted to move it out of this state.
          @@ -378,6 +317,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
                */
               public static final int UNKNOWN_VALUE = 5;
           
          +
               public final int getNumber() {
                 if (this == UNRECOGNIZED) {
                   throw new java.lang.IllegalArgumentException(
          @@ -402,55 +342,52 @@ public static State valueOf(int value) {
                */
               public static State forNumber(int value) {
                 switch (value) {
          -        case 0:
          -          return STATE_UNSPECIFIED;
          -        case 1:
          -          return ACTIVE;
          -        case 2:
          -          return FAILED;
          -        case 3:
          -          return DEPLOYING;
          -        case 4:
          -          return DELETING;
          -        case 5:
          -          return UNKNOWN;
          -        default:
          -          return null;
          +        case 0: return STATE_UNSPECIFIED;
          +        case 1: return ACTIVE;
          +        case 2: return FAILED;
          +        case 3: return DEPLOYING;
          +        case 4: return DELETING;
          +        case 5: return UNKNOWN;
          +        default: return null;
                 }
               }
           
          -    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
          +    public static com.google.protobuf.Internal.EnumLiteMap
          +        internalGetValueMap() {
                 return internalValueMap;
               }
          +    private static final com.google.protobuf.Internal.EnumLiteMap<
          +        State> internalValueMap =
          +          new com.google.protobuf.Internal.EnumLiteMap() {
          +            public State findValueByNumber(int number) {
          +              return State.forNumber(number);
          +            }
          +          };
           
          -    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          -        new com.google.protobuf.Internal.EnumLiteMap() {
          -          public State findValueByNumber(int number) {
          -            return State.forNumber(number);
          -          }
          -        };
          -
          -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
          +    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() {
          +    public final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptorForType() {
                 return getDescriptor();
               }
          -
          -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          +    public static final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptor() {
                 return com.google.cloud.functions.v2alpha.Function.getDescriptor().getEnumTypes().get(0);
               }
           
               private static final State[] VALUES = values();
           
          -    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          +    public static State valueOf(
          +        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                 if (desc.getType() != getDescriptor()) {
          -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
          +        throw new java.lang.IllegalArgumentException(
          +          "EnumValueDescriptor is not for this type.");
                 }
                 if (desc.getIndex() == -1) {
                   return UNRECOGNIZED;
          @@ -470,15 +407,12 @@ private State(int value) {
             public static final int NAME_FIELD_NUMBER = 1;
             private volatile java.lang.Object name_;
             /**
          -   *
          -   *
              * 
              * A user-defined name of the function. Function names must be unique
              * globally and match pattern `projects/*/locations/*/functions/*`
              * 
          * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -487,30 +421,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
              * A user-defined name of the function. Function names must be unique
              * globally and match pattern `projects/*/locations/*/functions/*`
              * 
          * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -521,50 +455,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ENVIRONMENT_FIELD_NUMBER = 10; private int environment_; /** - * - * *
              * Describe whether the function is gen1 or gen2.
              * 
          * * .google.cloud.functions.v2alpha.Environment environment = 10; - * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override - public int getEnvironmentValue() { + @java.lang.Override public int getEnvironmentValue() { return environment_; } /** - * - * *
              * Describe whether the function is gen1 or gen2.
              * 
          * * .google.cloud.functions.v2alpha.Environment environment = 10; - * * @return The environment. */ - @java.lang.Override - public com.google.cloud.functions.v2alpha.Environment getEnvironment() { + @java.lang.Override public com.google.cloud.functions.v2alpha.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Environment result = - com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); + com.google.cloud.functions.v2alpha.Environment result = com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2alpha.Environment.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
              * User-provided description of a function.
              * 
          * * string description = 2; - * * @return The description. */ @java.lang.Override @@ -573,29 +495,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
              * User-provided description of a function.
              * 
          * * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -606,15 +528,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int BUILD_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.functions.v2alpha.BuildConfig buildConfig_; /** - * - * *
              * Describes the Build step of the function that builds a container from the
              * given source.
              * 
          * * .google.cloud.functions.v2alpha.BuildConfig build_config = 3; - * * @return Whether the buildConfig field is set. */ @java.lang.Override @@ -622,26 +541,19 @@ public boolean hasBuildConfig() { return buildConfig_ != null; } /** - * - * *
              * Describes the Build step of the function that builds a container from the
              * given source.
              * 
          * * .google.cloud.functions.v2alpha.BuildConfig build_config = 3; - * * @return The buildConfig. */ @java.lang.Override public com.google.cloud.functions.v2alpha.BuildConfig getBuildConfig() { - return buildConfig_ == null - ? com.google.cloud.functions.v2alpha.BuildConfig.getDefaultInstance() - : buildConfig_; + return buildConfig_ == null ? com.google.cloud.functions.v2alpha.BuildConfig.getDefaultInstance() : buildConfig_; } /** - * - * *
              * Describes the Build step of the function that builds a container from the
              * given source.
          @@ -657,15 +569,12 @@ public com.google.cloud.functions.v2alpha.BuildConfigOrBuilder getBuildConfigOrB
             public static final int SERVICE_CONFIG_FIELD_NUMBER = 4;
             private com.google.cloud.functions.v2alpha.ServiceConfig serviceConfig_;
             /**
          -   *
          -   *
              * 
              * Describes the Service being deployed. Currently deploys services to Cloud
              * Run (fully managed).
              * 
          * * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4; - * * @return Whether the serviceConfig field is set. */ @java.lang.Override @@ -673,26 +582,19 @@ public boolean hasServiceConfig() { return serviceConfig_ != null; } /** - * - * *
              * Describes the Service being deployed. Currently deploys services to Cloud
              * Run (fully managed).
              * 
          * * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4; - * * @return The serviceConfig. */ @java.lang.Override public com.google.cloud.functions.v2alpha.ServiceConfig getServiceConfig() { - return serviceConfig_ == null - ? com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance() - : serviceConfig_; + return serviceConfig_ == null ? com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance() : serviceConfig_; } /** - * - * *
              * Describes the Service being deployed. Currently deploys services to Cloud
              * Run (fully managed).
          @@ -708,15 +610,12 @@ public com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder getServiceConfi
             public static final int EVENT_TRIGGER_FIELD_NUMBER = 5;
             private com.google.cloud.functions.v2alpha.EventTrigger eventTrigger_;
             /**
          -   *
          -   *
              * 
              * An Eventarc trigger managed by Google Cloud Functions that fires events in
              * response to a condition in another service.
              * 
          * * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5; - * * @return Whether the eventTrigger field is set. */ @java.lang.Override @@ -724,26 +623,19 @@ public boolean hasEventTrigger() { return eventTrigger_ != null; } /** - * - * *
              * An Eventarc trigger managed by Google Cloud Functions that fires events in
              * response to a condition in another service.
              * 
          * * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5; - * * @return The eventTrigger. */ @java.lang.Override public com.google.cloud.functions.v2alpha.EventTrigger getEventTrigger() { - return eventTrigger_ == null - ? com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance() - : eventTrigger_; + return eventTrigger_ == null ? com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance() : eventTrigger_; } /** - * - * *
              * An Eventarc trigger managed by Google Cloud Functions that fires events in
              * response to a condition in another service.
          @@ -759,55 +651,38 @@ public com.google.cloud.functions.v2alpha.EventTriggerOrBuilder getEventTriggerO
             public static final int STATE_FIELD_NUMBER = 6;
             private int state_;
             /**
          -   *
          -   *
              * 
              * Output only. State of the function.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
              * Output only. State of the function.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.functions.v2alpha.Function.State getState() { + @java.lang.Override public com.google.cloud.functions.v2alpha.Function.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Function.State result = - com.google.cloud.functions.v2alpha.Function.State.valueOf(state_); + com.google.cloud.functions.v2alpha.Function.State result = com.google.cloud.functions.v2alpha.Function.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2alpha.Function.State.UNRECOGNIZED : result; } public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
              * 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]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -815,15 +690,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
              * 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]; * @return The updateTime. */ @java.lang.Override @@ -831,14 +702,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
              * 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]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -846,23 +714,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -871,30 +740,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
              * Labels associated with this Cloud Function.
              * 
          * * map<string, string> labels = 8; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
              * Labels associated with this Cloud Function.
              * 
          @@ -902,12 +769,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
              * Labels associated with this Cloud Function.
              * 
          @@ -915,16 +781,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
              * Labels associated with this Cloud Function.
              * 
          @@ -932,11 +798,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -946,76 +813,56 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int STATE_MESSAGES_FIELD_NUMBER = 9; private java.util.List stateMessages_; /** - * - * *
              * Output only. State Messages for this Cloud Function.
              * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getStateMessagesList() { return stateMessages_; } /** - * - * *
              * Output only. State Messages for this Cloud Function.
              * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getStateMessagesOrBuilderList() { return stateMessages_; } /** - * - * *
              * Output only. State Messages for this Cloud Function.
              * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getStateMessagesCount() { return stateMessages_.size(); } /** - * - * *
              * Output only. State Messages for this Cloud Function.
              * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int index) { return stateMessages_.get(index); } /** - * - * *
              * Output only. State Messages for this Cloud Function.
              * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder( @@ -1024,7 +871,6 @@ public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessages } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1036,7 +882,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1058,13 +905,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(7, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); for (int i = 0; i < stateMessages_.size(); i++) { output.writeMessage(9, stateMessages_.get(i)); } - if (environment_ - != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (environment_ != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(10, environment_); } unknownFields.writeTo(output); @@ -1083,36 +933,42 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (buildConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBuildConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBuildConfig()); } if (serviceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getServiceConfig()); } if (eventTrigger_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEventTrigger()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEventTrigger()); } if (state_ != com.google.cloud.functions.v2alpha.Function.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, labels__); } for (int i = 0; i < stateMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, stateMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, stateMessages_.get(i)); } - if (environment_ - != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, environment_); + if (environment_ != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, environment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1122,36 +978,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.Function)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.Function other = - (com.google.cloud.functions.v2alpha.Function) obj; + com.google.cloud.functions.v2alpha.Function other = (com.google.cloud.functions.v2alpha.Function) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (environment_ != other.environment_) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasBuildConfig() != other.hasBuildConfig()) return false; if (hasBuildConfig()) { - if (!getBuildConfig().equals(other.getBuildConfig())) return false; + if (!getBuildConfig() + .equals(other.getBuildConfig())) return false; } if (hasServiceConfig() != other.hasServiceConfig()) return false; if (hasServiceConfig()) { - if (!getServiceConfig().equals(other.getServiceConfig())) return false; + if (!getServiceConfig() + .equals(other.getServiceConfig())) return false; } if (hasEventTrigger() != other.hasEventTrigger()) return false; if (hasEventTrigger()) { - if (!getEventTrigger().equals(other.getEventTrigger())) return false; + if (!getEventTrigger() + .equals(other.getEventTrigger())) return false; } if (state_ != other.state_) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getStateMessagesList().equals(other.getStateMessagesList())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getStateMessagesList() + .equals(other.getStateMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1200,104 +1063,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.Function parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.Function parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.Function parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.Function parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.Function 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.v2alpha.Function parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.Function parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.Function parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.Function parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.Function parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.Function parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.Function parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.Function parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.Function parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.Function prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Describes a Cloud Function that contains user computation executed in
              * response to an event. It encapsulates function and trigger configurations.
          @@ -1305,43 +1161,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.cloud.functions.v2alpha.Function}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.Function)
                 com.google.cloud.functions.v2alpha.FunctionOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_Function_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Function_descriptor;
               }
           
               @SuppressWarnings({"rawtypes"})
          -    protected com.google.protobuf.MapField internalGetMapField(int number) {
          +    protected com.google.protobuf.MapField internalGetMapField(
          +        int number) {
                 switch (number) {
                   case 8:
                     return internalGetLabels();
                   default:
          -          throw new RuntimeException("Invalid map field number: " + number);
          +          throw new RuntimeException(
          +              "Invalid map field number: " + number);
                 }
               }
          -
               @SuppressWarnings({"rawtypes"})
          -    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
          +    protected com.google.protobuf.MapField internalGetMutableMapField(
          +        int number) {
                 switch (number) {
                   case 8:
                     return internalGetMutableLabels();
                   default:
          -          throw new RuntimeException("Invalid map field number: " + number);
          +          throw new RuntimeException(
          +              "Invalid map field number: " + number);
                 }
               }
          -
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.functions.v2alpha.Function.class,
          -              com.google.cloud.functions.v2alpha.Function.Builder.class);
          +              com.google.cloud.functions.v2alpha.Function.class, com.google.cloud.functions.v2alpha.Function.Builder.class);
               }
           
               // Construct using com.google.cloud.functions.v2alpha.Function.newBuilder()
          @@ -1349,17 +1205,17 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          -
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3
          +              .alwaysUseFieldBuilders) {
                   getStateMessagesFieldBuilder();
                 }
               }
          -
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1406,9 +1262,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_Function_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Function_descriptor;
               }
           
               @java.lang.Override
          @@ -1427,8 +1283,7 @@ public com.google.cloud.functions.v2alpha.Function build() {
           
               @java.lang.Override
               public com.google.cloud.functions.v2alpha.Function buildPartial() {
          -      com.google.cloud.functions.v2alpha.Function result =
          -          new com.google.cloud.functions.v2alpha.Function(this);
          +      com.google.cloud.functions.v2alpha.Function result = new com.google.cloud.functions.v2alpha.Function(this);
                 int from_bitField0_ = bitField0_;
                 result.name_ = name_;
                 result.environment_ = environment_;
          @@ -1473,39 +1328,38 @@ public com.google.cloud.functions.v2alpha.Function buildPartial() {
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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) {
          -        return mergeFrom((com.google.cloud.functions.v2alpha.Function) other);
          +        return mergeFrom((com.google.cloud.functions.v2alpha.Function)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1540,7 +1394,8 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.Function other) {
                 if (other.hasUpdateTime()) {
                   mergeUpdateTime(other.getUpdateTime());
                 }
          -      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
          +      internalGetMutableLabels().mergeFrom(
          +          other.internalGetLabels());
                 if (stateMessagesBuilder_ == null) {
                   if (!other.stateMessages_.isEmpty()) {
                     if (stateMessages_.isEmpty()) {
          @@ -1559,10 +1414,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.Function other) {
                       stateMessagesBuilder_ = null;
                       stateMessages_ = other.stateMessages_;
                       bitField0_ = (bitField0_ & ~0x00000002);
          -            stateMessagesBuilder_ =
          -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          -                    ? getStateMessagesFieldBuilder()
          -                    : null;
          +            stateMessagesBuilder_ = 
          +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          +                 getStateMessagesFieldBuilder() : null;
                     } else {
                       stateMessagesBuilder_.addAllMessages(other.stateMessages_);
                     }
          @@ -1596,26 +1450,23 @@ public Builder mergeFrom(
                 }
                 return this;
               }
          -
               private int bitField0_;
           
               private java.lang.Object name_ = "";
               /**
          -     *
          -     *
                * 
                * A user-defined name of the function. Function names must be unique
                * globally and match pattern `projects/*/locations/*/functions/*`
                * 
          * * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1624,22 +1475,21 @@ public java.lang.String getName() { } } /** - * - * *
                * A user-defined name of the function. Function names must be unique
                * globally and match pattern `projects/*/locations/*/functions/*`
                * 
          * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1647,64 +1497,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                * A user-defined name of the function. Function names must be unique
                * globally and match pattern `projects/*/locations/*/functions/*`
                * 
          * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
                * A user-defined name of the function. Function names must be unique
                * globally and match pattern `projects/*/locations/*/functions/*`
                * 
          * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
                * A user-defined name of the function. Function names must be unique
                * globally and match pattern `projects/*/locations/*/functions/*`
                * 
          * * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1712,65 +1555,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int environment_ = 0; /** - * - * *
                * Describe whether the function is gen1 or gen2.
                * 
          * * .google.cloud.functions.v2alpha.Environment environment = 10; - * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override - public int getEnvironmentValue() { + @java.lang.Override public int getEnvironmentValue() { return environment_; } /** - * - * *
                * Describe whether the function is gen1 or gen2.
                * 
          * * .google.cloud.functions.v2alpha.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; onChanged(); return this; } /** - * - * *
                * Describe whether the function is gen1 or gen2.
                * 
          * * .google.cloud.functions.v2alpha.Environment environment = 10; - * * @return The environment. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Environment result = - com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); + com.google.cloud.functions.v2alpha.Environment result = com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2alpha.Environment.UNRECOGNIZED : result; } /** - * - * *
                * Describe whether the function is gen1 or gen2.
                * 
          * * .google.cloud.functions.v2alpha.Environment environment = 10; - * * @param value The environment to set. * @return This builder for chaining. */ @@ -1778,24 +1607,21 @@ public Builder setEnvironment(com.google.cloud.functions.v2alpha.Environment val if (value == null) { throw new NullPointerException(); } - + environment_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                * Describe whether the function is gen1 or gen2.
                * 
          * * .google.cloud.functions.v2alpha.Environment environment = 10; - * * @return This builder for chaining. */ public Builder clearEnvironment() { - + environment_ = 0; onChanged(); return this; @@ -1803,20 +1629,18 @@ public Builder clearEnvironment() { 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1825,21 +1649,20 @@ public java.lang.String getDescription() { } } /** - * - * *
                * User-provided description of a function.
                * 
          * * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1847,61 +1670,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
                * User-provided description of a function.
                * 
          * * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
                * User-provided description of a function.
                * 
          * * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
                * User-provided description of a function.
                * 
          * * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1909,49 +1725,36 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.functions.v2alpha.BuildConfig buildConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.BuildConfig, - com.google.cloud.functions.v2alpha.BuildConfig.Builder, - com.google.cloud.functions.v2alpha.BuildConfigOrBuilder> - buildConfigBuilder_; + com.google.cloud.functions.v2alpha.BuildConfig, com.google.cloud.functions.v2alpha.BuildConfig.Builder, com.google.cloud.functions.v2alpha.BuildConfigOrBuilder> buildConfigBuilder_; /** - * - * *
                * Describes the Build step of the function that builds a container from the
                * given source.
                * 
          * * .google.cloud.functions.v2alpha.BuildConfig build_config = 3; - * * @return Whether the buildConfig field is set. */ public boolean hasBuildConfig() { return buildConfigBuilder_ != null || buildConfig_ != null; } /** - * - * *
                * Describes the Build step of the function that builds a container from the
                * given source.
                * 
          * * .google.cloud.functions.v2alpha.BuildConfig build_config = 3; - * * @return The buildConfig. */ public com.google.cloud.functions.v2alpha.BuildConfig getBuildConfig() { if (buildConfigBuilder_ == null) { - return buildConfig_ == null - ? com.google.cloud.functions.v2alpha.BuildConfig.getDefaultInstance() - : buildConfig_; + return buildConfig_ == null ? com.google.cloud.functions.v2alpha.BuildConfig.getDefaultInstance() : buildConfig_; } else { return buildConfigBuilder_.getMessage(); } } /** - * - * *
                * Describes the Build step of the function that builds a container from the
                * given source.
          @@ -1973,8 +1776,6 @@ public Builder setBuildConfig(com.google.cloud.functions.v2alpha.BuildConfig val
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * Describes the Build step of the function that builds a container from the
                * given source.
          @@ -1994,8 +1795,6 @@ public Builder setBuildConfig(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * Describes the Build step of the function that builds a container from the
                * given source.
          @@ -2007,9 +1806,7 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2alpha.BuildConfig v
                 if (buildConfigBuilder_ == null) {
                   if (buildConfig_ != null) {
                     buildConfig_ =
          -              com.google.cloud.functions.v2alpha.BuildConfig.newBuilder(buildConfig_)
          -                  .mergeFrom(value)
          -                  .buildPartial();
          +            com.google.cloud.functions.v2alpha.BuildConfig.newBuilder(buildConfig_).mergeFrom(value).buildPartial();
                   } else {
                     buildConfig_ = value;
                   }
          @@ -2021,8 +1818,6 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2alpha.BuildConfig v
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * Describes the Build step of the function that builds a container from the
                * given source.
          @@ -2042,8 +1837,6 @@ public Builder clearBuildConfig() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * Describes the Build step of the function that builds a container from the
                * given source.
          @@ -2052,13 +1845,11 @@ public Builder clearBuildConfig() {
                * .google.cloud.functions.v2alpha.BuildConfig build_config = 3;
                */
               public com.google.cloud.functions.v2alpha.BuildConfig.Builder getBuildConfigBuilder() {
          -
          +      
                 onChanged();
                 return getBuildConfigFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * Describes the Build step of the function that builds a container from the
                * given source.
          @@ -2070,14 +1861,11 @@ public com.google.cloud.functions.v2alpha.BuildConfigOrBuilder getBuildConfigOrB
                 if (buildConfigBuilder_ != null) {
                   return buildConfigBuilder_.getMessageOrBuilder();
                 } else {
          -        return buildConfig_ == null
          -            ? com.google.cloud.functions.v2alpha.BuildConfig.getDefaultInstance()
          -            : buildConfig_;
          +        return buildConfig_ == null ?
          +            com.google.cloud.functions.v2alpha.BuildConfig.getDefaultInstance() : buildConfig_;
                 }
               }
               /**
          -     *
          -     *
                * 
                * Describes the Build step of the function that builds a container from the
                * given source.
          @@ -2086,17 +1874,14 @@ public com.google.cloud.functions.v2alpha.BuildConfigOrBuilder getBuildConfigOrB
                * .google.cloud.functions.v2alpha.BuildConfig build_config = 3;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.cloud.functions.v2alpha.BuildConfig,
          -            com.google.cloud.functions.v2alpha.BuildConfig.Builder,
          -            com.google.cloud.functions.v2alpha.BuildConfigOrBuilder>
          +        com.google.cloud.functions.v2alpha.BuildConfig, com.google.cloud.functions.v2alpha.BuildConfig.Builder, com.google.cloud.functions.v2alpha.BuildConfigOrBuilder> 
                   getBuildConfigFieldBuilder() {
                 if (buildConfigBuilder_ == null) {
          -        buildConfigBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.cloud.functions.v2alpha.BuildConfig,
          -                com.google.cloud.functions.v2alpha.BuildConfig.Builder,
          -                com.google.cloud.functions.v2alpha.BuildConfigOrBuilder>(
          -                getBuildConfig(), getParentForChildren(), isClean());
          +        buildConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.cloud.functions.v2alpha.BuildConfig, com.google.cloud.functions.v2alpha.BuildConfig.Builder, com.google.cloud.functions.v2alpha.BuildConfigOrBuilder>(
          +                getBuildConfig(),
          +                getParentForChildren(),
          +                isClean());
                   buildConfig_ = null;
                 }
                 return buildConfigBuilder_;
          @@ -2104,49 +1889,36 @@ public com.google.cloud.functions.v2alpha.BuildConfigOrBuilder getBuildConfigOrB
           
               private com.google.cloud.functions.v2alpha.ServiceConfig serviceConfig_;
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.cloud.functions.v2alpha.ServiceConfig,
          -            com.google.cloud.functions.v2alpha.ServiceConfig.Builder,
          -            com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder>
          -        serviceConfigBuilder_;
          +        com.google.cloud.functions.v2alpha.ServiceConfig, com.google.cloud.functions.v2alpha.ServiceConfig.Builder, com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder> serviceConfigBuilder_;
               /**
          -     *
          -     *
                * 
                * Describes the Service being deployed. Currently deploys services to Cloud
                * Run (fully managed).
                * 
          * * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4; - * * @return Whether the serviceConfig field is set. */ public boolean hasServiceConfig() { return serviceConfigBuilder_ != null || serviceConfig_ != null; } /** - * - * *
                * Describes the Service being deployed. Currently deploys services to Cloud
                * Run (fully managed).
                * 
          * * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4; - * * @return The serviceConfig. */ public com.google.cloud.functions.v2alpha.ServiceConfig getServiceConfig() { if (serviceConfigBuilder_ == null) { - return serviceConfig_ == null - ? com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance() - : serviceConfig_; + return serviceConfig_ == null ? com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance() : serviceConfig_; } else { return serviceConfigBuilder_.getMessage(); } } /** - * - * *
                * Describes the Service being deployed. Currently deploys services to Cloud
                * Run (fully managed).
          @@ -2168,8 +1940,6 @@ public Builder setServiceConfig(com.google.cloud.functions.v2alpha.ServiceConfig
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * Describes the Service being deployed. Currently deploys services to Cloud
                * Run (fully managed).
          @@ -2189,8 +1959,6 @@ public Builder setServiceConfig(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * Describes the Service being deployed. Currently deploys services to Cloud
                * Run (fully managed).
          @@ -2202,9 +1970,7 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2alpha.ServiceConf
                 if (serviceConfigBuilder_ == null) {
                   if (serviceConfig_ != null) {
                     serviceConfig_ =
          -              com.google.cloud.functions.v2alpha.ServiceConfig.newBuilder(serviceConfig_)
          -                  .mergeFrom(value)
          -                  .buildPartial();
          +            com.google.cloud.functions.v2alpha.ServiceConfig.newBuilder(serviceConfig_).mergeFrom(value).buildPartial();
                   } else {
                     serviceConfig_ = value;
                   }
          @@ -2216,8 +1982,6 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2alpha.ServiceConf
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * Describes the Service being deployed. Currently deploys services to Cloud
                * Run (fully managed).
          @@ -2237,8 +2001,6 @@ public Builder clearServiceConfig() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * Describes the Service being deployed. Currently deploys services to Cloud
                * Run (fully managed).
          @@ -2247,13 +2009,11 @@ public Builder clearServiceConfig() {
                * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4;
                */
               public com.google.cloud.functions.v2alpha.ServiceConfig.Builder getServiceConfigBuilder() {
          -
          +      
                 onChanged();
                 return getServiceConfigFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * Describes the Service being deployed. Currently deploys services to Cloud
                * Run (fully managed).
          @@ -2265,14 +2025,11 @@ public com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder getServiceConfi
                 if (serviceConfigBuilder_ != null) {
                   return serviceConfigBuilder_.getMessageOrBuilder();
                 } else {
          -        return serviceConfig_ == null
          -            ? com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance()
          -            : serviceConfig_;
          +        return serviceConfig_ == null ?
          +            com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance() : serviceConfig_;
                 }
               }
               /**
          -     *
          -     *
                * 
                * Describes the Service being deployed. Currently deploys services to Cloud
                * Run (fully managed).
          @@ -2281,17 +2038,14 @@ public com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder getServiceConfi
                * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.cloud.functions.v2alpha.ServiceConfig,
          -            com.google.cloud.functions.v2alpha.ServiceConfig.Builder,
          -            com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder>
          +        com.google.cloud.functions.v2alpha.ServiceConfig, com.google.cloud.functions.v2alpha.ServiceConfig.Builder, com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder> 
                   getServiceConfigFieldBuilder() {
                 if (serviceConfigBuilder_ == null) {
          -        serviceConfigBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.cloud.functions.v2alpha.ServiceConfig,
          -                com.google.cloud.functions.v2alpha.ServiceConfig.Builder,
          -                com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder>(
          -                getServiceConfig(), getParentForChildren(), isClean());
          +        serviceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.cloud.functions.v2alpha.ServiceConfig, com.google.cloud.functions.v2alpha.ServiceConfig.Builder, com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder>(
          +                getServiceConfig(),
          +                getParentForChildren(),
          +                isClean());
                   serviceConfig_ = null;
                 }
                 return serviceConfigBuilder_;
          @@ -2299,49 +2053,36 @@ public com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder getServiceConfi
           
               private com.google.cloud.functions.v2alpha.EventTrigger eventTrigger_;
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.cloud.functions.v2alpha.EventTrigger,
          -            com.google.cloud.functions.v2alpha.EventTrigger.Builder,
          -            com.google.cloud.functions.v2alpha.EventTriggerOrBuilder>
          -        eventTriggerBuilder_;
          +        com.google.cloud.functions.v2alpha.EventTrigger, com.google.cloud.functions.v2alpha.EventTrigger.Builder, com.google.cloud.functions.v2alpha.EventTriggerOrBuilder> eventTriggerBuilder_;
               /**
          -     *
          -     *
                * 
                * An Eventarc trigger managed by Google Cloud Functions that fires events in
                * response to a condition in another service.
                * 
          * * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5; - * * @return Whether the eventTrigger field is set. */ public boolean hasEventTrigger() { return eventTriggerBuilder_ != null || eventTrigger_ != null; } /** - * - * *
                * An Eventarc trigger managed by Google Cloud Functions that fires events in
                * response to a condition in another service.
                * 
          * * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5; - * * @return The eventTrigger. */ public com.google.cloud.functions.v2alpha.EventTrigger getEventTrigger() { if (eventTriggerBuilder_ == null) { - return eventTrigger_ == null - ? com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance() - : eventTrigger_; + return eventTrigger_ == null ? com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance() : eventTrigger_; } else { return eventTriggerBuilder_.getMessage(); } } /** - * - * *
                * An Eventarc trigger managed by Google Cloud Functions that fires events in
                * response to a condition in another service.
          @@ -2363,8 +2104,6 @@ public Builder setEventTrigger(com.google.cloud.functions.v2alpha.EventTrigger v
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * An Eventarc trigger managed by Google Cloud Functions that fires events in
                * response to a condition in another service.
          @@ -2384,8 +2123,6 @@ public Builder setEventTrigger(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * An Eventarc trigger managed by Google Cloud Functions that fires events in
                * response to a condition in another service.
          @@ -2397,9 +2134,7 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2alpha.EventTrigger
                 if (eventTriggerBuilder_ == null) {
                   if (eventTrigger_ != null) {
                     eventTrigger_ =
          -              com.google.cloud.functions.v2alpha.EventTrigger.newBuilder(eventTrigger_)
          -                  .mergeFrom(value)
          -                  .buildPartial();
          +            com.google.cloud.functions.v2alpha.EventTrigger.newBuilder(eventTrigger_).mergeFrom(value).buildPartial();
                   } else {
                     eventTrigger_ = value;
                   }
          @@ -2411,8 +2146,6 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2alpha.EventTrigger
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * An Eventarc trigger managed by Google Cloud Functions that fires events in
                * response to a condition in another service.
          @@ -2432,8 +2165,6 @@ public Builder clearEventTrigger() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * An Eventarc trigger managed by Google Cloud Functions that fires events in
                * response to a condition in another service.
          @@ -2442,13 +2173,11 @@ public Builder clearEventTrigger() {
                * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5;
                */
               public com.google.cloud.functions.v2alpha.EventTrigger.Builder getEventTriggerBuilder() {
          -
          +      
                 onChanged();
                 return getEventTriggerFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * An Eventarc trigger managed by Google Cloud Functions that fires events in
                * response to a condition in another service.
          @@ -2460,14 +2189,11 @@ public com.google.cloud.functions.v2alpha.EventTriggerOrBuilder getEventTriggerO
                 if (eventTriggerBuilder_ != null) {
                   return eventTriggerBuilder_.getMessageOrBuilder();
                 } else {
          -        return eventTrigger_ == null
          -            ? com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance()
          -            : eventTrigger_;
          +        return eventTrigger_ == null ?
          +            com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance() : eventTrigger_;
                 }
               }
               /**
          -     *
          -     *
                * 
                * An Eventarc trigger managed by Google Cloud Functions that fires events in
                * response to a condition in another service.
          @@ -2476,17 +2202,14 @@ public com.google.cloud.functions.v2alpha.EventTriggerOrBuilder getEventTriggerO
                * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.cloud.functions.v2alpha.EventTrigger,
          -            com.google.cloud.functions.v2alpha.EventTrigger.Builder,
          -            com.google.cloud.functions.v2alpha.EventTriggerOrBuilder>
          +        com.google.cloud.functions.v2alpha.EventTrigger, com.google.cloud.functions.v2alpha.EventTrigger.Builder, com.google.cloud.functions.v2alpha.EventTriggerOrBuilder> 
                   getEventTriggerFieldBuilder() {
                 if (eventTriggerBuilder_ == null) {
          -        eventTriggerBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.cloud.functions.v2alpha.EventTrigger,
          -                com.google.cloud.functions.v2alpha.EventTrigger.Builder,
          -                com.google.cloud.functions.v2alpha.EventTriggerOrBuilder>(
          -                getEventTrigger(), getParentForChildren(), isClean());
          +        eventTriggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.cloud.functions.v2alpha.EventTrigger, com.google.cloud.functions.v2alpha.EventTrigger.Builder, com.google.cloud.functions.v2alpha.EventTriggerOrBuilder>(
          +                getEventTrigger(),
          +                getParentForChildren(),
          +                isClean());
                   eventTrigger_ = null;
                 }
                 return eventTriggerBuilder_;
          @@ -2494,75 +2217,51 @@ public com.google.cloud.functions.v2alpha.EventTriggerOrBuilder getEventTriggerO
           
               private int state_ = 0;
               /**
          -     *
          -     *
                * 
                * Output only. State of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
                * Output only. State of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
                * Output only. State of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Function.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Function.State result = - com.google.cloud.functions.v2alpha.Function.State.valueOf(state_); - return result == null - ? com.google.cloud.functions.v2alpha.Function.State.UNRECOGNIZED - : result; + com.google.cloud.functions.v2alpha.Function.State result = com.google.cloud.functions.v2alpha.Function.State.valueOf(state_); + return result == null ? com.google.cloud.functions.v2alpha.Function.State.UNRECOGNIZED : result; } /** - * - * *
                * Output only. State of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2570,26 +2269,21 @@ public Builder setState(com.google.cloud.functions.v2alpha.Function.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                * Output only. State of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2597,58 +2291,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
                * 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]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
                * 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]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
                * 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]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2664,17 +2339,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                * 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]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2685,21 +2357,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                * 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]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2711,15 +2379,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                * 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]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2733,84 +2397,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
                * 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]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
                * 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]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
                * 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]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2822,30 +2471,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
                * Labels associated with this Cloud Function.
                * 
          * * map<string, string> labels = 8; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
                * Labels associated with this Cloud Function.
                * 
          @@ -2853,12 +2500,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
                * Labels associated with this Cloud Function.
                * 
          @@ -2866,17 +2512,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
                * Labels associated with this Cloud Function.
                * 
          @@ -2884,11 +2529,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2896,92 +2542,85 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
                * Labels associated with this Cloud Function.
                * 
          * * map<string, string> labels = 8; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
                * Labels associated with this Cloud Function.
                * 
          * * map<string, string> labels = 8; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
                * Labels associated with this Cloud Function.
                * 
          * * map<string, string> labels = 8; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.util.List stateMessages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStateMessagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - stateMessages_ = - new java.util.ArrayList( - stateMessages_); + stateMessages_ = new java.util.ArrayList(stateMessages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.StateMessage, - com.google.cloud.functions.v2alpha.StateMessage.Builder, - com.google.cloud.functions.v2alpha.StateMessageOrBuilder> - stateMessagesBuilder_; + com.google.cloud.functions.v2alpha.StateMessage, com.google.cloud.functions.v2alpha.StateMessage.Builder, com.google.cloud.functions.v2alpha.StateMessageOrBuilder> stateMessagesBuilder_; /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getStateMessagesList() { if (stateMessagesBuilder_ == null) { @@ -2991,15 +2630,11 @@ public java.util.List getStateM } } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getStateMessagesCount() { if (stateMessagesBuilder_ == null) { @@ -3009,15 +2644,11 @@ public int getStateMessagesCount() { } } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int index) { if (stateMessagesBuilder_ == null) { @@ -3027,15 +2658,11 @@ public com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int inde } } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateMessages( int index, com.google.cloud.functions.v2alpha.StateMessage value) { @@ -3052,15 +2679,11 @@ public Builder setStateMessages( return this; } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateMessages( int index, com.google.cloud.functions.v2alpha.StateMessage.Builder builderForValue) { @@ -3074,15 +2697,11 @@ public Builder setStateMessages( return this; } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStateMessages(com.google.cloud.functions.v2alpha.StateMessage value) { if (stateMessagesBuilder_ == null) { @@ -3098,15 +2717,11 @@ public Builder addStateMessages(com.google.cloud.functions.v2alpha.StateMessage return this; } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStateMessages( int index, com.google.cloud.functions.v2alpha.StateMessage value) { @@ -3123,15 +2738,11 @@ public Builder addStateMessages( return this; } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStateMessages( com.google.cloud.functions.v2alpha.StateMessage.Builder builderForValue) { @@ -3145,15 +2756,11 @@ public Builder addStateMessages( return this; } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStateMessages( int index, com.google.cloud.functions.v2alpha.StateMessage.Builder builderForValue) { @@ -3167,21 +2774,18 @@ public Builder addStateMessages( return this; } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllStateMessages( java.lang.Iterable values) { if (stateMessagesBuilder_ == null) { ensureStateMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stateMessages_); onChanged(); } else { stateMessagesBuilder_.addAllMessages(values); @@ -3189,15 +2793,11 @@ public Builder addAllStateMessages( return this; } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStateMessages() { if (stateMessagesBuilder_ == null) { @@ -3210,15 +2810,11 @@ public Builder clearStateMessages() { return this; } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeStateMessages(int index) { if (stateMessagesBuilder_ == null) { @@ -3231,52 +2827,39 @@ public Builder removeStateMessages(int index) { return this; } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.functions.v2alpha.StateMessage.Builder getStateMessagesBuilder( int index) { return getStateMessagesFieldBuilder().getBuilder(index); } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder( int index) { if (stateMessagesBuilder_ == null) { - return stateMessages_.get(index); - } else { + return stateMessages_.get(index); } else { return stateMessagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStateMessagesOrBuilderList() { + public java.util.List + getStateMessagesOrBuilderList() { if (stateMessagesBuilder_ != null) { return stateMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -3284,63 +2867,45 @@ public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessages } } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesBuilder() { - return getStateMessagesFieldBuilder() - .addBuilder(com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder().addBuilder( + com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesBuilder( int index) { - return getStateMessagesFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); } /** - * - * *
                * Output only. State Messages for this Cloud Function.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStateMessagesBuilderList() { + public java.util.List + getStateMessagesBuilderList() { return getStateMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.StateMessage, - com.google.cloud.functions.v2alpha.StateMessage.Builder, - com.google.cloud.functions.v2alpha.StateMessageOrBuilder> + com.google.cloud.functions.v2alpha.StateMessage, com.google.cloud.functions.v2alpha.StateMessage.Builder, com.google.cloud.functions.v2alpha.StateMessageOrBuilder> getStateMessagesFieldBuilder() { if (stateMessagesBuilder_ == null) { - stateMessagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.StateMessage, - com.google.cloud.functions.v2alpha.StateMessage.Builder, - com.google.cloud.functions.v2alpha.StateMessageOrBuilder>( + stateMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.StateMessage, com.google.cloud.functions.v2alpha.StateMessage.Builder, com.google.cloud.functions.v2alpha.StateMessageOrBuilder>( stateMessages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3349,9 +2914,9 @@ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesB } return stateMessagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3361,12 +2926,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.Function) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.Function) private static final com.google.cloud.functions.v2alpha.Function DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.Function(); } @@ -3375,16 +2940,16 @@ public static com.google.cloud.functions.v2alpha.Function getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Function parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Function(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Function parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Function(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3399,4 +2964,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.Function getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java similarity index 100% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java similarity index 73% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java index ec936cac..9dc28810 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java @@ -1,134 +1,94 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface FunctionOrBuilder - extends +public interface FunctionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.Function) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * A user-defined name of the function. Function names must be unique
              * globally and match pattern `projects/*/locations/*/functions/*`
              * 
          * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
              * A user-defined name of the function. Function names must be unique
              * globally and match pattern `projects/*/locations/*/functions/*`
              * 
          * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
              * Describe whether the function is gen1 or gen2.
              * 
          * * .google.cloud.functions.v2alpha.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.v2alpha.Environment environment = 10; - * * @return The environment. */ com.google.cloud.functions.v2alpha.Environment getEnvironment(); /** - * - * *
              * User-provided description of a function.
              * 
          * * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
              * User-provided description of a function.
              * 
          * * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
              * Describes the Build step of the function that builds a container from the
              * given source.
              * 
          * * .google.cloud.functions.v2alpha.BuildConfig build_config = 3; - * * @return Whether the buildConfig field is set. */ boolean hasBuildConfig(); /** - * - * *
              * Describes the Build step of the function that builds a container from the
              * given source.
              * 
          * * .google.cloud.functions.v2alpha.BuildConfig build_config = 3; - * * @return The buildConfig. */ com.google.cloud.functions.v2alpha.BuildConfig getBuildConfig(); /** - * - * *
              * Describes the Build step of the function that builds a container from the
              * given source.
          @@ -139,34 +99,26 @@ public interface FunctionOrBuilder
             com.google.cloud.functions.v2alpha.BuildConfigOrBuilder getBuildConfigOrBuilder();
           
             /**
          -   *
          -   *
              * 
              * Describes the Service being deployed. Currently deploys services to Cloud
              * Run (fully managed).
              * 
          * * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4; - * * @return Whether the serviceConfig field is set. */ boolean hasServiceConfig(); /** - * - * *
              * Describes the Service being deployed. Currently deploys services to Cloud
              * Run (fully managed).
              * 
          * * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4; - * * @return The serviceConfig. */ com.google.cloud.functions.v2alpha.ServiceConfig getServiceConfig(); /** - * - * *
              * Describes the Service being deployed. Currently deploys services to Cloud
              * Run (fully managed).
          @@ -177,34 +129,26 @@ public interface FunctionOrBuilder
             com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder getServiceConfigOrBuilder();
           
             /**
          -   *
          -   *
              * 
              * An Eventarc trigger managed by Google Cloud Functions that fires events in
              * response to a condition in another service.
              * 
          * * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5; - * * @return Whether the eventTrigger field is set. */ boolean hasEventTrigger(); /** - * - * *
              * An Eventarc trigger managed by Google Cloud Functions that fires events in
              * response to a condition in another service.
              * 
          * * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5; - * * @return The eventTrigger. */ com.google.cloud.functions.v2alpha.EventTrigger getEventTrigger(); /** - * - * *
              * An Eventarc trigger managed by Google Cloud Functions that fires events in
              * response to a condition in another service.
          @@ -215,75 +159,52 @@ public interface FunctionOrBuilder
             com.google.cloud.functions.v2alpha.EventTriggerOrBuilder getEventTriggerOrBuilder();
           
             /**
          -   *
          -   *
              * 
              * Output only. State of the function.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
              * Output only. State of the function.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.functions.v2alpha.Function.State getState(); /** - * - * *
              * 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]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
              * 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]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
              * 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]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
              * Labels associated with this Cloud Function.
              * 
          @@ -292,31 +213,30 @@ public interface FunctionOrBuilder */ int getLabelsCount(); /** - * - * *
              * Labels associated with this Cloud Function.
              * 
          * * map<string, string> labels = 8; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
              * Labels associated with this Cloud Function.
              * 
          * * map<string, string> labels = 8; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
              * Labels associated with this Cloud Function.
              * 
          @@ -325,80 +245,62 @@ public interface FunctionOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
              * Labels associated with this Cloud Function.
              * 
          * * map<string, string> labels = 8; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
              * Output only. State Messages for this Cloud Function.
              * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getStateMessagesList(); + java.util.List + getStateMessagesList(); /** - * - * *
              * Output only. State Messages for this Cloud Function.
              * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int index); /** - * - * *
              * Output only. State Messages for this Cloud Function.
              * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getStateMessagesCount(); /** - * - * *
              * Output only. State Messages for this Cloud Function.
              * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getStateMessagesOrBuilderList(); /** - * - * *
              * Output only. State Messages for this Cloud Function.
              * 
          * - * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder(int index); + com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder( + int index); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java new file mode 100644 index 00000000..f8998709 --- /dev/null +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java @@ -0,0 +1,653 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2alpha/functions.proto + +package com.google.cloud.functions.v2alpha; + +public final class FunctionsProto { + private FunctionsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_Function_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_Source_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_Stage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/functions/v2alpha/functio" + + "ns.proto\022\036google.cloud.functions.v2alpha" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032#goo" + + "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" + + "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" + + "nctions.v2alpha.BuildConfig\022E\n\016service_c" + + "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" + + "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\204\007\n\"com.google.cloud.functi" + + "ons.v2alphaB\016FunctionsProtoP\001ZGgoogle.go" + + "lang.org/genproto/googleapis/cloud/funct" + + "ions/v2alpha;functions\242\002\003GCF\352Ao\n*artifac" + + "tregistry.googleapis.com/Repository\022Apro" + + "jects/{project}/locations/{location}/rep" + + "ositories/{repository}\352AY\n\037cloudbuild.go" + + "ogleapis.com/Build\0226projects/{project}/l" + + "ocations/{location}/builds/{build}\352Ai\n$c" + + "loudbuild.googleapis.com/WorkerPool\022Apro" + + "jects/{project}/locations/{location}/wor" + + "kerPools/{worker_pool}\352AX\n\032run.googleapi" + + "s.com/Service\022:projects/{project}/locati" + + "ons/{location}/services/{service}\352Ad\n\"vp" + + "caccess.googleapis.com/Connector\022>projec" + + "ts/{project}/locations/{location}/connec" + + "tors/{connector}\352A]\n\037eventarc.googleapis" + + ".com/Trigger\022:projects/{project}/locatio" + + "ns/{location}/triggers/{trigger}\352A]\n\037eve" + + "ntarc.googleapis.com/Channel\022:projects/{" + + "project}/locations/{location}/channels/{" + + "channel}\352A@\n\033pubsub.googleapis.com/Topic" + + "\022!projects/{project}/topics/{topic}b\006pro" + + "to3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_functions_v2alpha_Function_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_Function_descriptor, + new java.lang.String[] { "Name", "Environment", "Description", "BuildConfig", "ServiceConfig", "EventTrigger", "State", "UpdateTime", "Labels", "StateMessages", }); + internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor = + internal_static_google_cloud_functions_v2alpha_Function_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor, + new java.lang.String[] { "Severity", "Type", "Message", }); + internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor, + new java.lang.String[] { "Bucket", "Object", "Generation", }); + internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor, + new java.lang.String[] { "BranchName", "TagName", "CommitSha", "ProjectId", "RepoName", "Dir", "InvertRegex", "Revision", }); + internal_static_google_cloud_functions_v2alpha_Source_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_Source_descriptor, + new java.lang.String[] { "StorageSource", "RepoSource", "Source", }); + internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor, + new java.lang.String[] { "ResolvedStorageSource", "ResolvedRepoSource", }); + internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor, + new java.lang.String[] { "Build", "Runtime", "EntryPoint", "Source", "SourceProvenance", "WorkerPool", "EnvironmentVariables", "DockerRepository", }); + internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor, + new java.lang.String[] { "Service", "TimeoutSeconds", "AvailableMemory", "EnvironmentVariables", "MaxInstanceCount", "MinInstanceCount", "VpcConnector", "VpcConnectorEgressSettings", "IngressSettings", "Uri", "ServiceAccountEmail", "AllTrafficOnLatestRevision", "SecretEnvironmentVariables", "SecretVolumes", "Revision", }); + internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor, + new java.lang.String[] { "Key", "ProjectId", "Secret", "Version", }); + internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor, + new java.lang.String[] { "MountPath", "ProjectId", "Secret", "Versions", }); + internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor = + internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor, + new java.lang.String[] { "Version", "Path", }); + internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor, + new java.lang.String[] { "Trigger", "TriggerRegion", "EventType", "EventFilters", "PubsubTopic", "ServiceAccountEmail", "RetryPolicy", "Channel", }); + internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor, + new java.lang.String[] { "Attribute", "Value", "Operator", }); + internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor, + new java.lang.String[] { "Functions", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor, + new java.lang.String[] { "Parent", "Function", "FunctionId", }); + internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor, + new java.lang.String[] { "Function", "UpdateMask", }); + internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor, + new java.lang.String[] { "UploadUrl", "StorageSource", }); + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor, + new java.lang.String[] { "DownloadUrl", }); + internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", }); + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor, + new java.lang.String[] { "Runtimes", }); + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor = + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Stage", "Warnings", "Environment", }); + internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", "RequestResource", "Stages", }); + internal_static_google_cloud_functions_v2alpha_Stage_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_Stage_descriptor, + new java.lang.String[] { "Name", "Message", "State", "Resource", "ResourceUri", "StateMessages", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java similarity index 64% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java index fc13cd9c..02de40ea 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java @@ -1,57 +1,40 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Request of `GenerateDownloadUrl` method.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateDownloadUrlRequest} */ -public final class GenerateDownloadUrlRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateDownloadUrlRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) GenerateDownloadUrlRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlRequest.newBuilder() to construct. private GenerateDownloadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateDownloadUrlRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateDownloadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateDownloadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GenerateDownloadUrlRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GenerateDownloadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.class, - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
              * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
              * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest other = - (com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) obj; + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest other = (com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest 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.v2alpha.GenerateDownloadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Request of `GenerateDownloadUrl` method.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateDownloadUrlRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.class, - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest - getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest getDefaultInstanceForType() { return com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest buildPartial() { - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest result = - new com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest(this); + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest result = new com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +374,38 @@ public com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) other); + return mergeFrom((com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest)other); } else { super.mergeFrom(other); return this; @@ -452,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest other) { - if (other - == com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -492,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
                * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
                * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -542,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,13 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) - private static final com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest(); } @@ -637,16 +573,16 @@ public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java new file mode 100644 index 00000000..aa045855 --- /dev/null +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2alpha/functions.proto + +package com.google.cloud.functions.v2alpha; + +public interface GenerateDownloadUrlRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +   * 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) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
          +   * 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) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java similarity index 66% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java index c10d78f2..cdd7ec3d 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java @@ -1,57 +1,40 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Response of `GenerateDownloadUrl` method.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateDownloadUrlResponse} */ -public final class GenerateDownloadUrlResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateDownloadUrlResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) GenerateDownloadUrlResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlResponse.newBuilder() to construct. private GenerateDownloadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateDownloadUrlResponse() { downloadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateDownloadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateDownloadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GenerateDownloadUrlResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - downloadUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + downloadUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GenerateDownloadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.class, - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.Builder.class); } public static final int DOWNLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object downloadUrl_; /** - * - * *
              * The generated Google Cloud Storage signed URL that should be used for
              * function source code download.
              * 
          * * string download_url = 1; - * * @return The downloadUrl. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getDownloadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; } } /** - * - * *
              * The generated Google Cloud Storage signed URL that should be used for
              * function source code download.
              * 
          * * string download_url = 1; - * * @return The bytes for downloadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getDownloadUrlBytes() { + public com.google.protobuf.ByteString + getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getDownloadUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(downloadUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, downloadUrl_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse other = - (com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) obj; + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse other = (com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) obj; - if (!getDownloadUrl().equals(other.getDownloadUrl())) return false; + if (!getDownloadUrl() + .equals(other.getDownloadUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse 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.v2alpha.GenerateDownloadUrlResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Response of `GenerateDownloadUrl` method.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateDownloadUrlResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.class, - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.newBuilder() @@ -357,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse - getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse getDefaultInstanceForType() { return com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.getDefaultInstance(); } @@ -397,8 +364,7 @@ public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse buildPartial() { - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse result = - new com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse(this); + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse result = new com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse(this); result.downloadUrl_ = downloadUrl_; onBuilt(); return result; @@ -408,39 +374,38 @@ public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) other); + return mergeFrom((com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse)other); } else { super.mergeFrom(other); return this; @@ -448,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse other) { - if (other - == com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.getDefaultInstance()) return this; if (!other.getDownloadUrl().isEmpty()) { downloadUrl_ = other.downloadUrl_; onChanged(); @@ -474,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object downloadUrl_ = ""; /** - * - * *
                * The generated Google Cloud Storage signed URL that should be used for
                * function source code download.
                * 
          * * string download_url = 1; - * * @return The downloadUrl. */ public java.lang.String getDownloadUrl() { java.lang.Object ref = downloadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; @@ -511,22 +470,21 @@ public java.lang.String getDownloadUrl() { } } /** - * - * *
                * The generated Google Cloud Storage signed URL that should be used for
                * function source code download.
                * 
          * * string download_url = 1; - * * @return The bytes for downloadUrl. */ - public com.google.protobuf.ByteString getDownloadUrlBytes() { + public com.google.protobuf.ByteString + getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -534,71 +492,64 @@ public com.google.protobuf.ByteString getDownloadUrlBytes() { } } /** - * - * *
                * The generated Google Cloud Storage signed URL that should be used for
                * function source code download.
                * 
          * * string download_url = 1; - * * @param value The downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrl(java.lang.String value) { + public Builder setDownloadUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + downloadUrl_ = value; onChanged(); return this; } /** - * - * *
                * The generated Google Cloud Storage signed URL that should be used for
                * function source code download.
                * 
          * * string download_url = 1; - * * @return This builder for chaining. */ public Builder clearDownloadUrl() { - + downloadUrl_ = getDefaultInstance().getDownloadUrl(); onChanged(); return this; } /** - * - * *
                * The generated Google Cloud Storage signed URL that should be used for
                * function source code download.
                * 
          * * string download_url = 1; - * * @param value The bytes for downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrlBytes(com.google.protobuf.ByteString value) { + public Builder setDownloadUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + downloadUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -608,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) - private static final com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse(); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse - getDefaultInstance() { + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,8 +594,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse - getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java similarity index 52% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java index 5dd3cfa2..d42b5744 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java @@ -1,52 +1,31 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface GenerateDownloadUrlResponseOrBuilder - extends +public interface GenerateDownloadUrlResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The generated Google Cloud Storage signed URL that should be used for
              * function source code download.
              * 
          * * string download_url = 1; - * * @return The downloadUrl. */ java.lang.String getDownloadUrl(); /** - * - * *
              * The generated Google Cloud Storage signed URL that should be used for
              * function source code download.
              * 
          * * string download_url = 1; - * * @return The bytes for downloadUrl. */ - com.google.protobuf.ByteString getDownloadUrlBytes(); + com.google.protobuf.ByteString + getDownloadUrlBytes(); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java similarity index 65% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java index b37f9efe..474292c2 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java @@ -1,57 +1,40 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Request of `GenerateSourceUploadUrl` method.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateUploadUrlRequest} */ -public final class GenerateUploadUrlRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateUploadUrlRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.GenerateUploadUrlRequest) GenerateUploadUrlRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateUploadUrlRequest.newBuilder() to construct. private GenerateUploadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateUploadUrlRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateUploadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateUploadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GenerateUploadUrlRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GenerateUploadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.class, - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.class, com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
              * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
              * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest other = - (com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) obj; + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest other = (com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.GenerateUploadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest 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.v2alpha.GenerateUploadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Request of `GenerateSourceUploadUrl` method.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateUploadUrlRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.GenerateUploadUrlRequest) com.google.cloud.functions.v2alpha.GenerateUploadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.class, - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.class, com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest buildPartial() { - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest result = - new com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest(this); + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest result = new com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) other); + return mergeFrom((com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest other) { - if (other == com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
                * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -514,24 +470,21 @@ 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/*`.
                * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -539,77 +492,64 @@ 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/*`.
                * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.GenerateUploadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.GenerateUploadUrlRequest) private static final com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateUploadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateUploadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateUploadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateUploadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java new file mode 100644 index 00000000..e8da0f49 --- /dev/null +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2alpha/functions.proto + +package com.google.cloud.functions.v2alpha; + +public interface GenerateUploadUrlRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GenerateUploadUrlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +   * 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) = { ... } + * @return The parent. + */ + 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/*`.
          +   * 
          + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java similarity index 73% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java index 0f0a5f0a..83146336 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java @@ -1,57 +1,40 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Response of `GenerateSourceUploadUrl` method.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateUploadUrlResponse} */ -public final class GenerateUploadUrlResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateUploadUrlResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.GenerateUploadUrlResponse) GenerateUploadUrlResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateUploadUrlResponse.newBuilder() to construct. private GenerateUploadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateUploadUrlResponse() { uploadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateUploadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateUploadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private GenerateUploadUrlResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uploadUrl_ = s; - break; + uploadUrl_ = s; + break; + } + case 18: { + com.google.cloud.functions.v2alpha.StorageSource.Builder subBuilder = null; + if (storageSource_ != null) { + subBuilder = storageSource_.toBuilder(); } - case 18: - { - com.google.cloud.functions.v2alpha.StorageSource.Builder subBuilder = null; - if (storageSource_ != null) { - subBuilder = storageSource_.toBuilder(); - } - storageSource_ = - input.readMessage( - com.google.cloud.functions.v2alpha.StorageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(storageSource_); - storageSource_ = subBuilder.buildPartial(); - } - - break; + storageSource_ = input.readMessage(com.google.cloud.functions.v2alpha.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storageSource_); + storageSource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,33 +86,29 @@ private GenerateUploadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.class, - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.class, com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.Builder.class); } public static final int UPLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object uploadUrl_; /** - * - * *
              * The generated Google Cloud Storage signed URL that should be used for a
              * function source code upload. The uploaded file should be a zip archive
          @@ -141,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              * 
          * * string upload_url = 1; - * * @return The uploadUrl. */ @java.lang.Override @@ -150,15 +124,14 @@ public java.lang.String getUploadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; } } /** - * - * *
              * The generated Google Cloud Storage signed URL that should be used for a
              * function source code upload. The uploaded file should be a zip archive
          @@ -166,15 +139,16 @@ public java.lang.String getUploadUrl() {
              * 
          * * string upload_url = 1; - * * @return The bytes for uploadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getUploadUrlBytes() { + public com.google.protobuf.ByteString + getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -185,8 +159,6 @@ public com.google.protobuf.ByteString getUploadUrlBytes() { public static final int STORAGE_SOURCE_FIELD_NUMBER = 2; private com.google.cloud.functions.v2alpha.StorageSource storageSource_; /** - * - * *
              * The location of the source code in the upload bucket.
              * Once the archive is uploaded using the `upload_url` use this field to
          @@ -197,7 +169,6 @@ public com.google.protobuf.ByteString getUploadUrlBytes() {
              * 
          * * .google.cloud.functions.v2alpha.StorageSource storage_source = 2; - * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -205,8 +176,6 @@ public boolean hasStorageSource() { return storageSource_ != null; } /** - * - * *
              * The location of the source code in the upload bucket.
              * Once the archive is uploaded using the `upload_url` use this field to
          @@ -217,18 +186,13 @@ public boolean hasStorageSource() {
              * 
          * * .google.cloud.functions.v2alpha.StorageSource storage_source = 2; - * * @return The storageSource. */ @java.lang.Override public com.google.cloud.functions.v2alpha.StorageSource getStorageSource() { - return storageSource_ == null - ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() - : storageSource_; + return storageSource_ == null ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() : storageSource_; } /** - * - * *
              * The location of the source code in the upload bucket.
              * Once the archive is uploaded using the `upload_url` use this field to
          @@ -246,7 +210,6 @@ public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourc
             }
           
             private byte memoizedIsInitialized = -1;
          -
             @java.lang.Override
             public final boolean isInitialized() {
               byte isInitialized = memoizedIsInitialized;
          @@ -258,7 +221,8 @@ public final boolean isInitialized() {
             }
           
             @java.lang.Override
          -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
          +  public void writeTo(com.google.protobuf.CodedOutputStream output)
          +                      throws java.io.IOException {
               if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadUrl_)) {
                 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadUrl_);
               }
          @@ -278,7 +242,8 @@ public int getSerializedSize() {
                 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadUrl_);
               }
               if (storageSource_ != null) {
          -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStorageSource());
          +      size += com.google.protobuf.CodedOutputStream
          +        .computeMessageSize(2, getStorageSource());
               }
               size += unknownFields.getSerializedSize();
               memoizedSize = size;
          @@ -288,18 +253,19 @@ public int getSerializedSize() {
             @java.lang.Override
             public boolean equals(final java.lang.Object obj) {
               if (obj == this) {
          -      return true;
          +     return true;
               }
               if (!(obj instanceof com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse)) {
                 return super.equals(obj);
               }
          -    com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse other =
          -        (com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse) obj;
          +    com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse other = (com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse) obj;
           
          -    if (!getUploadUrl().equals(other.getUploadUrl())) return false;
          +    if (!getUploadUrl()
          +        .equals(other.getUploadUrl())) return false;
               if (hasStorageSource() != other.hasStorageSource()) return false;
               if (hasStorageSource()) {
          -      if (!getStorageSource().equals(other.getStorageSource())) return false;
          +      if (!getStorageSource()
          +          .equals(other.getStorageSource())) return false;
               }
               if (!unknownFields.equals(other.unknownFields)) return false;
               return true;
          @@ -324,127 +290,117 @@ public int hashCode() {
             }
           
             public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
          -      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
          +      java.nio.ByteBuffer data)
          +      throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
          -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      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.v2alpha.GenerateUploadUrlResponse parseFrom(
                 com.google.protobuf.ByteString data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse 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.v2alpha.GenerateUploadUrlResponse parseFrom(byte[] data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
          -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      byte[] data,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          -
          -  public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
          -      java.io.InputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +  public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(java.io.InputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
          -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input, extensionRegistry);
             }
          -
          -  public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseDelimitedFrom(
          -      java.io.InputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
          +  public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseDelimitedFrom(java.io.InputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseDelimitedWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseDelimitedFrom(
          -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
             }
          -
             public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
          -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +      com.google.protobuf.CodedInputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input, extensionRegistry);
             }
           
             @java.lang.Override
          -  public Builder newBuilderForType() {
          -    return newBuilder();
          -  }
          -
          +  public Builder newBuilderForType() { return newBuilder(); }
             public static Builder newBuilder() {
               return DEFAULT_INSTANCE.toBuilder();
             }
          -
          -  public static Builder newBuilder(
          -      com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse prototype) {
          +  public static Builder newBuilder(com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse prototype) {
               return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
             }
          -
             @java.lang.Override
             public Builder toBuilder() {
          -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
          +    return this == DEFAULT_INSTANCE
          +        ? new Builder() : new Builder().mergeFrom(this);
             }
           
             @java.lang.Override
          -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +  protected Builder newBuilderForType(
          +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
               Builder builder = new Builder(parent);
               return builder;
             }
             /**
          -   *
          -   *
              * 
              * Response of `GenerateSourceUploadUrl` method.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateUploadUrlResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.GenerateUploadUrlResponse) com.google.cloud.functions.v2alpha.GenerateUploadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.class, - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.class, com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.newBuilder() @@ -452,15 +408,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -476,14 +433,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse - getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse getDefaultInstanceForType() { return com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.getDefaultInstance(); } @@ -498,8 +454,7 @@ public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse buildPartial() { - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse result = - new com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse(this); + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse result = new com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse(this); result.uploadUrl_ = uploadUrl_; if (storageSourceBuilder_ == null) { result.storageSource_ = storageSource_; @@ -514,39 +469,38 @@ public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse) other); + return mergeFrom((com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse)other); } else { super.mergeFrom(other); return this; @@ -554,9 +508,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse other) { - if (other - == com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.getDefaultInstance()) return this; if (!other.getUploadUrl().isEmpty()) { uploadUrl_ = other.uploadUrl_; onChanged(); @@ -583,8 +535,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -596,8 +547,6 @@ public Builder mergeFrom( private java.lang.Object uploadUrl_ = ""; /** - * - * *
                * The generated Google Cloud Storage signed URL that should be used for a
                * function source code upload. The uploaded file should be a zip archive
          @@ -605,13 +554,13 @@ public Builder mergeFrom(
                * 
          * * string upload_url = 1; - * * @return The uploadUrl. */ public java.lang.String getUploadUrl() { java.lang.Object ref = uploadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; @@ -620,8 +569,6 @@ public java.lang.String getUploadUrl() { } } /** - * - * *
                * The generated Google Cloud Storage signed URL that should be used for a
                * function source code upload. The uploaded file should be a zip archive
          @@ -629,14 +576,15 @@ public java.lang.String getUploadUrl() {
                * 
          * * string upload_url = 1; - * * @return The bytes for uploadUrl. */ - public com.google.protobuf.ByteString getUploadUrlBytes() { + public com.google.protobuf.ByteString + getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -644,8 +592,6 @@ public com.google.protobuf.ByteString getUploadUrlBytes() { } } /** - * - * *
                * The generated Google Cloud Storage signed URL that should be used for a
                * function source code upload. The uploaded file should be a zip archive
          @@ -653,22 +599,20 @@ public com.google.protobuf.ByteString getUploadUrlBytes() {
                * 
          * * string upload_url = 1; - * * @param value The uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrl(java.lang.String value) { + public Builder setUploadUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uploadUrl_ = value; onChanged(); return this; } /** - * - * *
                * The generated Google Cloud Storage signed URL that should be used for a
                * function source code upload. The uploaded file should be a zip archive
          @@ -676,18 +620,15 @@ public Builder setUploadUrl(java.lang.String value) {
                * 
          * * string upload_url = 1; - * * @return This builder for chaining. */ public Builder clearUploadUrl() { - + uploadUrl_ = getDefaultInstance().getUploadUrl(); onChanged(); return this; } /** - * - * *
                * The generated Google Cloud Storage signed URL that should be used for a
                * function source code upload. The uploaded file should be a zip archive
          @@ -695,16 +636,16 @@ public Builder clearUploadUrl() {
                * 
          * * string upload_url = 1; - * * @param value The bytes for uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUploadUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uploadUrl_ = value; onChanged(); return this; @@ -712,13 +653,8 @@ public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) { private com.google.cloud.functions.v2alpha.StorageSource storageSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.StorageSource, - com.google.cloud.functions.v2alpha.StorageSource.Builder, - com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> - storageSourceBuilder_; + com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> storageSourceBuilder_; /** - * - * *
                * The location of the source code in the upload bucket.
                * Once the archive is uploaded using the `upload_url` use this field to
          @@ -729,15 +665,12 @@ public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) {
                * 
          * * .google.cloud.functions.v2alpha.StorageSource storage_source = 2; - * * @return Whether the storageSource field is set. */ public boolean hasStorageSource() { return storageSourceBuilder_ != null || storageSource_ != null; } /** - * - * *
                * The location of the source code in the upload bucket.
                * Once the archive is uploaded using the `upload_url` use this field to
          @@ -748,21 +681,16 @@ public boolean hasStorageSource() {
                * 
          * * .google.cloud.functions.v2alpha.StorageSource storage_source = 2; - * * @return The storageSource. */ public com.google.cloud.functions.v2alpha.StorageSource getStorageSource() { if (storageSourceBuilder_ == null) { - return storageSource_ == null - ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() - : storageSource_; + return storageSource_ == null ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() : storageSource_; } else { return storageSourceBuilder_.getMessage(); } } /** - * - * *
                * The location of the source code in the upload bucket.
                * Once the archive is uploaded using the `upload_url` use this field to
          @@ -788,8 +716,6 @@ public Builder setStorageSource(com.google.cloud.functions.v2alpha.StorageSource
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The location of the source code in the upload bucket.
                * Once the archive is uploaded using the `upload_url` use this field to
          @@ -813,8 +739,6 @@ public Builder setStorageSource(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The location of the source code in the upload bucket.
                * Once the archive is uploaded using the `upload_url` use this field to
          @@ -830,9 +754,7 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2alpha.StorageSour
                 if (storageSourceBuilder_ == null) {
                   if (storageSource_ != null) {
                     storageSource_ =
          -              com.google.cloud.functions.v2alpha.StorageSource.newBuilder(storageSource_)
          -                  .mergeFrom(value)
          -                  .buildPartial();
          +            com.google.cloud.functions.v2alpha.StorageSource.newBuilder(storageSource_).mergeFrom(value).buildPartial();
                   } else {
                     storageSource_ = value;
                   }
          @@ -844,8 +766,6 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2alpha.StorageSour
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The location of the source code in the upload bucket.
                * Once the archive is uploaded using the `upload_url` use this field to
          @@ -869,8 +789,6 @@ public Builder clearStorageSource() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The location of the source code in the upload bucket.
                * Once the archive is uploaded using the `upload_url` use this field to
          @@ -883,13 +801,11 @@ public Builder clearStorageSource() {
                * .google.cloud.functions.v2alpha.StorageSource storage_source = 2;
                */
               public com.google.cloud.functions.v2alpha.StorageSource.Builder getStorageSourceBuilder() {
          -
          +      
                 onChanged();
                 return getStorageSourceFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * The location of the source code in the upload bucket.
                * Once the archive is uploaded using the `upload_url` use this field to
          @@ -905,14 +821,11 @@ public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourc
                 if (storageSourceBuilder_ != null) {
                   return storageSourceBuilder_.getMessageOrBuilder();
                 } else {
          -        return storageSource_ == null
          -            ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance()
          -            : storageSource_;
          +        return storageSource_ == null ?
          +            com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() : storageSource_;
                 }
               }
               /**
          -     *
          -     *
                * 
                * The location of the source code in the upload bucket.
                * Once the archive is uploaded using the `upload_url` use this field to
          @@ -925,24 +838,21 @@ public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourc
                * .google.cloud.functions.v2alpha.StorageSource storage_source = 2;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.cloud.functions.v2alpha.StorageSource,
          -            com.google.cloud.functions.v2alpha.StorageSource.Builder,
          -            com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>
          +        com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> 
                   getStorageSourceFieldBuilder() {
                 if (storageSourceBuilder_ == null) {
          -        storageSourceBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.cloud.functions.v2alpha.StorageSource,
          -                com.google.cloud.functions.v2alpha.StorageSource.Builder,
          -                com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>(
          -                getStorageSource(), getParentForChildren(), isClean());
          +        storageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>(
          +                getStorageSource(),
          +                getParentForChildren(),
          +                isClean());
                   storageSource_ = null;
                 }
                 return storageSourceBuilder_;
               }
          -
               @java.lang.Override
          -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
          +    public final Builder setUnknownFields(
          +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                 return super.setUnknownFields(unknownFields);
               }
           
          @@ -952,13 +862,12 @@ public final Builder mergeUnknownFields(
                 return super.mergeUnknownFields(unknownFields);
               }
           
          +
               // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.GenerateUploadUrlResponse)
             }
           
             // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.GenerateUploadUrlResponse)
          -  private static final com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse
          -      DEFAULT_INSTANCE;
          -
          +  private static final com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse DEFAULT_INSTANCE;
             static {
               DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse();
             }
          @@ -967,16 +876,16 @@ public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse getDe
               return DEFAULT_INSTANCE;
             }
           
          -  private static final com.google.protobuf.Parser PARSER =
          -      new com.google.protobuf.AbstractParser() {
          -        @java.lang.Override
          -        public GenerateUploadUrlResponse parsePartialFrom(
          -            com.google.protobuf.CodedInputStream input,
          -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -            throws com.google.protobuf.InvalidProtocolBufferException {
          -          return new GenerateUploadUrlResponse(input, extensionRegistry);
          -        }
          -      };
          +  private static final com.google.protobuf.Parser
          +      PARSER = new com.google.protobuf.AbstractParser() {
          +    @java.lang.Override
          +    public GenerateUploadUrlResponse parsePartialFrom(
          +        com.google.protobuf.CodedInputStream input,
          +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        throws com.google.protobuf.InvalidProtocolBufferException {
          +      return new GenerateUploadUrlResponse(input, extensionRegistry);
          +    }
          +  };
           
             public static com.google.protobuf.Parser parser() {
               return PARSER;
          @@ -991,4 +900,6 @@ public com.google.protobuf.Parser getParserForType()
             public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse getDefaultInstanceForType() {
               return DEFAULT_INSTANCE;
             }
          +
           }
          +
          diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java
          similarity index 77%
          rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java
          rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java
          index 4c8c39f1..5d3c1cb3 100644
          --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java
          +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java
          @@ -1,31 +1,13 @@
          -/*
          - * 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/v2alpha/functions.proto
           
           package com.google.cloud.functions.v2alpha;
           
          -public interface GenerateUploadUrlResponseOrBuilder
          -    extends
          +public interface GenerateUploadUrlResponseOrBuilder extends
               // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GenerateUploadUrlResponse)
               com.google.protobuf.MessageOrBuilder {
           
             /**
          -   *
          -   *
              * 
              * The generated Google Cloud Storage signed URL that should be used for a
              * function source code upload. The uploaded file should be a zip archive
          @@ -33,13 +15,10 @@ public interface GenerateUploadUrlResponseOrBuilder
              * 
          * * string upload_url = 1; - * * @return The uploadUrl. */ java.lang.String getUploadUrl(); /** - * - * *
              * The generated Google Cloud Storage signed URL that should be used for a
              * function source code upload. The uploaded file should be a zip archive
          @@ -47,14 +26,12 @@ public interface GenerateUploadUrlResponseOrBuilder
              * 
          * * string upload_url = 1; - * * @return The bytes for uploadUrl. */ - com.google.protobuf.ByteString getUploadUrlBytes(); + 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
          @@ -65,13 +42,10 @@ public interface GenerateUploadUrlResponseOrBuilder
              * 
          * * .google.cloud.functions.v2alpha.StorageSource storage_source = 2; - * * @return Whether the storageSource field is set. */ 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
          @@ -82,13 +56,10 @@ public interface GenerateUploadUrlResponseOrBuilder
              * 
          * * .google.cloud.functions.v2alpha.StorageSource storage_source = 2; - * * @return The storageSource. */ 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
          diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java
          similarity index 64%
          rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java
          rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java
          index 8af4a3e7..632208b2 100644
          --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java
          +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java
          @@ -1,57 +1,40 @@
          -/*
          - * 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/v2alpha/functions.proto
           
           package com.google.cloud.functions.v2alpha;
           
           /**
          - *
          - *
            * 
            * Request for the `GetFunction` method.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.GetFunctionRequest} */ -public final class GetFunctionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.GetFunctionRequest) GetFunctionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFunctionRequest.newBuilder() to construct. private GetFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetFunctionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private GetFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GetFunctionRequest.class, - com.google.cloud.functions.v2alpha.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.GetFunctionRequest.class, com.google.cloud.functions.v2alpha.GetFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
              * Required. The name of the function which details should be obtained.
              * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
              * Required. The name of the function which details should be obtained.
              * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.GetFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.GetFunctionRequest other = - (com.google.cloud.functions.v2alpha.GetFunctionRequest) obj; + com.google.cloud.functions.v2alpha.GetFunctionRequest other = (com.google.cloud.functions.v2alpha.GetFunctionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.GetFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.GetFunctionRequest 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.v2alpha.GetFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2alpha.GetFunctionRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2alpha.GetFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Request for the `GetFunction` method.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.GetFunctionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.GetFunctionRequest) com.google.cloud.functions.v2alpha.GetFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GetFunctionRequest.class, - com.google.cloud.functions.v2alpha.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.GetFunctionRequest.class, com.google.cloud.functions.v2alpha.GetFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.GetFunctionRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.functions.v2alpha.GetFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.GetFunctionRequest buildPartial() { - com.google.cloud.functions.v2alpha.GetFunctionRequest result = - new com.google.cloud.functions.v2alpha.GetFunctionRequest(this); + com.google.cloud.functions.v2alpha.GetFunctionRequest result = new com.google.cloud.functions.v2alpha.GetFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.functions.v2alpha.GetFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.GetFunctionRequest) other); + return mergeFrom((com.google.cloud.functions.v2alpha.GetFunctionRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.GetFunctionRequest other) { - if (other == com.google.cloud.functions.v2alpha.GetFunctionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.GetFunctionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.GetFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.GetFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
                * Required. The name of the function which details should be obtained.
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
                * Required. The name of the function which details should be obtained.
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -535,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                * Required. The name of the function which details should be obtained.
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
                * Required. The name of the function which details should be obtained.
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
                * Required. The name of the function which details should be obtained.
                * 
          * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.GetFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.GetFunctionRequest) private static final com.google.cloud.functions.v2alpha.GetFunctionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.GetFunctionRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.functions.v2alpha.GetFunctionRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.GetFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java new file mode 100644 index 00000000..ce22817d --- /dev/null +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2alpha/functions.proto + +package com.google.cloud.functions.v2alpha; + +public interface GetFunctionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GetFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
          +   * Required. The name of the function which details should be obtained.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
          +   * Required. The name of the function which details should be obtained.
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java similarity index 72% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java index 2bb71b1c..0fda216b 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java @@ -1,42 +1,24 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Request for the `ListFunctions` method.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.ListFunctionsRequest} */ -public final class ListFunctionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFunctionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.ListFunctionsRequest) ListFunctionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFunctionsRequest.newBuilder() to construct. private ListFunctionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFunctionsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListFunctionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFunctionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFunctionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private ListFunctionsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,33 +99,29 @@ private ListFunctionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListFunctionsRequest.class, - com.google.cloud.functions.v2alpha.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v2alpha.ListFunctionsRequest.class, com.google.cloud.functions.v2alpha.ListFunctionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
              * Required. The project and location from which the function should be listed,
              * specified in the format `projects/*/locations/*`
          @@ -156,10 +131,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              * reachable locations along with the names of any unreachable locations.
              * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -168,15 +140,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
              * Required. The project and location from which the function should be listed,
              * specified in the format `projects/*/locations/*`
          @@ -186,18 +157,17 @@ public java.lang.String getParent() {
              * reachable locations along with the names of any unreachable locations.
              * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -208,14 +178,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
              * Maximum number of functions to return per call.
              * 
          * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -226,8 +193,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
              * The value returned by the last
              * `ListFunctionsResponse`; indicates that
          @@ -236,7 +201,6 @@ public int getPageSize() {
              * 
          * * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -245,15 +209,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
              * The value returned by the last
              * `ListFunctionsResponse`; indicates that
          @@ -262,15 +225,16 @@ public java.lang.String getPageToken() {
              * 
          * * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -281,15 +245,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
              * The filter for Functions that match the filter expression,
              * following the syntax outlined in https://google.aip.dev/160.
              * 
          * * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -298,30 +259,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
              * The filter for Functions that match the filter expression,
              * following the syntax outlined in https://google.aip.dev/160.
              * 
          * * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -332,8 +293,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
              * The sorting order of the resources returned. Value should be a comma
              * separated list of fields. The default sorting oder is ascending.
          @@ -341,7 +300,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
              * 
          * * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -350,15 +308,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
              * The sorting order of the resources returned. Value should be a comma
              * separated list of fields. The default sorting oder is ascending.
          @@ -366,15 +323,16 @@ public java.lang.String getOrderBy() {
              * 
          * * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -383,7 +341,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,7 +352,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -424,7 +382,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -443,19 +402,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.ListFunctionsRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.ListFunctionsRequest other = - (com.google.cloud.functions.v2alpha.ListFunctionsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.functions.v2alpha.ListFunctionsRequest other = (com.google.cloud.functions.v2alpha.ListFunctionsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -483,127 +446,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.ListFunctionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListFunctionsRequest 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.v2alpha.ListFunctionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2alpha.ListFunctionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2alpha.ListFunctionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Request for the `ListFunctions` method.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.ListFunctionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.ListFunctionsRequest) com.google.cloud.functions.v2alpha.ListFunctionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListFunctionsRequest.class, - com.google.cloud.functions.v2alpha.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v2alpha.ListFunctionsRequest.class, com.google.cloud.functions.v2alpha.ListFunctionsRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.ListFunctionsRequest.newBuilder() @@ -611,15 +564,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -637,9 +591,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; } @java.lang.Override @@ -658,8 +612,7 @@ public com.google.cloud.functions.v2alpha.ListFunctionsRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.ListFunctionsRequest buildPartial() { - com.google.cloud.functions.v2alpha.ListFunctionsRequest result = - new com.google.cloud.functions.v2alpha.ListFunctionsRequest(this); + com.google.cloud.functions.v2alpha.ListFunctionsRequest result = new com.google.cloud.functions.v2alpha.ListFunctionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -673,39 +626,38 @@ public com.google.cloud.functions.v2alpha.ListFunctionsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.ListFunctionsRequest) other); + return mergeFrom((com.google.cloud.functions.v2alpha.ListFunctionsRequest)other); } else { super.mergeFrom(other); return this; @@ -713,8 +665,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListFunctionsRequest other) { - if (other == com.google.cloud.functions.v2alpha.ListFunctionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.ListFunctionsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -753,8 +704,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.ListFunctionsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.ListFunctionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -766,8 +716,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
                * Required. The project and location from which the function should be listed,
                * specified in the format `projects/*/locations/*`
          @@ -777,16 +725,14 @@ public Builder mergeFrom(
                * reachable locations along with the names of any unreachable locations.
                * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -795,8 +741,6 @@ public java.lang.String getParent() { } } /** - * - * *
                * Required. The project and location from which the function should be listed,
                * specified in the format `projects/*/locations/*`
          @@ -806,17 +750,16 @@ public java.lang.String getParent() {
                * reachable locations along with the names of any unreachable locations.
                * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -824,8 +767,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                * Required. The project and location from which the function should be listed,
                * specified in the format `projects/*/locations/*`
          @@ -835,25 +776,21 @@ public com.google.protobuf.ByteString getParentBytes() {
                * reachable locations along with the names of any unreachable locations.
                * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
                * Required. The project and location from which the function should be listed,
                * specified in the format `projects/*/locations/*`
          @@ -863,21 +800,16 @@ public Builder setParent(java.lang.String value) {
                * reachable locations along with the names of any unreachable locations.
                * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
                * Required. The project and location from which the function should be listed,
                * specified in the format `projects/*/locations/*`
          @@ -887,34 +819,29 @@ public Builder clearParent() {
                * reachable locations along with the names of any unreachable locations.
                * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
                * Maximum number of functions to return per call.
                * 
          * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -922,36 +849,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
                * Maximum number of functions to return per call.
                * 
          * * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
                * Maximum number of functions to return per call.
                * 
          * * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -959,8 +880,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
                * The value returned by the last
                * `ListFunctionsResponse`; indicates that
          @@ -969,13 +888,13 @@ public Builder clearPageSize() {
                * 
          * * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -984,8 +903,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
                * The value returned by the last
                * `ListFunctionsResponse`; indicates that
          @@ -994,14 +911,15 @@ public java.lang.String getPageToken() {
                * 
          * * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1009,8 +927,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
                * The value returned by the last
                * `ListFunctionsResponse`; indicates that
          @@ -1019,22 +935,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
                * 
          * * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
                * The value returned by the last
                * `ListFunctionsResponse`; indicates that
          @@ -1043,18 +957,15 @@ public Builder setPageToken(java.lang.String value) {
                * 
          * * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
                * The value returned by the last
                * `ListFunctionsResponse`; indicates that
          @@ -1063,16 +974,16 @@ public Builder clearPageToken() {
                * 
          * * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1080,21 +991,19 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
                * The filter for Functions that match the filter expression,
                * following the syntax outlined in https://google.aip.dev/160.
                * 
          * * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1103,22 +1012,21 @@ public java.lang.String getFilter() { } } /** - * - * *
                * The filter for Functions that match the filter expression,
                * following the syntax outlined in https://google.aip.dev/160.
                * 
          * * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1126,64 +1034,57 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
                * The filter for Functions that match the filter expression,
                * following the syntax outlined in https://google.aip.dev/160.
                * 
          * * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
                * The filter for Functions that match the filter expression,
                * following the syntax outlined in https://google.aip.dev/160.
                * 
          * * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
                * The filter for Functions that match the filter expression,
                * following the syntax outlined in https://google.aip.dev/160.
                * 
          * * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1191,8 +1092,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
                * The sorting order of the resources returned. Value should be a comma
                * separated list of fields. The default sorting oder is ascending.
          @@ -1200,13 +1099,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
                * 
          * * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1215,8 +1114,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
                * The sorting order of the resources returned. Value should be a comma
                * separated list of fields. The default sorting oder is ascending.
          @@ -1224,14 +1121,15 @@ public java.lang.String getOrderBy() {
                * 
          * * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1239,8 +1137,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
                * The sorting order of the resources returned. Value should be a comma
                * separated list of fields. The default sorting oder is ascending.
          @@ -1248,22 +1144,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
                * 
          * * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
                * The sorting order of the resources returned. Value should be a comma
                * separated list of fields. The default sorting oder is ascending.
          @@ -1271,18 +1165,15 @@ public Builder setOrderBy(java.lang.String value) {
                * 
          * * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
                * The sorting order of the resources returned. Value should be a comma
                * separated list of fields. The default sorting oder is ascending.
          @@ -1290,23 +1181,23 @@ public Builder clearOrderBy() {
                * 
          * * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1316,12 +1207,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.ListFunctionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.ListFunctionsRequest) private static final com.google.cloud.functions.v2alpha.ListFunctionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.ListFunctionsRequest(); } @@ -1330,16 +1221,16 @@ public static com.google.cloud.functions.v2alpha.ListFunctionsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1354,4 +1245,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.ListFunctionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java index 5d5614eb..7a17c3ea 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface ListFunctionsRequestOrBuilder - extends +public interface ListFunctionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.ListFunctionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Required. The project and location from which the function should be listed,
              * specified in the format `projects/*/locations/*`
          @@ -35,16 +17,11 @@ public interface ListFunctionsRequestOrBuilder
              * reachable locations along with the names of any unreachable locations.
              * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
              * Required. The project and location from which the function should be listed,
              * specified in the format `projects/*/locations/*`
          @@ -54,30 +31,23 @@ public interface ListFunctionsRequestOrBuilder
              * reachable locations along with the names of any unreachable locations.
              * 
          * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
              * Maximum number of functions to return per call.
              * 
          * * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
              * The value returned by the last
              * `ListFunctionsResponse`; indicates that
          @@ -86,13 +56,10 @@ public interface ListFunctionsRequestOrBuilder
              * 
          * * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
              * The value returned by the last
              * `ListFunctionsResponse`; indicates that
          @@ -101,41 +68,34 @@ public interface ListFunctionsRequestOrBuilder
              * 
          * * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
              * The filter for Functions that match the filter expression,
              * following the syntax outlined in https://google.aip.dev/160.
              * 
          * * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
              * The filter for Functions that match the filter expression,
              * following the syntax outlined in https://google.aip.dev/160.
              * 
          * * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
              * The sorting order of the resources returned. Value should be a comma
              * separated list of fields. The default sorting oder is ascending.
          @@ -143,13 +103,10 @@ public interface ListFunctionsRequestOrBuilder
              * 
          * * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
              * The sorting order of the resources returned. Value should be a comma
              * separated list of fields. The default sorting oder is ascending.
          @@ -157,8 +114,8 @@ public interface ListFunctionsRequestOrBuilder
              * 
          * * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java similarity index 74% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java index a7088f2d..5284b3c1 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java @@ -1,42 +1,24 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Response for the `ListFunctions` method.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.ListFunctionsResponse} */ -public final class ListFunctionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFunctionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.ListFunctionsResponse) ListFunctionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFunctionsResponse.newBuilder() to construct. private ListFunctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFunctionsResponse() { functions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListFunctionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFunctionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFunctionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListFunctionsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - functions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - functions_.add( - input.readMessage( - com.google.cloud.functions.v2alpha.Function.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + functions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + functions_.add( + input.readMessage(com.google.cloud.functions.v2alpha.Function.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListFunctionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { functions_ = java.util.Collections.unmodifiableList(functions_); @@ -127,27 +107,22 @@ private ListFunctionsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListFunctionsResponse.class, - com.google.cloud.functions.v2alpha.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v2alpha.ListFunctionsResponse.class, com.google.cloud.functions.v2alpha.ListFunctionsResponse.Builder.class); } public static final int FUNCTIONS_FIELD_NUMBER = 1; private java.util.List functions_; /** - * - * *
              * The functions that match the request.
              * 
          @@ -159,8 +134,6 @@ public java.util.List getFunctionsL return functions_; } /** - * - * *
              * The functions that match the request.
              * 
          @@ -168,13 +141,11 @@ public java.util.List getFunctionsL * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFunctionsOrBuilderList() { return functions_; } /** - * - * *
              * The functions that match the request.
              * 
          @@ -186,8 +157,6 @@ public int getFunctionsCount() { return functions_.size(); } /** - * - * *
              * The functions that match the request.
              * 
          @@ -199,8 +168,6 @@ public com.google.cloud.functions.v2alpha.Function getFunctions(int index) { return functions_.get(index); } /** - * - * *
              * The functions that match the request.
              * 
          @@ -208,22 +175,20 @@ public com.google.cloud.functions.v2alpha.Function getFunctions(int index) { * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ @java.lang.Override - public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilder(int index) { + public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilder( + int index) { return functions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
              * A token, which can be sent as `page_token` to retrieve the next page.
              * If this field is omitted, there are no subsequent pages.
              * 
          * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -232,30 +197,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
              * A token, which can be sent as `page_token` to retrieve the next page.
              * If this field is omitted, there are no subsequent pages.
              * 
          * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -266,45 +231,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
              * Locations that could not be reached. The response does not include any
              * functions from these locations.
              * 
          * * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
              * Locations that could not be reached. The response does not include any
              * functions from these locations.
              * 
          * * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
              * Locations that could not be reached. The response does not include any
              * functions from these locations.
              * 
          * * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -312,24 +269,21 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
              * Locations that could not be reached. The response does not include any
              * functions from these locations.
              * 
          * * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +295,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < functions_.size(); i++) { output.writeMessage(1, functions_.get(i)); } @@ -361,7 +316,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < functions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, functions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, functions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -382,17 +338,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.ListFunctionsResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.ListFunctionsResponse other = - (com.google.cloud.functions.v2alpha.ListFunctionsResponse) obj; + com.google.cloud.functions.v2alpha.ListFunctionsResponse other = (com.google.cloud.functions.v2alpha.ListFunctionsResponse) obj; - if (!getFunctionsList().equals(other.getFunctionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getFunctionsList() + .equals(other.getFunctionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -420,127 +378,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.ListFunctionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListFunctionsResponse 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.v2alpha.ListFunctionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2alpha.ListFunctionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2alpha.ListFunctionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Response for the `ListFunctions` method.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.ListFunctionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.ListFunctionsResponse) com.google.cloud.functions.v2alpha.ListFunctionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListFunctionsResponse.class, - com.google.cloud.functions.v2alpha.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v2alpha.ListFunctionsResponse.class, com.google.cloud.functions.v2alpha.ListFunctionsResponse.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.ListFunctionsResponse.newBuilder() @@ -548,17 +496,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFunctionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -576,9 +524,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; } @java.lang.Override @@ -597,8 +545,7 @@ public com.google.cloud.functions.v2alpha.ListFunctionsResponse build() { @java.lang.Override public com.google.cloud.functions.v2alpha.ListFunctionsResponse buildPartial() { - com.google.cloud.functions.v2alpha.ListFunctionsResponse result = - new com.google.cloud.functions.v2alpha.ListFunctionsResponse(this); + com.google.cloud.functions.v2alpha.ListFunctionsResponse result = new com.google.cloud.functions.v2alpha.ListFunctionsResponse(this); int from_bitField0_ = bitField0_; if (functionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -623,39 +570,38 @@ public com.google.cloud.functions.v2alpha.ListFunctionsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListFunctionsResponse) { - return mergeFrom((com.google.cloud.functions.v2alpha.ListFunctionsResponse) other); + return mergeFrom((com.google.cloud.functions.v2alpha.ListFunctionsResponse)other); } else { super.mergeFrom(other); return this; @@ -663,8 +609,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListFunctionsResponse other) { - if (other == com.google.cloud.functions.v2alpha.ListFunctionsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.ListFunctionsResponse.getDefaultInstance()) return this; if (functionsBuilder_ == null) { if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { @@ -683,10 +628,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListFunctionsRespons functionsBuilder_ = null; functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000001); - functionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFunctionsFieldBuilder() - : null; + functionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFunctionsFieldBuilder() : null; } else { functionsBuilder_.addAllMessages(other.functions_); } @@ -725,8 +669,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.ListFunctionsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.ListFunctionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -735,29 +678,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List functions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFunctionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - functions_ = - new java.util.ArrayList(functions_); + functions_ = new java.util.ArrayList(functions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, - com.google.cloud.functions.v2alpha.Function.Builder, - com.google.cloud.functions.v2alpha.FunctionOrBuilder> - functionsBuilder_; + com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder> functionsBuilder_; /** - * - * *
                * The functions that match the request.
                * 
          @@ -772,8 +707,6 @@ public java.util.List getFunctionsL } } /** - * - * *
                * The functions that match the request.
                * 
          @@ -788,8 +721,6 @@ public int getFunctionsCount() { } } /** - * - * *
                * The functions that match the request.
                * 
          @@ -804,15 +735,14 @@ public com.google.cloud.functions.v2alpha.Function getFunctions(int index) { } } /** - * - * *
                * The functions that match the request.
                * 
          * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public Builder setFunctions(int index, com.google.cloud.functions.v2alpha.Function value) { + public Builder setFunctions( + int index, com.google.cloud.functions.v2alpha.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -826,8 +756,6 @@ public Builder setFunctions(int index, com.google.cloud.functions.v2alpha.Functi return this; } /** - * - * *
                * The functions that match the request.
                * 
          @@ -846,8 +774,6 @@ public Builder setFunctions( return this; } /** - * - * *
                * The functions that match the request.
                * 
          @@ -868,15 +794,14 @@ public Builder addFunctions(com.google.cloud.functions.v2alpha.Function value) { return this; } /** - * - * *
                * The functions that match the request.
                * 
          * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public Builder addFunctions(int index, com.google.cloud.functions.v2alpha.Function value) { + public Builder addFunctions( + int index, com.google.cloud.functions.v2alpha.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -890,8 +815,6 @@ public Builder addFunctions(int index, com.google.cloud.functions.v2alpha.Functi return this; } /** - * - * *
                * The functions that match the request.
                * 
          @@ -910,8 +833,6 @@ public Builder addFunctions( return this; } /** - * - * *
                * The functions that match the request.
                * 
          @@ -930,8 +851,6 @@ public Builder addFunctions( return this; } /** - * - * *
                * The functions that match the request.
                * 
          @@ -942,7 +861,8 @@ public Builder addAllFunctions( java.lang.Iterable values) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, functions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, functions_); onChanged(); } else { functionsBuilder_.addAllMessages(values); @@ -950,8 +870,6 @@ public Builder addAllFunctions( return this; } /** - * - * *
                * The functions that match the request.
                * 
          @@ -969,8 +887,6 @@ public Builder clearFunctions() { return this; } /** - * - * *
                * The functions that match the request.
                * 
          @@ -988,44 +904,39 @@ public Builder removeFunctions(int index) { return this; } /** - * - * *
                * The functions that match the request.
                * 
          * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public com.google.cloud.functions.v2alpha.Function.Builder getFunctionsBuilder(int index) { + public com.google.cloud.functions.v2alpha.Function.Builder getFunctionsBuilder( + int index) { return getFunctionsFieldBuilder().getBuilder(index); } /** - * - * *
                * The functions that match the request.
                * 
          * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilder(int index) { + public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilder( + int index) { if (functionsBuilder_ == null) { - return functions_.get(index); - } else { + return functions_.get(index); } else { return functionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * The functions that match the request.
                * 
          * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public java.util.List - getFunctionsOrBuilderList() { + public java.util.List + getFunctionsOrBuilderList() { if (functionsBuilder_ != null) { return functionsBuilder_.getMessageOrBuilderList(); } else { @@ -1033,8 +944,6 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilde } } /** - * - * *
                * The functions that match the request.
                * 
          @@ -1042,48 +951,42 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilde * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ public com.google.cloud.functions.v2alpha.Function.Builder addFunctionsBuilder() { - return getFunctionsFieldBuilder() - .addBuilder(com.google.cloud.functions.v2alpha.Function.getDefaultInstance()); + return getFunctionsFieldBuilder().addBuilder( + com.google.cloud.functions.v2alpha.Function.getDefaultInstance()); } /** - * - * *
                * The functions that match the request.
                * 
          * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public com.google.cloud.functions.v2alpha.Function.Builder addFunctionsBuilder(int index) { - return getFunctionsFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2alpha.Function.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.Function.Builder addFunctionsBuilder( + int index) { + return getFunctionsFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2alpha.Function.getDefaultInstance()); } /** - * - * *
                * The functions that match the request.
                * 
          * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public java.util.List - getFunctionsBuilderList() { + public java.util.List + getFunctionsBuilderList() { return getFunctionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, - com.google.cloud.functions.v2alpha.Function.Builder, - com.google.cloud.functions.v2alpha.FunctionOrBuilder> + com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder> getFunctionsFieldBuilder() { if (functionsBuilder_ == null) { - functionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, - com.google.cloud.functions.v2alpha.Function.Builder, - com.google.cloud.functions.v2alpha.FunctionOrBuilder>( - functions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + functionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder>( + functions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); functions_ = null; } return functionsBuilder_; @@ -1091,21 +994,19 @@ public com.google.cloud.functions.v2alpha.Function.Builder addFunctionsBuilder(i private java.lang.Object nextPageToken_ = ""; /** - * - * *
                * A token, which can be sent as `page_token` to retrieve the next page.
                * If this field is omitted, there are no subsequent pages.
                * 
          * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1114,22 +1015,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
                * A token, which can be sent as `page_token` to retrieve the next page.
                * If this field is omitted, there are no subsequent pages.
                * 
          * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1137,118 +1037,101 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
                * A token, which can be sent as `page_token` to retrieve the next page.
                * If this field is omitted, there are no subsequent pages.
                * 
          * * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
                * A token, which can be sent as `page_token` to retrieve the next page.
                * If this field is omitted, there are no subsequent pages.
                * 
          * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
                * A token, which can be sent as `page_token` to retrieve the next page.
                * If this field is omitted, there are no subsequent pages.
                * 
          * * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
                * Locations that could not be reached. The response does not include any
                * functions from these locations.
                * 
          * * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
                * Locations that could not be reached. The response does not include any
                * functions from these locations.
                * 
          * * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
                * Locations that could not be reached. The response does not include any
                * functions from these locations.
                * 
          * * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1256,95 +1139,85 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
                * Locations that could not be reached. The response does not include any
                * functions from these locations.
                * 
          * * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
                * Locations that could not be reached. The response does not include any
                * functions from these locations.
                * 
          * * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
                * Locations that could not be reached. The response does not include any
                * functions from these locations.
                * 
          * * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
                * Locations that could not be reached. The response does not include any
                * functions from these locations.
                * 
          * * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
                * Locations that could not be reached. The response does not include any
                * functions from these locations.
                * 
          * * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1354,31 +1227,29 @@ public Builder clearUnreachable() { return this; } /** - * - * *
                * Locations that could not be reached. The response does not include any
                * functions from these locations.
                * 
          * * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1388,12 +1259,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.ListFunctionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.ListFunctionsResponse) private static final com.google.cloud.functions.v2alpha.ListFunctionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.ListFunctionsResponse(); } @@ -1402,16 +1273,16 @@ public static com.google.cloud.functions.v2alpha.ListFunctionsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1426,4 +1297,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.ListFunctionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java similarity index 74% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java index 657b00b2..c97b1176 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface ListFunctionsResponseOrBuilder - extends +public interface ListFunctionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.ListFunctionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The functions that match the request.
              * 
          * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - java.util.List getFunctionsList(); + java.util.List + getFunctionsList(); /** - * - * *
              * The functions that match the request.
              * 
          @@ -44,8 +25,6 @@ public interface ListFunctionsResponseOrBuilder */ com.google.cloud.functions.v2alpha.Function getFunctions(int index); /** - * - * *
              * The functions that match the request.
              * 
          @@ -54,106 +33,88 @@ public interface ListFunctionsResponseOrBuilder */ int getFunctionsCount(); /** - * - * *
              * The functions that match the request.
              * 
          * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - java.util.List + java.util.List getFunctionsOrBuilderList(); /** - * - * *
              * The functions that match the request.
              * 
          * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilder(int index); + com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilder( + int index); /** - * - * *
              * A token, which can be sent as `page_token` to retrieve the next page.
              * If this field is omitted, there are no subsequent pages.
              * 
          * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
              * A token, which can be sent as `page_token` to retrieve the next page.
              * If this field is omitted, there are no subsequent pages.
              * 
          * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
              * Locations that could not be reached. The response does not include any
              * functions from these locations.
              * 
          * * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
              * Locations that could not be reached. The response does not include any
              * functions from these locations.
              * 
          * * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
              * Locations that could not be reached. The response does not include any
              * functions from these locations.
              * 
          * * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
              * Locations that could not be reached. The response does not include any
              * functions from these locations.
              * 
          * * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java similarity index 67% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java index 1af94918..d177e51c 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java @@ -1,42 +1,24 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Request for the `ListRuntimes` method.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.ListRuntimesRequest} */ -public final class ListRuntimesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRuntimesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.ListRuntimesRequest) ListRuntimesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRuntimesRequest.newBuilder() to construct. private ListRuntimesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRuntimesRequest() { parent_ = ""; filter_ = ""; @@ -44,15 +26,16 @@ private ListRuntimesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRuntimesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListRuntimesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private ListRuntimesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,42 +80,35 @@ private ListRuntimesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListRuntimesRequest.class, - com.google.cloud.functions.v2alpha.ListRuntimesRequest.Builder.class); + com.google.cloud.functions.v2alpha.ListRuntimesRequest.class, com.google.cloud.functions.v2alpha.ListRuntimesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
              * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -143,32 +117,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
              * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -179,15 +151,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
              * The filter for Runtimes that match the filter expression,
              * following the syntax outlined in https://google.aip.dev/160.
              * 
          * * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -196,30 +165,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
              * The filter for Runtimes that match the filter expression,
              * following the syntax outlined in https://google.aip.dev/160.
              * 
          * * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -228,7 +197,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +208,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -270,16 +239,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.ListRuntimesRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.ListRuntimesRequest other = - (com.google.cloud.functions.v2alpha.ListRuntimesRequest) obj; + com.google.cloud.functions.v2alpha.ListRuntimesRequest other = (com.google.cloud.functions.v2alpha.ListRuntimesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.ListRuntimesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListRuntimesRequest 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.v2alpha.ListRuntimesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2alpha.ListRuntimesRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2alpha.ListRuntimesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Request for the `ListRuntimes` method.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.ListRuntimesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.ListRuntimesRequest) com.google.cloud.functions.v2alpha.ListRuntimesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListRuntimesRequest.class, - com.google.cloud.functions.v2alpha.ListRuntimesRequest.Builder.class); + com.google.cloud.functions.v2alpha.ListRuntimesRequest.class, com.google.cloud.functions.v2alpha.ListRuntimesRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.ListRuntimesRequest.newBuilder() @@ -429,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; } @java.lang.Override @@ -470,8 +431,7 @@ public com.google.cloud.functions.v2alpha.ListRuntimesRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.ListRuntimesRequest buildPartial() { - com.google.cloud.functions.v2alpha.ListRuntimesRequest result = - new com.google.cloud.functions.v2alpha.ListRuntimesRequest(this); + com.google.cloud.functions.v2alpha.ListRuntimesRequest result = new com.google.cloud.functions.v2alpha.ListRuntimesRequest(this); result.parent_ = parent_; result.filter_ = filter_; onBuilt(); @@ -482,39 +442,38 @@ public com.google.cloud.functions.v2alpha.ListRuntimesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.ListRuntimesRequest) other); + return mergeFrom((com.google.cloud.functions.v2alpha.ListRuntimesRequest)other); } else { super.mergeFrom(other); return this; @@ -522,8 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListRuntimesRequest other) { - if (other == com.google.cloud.functions.v2alpha.ListRuntimesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.ListRuntimesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -551,8 +509,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.ListRuntimesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.ListRuntimesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,23 +521,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
                * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -589,24 +542,21 @@ public java.lang.String getParent() { } } /** - * - * *
                * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -614,70 +564,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -685,21 +622,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
                * The filter for Runtimes that match the filter expression,
                * following the syntax outlined in https://google.aip.dev/160.
                * 
          * * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -708,22 +643,21 @@ public java.lang.String getFilter() { } } /** - * - * *
                * The filter for Runtimes that match the filter expression,
                * following the syntax outlined in https://google.aip.dev/160.
                * 
          * * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -731,71 +665,64 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
                * The filter for Runtimes that match the filter expression,
                * following the syntax outlined in https://google.aip.dev/160.
                * 
          * * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
                * The filter for Runtimes that match the filter expression,
                * following the syntax outlined in https://google.aip.dev/160.
                * 
          * * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
                * The filter for Runtimes that match the filter expression,
                * following the syntax outlined in https://google.aip.dev/160.
                * 
          * * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -805,12 +732,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.ListRuntimesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.ListRuntimesRequest) private static final com.google.cloud.functions.v2alpha.ListRuntimesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.ListRuntimesRequest(); } @@ -819,16 +746,16 @@ public static com.google.cloud.functions.v2alpha.ListRuntimesRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRuntimesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRuntimesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,4 +770,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.ListRuntimesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java index f89529bf..4e117127 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java @@ -1,83 +1,53 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface ListRuntimesRequestOrBuilder - extends +public interface ListRuntimesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.ListRuntimesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
              * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
              * The filter for Runtimes that match the filter expression,
              * following the syntax outlined in https://google.aip.dev/160.
              * 
          * * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
              * The filter for Runtimes that match the filter expression,
              * following the syntax outlined in https://google.aip.dev/160.
              * 
          * * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java similarity index 71% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java index da1813d5..9020b672 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java @@ -1,57 +1,40 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Response for the `ListRuntimes` method.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.ListRuntimesResponse} */ -public final class ListRuntimesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRuntimesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.ListRuntimesResponse) ListRuntimesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRuntimesResponse.newBuilder() to construct. private ListRuntimesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRuntimesResponse() { runtimes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRuntimesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListRuntimesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private ListRuntimesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - runtimes_ = - new java.util.ArrayList< - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime>(); - mutable_bitField0_ |= 0x00000001; - } - runtimes_.add( - input.readMessage( - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + runtimes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + runtimes_.add( + input.readMessage(com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private ListRuntimesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { runtimes_ = java.util.Collections.unmodifiableList(runtimes_); @@ -108,35 +87,29 @@ private ListRuntimesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListRuntimesResponse.class, - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Builder.class); + com.google.cloud.functions.v2alpha.ListRuntimesResponse.class, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Builder.class); } /** - * - * *
              * The various stages that a runtime can be in.
              * 
          * * Protobuf enum {@code google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage} */ - public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { + public enum RuntimeStage + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                * Not specified.
                * 
          @@ -145,8 +118,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ RUNTIME_STAGE_UNSPECIFIED(0), /** - * - * *
                * The runtime is in development.
                * 
          @@ -155,8 +126,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ DEVELOPMENT(1), /** - * - * *
                * The runtime is in the Alpha stage.
                * 
          @@ -165,8 +134,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ ALPHA(2), /** - * - * *
                * The runtime is in the Beta stage.
                * 
          @@ -175,8 +142,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ BETA(3), /** - * - * *
                * The runtime is generally available.
                * 
          @@ -185,8 +150,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ GA(4), /** - * - * *
                * The runtime is deprecated.
                * 
          @@ -195,8 +158,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ DEPRECATED(5), /** - * - * *
                * The runtime is no longer supported.
                * 
          @@ -208,8 +169,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                * Not specified.
                * 
          @@ -218,8 +177,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNTIME_STAGE_UNSPECIFIED_VALUE = 0; /** - * - * *
                * The runtime is in development.
                * 
          @@ -228,8 +185,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEVELOPMENT_VALUE = 1; /** - * - * *
                * The runtime is in the Alpha stage.
                * 
          @@ -238,8 +193,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALPHA_VALUE = 2; /** - * - * *
                * The runtime is in the Beta stage.
                * 
          @@ -248,8 +201,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BETA_VALUE = 3; /** - * - * *
                * The runtime is generally available.
                * 
          @@ -258,8 +209,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GA_VALUE = 4; /** - * - * *
                * The runtime is deprecated.
                * 
          @@ -268,8 +217,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPRECATED_VALUE = 5; /** - * - * *
                * The runtime is no longer supported.
                * 
          @@ -278,6 +225,7 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DECOMMISSIONED_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -302,59 +250,53 @@ public static RuntimeStage valueOf(int value) { */ public static RuntimeStage forNumber(int value) { switch (value) { - case 0: - return RUNTIME_STAGE_UNSPECIFIED; - case 1: - return DEVELOPMENT; - case 2: - return ALPHA; - case 3: - return BETA; - case 4: - return GA; - case 5: - return DEPRECATED; - case 6: - return DECOMMISSIONED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return RUNTIME_STAGE_UNSPECIFIED; + case 1: return DEVELOPMENT; + case 2: return ALPHA; + case 3: return BETA; + case 4: return GA; + case 5: return DEPRECATED; + case 6: return DECOMMISSIONED; + default: return null; + } } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RuntimeStage findValueByNumber(int number) { - return RuntimeStage.forNumber(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RuntimeStage> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RuntimeStage findValueByNumber(int number) { + return RuntimeStage.forNumber(number); + } + }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.ListRuntimesResponse.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.ListRuntimesResponse.getDescriptor().getEnumTypes().get(0); } private static final RuntimeStage[] VALUES = values(); - public static RuntimeStage valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RuntimeStage valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -371,165 +313,130 @@ private RuntimeStage(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage) } - public interface RuntimeOrBuilder - extends + public interface RuntimeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                * 
          * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
                * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                * 
          * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                * 
          * * string display_name = 5; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
                * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                * 
          * * string display_name = 5; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
                * The stage of life this runtime is in, e.g., BETA, GA, etc.
                * 
          * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return The enum numeric value on the wire for stage. */ int getStageValue(); /** - * - * *
                * The stage of life this runtime is in, e.g., BETA, GA, etc.
                * 
          * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return The stage. */ com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage getStage(); /** - * - * *
                * Warning messages, e.g., a deprecation warning.
                * 
          * * repeated string warnings = 3; - * * @return A list containing the warnings. */ - java.util.List getWarningsList(); + java.util.List + getWarningsList(); /** - * - * *
                * Warning messages, e.g., a deprecation warning.
                * 
          * * repeated string warnings = 3; - * * @return The count of warnings. */ int getWarningsCount(); /** - * - * *
                * Warning messages, e.g., a deprecation warning.
                * 
          * * repeated string warnings = 3; - * * @param index The index of the element to return. * @return The warnings at the given index. */ java.lang.String getWarnings(int index); /** - * - * *
                * Warning messages, e.g., a deprecation warning.
                * 
          * * repeated string warnings = 3; - * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - com.google.protobuf.ByteString getWarningsBytes(int index); + com.google.protobuf.ByteString + getWarningsBytes(int index); /** - * - * *
                * The environment for the runtime.
                * 
          * * .google.cloud.functions.v2alpha.Environment environment = 4; - * * @return The enum numeric value on the wire for environment. */ int getEnvironmentValue(); /** - * - * *
                * The environment for the runtime.
                * 
          * * .google.cloud.functions.v2alpha.Environment environment = 4; - * * @return The environment. */ com.google.cloud.functions.v2alpha.Environment getEnvironment(); } /** - * - * *
              * Describes a runtime and any special information (e.g., deprecation status)
              * related to it.
          @@ -537,16 +444,15 @@ public interface RuntimeOrBuilder
              *
              * Protobuf type {@code google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime}
              */
          -  public static final class Runtime extends com.google.protobuf.GeneratedMessageV3
          -      implements
          +  public static final class Runtime extends
          +      com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime)
                 RuntimeOrBuilder {
          -    private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
               // Use Runtime.newBuilder() to construct.
               private Runtime(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
          -
               private Runtime() {
                 name_ = "";
                 displayName_ = "";
          @@ -557,15 +463,16 @@ private Runtime() {
           
               @java.lang.Override
               @SuppressWarnings({"unused"})
          -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +    protected java.lang.Object newInstance(
          +        UnusedPrivateParameter unused) {
                 return new Runtime();
               }
           
               @java.lang.Override
          -    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
          +    public final com.google.protobuf.UnknownFieldSet
          +    getUnknownFields() {
                 return this.unknownFields;
               }
          -
               private Runtime(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -585,51 +492,46 @@ private Runtime(
                       case 0:
                         done = true;
                         break;
          -            case 10:
          -              {
          -                java.lang.String s = input.readStringRequireUtf8();
          +            case 10: {
          +              java.lang.String s = input.readStringRequireUtf8();
           
          -                name_ = s;
          -                break;
          -              }
          -            case 16:
          -              {
          -                int rawValue = input.readEnum();
          +              name_ = s;
          +              break;
          +            }
          +            case 16: {
          +              int rawValue = input.readEnum();
           
          -                stage_ = rawValue;
          -                break;
          -              }
          -            case 26:
          -              {
          -                java.lang.String s = input.readStringRequireUtf8();
          -                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          -                  warnings_ = new com.google.protobuf.LazyStringArrayList();
          -                  mutable_bitField0_ |= 0x00000001;
          -                }
          -                warnings_.add(s);
          -                break;
          +              stage_ = rawValue;
          +              break;
          +            }
          +            case 26: {
          +              java.lang.String s = input.readStringRequireUtf8();
          +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          +                warnings_ = new com.google.protobuf.LazyStringArrayList();
          +                mutable_bitField0_ |= 0x00000001;
                         }
          -            case 32:
          -              {
          -                int rawValue = input.readEnum();
          +              warnings_.add(s);
          +              break;
          +            }
          +            case 32: {
          +              int rawValue = input.readEnum();
           
          -                environment_ = rawValue;
          -                break;
          -              }
          -            case 42:
          -              {
          -                java.lang.String s = input.readStringRequireUtf8();
          +              environment_ = rawValue;
          +              break;
          +            }
          +            case 42: {
          +              java.lang.String s = input.readStringRequireUtf8();
           
          -                displayName_ = s;
          -                break;
          -              }
          -            default:
          -              {
          -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          -                  done = true;
          -                }
          -                break;
          +              displayName_ = s;
          +              break;
          +            }
          +            default: {
          +              if (!parseUnknownField(
          +                  input, unknownFields, extensionRegistry, tag)) {
          +                done = true;
                         }
          +              break;
          +            }
                     }
                   }
                 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -637,7 +539,8 @@ private Runtime(
                 } catch (com.google.protobuf.UninitializedMessageException e) {
                   throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                 } catch (java.io.IOException e) {
          -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
          +        throw new com.google.protobuf.InvalidProtocolBufferException(
          +            e).setUnfinishedMessage(this);
                 } finally {
                   if (((mutable_bitField0_ & 0x00000001) != 0)) {
                     warnings_ = warnings_.getUnmodifiableView();
          @@ -646,33 +549,27 @@ private Runtime(
                   makeExtensionsImmutable();
                 }
               }
          -
          -    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;
          +    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;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.class,
          -              com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder.class);
          +              com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder.class);
               }
           
               public static final int NAME_FIELD_NUMBER = 1;
               private volatile java.lang.Object name_;
               /**
          -     *
          -     *
                * 
                * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                * 
          * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -681,29 +578,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                * 
          * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -714,14 +611,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** - * - * *
                * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                * 
          * * string display_name = 5; - * * @return The displayName. */ @java.lang.Override @@ -730,29 +624,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
                * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                * 
          * * string display_name = 5; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -763,80 +657,61 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int STAGE_FIELD_NUMBER = 2; private int stage_; /** - * - * *
                * The stage of life this runtime is in, e.g., BETA, GA, etc.
                * 
          * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return The enum numeric value on the wire for stage. */ - @java.lang.Override - public int getStageValue() { + @java.lang.Override public int getStageValue() { return stage_; } /** - * - * *
                * The stage of life this runtime is in, e.g., BETA, GA, etc.
                * 
          * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return The stage. */ - @java.lang.Override - public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage getStage() { + @java.lang.Override public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage getStage() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage result = - com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.valueOf(stage_); - return result == null - ? com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED - : result; + com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.valueOf(stage_); + return result == null ? com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; } public static final int WARNINGS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList warnings_; /** - * - * *
                * Warning messages, e.g., a deprecation warning.
                * 
          * * repeated string warnings = 3; - * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList getWarningsList() { + public com.google.protobuf.ProtocolStringList + getWarningsList() { return warnings_; } /** - * - * *
                * Warning messages, e.g., a deprecation warning.
                * 
          * * repeated string warnings = 3; - * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** - * - * *
                * Warning messages, e.g., a deprecation warning.
                * 
          * * repeated string warnings = 3; - * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -844,59 +719,47 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** - * - * *
                * Warning messages, e.g., a deprecation warning.
                * 
          * * repeated string warnings = 3; - * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { + public com.google.protobuf.ByteString + getWarningsBytes(int index) { return warnings_.getByteString(index); } public static final int ENVIRONMENT_FIELD_NUMBER = 4; private int environment_; /** - * - * *
                * The environment for the runtime.
                * 
          * * .google.cloud.functions.v2alpha.Environment environment = 4; - * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override - public int getEnvironmentValue() { + @java.lang.Override public int getEnvironmentValue() { return environment_; } /** - * - * *
                * The environment for the runtime.
                * 
          * * .google.cloud.functions.v2alpha.Environment environment = 4; - * * @return The environment. */ - @java.lang.Override - public com.google.cloud.functions.v2alpha.Environment getEnvironment() { + @java.lang.Override public com.google.cloud.functions.v2alpha.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Environment result = - com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); + com.google.cloud.functions.v2alpha.Environment result = com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2alpha.Environment.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -908,21 +771,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (stage_ - != com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage - .RUNTIME_STAGE_UNSPECIFIED - .getNumber()) { + if (stage_ != com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.RUNTIME_STAGE_UNSPECIFIED.getNumber()) { output.writeEnum(2, stage_); } for (int i = 0; i < warnings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warnings_.getRaw(i)); } - if (environment_ - != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (environment_ != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(4, environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { @@ -940,11 +800,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (stage_ - != com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage - .RUNTIME_STAGE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stage_); + if (stage_ != com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.RUNTIME_STAGE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, stage_); } { int dataSize = 0; @@ -954,9 +812,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getWarningsList().size(); } - if (environment_ - != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, environment_); + if (environment_ != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -969,18 +827,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime other = - (com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) obj; + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime other = (com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (stage_ != other.stage_) return false; - if (!getWarningsList().equals(other.getWarningsList())) return false; + if (!getWarningsList() + .equals(other.getWarningsList())) return false; if (environment_ != other.environment_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1011,95 +871,87 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.ListRuntimesResponse.Runtime parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime 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.v2alpha.ListRuntimesResponse.Runtime parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime - 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.v2alpha.ListRuntimesResponse.Runtime 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.v2alpha.ListRuntimesResponse.Runtime parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1109,8 +961,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                * Describes a runtime and any special information (e.g., deprecation status)
                * related to it.
          @@ -1118,41 +968,38 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime}
                */
          -    public static final class Builder
          -        extends com.google.protobuf.GeneratedMessageV3.Builder
          -        implements
          +    public static final class Builder extends
          +        com.google.protobuf.GeneratedMessageV3.Builder implements
                   // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime)
                   com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder {
          -      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;
          +      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;
                 }
           
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
          -        return com.google.cloud.functions.v2alpha.FunctionsProto
          -            .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable
          +        return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
          -                com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.class,
          -                com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder.class);
          +                com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder.class);
                 }
           
          -      // Construct using
          -      // com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.newBuilder()
          +      // Construct using com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.newBuilder()
                 private Builder() {
                   maybeForceBuilderInitialization();
                 }
           
          -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      private Builder(
          +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   super(parent);
                   maybeForceBuilderInitialization();
                 }
          -
                 private void maybeForceBuilderInitialization() {
          -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
          +        if (com.google.protobuf.GeneratedMessageV3
          +                .alwaysUseFieldBuilders) {
          +        }
                 }
          -
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
          @@ -1170,14 +1017,13 @@ public Builder clear() {
                 }
           
                 @java.lang.Override
          -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -        return com.google.cloud.functions.v2alpha.FunctionsProto
          -            .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor;
          +      public com.google.protobuf.Descriptors.Descriptor
          +          getDescriptorForType() {
          +        return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor;
                 }
           
                 @java.lang.Override
          -      public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime
          -          getDefaultInstanceForType() {
          +      public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getDefaultInstanceForType() {
                   return com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance();
                 }
           
          @@ -1192,8 +1038,7 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime build() {
           
                 @java.lang.Override
                 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);
          +        com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime result = new com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime(this);
                   int from_bitField0_ = bitField0_;
                   result.name_ = name_;
                   result.displayName_ = displayName_;
          @@ -1212,52 +1057,46 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime buildPart
                 public Builder clone() {
                   return super.clone();
                 }
          -
                 @java.lang.Override
                 public Builder setField(
          -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +          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) {
          +      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) {
          +      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) {
          +          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) {
          +          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) {
          -          return mergeFrom((com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) other);
          +          return mergeFrom((com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
                   }
                 }
           
          -      public Builder mergeFrom(
          -          com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime other) {
          -        if (other
          -            == com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance())
          -          return this;
          +      public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime other) {
          +        if (other == com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance()) return this;
                   if (!other.getName().isEmpty()) {
                     name_ = other.name_;
                     onChanged();
          @@ -1301,9 +1140,7 @@ public Builder mergeFrom(
                   try {
                     parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          -          parsedMessage =
          -              (com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime)
          -                  e.getUnfinishedMessage();
          +          parsedMessage = (com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) e.getUnfinishedMessage();
                     throw e.unwrapIOException();
                   } finally {
                     if (parsedMessage != null) {
          @@ -1312,25 +1149,22 @@ public Builder mergeFrom(
                   }
                   return this;
                 }
          -
                 private int bitField0_;
           
                 private java.lang.Object name_ = "";
                 /**
          -       *
          -       *
                  * 
                  * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                  * 
          * * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1339,21 +1173,20 @@ public java.lang.String getName() { } } /** - * - * *
                  * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                  * 
          * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1361,61 +1194,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                  * 
          * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
                  * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                  * 
          * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
                  * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                  * 
          * * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1423,20 +1249,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
                  * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                  * 
          * * string display_name = 5; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1445,21 +1269,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
                  * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                  * 
          * * string display_name = 5; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1467,61 +1290,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
                  * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                  * 
          * * string display_name = 5; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
                  * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                  * 
          * * string display_name = 5; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
                  * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                  * 
          * * string display_name = 5; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1529,144 +1345,114 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private int stage_ = 0; /** - * - * *
                  * The stage of life this runtime is in, e.g., BETA, GA, etc.
                  * 
          * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return The enum numeric value on the wire for stage. */ - @java.lang.Override - public int getStageValue() { + @java.lang.Override public int getStageValue() { return stage_; } /** - * - * *
                  * The stage of life this runtime is in, e.g., BETA, GA, etc.
                  * 
          * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; - * * @param value The enum numeric value on the wire for stage to set. * @return This builder for chaining. */ public Builder setStageValue(int value) { - + stage_ = value; onChanged(); return this; } /** - * - * *
                  * The stage of life this runtime is in, e.g., BETA, GA, etc.
                  * 
          * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return The stage. */ @java.lang.Override public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage getStage() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage result = - com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.valueOf(stage_); - return result == null - ? com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED - : result; + com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.valueOf(stage_); + return result == null ? com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; } /** - * - * *
                  * The stage of life this runtime is in, e.g., BETA, GA, etc.
                  * 
          * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; - * * @param value The stage to set. * @return This builder for chaining. */ - public Builder setStage( - com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage value) { + public Builder setStage(com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage value) { if (value == null) { throw new NullPointerException(); } - + stage_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                  * The stage of life this runtime is in, e.g., BETA, GA, etc.
                  * 
          * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return This builder for chaining. */ public Builder clearStage() { - + stage_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList warnings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureWarningsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
                  * Warning messages, e.g., a deprecation warning.
                  * 
          * * repeated string warnings = 3; - * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList getWarningsList() { + public com.google.protobuf.ProtocolStringList + getWarningsList() { return warnings_.getUnmodifiableView(); } /** - * - * *
                  * Warning messages, e.g., a deprecation warning.
                  * 
          * * repeated string warnings = 3; - * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** - * - * *
                  * Warning messages, e.g., a deprecation warning.
                  * 
          * * repeated string warnings = 3; - * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -1674,90 +1460,80 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** - * - * *
                  * Warning messages, e.g., a deprecation warning.
                  * 
          * * repeated string warnings = 3; - * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { + public com.google.protobuf.ByteString + getWarningsBytes(int index) { return warnings_.getByteString(index); } /** - * - * *
                  * Warning messages, e.g., a deprecation warning.
                  * 
          * * repeated string warnings = 3; - * * @param index The index to set the value at. * @param value The warnings to set. * @return This builder for chaining. */ - public Builder setWarnings(int index, java.lang.String value) { + public Builder setWarnings( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.set(index, value); onChanged(); return this; } /** - * - * *
                  * Warning messages, e.g., a deprecation warning.
                  * 
          * * repeated string warnings = 3; - * * @param value The warnings to add. * @return This builder for chaining. */ - public Builder addWarnings(java.lang.String value) { + public Builder addWarnings( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.add(value); onChanged(); return this; } /** - * - * *
                  * Warning messages, e.g., a deprecation warning.
                  * 
          * * repeated string warnings = 3; - * * @param values The warnings to add. * @return This builder for chaining. */ - public Builder addAllWarnings(java.lang.Iterable values) { + public Builder addAllWarnings( + java.lang.Iterable values) { ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, warnings_); onChanged(); return this; } /** - * - * *
                  * Warning messages, e.g., a deprecation warning.
                  * 
          * * repeated string warnings = 3; - * * @return This builder for chaining. */ public Builder clearWarnings() { @@ -1767,22 +1543,20 @@ public Builder clearWarnings() { return this; } /** - * - * *
                  * Warning messages, e.g., a deprecation warning.
                  * 
          * * repeated string warnings = 3; - * * @param value The bytes of the warnings to add. * @return This builder for chaining. */ - public Builder addWarningsBytes(com.google.protobuf.ByteString value) { + public Builder addWarningsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.add(value); onChanged(); @@ -1791,67 +1565,51 @@ public Builder addWarningsBytes(com.google.protobuf.ByteString value) { private int environment_ = 0; /** - * - * *
                  * The environment for the runtime.
                  * 
          * * .google.cloud.functions.v2alpha.Environment environment = 4; - * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override - public int getEnvironmentValue() { + @java.lang.Override public int getEnvironmentValue() { return environment_; } /** - * - * *
                  * The environment for the runtime.
                  * 
          * * .google.cloud.functions.v2alpha.Environment environment = 4; - * * @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; onChanged(); return this; } /** - * - * *
                  * The environment for the runtime.
                  * 
          * * .google.cloud.functions.v2alpha.Environment environment = 4; - * * @return The environment. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Environment result = - com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); - return result == null - ? com.google.cloud.functions.v2alpha.Environment.UNRECOGNIZED - : result; + com.google.cloud.functions.v2alpha.Environment result = com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); + return result == null ? com.google.cloud.functions.v2alpha.Environment.UNRECOGNIZED : result; } /** - * - * *
                  * The environment for the runtime.
                  * 
          * * .google.cloud.functions.v2alpha.Environment environment = 4; - * * @param value The environment to set. * @return This builder for chaining. */ @@ -1859,29 +1617,25 @@ public Builder setEnvironment(com.google.cloud.functions.v2alpha.Environment val if (value == null) { throw new NullPointerException(); } - + environment_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                  * The environment for the runtime.
                  * 
          * * .google.cloud.functions.v2alpha.Environment environment = 4; - * * @return This builder for chaining. */ public Builder clearEnvironment() { - + environment_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1894,32 +1648,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) - private static final com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime - DEFAULT_INSTANCE; - + private static final com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime(); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime - getDefaultInstance() { + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Runtime parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Runtime(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Runtime parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Runtime(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1931,91 +1683,73 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime - getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int RUNTIMES_FIELD_NUMBER = 1; private java.util.List runtimes_; /** - * - * *
              * The runtimes that match the request.
              * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override - public java.util.List - getRuntimesList() { + public java.util.List getRuntimesList() { return runtimes_; } /** - * - * *
              * The runtimes that match the request.
              * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder> + public java.util.List getRuntimesOrBuilderList() { return runtimes_; } /** - * - * *
              * The runtimes that match the request.
              * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override public int getRuntimesCount() { return runtimes_.size(); } /** - * - * *
              * The runtimes that match the request.
              * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getRuntimes(int index) { return runtimes_.get(index); } /** - * - * *
              * The runtimes that match the request.
              * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override - public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder - getRuntimesOrBuilder(int index) { + public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( + int index) { return runtimes_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2027,7 +1761,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < runtimes_.size(); i++) { output.writeMessage(1, runtimes_.get(i)); } @@ -2041,7 +1776,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < runtimes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runtimes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, runtimes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2051,15 +1787,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.ListRuntimesResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.ListRuntimesResponse other = - (com.google.cloud.functions.v2alpha.ListRuntimesResponse) obj; + com.google.cloud.functions.v2alpha.ListRuntimesResponse other = (com.google.cloud.functions.v2alpha.ListRuntimesResponse) obj; - if (!getRuntimesList().equals(other.getRuntimesList())) return false; + if (!getRuntimesList() + .equals(other.getRuntimesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2081,127 +1817,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.ListRuntimesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse 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.v2alpha.ListRuntimesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2alpha.ListRuntimesResponse prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2alpha.ListRuntimesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Response for the `ListRuntimes` method.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.ListRuntimesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.ListRuntimesResponse) com.google.cloud.functions.v2alpha.ListRuntimesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListRuntimesResponse.class, - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Builder.class); + com.google.cloud.functions.v2alpha.ListRuntimesResponse.class, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.ListRuntimesResponse.newBuilder() @@ -2209,17 +1935,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRuntimesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2233,9 +1959,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; } @java.lang.Override @@ -2254,8 +1980,7 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse build() { @java.lang.Override public com.google.cloud.functions.v2alpha.ListRuntimesResponse buildPartial() { - com.google.cloud.functions.v2alpha.ListRuntimesResponse result = - new com.google.cloud.functions.v2alpha.ListRuntimesResponse(this); + com.google.cloud.functions.v2alpha.ListRuntimesResponse result = new com.google.cloud.functions.v2alpha.ListRuntimesResponse(this); int from_bitField0_ = bitField0_; if (runtimesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2274,39 +1999,38 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.ListRuntimesResponse) other); + return mergeFrom((com.google.cloud.functions.v2alpha.ListRuntimesResponse)other); } else { super.mergeFrom(other); return this; @@ -2314,8 +2038,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListRuntimesResponse other) { - if (other == com.google.cloud.functions.v2alpha.ListRuntimesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.ListRuntimesResponse.getDefaultInstance()) return this; if (runtimesBuilder_ == null) { if (!other.runtimes_.isEmpty()) { if (runtimes_.isEmpty()) { @@ -2334,10 +2057,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListRuntimesResponse runtimesBuilder_ = null; runtimes_ = other.runtimes_; bitField0_ = (bitField0_ & ~0x00000001); - runtimesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRuntimesFieldBuilder() - : null; + runtimesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRuntimesFieldBuilder() : null; } else { runtimesBuilder_.addAllMessages(other.runtimes_); } @@ -2362,8 +2084,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.ListRuntimesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.ListRuntimesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2372,39 +2093,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - runtimes_ = java.util.Collections.emptyList(); - + private java.util.List runtimes_ = + java.util.Collections.emptyList(); private void ensureRuntimesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - runtimes_ = - new java.util.ArrayList< - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime>(runtimes_); + runtimes_ = new java.util.ArrayList(runtimes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime, - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder, - com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder> - runtimesBuilder_; + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder> runtimesBuilder_; /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ - public java.util.List - getRuntimesList() { + public java.util.List getRuntimesList() { if (runtimesBuilder_ == null) { return java.util.Collections.unmodifiableList(runtimes_); } else { @@ -2412,14 +2122,11 @@ private void ensureRuntimesIsMutable() { } } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ public int getRuntimesCount() { if (runtimesBuilder_ == null) { @@ -2429,14 +2136,11 @@ public int getRuntimesCount() { } } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getRuntimes(int index) { if (runtimesBuilder_ == null) { @@ -2446,14 +2150,11 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getRuntim } } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder setRuntimes( int index, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime value) { @@ -2470,18 +2171,14 @@ public Builder setRuntimes( return this; } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder setRuntimes( - int index, - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder builderForValue) { + int index, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.set(index, builderForValue.build()); @@ -2492,17 +2189,13 @@ public Builder setRuntimes( return this; } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ - public Builder addRuntimes( - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime value) { + public Builder addRuntimes(com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime value) { if (runtimesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2516,14 +2209,11 @@ public Builder addRuntimes( return this; } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addRuntimes( int index, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime value) { @@ -2540,14 +2230,11 @@ public Builder addRuntimes( return this; } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addRuntimes( com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder builderForValue) { @@ -2561,18 +2248,14 @@ public Builder addRuntimes( return this; } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addRuntimes( - int index, - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder builderForValue) { + int index, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.add(index, builderForValue.build()); @@ -2583,22 +2266,18 @@ public Builder addRuntimes( return this; } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addAllRuntimes( - java.lang.Iterable< - ? extends com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime> - values) { + java.lang.Iterable values) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, runtimes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, runtimes_); onChanged(); } else { runtimesBuilder_.addAllMessages(values); @@ -2606,14 +2285,11 @@ public Builder addAllRuntimes( return this; } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder clearRuntimes() { if (runtimesBuilder_ == null) { @@ -2626,14 +2302,11 @@ public Builder clearRuntimes() { return this; } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder removeRuntimes(int index) { if (runtimesBuilder_ == null) { @@ -2646,50 +2319,39 @@ public Builder removeRuntimes(int index) { return this; } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ - public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder - getRuntimesBuilder(int index) { + public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder getRuntimesBuilder( + int index) { return getRuntimesFieldBuilder().getBuilder(index); } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ - public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder - getRuntimesOrBuilder(int index) { + public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( + int index) { if (runtimesBuilder_ == null) { - return runtimes_.get(index); - } else { + return runtimes_.get(index); } else { return runtimesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ - public java.util.List< - ? extends com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder> - getRuntimesOrBuilderList() { + public java.util.List + getRuntimesOrBuilderList() { if (runtimesBuilder_ != null) { return runtimesBuilder_.getMessageOrBuilderList(); } else { @@ -2697,72 +2359,56 @@ public Builder removeRuntimes(int index) { } } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ - public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder - addRuntimesBuilder() { - return getRuntimesFieldBuilder() - .addBuilder( - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder() { + return getRuntimesFieldBuilder().addBuilder( + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance()); } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ - public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder - addRuntimesBuilder(int index) { - return getRuntimesFieldBuilder() - .addBuilder( - index, - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder( + int index) { + return getRuntimesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance()); } /** - * - * *
                * The runtimes that match the request.
                * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ - public java.util.List - getRuntimesBuilderList() { + public java.util.List + getRuntimesBuilderList() { return getRuntimesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime, - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder, - com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder> + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder> getRuntimesFieldBuilder() { if (runtimesBuilder_ == null) { - runtimesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime, - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder, - com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder>( - runtimes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + runtimesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder>( + runtimes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); runtimes_ = null; } return runtimesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2772,12 +2418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.ListRuntimesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.ListRuntimesResponse) private static final com.google.cloud.functions.v2alpha.ListRuntimesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.ListRuntimesResponse(); } @@ -2786,16 +2432,16 @@ public static com.google.cloud.functions.v2alpha.ListRuntimesResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRuntimesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRuntimesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2810,4 +2456,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.ListRuntimesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java similarity index 58% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java index b1312b13..467d43c9 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java @@ -1,82 +1,52 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface ListRuntimesResponseOrBuilder - extends +public interface ListRuntimesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.ListRuntimesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The runtimes that match the request.
              * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ - java.util.List getRuntimesList(); + java.util.List + getRuntimesList(); /** - * - * *
              * The runtimes that match the request.
              * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getRuntimes(int index); /** - * - * *
              * The runtimes that match the request.
              * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ int getRuntimesCount(); /** - * - * *
              * The runtimes that match the request.
              * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ - java.util.List + java.util.List getRuntimesOrBuilderList(); /** - * - * *
              * The runtimes that match the request.
              * 
          * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; */ com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( int index); diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java similarity index 100% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java similarity index 74% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java index 1841b404..c92d3d21 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Represents the metadata of the long-running operation.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -47,15 +29,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,102 +58,90 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusDetail_ = s; - break; - } - case 48: - { - cancelRequested_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDetail_ = s; + break; + } + case 48: { + + cancelRequested_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + case 66: { + com.google.protobuf.Any.Builder subBuilder = null; + if (requestResource_ != null) { + subBuilder = requestResource_.toBuilder(); } - case 66: - { - com.google.protobuf.Any.Builder subBuilder = null; - if (requestResource_ != null) { - subBuilder = requestResource_.toBuilder(); - } - requestResource_ = - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestResource_); - requestResource_ = subBuilder.buildPartial(); - } - - break; + requestResource_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestResource_); + requestResource_ = subBuilder.buildPartial(); } - case 74: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stages_.add( - input.readMessage( - com.google.cloud.functions.v2alpha.Stage.parser(), extensionRegistry)); - break; + + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + stages_.add( + input.readMessage(com.google.cloud.functions.v2alpha.Stage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -178,7 +149,8 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stages_ = java.util.Collections.unmodifiableList(stages_); @@ -187,33 +159,27 @@ private OperationMetadata( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.OperationMetadata.class, - com.google.cloud.functions.v2alpha.OperationMetadata.Builder.class); + com.google.cloud.functions.v2alpha.OperationMetadata.class, com.google.cloud.functions.v2alpha.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
              * The time the operation was created.
              * 
          * * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -221,14 +187,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
              * The time the operation was created.
              * 
          * * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -236,8 +199,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
              * The time the operation was created.
              * 
          @@ -252,14 +213,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
              * The time the operation finished running.
              * 
          * * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -267,14 +225,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
              * The time the operation finished running.
              * 
          * * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -282,8 +237,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
              * The time the operation finished running.
              * 
          @@ -298,14 +251,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
              * Server-defined resource path for the target of the operation.
              * 
          * * string target = 3; - * * @return The target. */ @java.lang.Override @@ -314,29 +264,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
              * Server-defined resource path for the target of the operation.
              * 
          * * string target = 3; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -347,14 +297,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
              * Name of the verb executed by the operation.
              * 
          * * string verb = 4; - * * @return The verb. */ @java.lang.Override @@ -363,29 +310,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
              * Name of the verb executed by the operation.
              * 
          * * string verb = 4; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -396,14 +343,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
              * Human-readable status of the operation, if any.
              * 
          * * string status_detail = 5; - * * @return The statusDetail. */ @java.lang.Override @@ -412,29 +356,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** - * - * *
              * Human-readable status of the operation, if any.
              * 
          * * string status_detail = 5; - * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -445,8 +389,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
              * Identifies whether the user has requested cancellation
              * of the operation. Operations that have successfully been cancelled
          @@ -455,7 +397,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() {
              * 
          * * bool cancel_requested = 6; - * * @return The cancelRequested. */ @java.lang.Override @@ -466,14 +407,11 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
              * API version used to start the operation.
              * 
          * * string api_version = 7; - * * @return The apiVersion. */ @java.lang.Override @@ -482,29 +420,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
              * API version used to start the operation.
              * 
          * * string api_version = 7; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -515,14 +453,11 @@ public com.google.protobuf.ByteString getApiVersionBytes() { public static final int REQUEST_RESOURCE_FIELD_NUMBER = 8; private com.google.protobuf.Any requestResource_; /** - * - * *
              * The original request that started the operation.
              * 
          * * .google.protobuf.Any request_resource = 8; - * * @return Whether the requestResource field is set. */ @java.lang.Override @@ -530,25 +465,18 @@ public boolean hasRequestResource() { return requestResource_ != null; } /** - * - * *
              * The original request that started the operation.
              * 
          * * .google.protobuf.Any request_resource = 8; - * * @return The requestResource. */ @java.lang.Override public com.google.protobuf.Any getRequestResource() { - return requestResource_ == null - ? com.google.protobuf.Any.getDefaultInstance() - : requestResource_; + return requestResource_ == null ? com.google.protobuf.Any.getDefaultInstance() : requestResource_; } /** - * - * *
              * The original request that started the operation.
              * 
          @@ -563,8 +491,6 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { public static final int STAGES_FIELD_NUMBER = 9; private java.util.List stages_; /** - * - * *
              * Mechanism for reporting in-progress stages
              * 
          @@ -576,8 +502,6 @@ public java.util.List getStagesList() return stages_; } /** - * - * *
              * Mechanism for reporting in-progress stages
              * 
          @@ -585,13 +509,11 @@ public java.util.List getStagesList() * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ @java.lang.Override - public java.util.List + public java.util.List getStagesOrBuilderList() { return stages_; } /** - * - * *
              * Mechanism for reporting in-progress stages
              * 
          @@ -603,8 +525,6 @@ public int getStagesCount() { return stages_.size(); } /** - * - * *
              * Mechanism for reporting in-progress stages
              * 
          @@ -616,8 +536,6 @@ public com.google.cloud.functions.v2alpha.Stage getStages(int index) { return stages_.get(index); } /** - * - * *
              * Mechanism for reporting in-progress stages
              * 
          @@ -625,12 +543,12 @@ public com.google.cloud.functions.v2alpha.Stage getStages(int index) { * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ @java.lang.Override - public com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder(int index) { + public com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder( + int index) { return stages_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -642,7 +560,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -680,10 +599,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -695,16 +616,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } if (requestResource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRequestResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getRequestResource()); } for (int i = 0; i < stages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, stages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, stages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -714,32 +638,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.OperationMetadata other = - (com.google.cloud.functions.v2alpha.OperationMetadata) obj; + com.google.cloud.functions.v2alpha.OperationMetadata other = (com.google.cloud.functions.v2alpha.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (getCancelRequested() != other.getCancelRequested()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (getCancelRequested() + != other.getCancelRequested()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (hasRequestResource() != other.hasRequestResource()) return false; if (hasRequestResource()) { - if (!getRequestResource().equals(other.getRequestResource())) return false; + if (!getRequestResource() + .equals(other.getRequestResource())) return false; } - if (!getStagesList().equals(other.getStagesList())) return false; + if (!getStagesList() + .equals(other.getStagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -766,7 +698,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); if (hasRequestResource()) { @@ -783,126 +716,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.OperationMetadata 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.v2alpha.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Represents the metadata of the long-running operation.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.OperationMetadata) com.google.cloud.functions.v2alpha.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.OperationMetadata.class, - com.google.cloud.functions.v2alpha.OperationMetadata.Builder.class); + com.google.cloud.functions.v2alpha.OperationMetadata.class, com.google.cloud.functions.v2alpha.OperationMetadata.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.OperationMetadata.newBuilder() @@ -910,17 +834,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -962,9 +886,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; } @java.lang.Override @@ -983,8 +907,7 @@ public com.google.cloud.functions.v2alpha.OperationMetadata build() { @java.lang.Override public com.google.cloud.functions.v2alpha.OperationMetadata buildPartial() { - com.google.cloud.functions.v2alpha.OperationMetadata result = - new com.google.cloud.functions.v2alpha.OperationMetadata(this); + com.google.cloud.functions.v2alpha.OperationMetadata result = new com.google.cloud.functions.v2alpha.OperationMetadata(this); int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -1023,39 +946,38 @@ public com.google.cloud.functions.v2alpha.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.OperationMetadata) other); + return mergeFrom((com.google.cloud.functions.v2alpha.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -1063,8 +985,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.OperationMetadata other) { - if (other == com.google.cloud.functions.v2alpha.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1111,10 +1032,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.OperationMetadata ot stagesBuilder_ = null; stages_ = other.stages_; bitField0_ = (bitField0_ & ~0x00000001); - stagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStagesFieldBuilder() - : null; + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStagesFieldBuilder() : null; } else { stagesBuilder_.addAllMessages(other.stages_); } @@ -1139,8 +1059,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1149,52 +1068,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
                * The time the operation was created.
                * 
          * * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
                * The time the operation was created.
                * 
          * * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
                * The time the operation was created.
                * 
          @@ -1215,15 +1120,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                * The time the operation was created.
                * 
          * * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1234,8 +1138,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                * The time the operation was created.
                * 
          @@ -1246,7 +1148,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1258,8 +1160,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                * The time the operation was created.
                * 
          @@ -1278,8 +1178,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
                * The time the operation was created.
                * 
          @@ -1287,13 +1185,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
                * The time the operation was created.
                * 
          @@ -1304,14 +1200,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
                * The time the operation was created.
                * 
          @@ -1319,17 +1212,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1337,33 +1227,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
                * The time the operation finished running.
                * 
          * * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
                * The time the operation finished running.
                * 
          * * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1374,8 +1255,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
                * The time the operation finished running.
                * 
          @@ -1396,15 +1275,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                * The time the operation finished running.
                * 
          * * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1415,8 +1293,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
                * The time the operation finished running.
                * 
          @@ -1427,7 +1303,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1439,8 +1315,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                * The time the operation finished running.
                * 
          @@ -1459,8 +1333,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
                * The time the operation finished running.
                * 
          @@ -1468,13 +1340,11 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
                * The time the operation finished running.
                * 
          @@ -1485,12 +1355,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
                * The time the operation finished running.
                * 
          @@ -1498,17 +1367,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1516,20 +1382,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
                * Server-defined resource path for the target of the operation.
                * 
          * * string target = 3; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1538,21 +1402,20 @@ public java.lang.String getTarget() { } } /** - * - * *
                * Server-defined resource path for the target of the operation.
                * 
          * * string target = 3; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1560,61 +1423,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
                * Server-defined resource path for the target of the operation.
                * 
          * * string target = 3; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
                * Server-defined resource path for the target of the operation.
                * 
          * * string target = 3; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
                * Server-defined resource path for the target of the operation.
                * 
          * * string target = 3; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1622,20 +1478,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
                * Name of the verb executed by the operation.
                * 
          * * string verb = 4; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1644,21 +1498,20 @@ public java.lang.String getVerb() { } } /** - * - * *
                * Name of the verb executed by the operation.
                * 
          * * string verb = 4; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1666,61 +1519,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
                * Name of the verb executed by the operation.
                * 
          * * string verb = 4; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
                * Name of the verb executed by the operation.
                * 
          * * string verb = 4; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
                * Name of the verb executed by the operation.
                * 
          * * string verb = 4; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1728,20 +1574,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
                * Human-readable status of the operation, if any.
                * 
          * * string status_detail = 5; - * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1750,21 +1594,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
                * Human-readable status of the operation, if any.
                * 
          * * string status_detail = 5; - * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1772,70 +1615,61 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
                * Human-readable status of the operation, if any.
                * 
          * * string status_detail = 5; - * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail(java.lang.String value) { + public Builder setStatusDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** - * - * *
                * Human-readable status of the operation, if any.
                * 
          * * string status_detail = 5; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
                * Human-readable status of the operation, if any.
                * 
          * * string status_detail = 5; - * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_; + private boolean cancelRequested_ ; /** - * - * *
                * Identifies whether the user has requested cancellation
                * of the operation. Operations that have successfully been cancelled
          @@ -1844,7 +1678,6 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
                * 
          * * bool cancel_requested = 6; - * * @return The cancelRequested. */ @java.lang.Override @@ -1852,8 +1685,6 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
                * Identifies whether the user has requested cancellation
                * of the operation. Operations that have successfully been cancelled
          @@ -1862,19 +1693,16 @@ public boolean getCancelRequested() {
                * 
          * * bool cancel_requested = 6; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
                * Identifies whether the user has requested cancellation
                * of the operation. Operations that have successfully been cancelled
          @@ -1883,11 +1711,10 @@ public Builder setCancelRequested(boolean value) {
                * 
          * * bool cancel_requested = 6; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1895,20 +1722,18 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** - * - * *
                * API version used to start the operation.
                * 
          * * string api_version = 7; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1917,21 +1742,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
                * API version used to start the operation.
                * 
          * * string api_version = 7; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1939,61 +1763,54 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
                * API version used to start the operation.
                * 
          * * string api_version = 7; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
                * API version used to start the operation.
                * 
          * * string api_version = 7; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
                * API version used to start the operation.
                * 
          * * string api_version = 7; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; @@ -2001,47 +1818,34 @@ public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Any requestResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> - requestResourceBuilder_; + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> requestResourceBuilder_; /** - * - * *
                * The original request that started the operation.
                * 
          * * .google.protobuf.Any request_resource = 8; - * * @return Whether the requestResource field is set. */ public boolean hasRequestResource() { return requestResourceBuilder_ != null || requestResource_ != null; } /** - * - * *
                * The original request that started the operation.
                * 
          * * .google.protobuf.Any request_resource = 8; - * * @return The requestResource. */ public com.google.protobuf.Any getRequestResource() { if (requestResourceBuilder_ == null) { - return requestResource_ == null - ? com.google.protobuf.Any.getDefaultInstance() - : requestResource_; + return requestResource_ == null ? com.google.protobuf.Any.getDefaultInstance() : requestResource_; } else { return requestResourceBuilder_.getMessage(); } } /** - * - * *
                * The original request that started the operation.
                * 
          @@ -2062,15 +1866,14 @@ public Builder setRequestResource(com.google.protobuf.Any value) { return this; } /** - * - * *
                * The original request that started the operation.
                * 
          * * .google.protobuf.Any request_resource = 8; */ - public Builder setRequestResource(com.google.protobuf.Any.Builder builderForValue) { + public Builder setRequestResource( + com.google.protobuf.Any.Builder builderForValue) { if (requestResourceBuilder_ == null) { requestResource_ = builderForValue.build(); onChanged(); @@ -2081,8 +1884,6 @@ public Builder setRequestResource(com.google.protobuf.Any.Builder builderForValu return this; } /** - * - * *
                * The original request that started the operation.
                * 
          @@ -2093,7 +1894,7 @@ public Builder mergeRequestResource(com.google.protobuf.Any value) { if (requestResourceBuilder_ == null) { if (requestResource_ != null) { requestResource_ = - com.google.protobuf.Any.newBuilder(requestResource_).mergeFrom(value).buildPartial(); + com.google.protobuf.Any.newBuilder(requestResource_).mergeFrom(value).buildPartial(); } else { requestResource_ = value; } @@ -2105,8 +1906,6 @@ public Builder mergeRequestResource(com.google.protobuf.Any value) { return this; } /** - * - * *
                * The original request that started the operation.
                * 
          @@ -2125,8 +1924,6 @@ public Builder clearRequestResource() { return this; } /** - * - * *
                * The original request that started the operation.
                * 
          @@ -2134,13 +1931,11 @@ public Builder clearRequestResource() { * .google.protobuf.Any request_resource = 8; */ public com.google.protobuf.Any.Builder getRequestResourceBuilder() { - + onChanged(); return getRequestResourceFieldBuilder().getBuilder(); } /** - * - * *
                * The original request that started the operation.
                * 
          @@ -2151,14 +1946,11 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { if (requestResourceBuilder_ != null) { return requestResourceBuilder_.getMessageOrBuilder(); } else { - return requestResource_ == null - ? com.google.protobuf.Any.getDefaultInstance() - : requestResource_; + return requestResource_ == null ? + com.google.protobuf.Any.getDefaultInstance() : requestResource_; } } /** - * - * *
                * The original request that started the operation.
                * 
          @@ -2166,41 +1958,32 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { * .google.protobuf.Any request_resource = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getRequestResourceFieldBuilder() { if (requestResourceBuilder_ == null) { - requestResourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder>( - getRequestResource(), getParentForChildren(), isClean()); + requestResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( + getRequestResource(), + getParentForChildren(), + isClean()); requestResource_ = null; } return requestResourceBuilder_; } private java.util.List stages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stages_ = new java.util.ArrayList(stages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.Stage, - com.google.cloud.functions.v2alpha.Stage.Builder, - com.google.cloud.functions.v2alpha.StageOrBuilder> - stagesBuilder_; + com.google.cloud.functions.v2alpha.Stage, com.google.cloud.functions.v2alpha.Stage.Builder, com.google.cloud.functions.v2alpha.StageOrBuilder> stagesBuilder_; /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          @@ -2215,8 +1998,6 @@ public java.util.List getStagesList() } } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          @@ -2231,8 +2012,6 @@ public int getStagesCount() { } } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          @@ -2247,15 +2026,14 @@ public com.google.cloud.functions.v2alpha.Stage getStages(int index) { } } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public Builder setStages(int index, com.google.cloud.functions.v2alpha.Stage value) { + public Builder setStages( + int index, com.google.cloud.functions.v2alpha.Stage value) { if (stagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2269,8 +2047,6 @@ public Builder setStages(int index, com.google.cloud.functions.v2alpha.Stage val return this; } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          @@ -2289,8 +2065,6 @@ public Builder setStages( return this; } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          @@ -2311,15 +2085,14 @@ public Builder addStages(com.google.cloud.functions.v2alpha.Stage value) { return this; } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public Builder addStages(int index, com.google.cloud.functions.v2alpha.Stage value) { + public Builder addStages( + int index, com.google.cloud.functions.v2alpha.Stage value) { if (stagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2333,15 +2106,14 @@ public Builder addStages(int index, com.google.cloud.functions.v2alpha.Stage val return this; } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public Builder addStages(com.google.cloud.functions.v2alpha.Stage.Builder builderForValue) { + public Builder addStages( + com.google.cloud.functions.v2alpha.Stage.Builder builderForValue) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); stages_.add(builderForValue.build()); @@ -2352,8 +2124,6 @@ public Builder addStages(com.google.cloud.functions.v2alpha.Stage.Builder builde return this; } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          @@ -2372,8 +2142,6 @@ public Builder addStages( return this; } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          @@ -2384,7 +2152,8 @@ public Builder addAllStages( java.lang.Iterable values) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stages_); onChanged(); } else { stagesBuilder_.addAllMessages(values); @@ -2392,8 +2161,6 @@ public Builder addAllStages( return this; } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          @@ -2411,8 +2178,6 @@ public Builder clearStages() { return this; } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          @@ -2430,44 +2195,39 @@ public Builder removeStages(int index) { return this; } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public com.google.cloud.functions.v2alpha.Stage.Builder getStagesBuilder(int index) { + public com.google.cloud.functions.v2alpha.Stage.Builder getStagesBuilder( + int index) { return getStagesFieldBuilder().getBuilder(index); } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder(int index) { + public com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder( + int index) { if (stagesBuilder_ == null) { - return stages_.get(index); - } else { + return stages_.get(index); } else { return stagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public java.util.List - getStagesOrBuilderList() { + public java.util.List + getStagesOrBuilderList() { if (stagesBuilder_ != null) { return stagesBuilder_.getMessageOrBuilderList(); } else { @@ -2475,8 +2235,6 @@ public com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder(int } } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          @@ -2484,54 +2242,49 @@ public com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder(int * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ public com.google.cloud.functions.v2alpha.Stage.Builder addStagesBuilder() { - return getStagesFieldBuilder() - .addBuilder(com.google.cloud.functions.v2alpha.Stage.getDefaultInstance()); + return getStagesFieldBuilder().addBuilder( + com.google.cloud.functions.v2alpha.Stage.getDefaultInstance()); } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public com.google.cloud.functions.v2alpha.Stage.Builder addStagesBuilder(int index) { - return getStagesFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2alpha.Stage.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.Stage.Builder addStagesBuilder( + int index) { + return getStagesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2alpha.Stage.getDefaultInstance()); } /** - * - * *
                * Mechanism for reporting in-progress stages
                * 
          * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public java.util.List getStagesBuilderList() { + public java.util.List + getStagesBuilderList() { return getStagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.Stage, - com.google.cloud.functions.v2alpha.Stage.Builder, - com.google.cloud.functions.v2alpha.StageOrBuilder> + com.google.cloud.functions.v2alpha.Stage, com.google.cloud.functions.v2alpha.Stage.Builder, com.google.cloud.functions.v2alpha.StageOrBuilder> getStagesFieldBuilder() { if (stagesBuilder_ == null) { - stagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.Stage, - com.google.cloud.functions.v2alpha.Stage.Builder, - com.google.cloud.functions.v2alpha.StageOrBuilder>( - stages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.Stage, com.google.cloud.functions.v2alpha.Stage.Builder, com.google.cloud.functions.v2alpha.StageOrBuilder>( + stages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); stages_ = null; } return stagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2541,12 +2294,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.OperationMetadata) private static final com.google.cloud.functions.v2alpha.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.OperationMetadata(); } @@ -2555,16 +2308,16 @@ public static com.google.cloud.functions.v2alpha.OperationMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2579,4 +2332,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java similarity index 80% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java index 20c25953..f9c67f5f 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The time the operation was created.
              * 
          * * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
              * The time the operation was created.
              * 
          * * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
              * The time the operation was created.
              * 
          @@ -59,32 +35,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
              * The time the operation finished running.
              * 
          * * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
              * The time the operation finished running.
              * 
          * * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
              * The time the operation finished running.
              * 
          @@ -94,83 +62,66 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
              * Server-defined resource path for the target of the operation.
              * 
          * * string target = 3; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
              * Server-defined resource path for the target of the operation.
              * 
          * * string target = 3; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
              * Name of the verb executed by the operation.
              * 
          * * string verb = 4; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
              * Name of the verb executed by the operation.
              * 
          * * string verb = 4; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
              * Human-readable status of the operation, if any.
              * 
          * * string status_detail = 5; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
              * Human-readable status of the operation, if any.
              * 
          * * string status_detail = 5; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
              * Identifies whether the user has requested cancellation
              * of the operation. Operations that have successfully been cancelled
          @@ -179,63 +130,49 @@ public interface OperationMetadataOrBuilder
              * 
          * * bool cancel_requested = 6; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
              * API version used to start the operation.
              * 
          * * string api_version = 7; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
              * API version used to start the operation.
              * 
          * * string api_version = 7; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); /** - * - * *
              * The original request that started the operation.
              * 
          * * .google.protobuf.Any request_resource = 8; - * * @return Whether the requestResource field is set. */ boolean hasRequestResource(); /** - * - * *
              * The original request that started the operation.
              * 
          * * .google.protobuf.Any request_resource = 8; - * * @return The requestResource. */ com.google.protobuf.Any getRequestResource(); /** - * - * *
              * The original request that started the operation.
              * 
          @@ -245,18 +182,15 @@ public interface OperationMetadataOrBuilder com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder(); /** - * - * *
              * Mechanism for reporting in-progress stages
              * 
          * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - java.util.List getStagesList(); + java.util.List + getStagesList(); /** - * - * *
              * Mechanism for reporting in-progress stages
              * 
          @@ -265,8 +199,6 @@ public interface OperationMetadataOrBuilder */ com.google.cloud.functions.v2alpha.Stage getStages(int index); /** - * - * *
              * Mechanism for reporting in-progress stages
              * 
          @@ -275,24 +207,21 @@ public interface OperationMetadataOrBuilder */ int getStagesCount(); /** - * - * *
              * Mechanism for reporting in-progress stages
              * 
          * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - java.util.List + java.util.List getStagesOrBuilderList(); /** - * - * *
              * Mechanism for reporting in-progress stages
              * 
          * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder(int index); + com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder( + int index); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java similarity index 75% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java index aa51dcaa..4562de7b 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java @@ -1,42 +1,24 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Location of the source in a Google Cloud Source Repository.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.RepoSource} */ -public final class RepoSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RepoSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.RepoSource) RepoSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RepoSource.newBuilder() to construct. private RepoSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RepoSource() { projectId_ = ""; repoName_ = ""; @@ -45,15 +27,16 @@ private RepoSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RepoSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RepoSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,60 +55,54 @@ private RepoSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - repoName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 3; - revision_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 4; - revision_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 5; - revision_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + repoName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 3; + revision_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 4; + revision_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 5; + revision_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - dir_ = s; - break; - } - case 56: - { - invertRegex_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + dir_ = s; + break; + } + case 56: { + + invertRegex_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -133,41 +110,36 @@ private RepoSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.RepoSource.class, - com.google.cloud.functions.v2alpha.RepoSource.Builder.class); + com.google.cloud.functions.v2alpha.RepoSource.class, com.google.cloud.functions.v2alpha.RepoSource.Builder.class); } private int revisionCase_ = 0; private java.lang.Object revision_; - public enum RevisionCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BRANCH_NAME(3), TAG_NAME(4), COMMIT_SHA(5), REVISION_NOT_SET(0); private final int value; - private RevisionCase(int value) { this.value = value; } @@ -183,32 +155,26 @@ public static RevisionCase valueOf(int value) { public static RevisionCase forNumber(int value) { switch (value) { - case 3: - return BRANCH_NAME; - case 4: - return TAG_NAME; - case 5: - return COMMIT_SHA; - case 0: - return REVISION_NOT_SET; - default: - return null; + case 3: return BRANCH_NAME; + case 4: return TAG_NAME; + case 5: return COMMIT_SHA; + case 0: return REVISION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RevisionCase getRevisionCase() { - return RevisionCase.forNumber(revisionCase_); + public RevisionCase + getRevisionCase() { + return RevisionCase.forNumber( + revisionCase_); } public static final int BRANCH_NAME_FIELD_NUMBER = 3; /** - * - * *
              * Regex matching branches to build.
              * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -216,15 +182,12 @@ public RevisionCase getRevisionCase() {
              * 
          * * string branch_name = 3; - * * @return Whether the branchName field is set. */ public boolean hasBranchName() { return revisionCase_ == 3; } /** - * - * *
              * Regex matching branches to build.
              * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -232,7 +195,6 @@ public boolean hasBranchName() {
              * 
          * * string branch_name = 3; - * * @return The branchName. */ public java.lang.String getBranchName() { @@ -243,7 +205,8 @@ public java.lang.String getBranchName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 3) { revision_ = s; @@ -252,8 +215,6 @@ public java.lang.String getBranchName() { } } /** - * - * *
              * Regex matching branches to build.
              * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -261,17 +222,18 @@ public java.lang.String getBranchName() {
              * 
          * * string branch_name = 3; - * * @return The bytes for branchName. */ - public com.google.protobuf.ByteString getBranchNameBytes() { + public com.google.protobuf.ByteString + getBranchNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 3) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (revisionCase_ == 3) { revision_ = b; } @@ -283,8 +245,6 @@ public com.google.protobuf.ByteString getBranchNameBytes() { public static final int TAG_NAME_FIELD_NUMBER = 4; /** - * - * *
              * Regex matching tags to build.
              * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -292,15 +252,12 @@ public com.google.protobuf.ByteString getBranchNameBytes() {
              * 
          * * string tag_name = 4; - * * @return Whether the tagName field is set. */ public boolean hasTagName() { return revisionCase_ == 4; } /** - * - * *
              * Regex matching tags to build.
              * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -308,7 +265,6 @@ public boolean hasTagName() {
              * 
          * * string tag_name = 4; - * * @return The tagName. */ public java.lang.String getTagName() { @@ -319,7 +275,8 @@ public java.lang.String getTagName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 4) { revision_ = s; @@ -328,8 +285,6 @@ public java.lang.String getTagName() { } } /** - * - * *
              * Regex matching tags to build.
              * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -337,17 +292,18 @@ public java.lang.String getTagName() {
              * 
          * * string tag_name = 4; - * * @return The bytes for tagName. */ - public com.google.protobuf.ByteString getTagNameBytes() { + public com.google.protobuf.ByteString + getTagNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 4) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (revisionCase_ == 4) { revision_ = b; } @@ -359,28 +315,22 @@ public com.google.protobuf.ByteString getTagNameBytes() { public static final int COMMIT_SHA_FIELD_NUMBER = 5; /** - * - * *
              * Explicit commit SHA to build.
              * 
          * * string commit_sha = 5; - * * @return Whether the commitSha field is set. */ public boolean hasCommitSha() { return revisionCase_ == 5; } /** - * - * *
              * Explicit commit SHA to build.
              * 
          * * string commit_sha = 5; - * * @return The commitSha. */ public java.lang.String getCommitSha() { @@ -391,7 +341,8 @@ public java.lang.String getCommitSha() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 5) { revision_ = s; @@ -400,24 +351,23 @@ public java.lang.String getCommitSha() { } } /** - * - * *
              * Explicit commit SHA to build.
              * 
          * * string commit_sha = 5; - * * @return The bytes for commitSha. */ - public com.google.protobuf.ByteString getCommitShaBytes() { + public com.google.protobuf.ByteString + getCommitShaBytes() { java.lang.Object ref = ""; if (revisionCase_ == 5) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (revisionCase_ == 5) { revision_ = b; } @@ -430,15 +380,12 @@ public com.google.protobuf.ByteString getCommitShaBytes() { public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
              * ID of the project that owns the Cloud Source Repository. If omitted, the
              * project ID requesting the build is assumed.
              * 
          * * string project_id = 1; - * * @return The projectId. */ @java.lang.Override @@ -447,30 +394,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
              * ID of the project that owns the Cloud Source Repository. If omitted, the
              * project ID requesting the build is assumed.
              * 
          * * string project_id = 1; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -481,14 +428,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REPO_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object repoName_; /** - * - * *
              * Name of the Cloud Source Repository.
              * 
          * * string repo_name = 2; - * * @return The repoName. */ @java.lang.Override @@ -497,29 +441,29 @@ public java.lang.String getRepoName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); repoName_ = s; return s; } } /** - * - * *
              * Name of the Cloud Source Repository.
              * 
          * * string repo_name = 2; - * * @return The bytes for repoName. */ @java.lang.Override - public com.google.protobuf.ByteString getRepoNameBytes() { + public com.google.protobuf.ByteString + getRepoNameBytes() { java.lang.Object ref = repoName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); repoName_ = b; return b; } else { @@ -530,8 +474,6 @@ public com.google.protobuf.ByteString getRepoNameBytes() { public static final int DIR_FIELD_NUMBER = 6; private volatile java.lang.Object dir_; /** - * - * *
              * 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
          @@ -540,7 +482,6 @@ public com.google.protobuf.ByteString getRepoNameBytes() {
              * 
          * * string dir = 6; - * * @return The dir. */ @java.lang.Override @@ -549,15 +490,14 @@ public java.lang.String getDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dir_ = s; return s; } } /** - * - * *
              * 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
          @@ -566,15 +506,16 @@ public java.lang.String getDir() {
              * 
          * * string dir = 6; - * * @return The bytes for dir. */ @java.lang.Override - public com.google.protobuf.ByteString getDirBytes() { + public com.google.protobuf.ByteString + getDirBytes() { java.lang.Object ref = dir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dir_ = b; return b; } else { @@ -585,15 +526,12 @@ public com.google.protobuf.ByteString getDirBytes() { public static final int INVERT_REGEX_FIELD_NUMBER = 7; private boolean invertRegex_; /** - * - * *
              * Only trigger a build if the revision regex does NOT match the revision
              * regex.
              * 
          * * bool invert_regex = 7; - * * @return The invertRegex. */ @java.lang.Override @@ -602,7 +540,6 @@ public boolean getInvertRegex() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -614,7 +551,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -664,7 +602,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dir_); } if (invertRegex_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, invertRegex_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, invertRegex_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -674,28 +613,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.RepoSource)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.RepoSource other = - (com.google.cloud.functions.v2alpha.RepoSource) obj; + com.google.cloud.functions.v2alpha.RepoSource other = (com.google.cloud.functions.v2alpha.RepoSource) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRepoName().equals(other.getRepoName())) return false; - if (!getDir().equals(other.getDir())) return false; - if (getInvertRegex() != other.getInvertRegex()) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRepoName() + .equals(other.getRepoName())) return false; + if (!getDir() + .equals(other.getDir())) return false; + if (getInvertRegex() + != other.getInvertRegex()) return false; if (!getRevisionCase().equals(other.getRevisionCase())) return false; switch (revisionCase_) { case 3: - if (!getBranchName().equals(other.getBranchName())) return false; + if (!getBranchName() + .equals(other.getBranchName())) return false; break; case 4: - if (!getTagName().equals(other.getTagName())) return false; + if (!getTagName() + .equals(other.getTagName())) return false; break; case 5: - if (!getCommitSha().equals(other.getCommitSha())) return false; + if (!getCommitSha() + .equals(other.getCommitSha())) return false; break; case 0: default: @@ -718,7 +663,8 @@ public int hashCode() { hash = (37 * hash) + DIR_FIELD_NUMBER; hash = (53 * hash) + getDir().hashCode(); hash = (37 * hash) + INVERT_REGEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInvertRegex()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInvertRegex()); switch (revisionCase_) { case 3: hash = (37 * hash) + BRANCH_NAME_FIELD_NUMBER; @@ -740,127 +686,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.RepoSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.RepoSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.RepoSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.RepoSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.RepoSource 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.v2alpha.RepoSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.RepoSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.RepoSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.RepoSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.RepoSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.RepoSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.RepoSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.RepoSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.RepoSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.RepoSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Location of the source in a Google Cloud Source Repository.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.RepoSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.RepoSource) com.google.cloud.functions.v2alpha.RepoSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.RepoSource.class, - com.google.cloud.functions.v2alpha.RepoSource.Builder.class); + com.google.cloud.functions.v2alpha.RepoSource.class, com.google.cloud.functions.v2alpha.RepoSource.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.RepoSource.newBuilder() @@ -868,15 +805,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -894,9 +832,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; } @java.lang.Override @@ -915,8 +853,7 @@ public com.google.cloud.functions.v2alpha.RepoSource build() { @java.lang.Override public com.google.cloud.functions.v2alpha.RepoSource buildPartial() { - com.google.cloud.functions.v2alpha.RepoSource result = - new com.google.cloud.functions.v2alpha.RepoSource(this); + com.google.cloud.functions.v2alpha.RepoSource result = new com.google.cloud.functions.v2alpha.RepoSource(this); if (revisionCase_ == 3) { result.revision_ = revision_; } @@ -939,39 +876,38 @@ public com.google.cloud.functions.v2alpha.RepoSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.RepoSource) other); + return mergeFrom((com.google.cloud.functions.v2alpha.RepoSource)other); } else { super.mergeFrom(other); return this; @@ -996,31 +932,27 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.RepoSource other) { setInvertRegex(other.getInvertRegex()); } switch (other.getRevisionCase()) { - case BRANCH_NAME: - { - revisionCase_ = 3; - revision_ = other.revision_; - onChanged(); - break; - } - case TAG_NAME: - { - revisionCase_ = 4; - revision_ = other.revision_; - onChanged(); - break; - } - case COMMIT_SHA: - { - revisionCase_ = 5; - revision_ = other.revision_; - onChanged(); - break; - } - case REVISION_NOT_SET: - { - break; - } + case BRANCH_NAME: { + revisionCase_ = 3; + revision_ = other.revision_; + onChanged(); + break; + } + case TAG_NAME: { + revisionCase_ = 4; + revision_ = other.revision_; + onChanged(); + break; + } + case COMMIT_SHA: { + revisionCase_ = 5; + revision_ = other.revision_; + onChanged(); + break; + } + case REVISION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1050,12 +982,12 @@ public Builder mergeFrom( } return this; } - private int revisionCase_ = 0; private java.lang.Object revision_; - - public RevisionCase getRevisionCase() { - return RevisionCase.forNumber(revisionCase_); + public RevisionCase + getRevisionCase() { + return RevisionCase.forNumber( + revisionCase_); } public Builder clearRevision() { @@ -1065,9 +997,8 @@ public Builder clearRevision() { return this; } + /** - * - * *
                * Regex matching branches to build.
                * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -1075,7 +1006,6 @@ public Builder clearRevision() {
                * 
          * * string branch_name = 3; - * * @return Whether the branchName field is set. */ @java.lang.Override @@ -1083,8 +1013,6 @@ public boolean hasBranchName() { return revisionCase_ == 3; } /** - * - * *
                * Regex matching branches to build.
                * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -1092,7 +1020,6 @@ public boolean hasBranchName() {
                * 
          * * string branch_name = 3; - * * @return The branchName. */ @java.lang.Override @@ -1102,7 +1029,8 @@ public java.lang.String getBranchName() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 3) { revision_ = s; @@ -1113,8 +1041,6 @@ public java.lang.String getBranchName() { } } /** - * - * *
                * Regex matching branches to build.
                * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -1122,18 +1048,19 @@ public java.lang.String getBranchName() {
                * 
          * * string branch_name = 3; - * * @return The bytes for branchName. */ @java.lang.Override - public com.google.protobuf.ByteString getBranchNameBytes() { + public com.google.protobuf.ByteString + getBranchNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 3) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (revisionCase_ == 3) { revision_ = b; } @@ -1143,8 +1070,6 @@ public com.google.protobuf.ByteString getBranchNameBytes() { } } /** - * - * *
                * Regex matching branches to build.
                * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -1152,22 +1077,20 @@ public com.google.protobuf.ByteString getBranchNameBytes() {
                * 
          * * string branch_name = 3; - * * @param value The branchName to set. * @return This builder for chaining. */ - public Builder setBranchName(java.lang.String value) { + public Builder setBranchName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 3; + throw new NullPointerException(); + } + revisionCase_ = 3; revision_ = value; onChanged(); return this; } /** - * - * *
                * Regex matching branches to build.
                * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -1175,7 +1098,6 @@ public Builder setBranchName(java.lang.String value) {
                * 
          * * string branch_name = 3; - * * @return This builder for chaining. */ public Builder clearBranchName() { @@ -1187,8 +1109,6 @@ public Builder clearBranchName() { return this; } /** - * - * *
                * Regex matching branches to build.
                * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -1196,15 +1116,15 @@ public Builder clearBranchName() {
                * 
          * * string branch_name = 3; - * * @param value The bytes for branchName to set. * @return This builder for chaining. */ - public Builder setBranchNameBytes(com.google.protobuf.ByteString value) { + public Builder setBranchNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 3; revision_ = value; onChanged(); @@ -1212,8 +1132,6 @@ 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
          @@ -1221,7 +1139,6 @@ public Builder setBranchNameBytes(com.google.protobuf.ByteString value) {
                * 
          * * string tag_name = 4; - * * @return Whether the tagName field is set. */ @java.lang.Override @@ -1229,8 +1146,6 @@ public boolean hasTagName() { return revisionCase_ == 4; } /** - * - * *
                * Regex matching tags to build.
                * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -1238,7 +1153,6 @@ public boolean hasTagName() {
                * 
          * * string tag_name = 4; - * * @return The tagName. */ @java.lang.Override @@ -1248,7 +1162,8 @@ public java.lang.String getTagName() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 4) { revision_ = s; @@ -1259,8 +1174,6 @@ public java.lang.String getTagName() { } } /** - * - * *
                * Regex matching tags to build.
                * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -1268,18 +1181,19 @@ public java.lang.String getTagName() {
                * 
          * * string tag_name = 4; - * * @return The bytes for tagName. */ @java.lang.Override - public com.google.protobuf.ByteString getTagNameBytes() { + public com.google.protobuf.ByteString + getTagNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 4) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (revisionCase_ == 4) { revision_ = b; } @@ -1289,8 +1203,6 @@ public com.google.protobuf.ByteString getTagNameBytes() { } } /** - * - * *
                * Regex matching tags to build.
                * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -1298,22 +1210,20 @@ public com.google.protobuf.ByteString getTagNameBytes() {
                * 
          * * string tag_name = 4; - * * @param value The tagName to set. * @return This builder for chaining. */ - public Builder setTagName(java.lang.String value) { + public Builder setTagName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 4; + throw new NullPointerException(); + } + revisionCase_ = 4; revision_ = value; onChanged(); return this; } /** - * - * *
                * Regex matching tags to build.
                * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -1321,7 +1231,6 @@ public Builder setTagName(java.lang.String value) {
                * 
          * * string tag_name = 4; - * * @return This builder for chaining. */ public Builder clearTagName() { @@ -1333,8 +1242,6 @@ public Builder clearTagName() { return this; } /** - * - * *
                * Regex matching tags to build.
                * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -1342,15 +1249,15 @@ public Builder clearTagName() {
                * 
          * * string tag_name = 4; - * * @param value The bytes for tagName to set. * @return This builder for chaining. */ - public Builder setTagNameBytes(com.google.protobuf.ByteString value) { + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 4; revision_ = value; onChanged(); @@ -1358,14 +1265,11 @@ public Builder setTagNameBytes(com.google.protobuf.ByteString value) { } /** - * - * *
                * Explicit commit SHA to build.
                * 
          * * string commit_sha = 5; - * * @return Whether the commitSha field is set. */ @java.lang.Override @@ -1373,14 +1277,11 @@ public boolean hasCommitSha() { return revisionCase_ == 5; } /** - * - * *
                * Explicit commit SHA to build.
                * 
          * * string commit_sha = 5; - * * @return The commitSha. */ @java.lang.Override @@ -1390,7 +1291,8 @@ public java.lang.String getCommitSha() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 5) { revision_ = s; @@ -1401,25 +1303,24 @@ public java.lang.String getCommitSha() { } } /** - * - * *
                * Explicit commit SHA to build.
                * 
          * * string commit_sha = 5; - * * @return The bytes for commitSha. */ @java.lang.Override - public com.google.protobuf.ByteString getCommitShaBytes() { + public com.google.protobuf.ByteString + getCommitShaBytes() { java.lang.Object ref = ""; if (revisionCase_ == 5) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (revisionCase_ == 5) { revision_ = b; } @@ -1429,35 +1330,30 @@ public com.google.protobuf.ByteString getCommitShaBytes() { } } /** - * - * *
                * Explicit commit SHA to build.
                * 
          * * string commit_sha = 5; - * * @param value The commitSha to set. * @return This builder for chaining. */ - public Builder setCommitSha(java.lang.String value) { + public Builder setCommitSha( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 5; + throw new NullPointerException(); + } + revisionCase_ = 5; revision_ = value; onChanged(); return this; } /** - * - * *
                * Explicit commit SHA to build.
                * 
          * * string commit_sha = 5; - * * @return This builder for chaining. */ public Builder clearCommitSha() { @@ -1469,22 +1365,20 @@ public Builder clearCommitSha() { return this; } /** - * - * *
                * Explicit commit SHA to build.
                * 
          * * string commit_sha = 5; - * * @param value The bytes for commitSha to set. * @return This builder for chaining. */ - public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { + public Builder setCommitShaBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 5; revision_ = value; onChanged(); @@ -1493,21 +1387,19 @@ public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * *
                * ID of the project that owns the Cloud Source Repository. If omitted, the
                * project ID requesting the build is assumed.
                * 
          * * string project_id = 1; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1516,22 +1408,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
                * ID of the project that owns the Cloud Source Repository. If omitted, the
                * project ID requesting the build is assumed.
                * 
          * * string project_id = 1; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1539,64 +1430,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
                * ID of the project that owns the Cloud Source Repository. If omitted, the
                * project ID requesting the build is assumed.
                * 
          * * string project_id = 1; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
                * ID of the project that owns the Cloud Source Repository. If omitted, the
                * project ID requesting the build is assumed.
                * 
          * * string project_id = 1; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
                * ID of the project that owns the Cloud Source Repository. If omitted, the
                * project ID requesting the build is assumed.
                * 
          * * string project_id = 1; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1604,20 +1488,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object repoName_ = ""; /** - * - * *
                * Name of the Cloud Source Repository.
                * 
          * * string repo_name = 2; - * * @return The repoName. */ public java.lang.String getRepoName() { java.lang.Object ref = repoName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); repoName_ = s; return s; @@ -1626,21 +1508,20 @@ public java.lang.String getRepoName() { } } /** - * - * *
                * Name of the Cloud Source Repository.
                * 
          * * string repo_name = 2; - * * @return The bytes for repoName. */ - public com.google.protobuf.ByteString getRepoNameBytes() { + public com.google.protobuf.ByteString + getRepoNameBytes() { java.lang.Object ref = repoName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); repoName_ = b; return b; } else { @@ -1648,61 +1529,54 @@ public com.google.protobuf.ByteString getRepoNameBytes() { } } /** - * - * *
                * Name of the Cloud Source Repository.
                * 
          * * string repo_name = 2; - * * @param value The repoName to set. * @return This builder for chaining. */ - public Builder setRepoName(java.lang.String value) { + public Builder setRepoName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + repoName_ = value; onChanged(); return this; } /** - * - * *
                * Name of the Cloud Source Repository.
                * 
          * * string repo_name = 2; - * * @return This builder for chaining. */ public Builder clearRepoName() { - + repoName_ = getDefaultInstance().getRepoName(); onChanged(); return this; } /** - * - * *
                * Name of the Cloud Source Repository.
                * 
          * * string repo_name = 2; - * * @param value The bytes for repoName to set. * @return This builder for chaining. */ - public Builder setRepoNameBytes(com.google.protobuf.ByteString value) { + public Builder setRepoNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repoName_ = value; onChanged(); return this; @@ -1710,8 +1584,6 @@ public Builder setRepoNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object dir_ = ""; /** - * - * *
                * 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
          @@ -1720,13 +1592,13 @@ public Builder setRepoNameBytes(com.google.protobuf.ByteString value) {
                * 
          * * string dir = 6; - * * @return The dir. */ public java.lang.String getDir() { java.lang.Object ref = dir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dir_ = s; return s; @@ -1735,8 +1607,6 @@ 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
          @@ -1745,14 +1615,15 @@ public java.lang.String getDir() {
                * 
          * * string dir = 6; - * * @return The bytes for dir. */ - public com.google.protobuf.ByteString getDirBytes() { + public com.google.protobuf.ByteString + getDirBytes() { java.lang.Object ref = dir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dir_ = b; return b; } else { @@ -1760,8 +1631,6 @@ 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
          @@ -1770,22 +1639,20 @@ public com.google.protobuf.ByteString getDirBytes() {
                * 
          * * string dir = 6; - * * @param value The dir to set. * @return This builder for chaining. */ - public Builder setDir(java.lang.String value) { + public Builder setDir( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dir_ = value; onChanged(); return this; } /** - * - * *
                * 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
          @@ -1794,18 +1661,15 @@ public Builder setDir(java.lang.String value) {
                * 
          * * string dir = 6; - * * @return This builder for chaining. */ public Builder clearDir() { - + dir_ = getDefaultInstance().getDir(); onChanged(); return this; } /** - * - * *
                * 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
          @@ -1814,32 +1678,29 @@ public Builder clearDir() {
                * 
          * * string dir = 6; - * * @param value The bytes for dir to set. * @return This builder for chaining. */ - public Builder setDirBytes(com.google.protobuf.ByteString value) { + public Builder setDirBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dir_ = value; onChanged(); return this; } - private boolean invertRegex_; + private boolean invertRegex_ ; /** - * - * *
                * Only trigger a build if the revision regex does NOT match the revision
                * regex.
                * 
          * * bool invert_regex = 7; - * * @return The invertRegex. */ @java.lang.Override @@ -1847,45 +1708,39 @@ public boolean getInvertRegex() { return invertRegex_; } /** - * - * *
                * Only trigger a build if the revision regex does NOT match the revision
                * regex.
                * 
          * * bool invert_regex = 7; - * * @param value The invertRegex to set. * @return This builder for chaining. */ public Builder setInvertRegex(boolean value) { - + invertRegex_ = value; onChanged(); return this; } /** - * - * *
                * Only trigger a build if the revision regex does NOT match the revision
                * regex.
                * 
          * * bool invert_regex = 7; - * * @return This builder for chaining. */ public Builder clearInvertRegex() { - + invertRegex_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1895,12 +1750,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.RepoSource) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.RepoSource) private static final com.google.cloud.functions.v2alpha.RepoSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.RepoSource(); } @@ -1909,16 +1764,16 @@ public static com.google.cloud.functions.v2alpha.RepoSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepoSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RepoSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepoSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RepoSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1933,4 +1788,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.RepoSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java similarity index 79% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java index 3c91711f..9916a4a1 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface RepoSourceOrBuilder - extends +public interface RepoSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.RepoSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Regex matching branches to build.
              * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -33,13 +15,10 @@ public interface RepoSourceOrBuilder
              * 
          * * string branch_name = 3; - * * @return Whether the branchName field is set. */ boolean hasBranchName(); /** - * - * *
              * Regex matching branches to build.
              * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -47,13 +26,10 @@ public interface RepoSourceOrBuilder
              * 
          * * string branch_name = 3; - * * @return The branchName. */ java.lang.String getBranchName(); /** - * - * *
              * Regex matching branches to build.
              * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -61,14 +37,12 @@ public interface RepoSourceOrBuilder
              * 
          * * string branch_name = 3; - * * @return The bytes for branchName. */ - com.google.protobuf.ByteString getBranchNameBytes(); + com.google.protobuf.ByteString + getBranchNameBytes(); /** - * - * *
              * Regex matching tags to build.
              * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -76,13 +50,10 @@ public interface RepoSourceOrBuilder
              * 
          * * string tag_name = 4; - * * @return Whether the tagName field is set. */ boolean hasTagName(); /** - * - * *
              * Regex matching tags to build.
              * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -90,13 +61,10 @@ public interface RepoSourceOrBuilder
              * 
          * * string tag_name = 4; - * * @return The tagName. */ java.lang.String getTagName(); /** - * - * *
              * Regex matching tags to build.
              * The syntax of the regular expressions accepted is the syntax accepted by
          @@ -104,103 +72,83 @@ public interface RepoSourceOrBuilder
              * 
          * * string tag_name = 4; - * * @return The bytes for tagName. */ - com.google.protobuf.ByteString getTagNameBytes(); + com.google.protobuf.ByteString + getTagNameBytes(); /** - * - * *
              * Explicit commit SHA to build.
              * 
          * * string commit_sha = 5; - * * @return Whether the commitSha field is set. */ boolean hasCommitSha(); /** - * - * *
              * Explicit commit SHA to build.
              * 
          * * string commit_sha = 5; - * * @return The commitSha. */ java.lang.String getCommitSha(); /** - * - * *
              * Explicit commit SHA to build.
              * 
          * * string commit_sha = 5; - * * @return The bytes for commitSha. */ - com.google.protobuf.ByteString getCommitShaBytes(); + com.google.protobuf.ByteString + getCommitShaBytes(); /** - * - * *
              * ID of the project that owns the Cloud Source Repository. If omitted, the
              * project ID requesting the build is assumed.
              * 
          * * string project_id = 1; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
              * ID of the project that owns the Cloud Source Repository. If omitted, the
              * project ID requesting the build is assumed.
              * 
          * * string project_id = 1; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
              * Name of the Cloud Source Repository.
              * 
          * * string repo_name = 2; - * * @return The repoName. */ java.lang.String getRepoName(); /** - * - * *
              * Name of the Cloud Source Repository.
              * 
          * * string repo_name = 2; - * * @return The bytes for repoName. */ - com.google.protobuf.ByteString getRepoNameBytes(); + 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
          @@ -209,13 +157,10 @@ public interface RepoSourceOrBuilder
              * 
          * * string dir = 6; - * * @return The dir. */ 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
          @@ -224,21 +169,18 @@ public interface RepoSourceOrBuilder
              * 
          * * string dir = 6; - * * @return The bytes for dir. */ - com.google.protobuf.ByteString getDirBytes(); + com.google.protobuf.ByteString + getDirBytes(); /** - * - * *
              * Only trigger a build if the revision regex does NOT match the revision
              * regex.
              * 
          * * bool invert_regex = 7; - * * @return The invertRegex. */ boolean getInvertRegex(); diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java similarity index 73% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java index be76c360..8b88f779 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java @@ -1,26 +1,9 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Configuration for a secret environment variable. It has the information
            * necessary to fetch the secret value from secret manager and expose it as an
          @@ -29,16 +12,15 @@
            *
            * Protobuf type {@code google.cloud.functions.v2alpha.SecretEnvVar}
            */
          -public final class SecretEnvVar extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class SecretEnvVar extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.SecretEnvVar)
               SecretEnvVarOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use SecretEnvVar.newBuilder() to construct.
             private SecretEnvVar(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private SecretEnvVar() {
               key_ = "";
               projectId_ = "";
          @@ -48,15 +30,16 @@ private SecretEnvVar() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new SecretEnvVar();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet
          +  getUnknownFields() {
               return this.unknownFields;
             }
          -
             private SecretEnvVar(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -75,41 +58,37 @@ private SecretEnvVar(
                     case 0:
                       done = true;
                       break;
          -          case 10:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +          case 10: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              key_ = s;
          -              break;
          -            }
          -          case 18:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            key_ = s;
          +            break;
          +          }
          +          case 18: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              projectId_ = s;
          -              break;
          -            }
          -          case 26:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            projectId_ = s;
          +            break;
          +          }
          +          case 26: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              secret_ = s;
          -              break;
          -            }
          -          case 34:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            secret_ = s;
          +            break;
          +          }
          +          case 34: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              version_ = s;
          -              break;
          -            }
          -          default:
          -            {
          -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          -                done = true;
          -              }
          -              break;
          +            version_ = s;
          +            break;
          +          }
          +          default: {
          +            if (!parseUnknownField(
          +                input, unknownFields, extensionRegistry, tag)) {
          +              done = true;
                       }
          +            break;
          +          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -117,39 +96,34 @@ private SecretEnvVar(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(
          +          e).setUnfinishedMessage(this);
               } finally {
                 this.unknownFields = unknownFields.build();
                 makeExtensionsImmutable();
               }
             }
          -
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.functions.v2alpha.SecretEnvVar.class,
          -            com.google.cloud.functions.v2alpha.SecretEnvVar.Builder.class);
          +            com.google.cloud.functions.v2alpha.SecretEnvVar.class, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder.class);
             }
           
             public static final int KEY_FIELD_NUMBER = 1;
             private volatile java.lang.Object key_;
             /**
          -   *
          -   *
              * 
              * Name of the environment variable.
              * 
          * * string key = 1; - * * @return The key. */ @java.lang.Override @@ -158,29 +132,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
              * Name of the environment variable.
              * 
          * * string key = 1; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -191,8 +165,6 @@ public com.google.protobuf.ByteString getKeyBytes() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** - * - * *
              * Project identifier (preferably project number but can also be the
              * project ID) of the project that contains the secret. If not set, it is
          @@ -200,7 +172,6 @@ public com.google.protobuf.ByteString getKeyBytes() {
              * 
          * * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -209,15 +180,14 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
              * Project identifier (preferably project number but can also be the
              * project ID) of the project that contains the secret. If not set, it is
          @@ -225,15 +195,16 @@ public java.lang.String getProjectId() {
              * 
          * * string project_id = 2; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -244,14 +215,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** - * - * *
              * Name of the secret in secret manager (not the full resource name).
              * 
          * * string secret = 3; - * * @return The secret. */ @java.lang.Override @@ -260,29 +228,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** - * - * *
              * Name of the secret in secret manager (not the full resource name).
              * 
          * * string secret = 3; - * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString getSecretBytes() { + public com.google.protobuf.ByteString + getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secret_ = b; return b; } else { @@ -293,8 +261,6 @@ public com.google.protobuf.ByteString getSecretBytes() { public static final int VERSION_FIELD_NUMBER = 4; private volatile java.lang.Object version_; /** - * - * *
              * Version of the secret (version number or the string 'latest'). It is
              * recommended to use a numeric version for secret environment variables as
          @@ -303,7 +269,6 @@ public com.google.protobuf.ByteString getSecretBytes() {
              * 
          * * string version = 4; - * * @return The version. */ @java.lang.Override @@ -312,15 +277,14 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
              * Version of the secret (version number or the string 'latest'). It is
              * recommended to use a numeric version for secret environment variables as
          @@ -329,15 +293,16 @@ public java.lang.String getVersion() {
              * 
          * * string version = 4; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -346,7 +311,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,7 +322,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -400,18 +365,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.SecretEnvVar)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.SecretEnvVar other = - (com.google.cloud.functions.v2alpha.SecretEnvVar) obj; - - if (!getKey().equals(other.getKey())) return false; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getSecret().equals(other.getSecret())) return false; - if (!getVersion().equals(other.getVersion())) return false; + com.google.cloud.functions.v2alpha.SecretEnvVar other = (com.google.cloud.functions.v2alpha.SecretEnvVar) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getSecret() + .equals(other.getSecret())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -436,104 +404,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.SecretEnvVar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.SecretEnvVar 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.v2alpha.SecretEnvVar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.SecretEnvVar parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.SecretEnvVar parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.SecretEnvVar parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.SecretEnvVar prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Configuration for a secret environment variable. It has the information
              * necessary to fetch the secret value from secret manager and expose it as an
          @@ -542,23 +503,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.cloud.functions.v2alpha.SecretEnvVar}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.SecretEnvVar)
                 com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.functions.v2alpha.SecretEnvVar.class,
          -              com.google.cloud.functions.v2alpha.SecretEnvVar.Builder.class);
          +              com.google.cloud.functions.v2alpha.SecretEnvVar.class, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder.class);
               }
           
               // Construct using com.google.cloud.functions.v2alpha.SecretEnvVar.newBuilder()
          @@ -566,15 +525,16 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          -
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
          +      if (com.google.protobuf.GeneratedMessageV3
          +              .alwaysUseFieldBuilders) {
          +      }
               }
          -
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -590,9 +550,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor;
               }
           
               @java.lang.Override
          @@ -611,8 +571,7 @@ public com.google.cloud.functions.v2alpha.SecretEnvVar build() {
           
               @java.lang.Override
               public com.google.cloud.functions.v2alpha.SecretEnvVar buildPartial() {
          -      com.google.cloud.functions.v2alpha.SecretEnvVar result =
          -          new com.google.cloud.functions.v2alpha.SecretEnvVar(this);
          +      com.google.cloud.functions.v2alpha.SecretEnvVar result = new com.google.cloud.functions.v2alpha.SecretEnvVar(this);
                 result.key_ = key_;
                 result.projectId_ = projectId_;
                 result.secret_ = secret_;
          @@ -625,39 +584,38 @@ public com.google.cloud.functions.v2alpha.SecretEnvVar buildPartial() {
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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) {
          -        return mergeFrom((com.google.cloud.functions.v2alpha.SecretEnvVar) other);
          +        return mergeFrom((com.google.cloud.functions.v2alpha.SecretEnvVar)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -665,8 +623,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.cloud.functions.v2alpha.SecretEnvVar other) {
          -      if (other == com.google.cloud.functions.v2alpha.SecretEnvVar.getDefaultInstance())
          -        return this;
          +      if (other == com.google.cloud.functions.v2alpha.SecretEnvVar.getDefaultInstance()) return this;
                 if (!other.getKey().isEmpty()) {
                   key_ = other.key_;
                   onChanged();
          @@ -714,20 +671,18 @@ public Builder mergeFrom(
           
               private java.lang.Object key_ = "";
               /**
          -     *
          -     *
                * 
                * Name of the environment variable.
                * 
          * * string key = 1; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -736,21 +691,20 @@ public java.lang.String getKey() { } } /** - * - * *
                * Name of the environment variable.
                * 
          * * string key = 1; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -758,61 +712,54 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
                * Name of the environment variable.
                * 
          * * string key = 1; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { + public Builder setKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** - * - * *
                * Name of the environment variable.
                * 
          * * string key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** - * - * *
                * Name of the environment variable.
                * 
          * * string key = 1; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -820,8 +767,6 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * *
                * Project identifier (preferably project number but can also be the
                * project ID) of the project that contains the secret. If not set, it is
          @@ -829,13 +774,13 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) {
                * 
          * * string project_id = 2; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -844,8 +789,6 @@ public java.lang.String getProjectId() { } } /** - * - * *
                * Project identifier (preferably project number but can also be the
                * project ID) of the project that contains the secret. If not set, it is
          @@ -853,14 +796,15 @@ public java.lang.String getProjectId() {
                * 
          * * string project_id = 2; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -868,8 +812,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
                * Project identifier (preferably project number but can also be the
                * project ID) of the project that contains the secret. If not set, it is
          @@ -877,22 +819,20 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
                * 
          * * string project_id = 2; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
                * Project identifier (preferably project number but can also be the
                * project ID) of the project that contains the secret. If not set, it is
          @@ -900,18 +840,15 @@ public Builder setProjectId(java.lang.String value) {
                * 
          * * string project_id = 2; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
                * Project identifier (preferably project number but can also be the
                * project ID) of the project that contains the secret. If not set, it is
          @@ -919,16 +856,16 @@ public Builder clearProjectId() {
                * 
          * * string project_id = 2; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -936,20 +873,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object secret_ = ""; /** - * - * *
                * Name of the secret in secret manager (not the full resource name).
                * 
          * * string secret = 3; - * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -958,21 +893,20 @@ public java.lang.String getSecret() { } } /** - * - * *
                * Name of the secret in secret manager (not the full resource name).
                * 
          * * string secret = 3; - * * @return The bytes for secret. */ - public com.google.protobuf.ByteString getSecretBytes() { + public com.google.protobuf.ByteString + getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secret_ = b; return b; } else { @@ -980,61 +914,54 @@ public com.google.protobuf.ByteString getSecretBytes() { } } /** - * - * *
                * Name of the secret in secret manager (not the full resource name).
                * 
          * * string secret = 3; - * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret(java.lang.String value) { + public Builder setSecret( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** - * - * *
                * Name of the secret in secret manager (not the full resource name).
                * 
          * * string secret = 3; - * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** - * - * *
                * Name of the secret in secret manager (not the full resource name).
                * 
          * * string secret = 3; - * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes(com.google.protobuf.ByteString value) { + public Builder setSecretBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; @@ -1042,8 +969,6 @@ public Builder setSecretBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
                * Version of the secret (version number or the string 'latest'). It is
                * recommended to use a numeric version for secret environment variables as
          @@ -1052,13 +977,13 @@ public Builder setSecretBytes(com.google.protobuf.ByteString value) {
                * 
          * * string version = 4; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1067,8 +992,6 @@ public java.lang.String getVersion() { } } /** - * - * *
                * Version of the secret (version number or the string 'latest'). It is
                * recommended to use a numeric version for secret environment variables as
          @@ -1077,14 +1000,15 @@ public java.lang.String getVersion() {
                * 
          * * string version = 4; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -1092,8 +1016,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
                * Version of the secret (version number or the string 'latest'). It is
                * recommended to use a numeric version for secret environment variables as
          @@ -1102,22 +1024,20 @@ public com.google.protobuf.ByteString getVersionBytes() {
                * 
          * * string version = 4; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
                * Version of the secret (version number or the string 'latest'). It is
                * recommended to use a numeric version for secret environment variables as
          @@ -1126,18 +1046,15 @@ public Builder setVersion(java.lang.String value) {
                * 
          * * string version = 4; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
                * Version of the secret (version number or the string 'latest'). It is
                * recommended to use a numeric version for secret environment variables as
          @@ -1146,23 +1063,23 @@ public Builder clearVersion() {
                * 
          * * string version = 4; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1172,12 +1089,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.SecretEnvVar) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.SecretEnvVar) private static final com.google.cloud.functions.v2alpha.SecretEnvVar DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.SecretEnvVar(); } @@ -1186,16 +1103,16 @@ public static com.google.cloud.functions.v2alpha.SecretEnvVar getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretEnvVar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretEnvVar(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretEnvVar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretEnvVar(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1210,4 +1127,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.SecretEnvVar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java similarity index 71% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java index 4464f7be..999c04c4 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java @@ -1,56 +1,33 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface SecretEnvVarOrBuilder - extends +public interface SecretEnvVarOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.SecretEnvVar) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Name of the environment variable.
              * 
          * * string key = 1; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
              * Name of the environment variable.
              * 
          * * string key = 1; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
              * Project identifier (preferably project number but can also be the
              * project ID) of the project that contains the secret. If not set, it is
          @@ -58,13 +35,10 @@ public interface SecretEnvVarOrBuilder
              * 
          * * string project_id = 2; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
              * Project identifier (preferably project number but can also be the
              * project ID) of the project that contains the secret. If not set, it is
          @@ -72,39 +46,32 @@ public interface SecretEnvVarOrBuilder
              * 
          * * string project_id = 2; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
              * Name of the secret in secret manager (not the full resource name).
              * 
          * * string secret = 3; - * * @return The secret. */ java.lang.String getSecret(); /** - * - * *
              * Name of the secret in secret manager (not the full resource name).
              * 
          * * string secret = 3; - * * @return The bytes for secret. */ - com.google.protobuf.ByteString getSecretBytes(); + com.google.protobuf.ByteString + getSecretBytes(); /** - * - * *
              * Version of the secret (version number or the string 'latest'). It is
              * recommended to use a numeric version for secret environment variables as
          @@ -113,13 +80,10 @@ public interface SecretEnvVarOrBuilder
              * 
          * * string version = 4; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
              * Version of the secret (version number or the string 'latest'). It is
              * recommended to use a numeric version for secret environment variables as
          @@ -128,8 +92,8 @@ public interface SecretEnvVarOrBuilder
              * 
          * * string version = 4; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java similarity index 75% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java index 46554421..4767a57c 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java @@ -1,26 +1,9 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Configuration for a secret volume. It has the information necessary to fetch
            * the secret value from secret manager and make it available as files mounted
          @@ -29,16 +12,15 @@
            *
            * Protobuf type {@code google.cloud.functions.v2alpha.SecretVolume}
            */
          -public final class SecretVolume extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class SecretVolume extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.SecretVolume)
               SecretVolumeOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use SecretVolume.newBuilder() to construct.
             private SecretVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private SecretVolume() {
               mountPath_ = "";
               projectId_ = "";
          @@ -48,15 +30,16 @@ private SecretVolume() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new SecretVolume();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet
          +  getUnknownFields() {
               return this.unknownFields;
             }
          -
             private SecretVolume(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -76,48 +59,40 @@ private SecretVolume(
                     case 0:
                       done = true;
                       break;
          -          case 10:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +          case 10: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              mountPath_ = s;
          -              break;
          -            }
          -          case 18:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            mountPath_ = s;
          +            break;
          +          }
          +          case 18: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              projectId_ = s;
          -              break;
          -            }
          -          case 26:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            projectId_ = s;
          +            break;
          +          }
          +          case 26: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              secret_ = s;
          -              break;
          -            }
          -          case 34:
          -            {
          -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          -                versions_ =
          -                    new java.util.ArrayList<
          -                        com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion>();
          -                mutable_bitField0_ |= 0x00000001;
          -              }
          -              versions_.add(
          -                  input.readMessage(
          -                      com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.parser(),
          -                      extensionRegistry));
          -              break;
          +            secret_ = s;
          +            break;
          +          }
          +          case 34: {
          +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          +              versions_ = new java.util.ArrayList();
          +              mutable_bitField0_ |= 0x00000001;
                       }
          -          default:
          -            {
          -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          -                done = true;
          -              }
          -              break;
          +            versions_.add(
          +                input.readMessage(com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.parser(), extensionRegistry));
          +            break;
          +          }
          +          default: {
          +            if (!parseUnknownField(
          +                input, unknownFields, extensionRegistry, tag)) {
          +              done = true;
                       }
          +            break;
          +          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -125,7 +100,8 @@ private SecretVolume(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(
          +          e).setUnfinishedMessage(this);
               } finally {
                 if (((mutable_bitField0_ & 0x00000001) != 0)) {
                   versions_ = java.util.Collections.unmodifiableList(versions_);
          @@ -134,30 +110,24 @@ private SecretVolume(
                 makeExtensionsImmutable();
               }
             }
          -
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.functions.v2alpha.SecretVolume.class,
          -            com.google.cloud.functions.v2alpha.SecretVolume.Builder.class);
          +            com.google.cloud.functions.v2alpha.SecretVolume.class, com.google.cloud.functions.v2alpha.SecretVolume.Builder.class);
             }
           
          -  public interface SecretVersionOrBuilder
          -      extends
          +  public interface SecretVersionOrBuilder extends
                 // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.SecretVolume.SecretVersion)
                 com.google.protobuf.MessageOrBuilder {
           
               /**
          -     *
          -     *
                * 
                * Version of the secret (version number or the string 'latest'). It is
                * preferable to use `latest` version with secret volumes as secret value
          @@ -165,13 +135,10 @@ public interface SecretVersionOrBuilder
                * 
          * * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
                * Version of the secret (version number or the string 'latest'). It is
                * preferable to use `latest` version with secret volumes as secret value
          @@ -179,14 +146,12 @@ public interface SecretVersionOrBuilder
                * 
          * * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
                * Relative path of the file under the mount path where the secret value for
                * this version will be fetched and made available. For example, setting the
          @@ -195,13 +160,10 @@ public interface SecretVersionOrBuilder
                * 
          * * string path = 2; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
                * Relative path of the file under the mount path where the secret value for
                * this version will be fetched and made available. For example, setting the
          @@ -210,30 +172,27 @@ public interface SecretVersionOrBuilder
                * 
          * * string path = 2; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); } /** - * - * *
              * Configuration for a single version.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.SecretVolume.SecretVersion} */ - public static final class SecretVersion extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SecretVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.SecretVolume.SecretVersion) SecretVersionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SecretVersion.newBuilder() to construct. private SecretVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SecretVersion() { version_ = ""; path_ = ""; @@ -241,15 +200,16 @@ private SecretVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SecretVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SecretVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -268,27 +228,25 @@ private SecretVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + version_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - path_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + path_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -296,33 +254,29 @@ private SecretVersion( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.class, - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.class, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
                * Version of the secret (version number or the string 'latest'). It is
                * preferable to use `latest` version with secret volumes as secret value
          @@ -330,7 +284,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                * 
          * * string version = 1; - * * @return The version. */ @java.lang.Override @@ -339,15 +292,14 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
                * Version of the secret (version number or the string 'latest'). It is
                * preferable to use `latest` version with secret volumes as secret value
          @@ -355,15 +307,16 @@ public java.lang.String getVersion() {
                * 
          * * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -374,8 +327,6 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** - * - * *
                * Relative path of the file under the mount path where the secret value for
                * this version will be fetched and made available. For example, setting the
          @@ -384,7 +335,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
                * 
          * * string path = 2; - * * @return The path. */ @java.lang.Override @@ -393,15 +343,14 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** - * - * *
                * Relative path of the file under the mount path where the secret value for
                * this version will be fetched and made available. For example, setting the
          @@ -410,15 +359,16 @@ public java.lang.String getPath() {
                * 
          * * string path = 2; - * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -427,7 +377,6 @@ public com.google.protobuf.ByteString getPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,7 +388,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } @@ -469,16 +419,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion other = - (com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion) obj; + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion other = (com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion) obj; - if (!getVersion().equals(other.getVersion())) return false; - if (!getPath().equals(other.getPath())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getPath() + .equals(other.getPath())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -500,94 +451,87 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.SecretVolume.SecretVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion 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.v2alpha.SecretVolume.SecretVersion parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -597,32 +541,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                * Configuration for a single version.
                * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.SecretVolume.SecretVersion} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.SecretVolume.SecretVersion) com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder { - 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; + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.class, - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.class, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.newBuilder() @@ -630,15 +569,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -650,14 +590,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion - getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getDefaultInstanceForType() { return com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance(); } @@ -672,8 +611,7 @@ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion build() { @java.lang.Override public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion buildPartial() { - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion result = - new com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion(this); + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion result = new com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion(this); result.version_ = version_; result.path_ = path_; onBuilt(); @@ -684,52 +622,46 @@ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion) other); + return mergeFrom((com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion other) { - if (other - == com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion other) { + if (other == com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -757,9 +689,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -771,8 +701,6 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** - * - * *
                  * Version of the secret (version number or the string 'latest'). It is
                  * preferable to use `latest` version with secret volumes as secret value
          @@ -780,13 +708,13 @@ public Builder mergeFrom(
                  * 
          * * string version = 1; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -795,8 +723,6 @@ public java.lang.String getVersion() { } } /** - * - * *
                  * Version of the secret (version number or the string 'latest'). It is
                  * preferable to use `latest` version with secret volumes as secret value
          @@ -804,14 +730,15 @@ public java.lang.String getVersion() {
                  * 
          * * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -819,8 +746,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
                  * Version of the secret (version number or the string 'latest'). It is
                  * preferable to use `latest` version with secret volumes as secret value
          @@ -828,22 +753,20 @@ public com.google.protobuf.ByteString getVersionBytes() {
                  * 
          * * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
                  * Version of the secret (version number or the string 'latest'). It is
                  * preferable to use `latest` version with secret volumes as secret value
          @@ -851,18 +774,15 @@ public Builder setVersion(java.lang.String value) {
                  * 
          * * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
                  * Version of the secret (version number or the string 'latest'). It is
                  * preferable to use `latest` version with secret volumes as secret value
          @@ -870,16 +790,16 @@ public Builder clearVersion() {
                  * 
          * * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -887,8 +807,6 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object path_ = ""; /** - * - * *
                  * Relative path of the file under the mount path where the secret value for
                  * this version will be fetched and made available. For example, setting the
          @@ -897,13 +815,13 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
                  * 
          * * string path = 2; - * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -912,8 +830,6 @@ public java.lang.String getPath() { } } /** - * - * *
                  * Relative path of the file under the mount path where the secret value for
                  * this version will be fetched and made available. For example, setting the
          @@ -922,14 +838,15 @@ public java.lang.String getPath() {
                  * 
          * * string path = 2; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -937,8 +854,6 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
                  * Relative path of the file under the mount path where the secret value for
                  * this version will be fetched and made available. For example, setting the
          @@ -947,22 +862,20 @@ public com.google.protobuf.ByteString getPathBytes() {
                  * 
          * * string path = 2; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { + public Builder setPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** - * - * *
                  * Relative path of the file under the mount path where the secret value for
                  * this version will be fetched and made available. For example, setting the
          @@ -971,18 +884,15 @@ public Builder setPath(java.lang.String value) {
                  * 
          * * string path = 2; - * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** - * - * *
                  * Relative path of the file under the mount path where the secret value for
                  * this version will be fetched and made available. For example, setting the
          @@ -991,21 +901,20 @@ public Builder clearPath() {
                  * 
          * * string path = 2; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { + public Builder setPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1018,32 +927,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.SecretVolume.SecretVersion) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.SecretVolume.SecretVersion) - private static final com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion - DEFAULT_INSTANCE; - + private static final com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion(); } - public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion - getDefaultInstance() { + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1055,17 +962,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion - getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int MOUNT_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object mountPath_; /** - * - * *
              * The path within the container to mount the secret volume. For example,
              * setting the mount_path as `/etc/secrets` would mount the secret value files
          @@ -1075,7 +980,6 @@ public com.google.protobuf.Parser getParserForType() {
              * 
          * * string mount_path = 1; - * * @return The mountPath. */ @java.lang.Override @@ -1084,15 +988,14 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** - * - * *
              * The path within the container to mount the secret volume. For example,
              * setting the mount_path as `/etc/secrets` would mount the secret value files
          @@ -1102,15 +1005,16 @@ public java.lang.String getMountPath() {
              * 
          * * string mount_path = 1; - * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1121,8 +1025,6 @@ public com.google.protobuf.ByteString getMountPathBytes() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** - * - * *
              * Project identifier (preferably project number but can also be the project
              * ID) of the project that contains the secret. If not set, it is
          @@ -1130,7 +1032,6 @@ public com.google.protobuf.ByteString getMountPathBytes() {
              * 
          * * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -1139,15 +1040,14 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
              * Project identifier (preferably project number but can also be the project
              * ID) of the project that contains the secret. If not set, it is
          @@ -1155,15 +1055,16 @@ public java.lang.String getProjectId() {
              * 
          * * string project_id = 2; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1174,14 +1075,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** - * - * *
              * Name of the secret in secret manager (not the full resource name).
              * 
          * * string secret = 3; - * * @return The secret. */ @java.lang.Override @@ -1190,29 +1088,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** - * - * *
              * Name of the secret in secret manager (not the full resource name).
              * 
          * * string secret = 3; - * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString getSecretBytes() { + public com.google.protobuf.ByteString + getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secret_ = b; return b; } else { @@ -1223,8 +1121,6 @@ public com.google.protobuf.ByteString getSecretBytes() { public static final int VERSIONS_FIELD_NUMBER = 4; private java.util.List versions_; /** - * - * *
              * List of secret versions to mount for this secret. If empty, the `latest`
              * version of the secret will be made available in a file named after the
          @@ -1234,13 +1130,10 @@ public com.google.protobuf.ByteString getSecretBytes() {
              * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4;
              */
             @java.lang.Override
          -  public java.util.List
          -      getVersionsList() {
          +  public java.util.List getVersionsList() {
               return versions_;
             }
             /**
          -   *
          -   *
              * 
              * List of secret versions to mount for this secret. If empty, the `latest`
              * version of the secret will be made available in a file named after the
          @@ -1250,14 +1143,11 @@ public com.google.protobuf.ByteString getSecretBytes() {
              * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4;
              */
             @java.lang.Override
          -  public java.util.List<
          -          ? extends com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder>
          +  public java.util.List 
                 getVersionsOrBuilderList() {
               return versions_;
             }
             /**
          -   *
          -   *
              * 
              * List of secret versions to mount for this secret. If empty, the `latest`
              * version of the secret will be made available in a file named after the
          @@ -1271,8 +1161,6 @@ public int getVersionsCount() {
               return versions_.size();
             }
             /**
          -   *
          -   *
              * 
              * List of secret versions to mount for this secret. If empty, the `latest`
              * version of the secret will be made available in a file named after the
          @@ -1286,8 +1174,6 @@ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getVersions
               return versions_.get(index);
             }
             /**
          -   *
          -   *
              * 
              * List of secret versions to mount for this secret. If empty, the `latest`
              * version of the secret will be made available in a file named after the
          @@ -1297,13 +1183,12 @@ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getVersions
              * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4;
              */
             @java.lang.Override
          -  public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder
          -      getVersionsOrBuilder(int index) {
          +  public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(
          +      int index) {
               return versions_.get(index);
             }
           
             private byte memoizedIsInitialized = -1;
          -
             @java.lang.Override
             public final boolean isInitialized() {
               byte isInitialized = memoizedIsInitialized;
          @@ -1315,7 +1200,8 @@ public final boolean isInitialized() {
             }
           
             @java.lang.Override
          -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
          +  public void writeTo(com.google.protobuf.CodedOutputStream output)
          +                      throws java.io.IOException {
               if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) {
                 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_);
               }
          @@ -1347,7 +1233,8 @@ public int getSerializedSize() {
                 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secret_);
               }
               for (int i = 0; i < versions_.size(); i++) {
          -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, versions_.get(i));
          +      size += com.google.protobuf.CodedOutputStream
          +        .computeMessageSize(4, versions_.get(i));
               }
               size += unknownFields.getSerializedSize();
               memoizedSize = size;
          @@ -1357,18 +1244,21 @@ public int getSerializedSize() {
             @java.lang.Override
             public boolean equals(final java.lang.Object obj) {
               if (obj == this) {
          -      return true;
          +     return true;
               }
               if (!(obj instanceof com.google.cloud.functions.v2alpha.SecretVolume)) {
                 return super.equals(obj);
               }
          -    com.google.cloud.functions.v2alpha.SecretVolume other =
          -        (com.google.cloud.functions.v2alpha.SecretVolume) obj;
          +    com.google.cloud.functions.v2alpha.SecretVolume other = (com.google.cloud.functions.v2alpha.SecretVolume) obj;
           
          -    if (!getMountPath().equals(other.getMountPath())) return false;
          -    if (!getProjectId().equals(other.getProjectId())) return false;
          -    if (!getSecret().equals(other.getSecret())) return false;
          -    if (!getVersionsList().equals(other.getVersionsList())) return false;
          +    if (!getMountPath()
          +        .equals(other.getMountPath())) return false;
          +    if (!getProjectId()
          +        .equals(other.getProjectId())) return false;
          +    if (!getSecret()
          +        .equals(other.getSecret())) return false;
          +    if (!getVersionsList()
          +        .equals(other.getVersionsList())) return false;
               if (!unknownFields.equals(other.unknownFields)) return false;
               return true;
             }
          @@ -1395,104 +1285,97 @@ public int hashCode() {
               return hash;
             }
           
          -  public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(java.nio.ByteBuffer data)
          +  public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(
          +      java.nio.ByteBuffer data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(
          -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      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.v2alpha.SecretVolume parseFrom(
                 com.google.protobuf.ByteString data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.SecretVolume 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.v2alpha.SecretVolume parseFrom(byte[] data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(
          -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      byte[] data,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          -
             public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(java.io.InputStream input)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(
          -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input, extensionRegistry);
             }
          -
          -  public static com.google.cloud.functions.v2alpha.SecretVolume parseDelimitedFrom(
          -      java.io.InputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
          +  public static com.google.cloud.functions.v2alpha.SecretVolume parseDelimitedFrom(java.io.InputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseDelimitedWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.SecretVolume parseDelimitedFrom(
          -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
             }
          -
             public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(
          -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +      com.google.protobuf.CodedInputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input, extensionRegistry);
             }
           
             @java.lang.Override
          -  public Builder newBuilderForType() {
          -    return newBuilder();
          -  }
          -
          +  public Builder newBuilderForType() { return newBuilder(); }
             public static Builder newBuilder() {
               return DEFAULT_INSTANCE.toBuilder();
             }
          -
             public static Builder newBuilder(com.google.cloud.functions.v2alpha.SecretVolume prototype) {
               return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
             }
          -
             @java.lang.Override
             public Builder toBuilder() {
          -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
          +    return this == DEFAULT_INSTANCE
          +        ? new Builder() : new Builder().mergeFrom(this);
             }
           
             @java.lang.Override
          -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +  protected Builder newBuilderForType(
          +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
               Builder builder = new Builder(parent);
               return builder;
             }
             /**
          -   *
          -   *
              * 
              * Configuration for a secret volume. It has the information necessary to fetch
              * the secret value from secret manager and make it available as files mounted
          @@ -1501,23 +1384,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.cloud.functions.v2alpha.SecretVolume}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.SecretVolume)
                 com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.functions.v2alpha.SecretVolume.class,
          -              com.google.cloud.functions.v2alpha.SecretVolume.Builder.class);
          +              com.google.cloud.functions.v2alpha.SecretVolume.class, com.google.cloud.functions.v2alpha.SecretVolume.Builder.class);
               }
           
               // Construct using com.google.cloud.functions.v2alpha.SecretVolume.newBuilder()
          @@ -1525,17 +1406,17 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          -
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3
          +              .alwaysUseFieldBuilders) {
                   getVersionsFieldBuilder();
                 }
               }
          -
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1555,9 +1436,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor;
               }
           
               @java.lang.Override
          @@ -1576,8 +1457,7 @@ public com.google.cloud.functions.v2alpha.SecretVolume build() {
           
               @java.lang.Override
               public com.google.cloud.functions.v2alpha.SecretVolume buildPartial() {
          -      com.google.cloud.functions.v2alpha.SecretVolume result =
          -          new com.google.cloud.functions.v2alpha.SecretVolume(this);
          +      com.google.cloud.functions.v2alpha.SecretVolume result = new com.google.cloud.functions.v2alpha.SecretVolume(this);
                 int from_bitField0_ = bitField0_;
                 result.mountPath_ = mountPath_;
                 result.projectId_ = projectId_;
          @@ -1599,39 +1479,38 @@ public com.google.cloud.functions.v2alpha.SecretVolume buildPartial() {
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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) {
          -        return mergeFrom((com.google.cloud.functions.v2alpha.SecretVolume) other);
          +        return mergeFrom((com.google.cloud.functions.v2alpha.SecretVolume)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1639,8 +1518,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.cloud.functions.v2alpha.SecretVolume other) {
          -      if (other == com.google.cloud.functions.v2alpha.SecretVolume.getDefaultInstance())
          -        return this;
          +      if (other == com.google.cloud.functions.v2alpha.SecretVolume.getDefaultInstance()) return this;
                 if (!other.getMountPath().isEmpty()) {
                   mountPath_ = other.mountPath_;
                   onChanged();
          @@ -1671,10 +1549,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.SecretVolume other)
                       versionsBuilder_ = null;
                       versions_ = other.versions_;
                       bitField0_ = (bitField0_ & ~0x00000001);
          -            versionsBuilder_ =
          -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          -                    ? getVersionsFieldBuilder()
          -                    : null;
          +            versionsBuilder_ = 
          +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          +                 getVersionsFieldBuilder() : null;
                     } else {
                       versionsBuilder_.addAllMessages(other.versions_);
                     }
          @@ -1708,13 +1585,10 @@ public Builder mergeFrom(
                 }
                 return this;
               }
          -
               private int bitField0_;
           
               private java.lang.Object mountPath_ = "";
               /**
          -     *
          -     *
                * 
                * The path within the container to mount the secret volume. For example,
                * setting the mount_path as `/etc/secrets` would mount the secret value files
          @@ -1724,13 +1598,13 @@ public Builder mergeFrom(
                * 
          * * string mount_path = 1; - * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -1739,8 +1613,6 @@ public java.lang.String getMountPath() { } } /** - * - * *
                * The path within the container to mount the secret volume. For example,
                * setting the mount_path as `/etc/secrets` would mount the secret value files
          @@ -1750,14 +1622,15 @@ public java.lang.String getMountPath() {
                * 
          * * string mount_path = 1; - * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1765,8 +1638,6 @@ public com.google.protobuf.ByteString getMountPathBytes() { } } /** - * - * *
                * The path within the container to mount the secret volume. For example,
                * setting the mount_path as `/etc/secrets` would mount the secret value files
          @@ -1776,22 +1647,20 @@ public com.google.protobuf.ByteString getMountPathBytes() {
                * 
          * * string mount_path = 1; - * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath(java.lang.String value) { + public Builder setMountPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mountPath_ = value; onChanged(); return this; } /** - * - * *
                * The path within the container to mount the secret volume. For example,
                * setting the mount_path as `/etc/secrets` would mount the secret value files
          @@ -1801,18 +1670,15 @@ public Builder setMountPath(java.lang.String value) {
                * 
          * * string mount_path = 1; - * * @return This builder for chaining. */ public Builder clearMountPath() { - + mountPath_ = getDefaultInstance().getMountPath(); onChanged(); return this; } /** - * - * *
                * The path within the container to mount the secret volume. For example,
                * setting the mount_path as `/etc/secrets` would mount the secret value files
          @@ -1822,16 +1688,16 @@ public Builder clearMountPath() {
                * 
          * * string mount_path = 1; - * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes(com.google.protobuf.ByteString value) { + public Builder setMountPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mountPath_ = value; onChanged(); return this; @@ -1839,8 +1705,6 @@ public Builder setMountPathBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * *
                * Project identifier (preferably project number but can also be the project
                * ID) of the project that contains the secret. If not set, it is
          @@ -1848,13 +1712,13 @@ public Builder setMountPathBytes(com.google.protobuf.ByteString value) {
                * 
          * * string project_id = 2; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1863,8 +1727,6 @@ public java.lang.String getProjectId() { } } /** - * - * *
                * Project identifier (preferably project number but can also be the project
                * ID) of the project that contains the secret. If not set, it is
          @@ -1872,14 +1734,15 @@ public java.lang.String getProjectId() {
                * 
          * * string project_id = 2; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1887,8 +1750,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
                * Project identifier (preferably project number but can also be the project
                * ID) of the project that contains the secret. If not set, it is
          @@ -1896,22 +1757,20 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
                * 
          * * string project_id = 2; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
                * Project identifier (preferably project number but can also be the project
                * ID) of the project that contains the secret. If not set, it is
          @@ -1919,18 +1778,15 @@ public Builder setProjectId(java.lang.String value) {
                * 
          * * string project_id = 2; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
                * Project identifier (preferably project number but can also be the project
                * ID) of the project that contains the secret. If not set, it is
          @@ -1938,16 +1794,16 @@ public Builder clearProjectId() {
                * 
          * * string project_id = 2; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1955,20 +1811,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object secret_ = ""; /** - * - * *
                * Name of the secret in secret manager (not the full resource name).
                * 
          * * string secret = 3; - * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -1977,21 +1831,20 @@ public java.lang.String getSecret() { } } /** - * - * *
                * Name of the secret in secret manager (not the full resource name).
                * 
          * * string secret = 3; - * * @return The bytes for secret. */ - public com.google.protobuf.ByteString getSecretBytes() { + public com.google.protobuf.ByteString + getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secret_ = b; return b; } else { @@ -1999,98 +1852,81 @@ public com.google.protobuf.ByteString getSecretBytes() { } } /** - * - * *
                * Name of the secret in secret manager (not the full resource name).
                * 
          * * string secret = 3; - * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret(java.lang.String value) { + public Builder setSecret( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** - * - * *
                * Name of the secret in secret manager (not the full resource name).
                * 
          * * string secret = 3; - * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** - * - * *
                * Name of the secret in secret manager (not the full resource name).
                * 
          * * string secret = 3; - * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes(com.google.protobuf.ByteString value) { + public Builder setSecretBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; } - private java.util.List - versions_ = java.util.Collections.emptyList(); - + private java.util.List versions_ = + java.util.Collections.emptyList(); private void ensureVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - versions_ = - new java.util.ArrayList( - versions_); + versions_ = new java.util.ArrayList(versions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion, - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder, - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder> - versionsBuilder_; + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder> versionsBuilder_; /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ - public java.util.List - getVersionsList() { + public java.util.List getVersionsList() { if (versionsBuilder_ == null) { return java.util.Collections.unmodifiableList(versions_); } else { @@ -2098,16 +1934,13 @@ private void ensureVersionsIsMutable() { } } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ public int getVersionsCount() { if (versionsBuilder_ == null) { @@ -2117,16 +1950,13 @@ public int getVersionsCount() { } } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getVersions(int index) { if (versionsBuilder_ == null) { @@ -2136,16 +1966,13 @@ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getVersions } } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ public Builder setVersions( int index, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion value) { @@ -2162,20 +1989,16 @@ public Builder setVersions( return this; } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ public Builder setVersions( - int index, - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder builderForValue) { + int index, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder builderForValue) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); versions_.set(index, builderForValue.build()); @@ -2186,19 +2009,15 @@ public Builder setVersions( return this; } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ - public Builder addVersions( - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion value) { + public Builder addVersions(com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion value) { if (versionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2212,16 +2031,13 @@ public Builder addVersions( return this; } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ public Builder addVersions( int index, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion value) { @@ -2238,16 +2054,13 @@ public Builder addVersions( return this; } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ public Builder addVersions( com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder builderForValue) { @@ -2261,20 +2074,16 @@ public Builder addVersions( return this; } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ public Builder addVersions( - int index, - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder builderForValue) { + int index, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder builderForValue) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); versions_.add(index, builderForValue.build()); @@ -2285,23 +2094,20 @@ public Builder addVersions( return this; } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ public Builder addAllVersions( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, versions_); onChanged(); } else { versionsBuilder_.addAllMessages(values); @@ -2309,16 +2115,13 @@ public Builder addAllVersions( return this; } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ public Builder clearVersions() { if (versionsBuilder_ == null) { @@ -2331,16 +2134,13 @@ public Builder clearVersions() { return this; } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ public Builder removeVersions(int index) { if (versionsBuilder_ == null) { @@ -2353,56 +2153,45 @@ public Builder removeVersions(int index) { return this; } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder getVersionsBuilder( int index) { return getVersionsFieldBuilder().getBuilder(index); } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ - public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder - getVersionsOrBuilder(int index) { + public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder( + int index) { if (versionsBuilder_ == null) { - return versions_.get(index); - } else { + return versions_.get(index); } else { return versionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ - public java.util.List< - ? extends com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder> - getVersionsOrBuilderList() { + public java.util.List + getVersionsOrBuilderList() { if (versionsBuilder_ != null) { return versionsBuilder_.getMessageOrBuilderList(); } else { @@ -2410,78 +2199,62 @@ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder get } } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ - public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder - addVersionsBuilder() { - return getVersionsFieldBuilder() - .addBuilder( - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder addVersionsBuilder() { + return getVersionsFieldBuilder().addBuilder( + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance()); } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder addVersionsBuilder( int index) { - return getVersionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance()); + return getVersionsFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance()); } /** - * - * *
                * List of secret versions to mount for this secret. If empty, the `latest`
                * version of the secret will be made available in a file named after the
                * secret under the mount point.
                * 
          * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; - * + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; */ - public java.util.List - getVersionsBuilderList() { + public java.util.List + getVersionsBuilderList() { return getVersionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion, - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder, - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder> + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder> getVersionsFieldBuilder() { if (versionsBuilder_ == null) { - versionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion, - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder, - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder>( - versions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder>( + versions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); versions_ = null; } return versionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2491,12 +2264,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.SecretVolume) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.SecretVolume) private static final com.google.cloud.functions.v2alpha.SecretVolume DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.SecretVolume(); } @@ -2505,16 +2278,16 @@ public static com.google.cloud.functions.v2alpha.SecretVolume getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretVolume parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretVolume(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVolume parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVolume(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2529,4 +2302,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.SecretVolume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java similarity index 81% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java index c07d985b..f56e8e2a 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface SecretVolumeOrBuilder - extends +public interface SecretVolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.SecretVolume) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * The path within the container to mount the secret volume. For example,
              * setting the mount_path as `/etc/secrets` would mount the secret value files
          @@ -35,13 +17,10 @@ public interface SecretVolumeOrBuilder
              * 
          * * string mount_path = 1; - * * @return The mountPath. */ java.lang.String getMountPath(); /** - * - * *
              * The path within the container to mount the secret volume. For example,
              * setting the mount_path as `/etc/secrets` would mount the secret value files
          @@ -51,14 +30,12 @@ public interface SecretVolumeOrBuilder
              * 
          * * string mount_path = 1; - * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString getMountPathBytes(); + com.google.protobuf.ByteString + getMountPathBytes(); /** - * - * *
              * Project identifier (preferably project number but can also be the project
              * ID) of the project that contains the secret. If not set, it is
          @@ -66,13 +43,10 @@ public interface SecretVolumeOrBuilder
              * 
          * * string project_id = 2; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
              * Project identifier (preferably project number but can also be the project
              * ID) of the project that contains the secret. If not set, it is
          @@ -80,39 +54,32 @@ public interface SecretVolumeOrBuilder
              * 
          * * string project_id = 2; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
              * Name of the secret in secret manager (not the full resource name).
              * 
          * * string secret = 3; - * * @return The secret. */ java.lang.String getSecret(); /** - * - * *
              * Name of the secret in secret manager (not the full resource name).
              * 
          * * string secret = 3; - * * @return The bytes for secret. */ - com.google.protobuf.ByteString getSecretBytes(); + com.google.protobuf.ByteString + getSecretBytes(); /** - * - * *
              * List of secret versions to mount for this secret. If empty, the `latest`
              * version of the secret will be made available in a file named after the
          @@ -121,10 +88,9 @@ public interface SecretVolumeOrBuilder
              *
              * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4;
              */
          -  java.util.List getVersionsList();
          +  java.util.List 
          +      getVersionsList();
             /**
          -   *
          -   *
              * 
              * List of secret versions to mount for this secret. If empty, the `latest`
              * version of the secret will be made available in a file named after the
          @@ -135,8 +101,6 @@ public interface SecretVolumeOrBuilder
              */
             com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getVersions(int index);
             /**
          -   *
          -   *
              * 
              * List of secret versions to mount for this secret. If empty, the `latest`
              * version of the secret will be made available in a file named after the
          @@ -147,8 +111,6 @@ public interface SecretVolumeOrBuilder
              */
             int getVersionsCount();
             /**
          -   *
          -   *
              * 
              * List of secret versions to mount for this secret. If empty, the `latest`
              * version of the secret will be made available in a file named after the
          @@ -157,11 +119,9 @@ public interface SecretVolumeOrBuilder
              *
              * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4;
              */
          -  java.util.List
          +  java.util.List 
                 getVersionsOrBuilderList();
             /**
          -   *
          -   *
              * 
              * List of secret versions to mount for this secret. If empty, the `latest`
              * version of the secret will be made available in a file named after the
          diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java
          similarity index 73%
          rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java
          rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java
          index e3cb0b63..59abaf08 100644
          --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java
          +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java
          @@ -1,26 +1,9 @@
          -/*
          - * 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/v2alpha/functions.proto
           
           package com.google.cloud.functions.v2alpha;
           
           /**
          - *
          - *
            * 
            * Describes the Service being deployed.
            * Currently Supported : Cloud Run (fully managed).
          @@ -28,16 +11,15 @@
            *
            * Protobuf type {@code google.cloud.functions.v2alpha.ServiceConfig}
            */
          -public final class ServiceConfig extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class ServiceConfig extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.ServiceConfig)
               ServiceConfigOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use ServiceConfig.newBuilder() to construct.
             private ServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
             private ServiceConfig() {
               service_ = "";
               availableMemory_ = "";
          @@ -53,15 +35,16 @@ private ServiceConfig() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new ServiceConfig();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet
          +  getUnknownFields() {
               return this.unknownFields;
             }
          -
             private ServiceConfig(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -81,131 +64,112 @@ private ServiceConfig(
                     case 0:
                       done = true;
                       break;
          -          case 10:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +          case 10: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              service_ = s;
          -              break;
          -            }
          -          case 16:
          -            {
          -              timeoutSeconds_ = input.readInt32();
          -              break;
          -            }
          -          case 34:
          -            {
          -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          -                environmentVariables_ =
          -                    com.google.protobuf.MapField.newMapField(
          -                        EnvironmentVariablesDefaultEntryHolder.defaultEntry);
          -                mutable_bitField0_ |= 0x00000001;
          -              }
          -              com.google.protobuf.MapEntry
          -                  environmentVariables__ =
          -                      input.readMessage(
          -                          EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
          -                          extensionRegistry);
          -              environmentVariables_
          -                  .getMutableMap()
          -                  .put(environmentVariables__.getKey(), environmentVariables__.getValue());
          -              break;
          -            }
          -          case 40:
          -            {
          -              maxInstanceCount_ = input.readInt32();
          -              break;
          -            }
          -          case 50:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            service_ = s;
          +            break;
          +          }
          +          case 16: {
           
          -              vpcConnector_ = s;
          -              break;
          +            timeoutSeconds_ = input.readInt32();
          +            break;
          +          }
          +          case 34: {
          +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          +              environmentVariables_ = com.google.protobuf.MapField.newMapField(
          +                  EnvironmentVariablesDefaultEntryHolder.defaultEntry);
          +              mutable_bitField0_ |= 0x00000001;
                       }
          -          case 56:
          -            {
          -              int rawValue = input.readEnum();
          +            com.google.protobuf.MapEntry
          +            environmentVariables__ = input.readMessage(
          +                EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
          +            environmentVariables_.getMutableMap().put(
          +                environmentVariables__.getKey(), environmentVariables__.getValue());
          +            break;
          +          }
          +          case 40: {
           
          -              vpcConnectorEgressSettings_ = rawValue;
          -              break;
          -            }
          -          case 64:
          -            {
          -              int rawValue = input.readEnum();
          +            maxInstanceCount_ = input.readInt32();
          +            break;
          +          }
          +          case 50: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              ingressSettings_ = rawValue;
          -              break;
          -            }
          -          case 74:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            vpcConnector_ = s;
          +            break;
          +          }
          +          case 56: {
          +            int rawValue = input.readEnum();
           
          -              uri_ = s;
          -              break;
          -            }
          -          case 82:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            vpcConnectorEgressSettings_ = rawValue;
          +            break;
          +          }
          +          case 64: {
          +            int rawValue = input.readEnum();
           
          -              serviceAccountEmail_ = s;
          -              break;
          -            }
          -          case 96:
          -            {
          -              minInstanceCount_ = input.readInt32();
          -              break;
          -            }
          -          case 106:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            ingressSettings_ = rawValue;
          +            break;
          +          }
          +          case 74: {
          +            java.lang.String s = input.readStringRequireUtf8();
           
          -              availableMemory_ = s;
          -              break;
          -            }
          -          case 128:
          -            {
          -              allTrafficOnLatestRevision_ = input.readBool();
          -              break;
          -            }
          -          case 138:
          -            {
          -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
          -                secretEnvironmentVariables_ =
          -                    new java.util.ArrayList();
          -                mutable_bitField0_ |= 0x00000002;
          -              }
          -              secretEnvironmentVariables_.add(
          -                  input.readMessage(
          -                      com.google.cloud.functions.v2alpha.SecretEnvVar.parser(), extensionRegistry));
          -              break;
          -            }
          -          case 146:
          -            {
          -              java.lang.String s = input.readStringRequireUtf8();
          +            uri_ = s;
          +            break;
          +          }
          +          case 82: {
          +            java.lang.String s = input.readStringRequireUtf8();
          +
          +            serviceAccountEmail_ = s;
          +            break;
          +          }
          +          case 96: {
          +
          +            minInstanceCount_ = input.readInt32();
          +            break;
          +          }
          +          case 106: {
          +            java.lang.String s = input.readStringRequireUtf8();
          +
          +            availableMemory_ = s;
          +            break;
          +          }
          +          case 128: {
           
          -              revision_ = s;
          -              break;
          +            allTrafficOnLatestRevision_ = input.readBool();
          +            break;
          +          }
          +          case 138: {
          +            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
          +              secretEnvironmentVariables_ = new java.util.ArrayList();
          +              mutable_bitField0_ |= 0x00000002;
                       }
          -          case 154:
          -            {
          -              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
          -                secretVolumes_ =
          -                    new java.util.ArrayList();
          -                mutable_bitField0_ |= 0x00000004;
          -              }
          -              secretVolumes_.add(
          -                  input.readMessage(
          -                      com.google.cloud.functions.v2alpha.SecretVolume.parser(), extensionRegistry));
          -              break;
          +            secretEnvironmentVariables_.add(
          +                input.readMessage(com.google.cloud.functions.v2alpha.SecretEnvVar.parser(), extensionRegistry));
          +            break;
          +          }
          +          case 146: {
          +            java.lang.String s = input.readStringRequireUtf8();
          +
          +            revision_ = s;
          +            break;
          +          }
          +          case 154: {
          +            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
          +              secretVolumes_ = new java.util.ArrayList();
          +              mutable_bitField0_ |= 0x00000004;
                       }
          -          default:
          -            {
          -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          -                done = true;
          -              }
          -              break;
          +            secretVolumes_.add(
          +                input.readMessage(com.google.cloud.functions.v2alpha.SecretVolume.parser(), extensionRegistry));
          +            break;
          +          }
          +          default: {
          +            if (!parseUnknownField(
          +                input, unknownFields, extensionRegistry, tag)) {
          +              done = true;
                       }
          +            break;
          +          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -213,11 +177,11 @@ private ServiceConfig(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(
          +          e).setUnfinishedMessage(this);
               } finally {
                 if (((mutable_bitField0_ & 0x00000002) != 0)) {
          -        secretEnvironmentVariables_ =
          -            java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
          +        secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                 }
                 if (((mutable_bitField0_ & 0x00000004) != 0)) {
                   secretVolumes_ = java.util.Collections.unmodifiableList(secretVolumes_);
          @@ -226,36 +190,32 @@ private ServiceConfig(
                 makeExtensionsImmutable();
               }
             }
          -
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor;
             }
           
             @SuppressWarnings({"rawtypes"})
             @java.lang.Override
          -  protected com.google.protobuf.MapField internalGetMapField(int number) {
          +  protected com.google.protobuf.MapField internalGetMapField(
          +      int number) {
               switch (number) {
                 case 4:
                   return internalGetEnvironmentVariables();
                 default:
          -        throw new RuntimeException("Invalid map field number: " + number);
          +        throw new RuntimeException(
          +            "Invalid map field number: " + number);
               }
             }
          -
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.functions.v2alpha.ServiceConfig.class,
          -            com.google.cloud.functions.v2alpha.ServiceConfig.Builder.class);
          +            com.google.cloud.functions.v2alpha.ServiceConfig.class, com.google.cloud.functions.v2alpha.ServiceConfig.Builder.class);
             }
           
             /**
          -   *
          -   *
              * 
              * Available egress settings.
              * This controls what traffic is diverted through the VPC Access Connector
          @@ -264,10 +224,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
              *
              * Protobuf enum {@code google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings}
              */
          -  public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMessageEnum {
          +  public enum VpcConnectorEgressSettings
          +      implements com.google.protobuf.ProtocolMessageEnum {
               /**
          -     *
          -     *
                * 
                * Unspecified.
                * 
          @@ -276,8 +235,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe */ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED(0), /** - * - * *
                * Use the VPC Access Connector only for private IP space from RFC1918.
                * 
          @@ -286,8 +243,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe */ PRIVATE_RANGES_ONLY(1), /** - * - * *
                * Force the use of VPC Access Connector for all egress traffic from the
                * function.
          @@ -300,8 +255,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe
               ;
           
               /**
          -     *
          -     *
                * 
                * Unspecified.
                * 
          @@ -310,8 +263,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe */ public static final int VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** - * - * *
                * Use the VPC Access Connector only for private IP space from RFC1918.
                * 
          @@ -320,8 +271,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe */ public static final int PRIVATE_RANGES_ONLY_VALUE = 1; /** - * - * *
                * Force the use of VPC Access Connector for all egress traffic from the
                * function.
          @@ -331,6 +280,7 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe
                */
               public static final int ALL_TRAFFIC_VALUE = 2;
           
          +
               public final int getNumber() {
                 if (this == UNRECOGNIZED) {
                   throw new java.lang.IllegalArgumentException(
          @@ -355,14 +305,10 @@ public static VpcConnectorEgressSettings valueOf(int value) {
                */
               public static VpcConnectorEgressSettings forNumber(int value) {
                 switch (value) {
          -        case 0:
          -          return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
          -        case 1:
          -          return PRIVATE_RANGES_ONLY;
          -        case 2:
          -          return ALL_TRAFFIC;
          -        default:
          -          return null;
          +        case 0: return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
          +        case 1: return PRIVATE_RANGES_ONLY;
          +        case 2: return ALL_TRAFFIC;
          +        default: return null;
                 }
               }
           
          @@ -370,28 +316,28 @@ public static VpcConnectorEgressSettings forNumber(int value) {
                   internalGetValueMap() {
                 return internalValueMap;
               }
          +    private static final com.google.protobuf.Internal.EnumLiteMap<
          +        VpcConnectorEgressSettings> internalValueMap =
          +          new com.google.protobuf.Internal.EnumLiteMap() {
          +            public VpcConnectorEgressSettings findValueByNumber(int number) {
          +              return VpcConnectorEgressSettings.forNumber(number);
          +            }
          +          };
           
          -    private static final com.google.protobuf.Internal.EnumLiteMap
          -        internalValueMap =
          -            new com.google.protobuf.Internal.EnumLiteMap() {
          -              public VpcConnectorEgressSettings findValueByNumber(int number) {
          -                return VpcConnectorEgressSettings.forNumber(number);
          -              }
          -            };
          -
          -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
          +    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() {
          +    public final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptorForType() {
                 return getDescriptor();
               }
          -
          -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
          +    public static final com.google.protobuf.Descriptors.EnumDescriptor
          +        getDescriptor() {
                 return com.google.cloud.functions.v2alpha.ServiceConfig.getDescriptor().getEnumTypes().get(0);
               }
           
          @@ -400,7 +346,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
               public static VpcConnectorEgressSettings valueOf(
                   com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                 if (desc.getType() != getDescriptor()) {
          -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
          +        throw new java.lang.IllegalArgumentException(
          +          "EnumValueDescriptor is not for this type.");
                 }
                 if (desc.getIndex() == -1) {
                   return UNRECOGNIZED;
          @@ -418,8 +365,6 @@ private VpcConnectorEgressSettings(int value) {
             }
           
             /**
          -   *
          -   *
              * 
              * Available ingress settings.
              * This controls what traffic can reach the function.
          @@ -428,10 +373,9 @@ private VpcConnectorEgressSettings(int value) {
              *
              * Protobuf enum {@code google.cloud.functions.v2alpha.ServiceConfig.IngressSettings}
              */
          -  public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum {
          +  public enum IngressSettings
          +      implements com.google.protobuf.ProtocolMessageEnum {
               /**
          -     *
          -     *
                * 
                * Unspecified.
                * 
          @@ -440,8 +384,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ INGRESS_SETTINGS_UNSPECIFIED(0), /** - * - * *
                * Allow HTTP traffic from public and private sources.
                * 
          @@ -450,8 +392,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ ALLOW_ALL(1), /** - * - * *
                * Allow HTTP traffic from only private VPC sources.
                * 
          @@ -460,8 +400,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ ALLOW_INTERNAL_ONLY(2), /** - * - * *
                * Allow HTTP traffic from private VPC sources and through GCLB.
                * 
          @@ -473,8 +411,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                * Unspecified.
                * 
          @@ -483,8 +419,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** - * - * *
                * Allow HTTP traffic from public and private sources.
                * 
          @@ -493,8 +427,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALLOW_ALL_VALUE = 1; /** - * - * *
                * Allow HTTP traffic from only private VPC sources.
                * 
          @@ -503,8 +435,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALLOW_INTERNAL_ONLY_VALUE = 2; /** - * - * *
                * Allow HTTP traffic from private VPC sources and through GCLB.
                * 
          @@ -513,6 +443,7 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALLOW_INTERNAL_AND_GCLB_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -537,44 +468,40 @@ public static IngressSettings valueOf(int value) { */ public static IngressSettings forNumber(int value) { switch (value) { - case 0: - return INGRESS_SETTINGS_UNSPECIFIED; - case 1: - return ALLOW_ALL; - case 2: - return ALLOW_INTERNAL_ONLY; - case 3: - return ALLOW_INTERNAL_AND_GCLB; - default: - return null; + case 0: return INGRESS_SETTINGS_UNSPECIFIED; + case 1: return ALLOW_ALL; + case 2: return ALLOW_INTERNAL_ONLY; + case 3: return ALLOW_INTERNAL_AND_GCLB; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + IngressSettings> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IngressSettings findValueByNumber(int number) { + return IngressSettings.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IngressSettings findValueByNumber(int number) { - return IngressSettings.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.functions.v2alpha.ServiceConfig.getDescriptor().getEnumTypes().get(1); } @@ -583,7 +510,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static IngressSettings valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -603,18 +531,13 @@ private IngressSettings(int value) { public static final int SERVICE_FIELD_NUMBER = 1; private volatile java.lang.Object service_; /** - * - * *
              * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The service. */ @java.lang.Override @@ -623,33 +546,31 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** - * - * *
              * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -660,8 +581,6 @@ public com.google.protobuf.ByteString getServiceBytes() { public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 2; private int timeoutSeconds_; /** - * - * *
              * The function execution timeout. Execution is considered failed and
              * can be terminated if the function is not completed at the end of the
          @@ -669,7 +588,6 @@ public com.google.protobuf.ByteString getServiceBytes() {
              * 
          * * int32 timeout_seconds = 2; - * * @return The timeoutSeconds. */ @java.lang.Override @@ -680,8 +598,6 @@ public int getTimeoutSeconds() { public static final int AVAILABLE_MEMORY_FIELD_NUMBER = 13; private volatile java.lang.Object availableMemory_; /** - * - * *
              * The amount of memory available for a function.
              * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
          @@ -692,7 +608,6 @@ public int getTimeoutSeconds() {
              * 
          * * string available_memory = 13; - * * @return The availableMemory. */ @java.lang.Override @@ -701,15 +616,14 @@ public java.lang.String getAvailableMemory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availableMemory_ = s; return s; } } /** - * - * *
              * The amount of memory available for a function.
              * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
          @@ -720,15 +634,16 @@ public java.lang.String getAvailableMemory() {
              * 
          * * string available_memory = 13; - * * @return The bytes for availableMemory. */ @java.lang.Override - public com.google.protobuf.ByteString getAvailableMemoryBytes() { + public com.google.protobuf.ByteString + getAvailableMemoryBytes() { java.lang.Object ref = availableMemory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); availableMemory_ = b; return b; } else { @@ -737,22 +652,21 @@ public com.google.protobuf.ByteString getAvailableMemoryBytes() { } public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 4; - private static final class EnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField environmentVariables_; - + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -764,30 +678,28 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** - * - * *
              * Environment variables that shall be available during function execution.
              * 
          * * map<string, string> environment_variables = 4; */ + @java.lang.Override - public boolean containsEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** - * - * *
              * Environment variables that shall be available during function execution.
              * 
          @@ -795,12 +707,11 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override + public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** - * - * *
              * Environment variables that shall be available during function execution.
              * 
          @@ -808,18 +719,16 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override + public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
              * Environment variables that shall be available during function execution.
              * 
          @@ -827,10 +736,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -842,8 +751,6 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { public static final int MAX_INSTANCE_COUNT_FIELD_NUMBER = 5; private int maxInstanceCount_; /** - * - * *
              * The limit on the maximum number of function instances that may coexist at a
              * given time.
          @@ -858,7 +765,6 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) {
              * 
          * * int32 max_instance_count = 5; - * * @return The maxInstanceCount. */ @java.lang.Override @@ -869,8 +775,6 @@ public int getMaxInstanceCount() { public static final int MIN_INSTANCE_COUNT_FIELD_NUMBER = 12; private int minInstanceCount_; /** - * - * *
              * The limit on the minimum number of function instances that may coexist at a
              * given time.
          @@ -883,7 +787,6 @@ public int getMaxInstanceCount() {
              * 
          * * int32 min_instance_count = 12; - * * @return The minInstanceCount. */ @java.lang.Override @@ -894,15 +797,12 @@ public int getMinInstanceCount() { public static final int VPC_CONNECTOR_FIELD_NUMBER = 6; private volatile java.lang.Object vpcConnector_; /** - * - * *
              * 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) = { ... } - * * @return The vpcConnector. */ @java.lang.Override @@ -911,30 +811,30 @@ public java.lang.String getVpcConnector() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; } } /** - * - * *
              * 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) = { ... } - * * @return The bytes for vpcConnector. */ @java.lang.Override - public com.google.protobuf.ByteString getVpcConnectorBytes() { + public com.google.protobuf.ByteString + getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -945,102 +845,69 @@ public com.google.protobuf.ByteString getVpcConnectorBytes() { public static final int VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER = 7; private int vpcConnectorEgressSettings_; /** - * - * *
              * The egress settings for the connector, controlling what traffic is diverted
              * through it.
              * 
          * - * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override - public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** - * - * *
              * The egress settings for the connector, controlling what traffic is diverted
              * through it.
              * 
          * - * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return The vpcConnectorEgressSettings. */ - @java.lang.Override - public com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings - getVpcConnectorEgressSettings() { + @java.lang.Override public com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings result = - com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.valueOf( - vpcConnectorEgressSettings_); - return result == null - ? com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED - : result; + com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings result = com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); + return result == null ? com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED : result; } public static final int INGRESS_SETTINGS_FIELD_NUMBER = 8; private int ingressSettings_; /** - * - * *
              * The ingress settings for the function, controlling what traffic can reach
              * it.
              * 
          * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override - public int getIngressSettingsValue() { + @java.lang.Override public int getIngressSettingsValue() { return ingressSettings_; } /** - * - * *
              * The ingress settings for the function, controlling what traffic can reach
              * it.
              * 
          * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; * @return The ingressSettings. */ - @java.lang.Override - public com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings getIngressSettings() { + @java.lang.Override public com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings result = - com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.valueOf(ingressSettings_); - return result == null - ? com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.UNRECOGNIZED - : result; + com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings result = com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.valueOf(ingressSettings_); + return result == null ? com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.UNRECOGNIZED : result; } public static final int URI_FIELD_NUMBER = 9; private volatile java.lang.Object uri_; /** - * - * *
              * Output only. URI of the Service deployed.
              * 
          * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ @java.lang.Override @@ -1049,29 +916,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
              * Output only. URI of the Service deployed.
              * 
          * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -1082,15 +949,12 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 10; private volatile java.lang.Object serviceAccountEmail_; /** - * - * *
              * The email of the service's service account. If empty, defaults to
              * `{project_number}-compute@developer.gserviceaccount.com`.
              * 
          * * string service_account_email = 10; - * * @return The serviceAccountEmail. */ @java.lang.Override @@ -1099,30 +963,30 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** - * - * *
              * The email of the service's service account. If empty, defaults to
              * `{project_number}-compute@developer.gserviceaccount.com`.
              * 
          * * string service_account_email = 10; - * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -1133,8 +997,6 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { public static final int ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER = 16; private boolean allTrafficOnLatestRevision_; /** - * - * *
              * Whether 100% of traffic is routed to the latest revision.
              * On CreateFunction and UpdateFunction, when set to true, the revision being
          @@ -1144,7 +1006,6 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() {
              * 
          * * bool all_traffic_on_latest_revision = 16; - * * @return The allTrafficOnLatestRevision. */ @java.lang.Override @@ -1153,87 +1014,68 @@ public boolean getAllTrafficOnLatestRevision() { } public static final int SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER = 17; - private java.util.List - secretEnvironmentVariables_; + private java.util.List secretEnvironmentVariables_; /** - * - * *
              * Secret environment variables configuration.
              * 
          * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ @java.lang.Override - public java.util.List - getSecretEnvironmentVariablesList() { + public java.util.List getSecretEnvironmentVariablesList() { return secretEnvironmentVariables_; } /** - * - * *
              * Secret environment variables configuration.
              * 
          * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ @java.lang.Override - public java.util.List + public java.util.List getSecretEnvironmentVariablesOrBuilderList() { return secretEnvironmentVariables_; } /** - * - * *
              * Secret environment variables configuration.
              * 
          * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ @java.lang.Override public int getSecretEnvironmentVariablesCount() { return secretEnvironmentVariables_.size(); } /** - * - * *
              * Secret environment variables configuration.
              * 
          * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ @java.lang.Override public com.google.cloud.functions.v2alpha.SecretEnvVar getSecretEnvironmentVariables(int index) { return secretEnvironmentVariables_.get(index); } /** - * - * *
              * Secret environment variables configuration.
              * 
          * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ @java.lang.Override - public com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder - getSecretEnvironmentVariablesOrBuilder(int index) { + public com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( + int index) { return secretEnvironmentVariables_.get(index); } public static final int SECRET_VOLUMES_FIELD_NUMBER = 19; private java.util.List secretVolumes_; /** - * - * *
              * Secret volumes configuration.
              * 
          @@ -1245,8 +1087,6 @@ public java.util.List getSecret return secretVolumes_; } /** - * - * *
              * Secret volumes configuration.
              * 
          @@ -1254,13 +1094,11 @@ public java.util.List getSecret * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ @java.lang.Override - public java.util.List + public java.util.List getSecretVolumesOrBuilderList() { return secretVolumes_; } /** - * - * *
              * Secret volumes configuration.
              * 
          @@ -1272,8 +1110,6 @@ public int getSecretVolumesCount() { return secretVolumes_.size(); } /** - * - * *
              * Secret volumes configuration.
              * 
          @@ -1285,8 +1121,6 @@ public com.google.cloud.functions.v2alpha.SecretVolume getSecretVolumes(int inde return secretVolumes_.get(index); } /** - * - * *
              * Secret volumes configuration.
              * 
          @@ -1302,14 +1136,11 @@ public com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder getSecretVolumes public static final int REVISION_FIELD_NUMBER = 18; private volatile java.lang.Object revision_; /** - * - * *
              * Output only. The name of service revision.
              * 
          * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revision. */ @java.lang.Override @@ -1318,29 +1149,29 @@ public java.lang.String getRevision() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; } } /** - * - * *
              * Output only. The name of service revision.
              * 
          * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revision. */ @java.lang.Override - public com.google.protobuf.ByteString getRevisionBytes() { + public com.google.protobuf.ByteString + getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); revision_ = b; return b; } else { @@ -1349,7 +1180,6 @@ public com.google.protobuf.ByteString getRevisionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1361,14 +1191,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } if (timeoutSeconds_ != 0) { output.writeInt32(2, timeoutSeconds_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -1379,16 +1211,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vpcConnector_); } - if (vpcConnectorEgressSettings_ - != com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings - .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED - .getNumber()) { + if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { output.writeEnum(7, vpcConnectorEgressSettings_); } - if (ingressSettings_ - != com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings - .INGRESS_SETTINGS_UNSPECIFIED - .getNumber()) { + if (ingressSettings_ != com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { output.writeEnum(8, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { @@ -1428,35 +1254,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } if (timeoutSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, timeoutSeconds_); - } - for (java.util.Map.Entry entry : - internalGetEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry environmentVariables__ = - EnvironmentVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, environmentVariables__); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, timeoutSeconds_); + } + for (java.util.Map.Entry entry + : internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, environmentVariables__); } if (maxInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxInstanceCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, maxInstanceCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vpcConnector_); } - if (vpcConnectorEgressSettings_ - != com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings - .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, vpcConnectorEgressSettings_); + if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, vpcConnectorEgressSettings_); } - if (ingressSettings_ - != com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings - .INGRESS_SETTINGS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, ingressSettings_); + if (ingressSettings_ != com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, uri_); @@ -1465,25 +1289,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, serviceAccountEmail_); } if (minInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, minInstanceCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(12, minInstanceCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableMemory_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, availableMemory_); } if (allTrafficOnLatestRevision_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(16, allTrafficOnLatestRevision_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(16, allTrafficOnLatestRevision_); } for (int i = 0; i < secretEnvironmentVariables_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 17, secretEnvironmentVariables_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, secretEnvironmentVariables_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, revision_); } for (int i = 0; i < secretVolumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, secretVolumes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, secretVolumes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1493,31 +1318,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.ServiceConfig)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.ServiceConfig other = - (com.google.cloud.functions.v2alpha.ServiceConfig) obj; - - if (!getService().equals(other.getService())) return false; - if (getTimeoutSeconds() != other.getTimeoutSeconds()) return false; - if (!getAvailableMemory().equals(other.getAvailableMemory())) return false; - if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) - return false; - if (getMaxInstanceCount() != other.getMaxInstanceCount()) return false; - if (getMinInstanceCount() != other.getMinInstanceCount()) return false; - if (!getVpcConnector().equals(other.getVpcConnector())) return false; + com.google.cloud.functions.v2alpha.ServiceConfig other = (com.google.cloud.functions.v2alpha.ServiceConfig) obj; + + if (!getService() + .equals(other.getService())) return false; + if (getTimeoutSeconds() + != other.getTimeoutSeconds()) return false; + if (!getAvailableMemory() + .equals(other.getAvailableMemory())) return false; + if (!internalGetEnvironmentVariables().equals( + other.internalGetEnvironmentVariables())) return false; + if (getMaxInstanceCount() + != other.getMaxInstanceCount()) return false; + if (getMinInstanceCount() + != other.getMinInstanceCount()) return false; + if (!getVpcConnector() + .equals(other.getVpcConnector())) return false; if (vpcConnectorEgressSettings_ != other.vpcConnectorEgressSettings_) return false; if (ingressSettings_ != other.ingressSettings_) return false; - if (!getUri().equals(other.getUri())) return false; - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; - if (getAllTrafficOnLatestRevision() != other.getAllTrafficOnLatestRevision()) return false; - if (!getSecretEnvironmentVariablesList().equals(other.getSecretEnvironmentVariablesList())) - return false; - if (!getSecretVolumesList().equals(other.getSecretVolumesList())) return false; - if (!getRevision().equals(other.getRevision())) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; + if (getAllTrafficOnLatestRevision() + != other.getAllTrafficOnLatestRevision()) return false; + if (!getSecretEnvironmentVariablesList() + .equals(other.getSecretEnvironmentVariablesList())) return false; + if (!getSecretVolumesList() + .equals(other.getSecretVolumesList())) return false; + if (!getRevision() + .equals(other.getRevision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1554,7 +1389,8 @@ public int hashCode() { hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountEmail().hashCode(); hash = (37 * hash) + ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllTrafficOnLatestRevision()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllTrafficOnLatestRevision()); if (getSecretEnvironmentVariablesCount() > 0) { hash = (37 * hash) + SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + getSecretEnvironmentVariablesList().hashCode(); @@ -1570,104 +1406,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.ServiceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ServiceConfig 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.v2alpha.ServiceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.ServiceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.ServiceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ServiceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.ServiceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Describes the Service being deployed.
              * Currently Supported : Cloud Run (fully managed).
          @@ -1675,43 +1504,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.cloud.functions.v2alpha.ServiceConfig}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.ServiceConfig)
                 com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor;
               }
           
               @SuppressWarnings({"rawtypes"})
          -    protected com.google.protobuf.MapField internalGetMapField(int number) {
          +    protected com.google.protobuf.MapField internalGetMapField(
          +        int number) {
                 switch (number) {
                   case 4:
                     return internalGetEnvironmentVariables();
                   default:
          -          throw new RuntimeException("Invalid map field number: " + number);
          +          throw new RuntimeException(
          +              "Invalid map field number: " + number);
                 }
               }
          -
               @SuppressWarnings({"rawtypes"})
          -    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
          +    protected com.google.protobuf.MapField internalGetMutableMapField(
          +        int number) {
                 switch (number) {
                   case 4:
                     return internalGetMutableEnvironmentVariables();
                   default:
          -          throw new RuntimeException("Invalid map field number: " + number);
          +          throw new RuntimeException(
          +              "Invalid map field number: " + number);
                 }
               }
          -
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.functions.v2alpha.ServiceConfig.class,
          -              com.google.cloud.functions.v2alpha.ServiceConfig.Builder.class);
          +              com.google.cloud.functions.v2alpha.ServiceConfig.class, com.google.cloud.functions.v2alpha.ServiceConfig.Builder.class);
               }
           
               // Construct using com.google.cloud.functions.v2alpha.ServiceConfig.newBuilder()
          @@ -1719,18 +1548,18 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          -
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3
          +              .alwaysUseFieldBuilders) {
                   getSecretEnvironmentVariablesFieldBuilder();
                   getSecretVolumesFieldBuilder();
                 }
               }
          -
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -1775,9 +1604,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor;
               }
           
               @java.lang.Override
          @@ -1796,8 +1625,7 @@ public com.google.cloud.functions.v2alpha.ServiceConfig build() {
           
               @java.lang.Override
               public com.google.cloud.functions.v2alpha.ServiceConfig buildPartial() {
          -      com.google.cloud.functions.v2alpha.ServiceConfig result =
          -          new com.google.cloud.functions.v2alpha.ServiceConfig(this);
          +      com.google.cloud.functions.v2alpha.ServiceConfig result = new com.google.cloud.functions.v2alpha.ServiceConfig(this);
                 int from_bitField0_ = bitField0_;
                 result.service_ = service_;
                 result.timeoutSeconds_ = timeoutSeconds_;
          @@ -1814,8 +1642,7 @@ public com.google.cloud.functions.v2alpha.ServiceConfig buildPartial() {
                 result.allTrafficOnLatestRevision_ = allTrafficOnLatestRevision_;
                 if (secretEnvironmentVariablesBuilder_ == null) {
                   if (((bitField0_ & 0x00000002) != 0)) {
          -          secretEnvironmentVariables_ =
          -              java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
          +          secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                     bitField0_ = (bitField0_ & ~0x00000002);
                   }
                   result.secretEnvironmentVariables_ = secretEnvironmentVariables_;
          @@ -1840,39 +1667,38 @@ public com.google.cloud.functions.v2alpha.ServiceConfig buildPartial() {
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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) {
          -        return mergeFrom((com.google.cloud.functions.v2alpha.ServiceConfig) other);
          +        return mergeFrom((com.google.cloud.functions.v2alpha.ServiceConfig)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1880,8 +1706,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.cloud.functions.v2alpha.ServiceConfig other) {
          -      if (other == com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance())
          -        return this;
          +      if (other == com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance()) return this;
                 if (!other.getService().isEmpty()) {
                   service_ = other.service_;
                   onChanged();
          @@ -1893,7 +1718,8 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.ServiceConfig other)
                   availableMemory_ = other.availableMemory_;
                   onChanged();
                 }
          -      internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables());
          +      internalGetMutableEnvironmentVariables().mergeFrom(
          +          other.internalGetEnvironmentVariables());
                 if (other.getMaxInstanceCount() != 0) {
                   setMaxInstanceCount(other.getMaxInstanceCount());
                 }
          @@ -1939,10 +1765,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.ServiceConfig other)
                       secretEnvironmentVariablesBuilder_ = null;
                       secretEnvironmentVariables_ = other.secretEnvironmentVariables_;
                       bitField0_ = (bitField0_ & ~0x00000002);
          -            secretEnvironmentVariablesBuilder_ =
          -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          -                    ? getSecretEnvironmentVariablesFieldBuilder()
          -                    : null;
          +            secretEnvironmentVariablesBuilder_ = 
          +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          +                 getSecretEnvironmentVariablesFieldBuilder() : null;
                     } else {
                       secretEnvironmentVariablesBuilder_.addAllMessages(other.secretEnvironmentVariables_);
                     }
          @@ -1966,10 +1791,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.ServiceConfig other)
                       secretVolumesBuilder_ = null;
                       secretVolumes_ = other.secretVolumes_;
                       bitField0_ = (bitField0_ & ~0x00000004);
          -            secretVolumesBuilder_ =
          -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          -                    ? getSecretVolumesFieldBuilder()
          -                    : null;
          +            secretVolumesBuilder_ = 
          +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          +                 getSecretVolumesFieldBuilder() : null;
                     } else {
                       secretVolumesBuilder_.addAllMessages(other.secretVolumes_);
                     }
          @@ -2007,29 +1831,24 @@ public Builder mergeFrom(
                 }
                 return this;
               }
          -
               private int bitField0_;
           
               private java.lang.Object service_ = "";
               /**
          -     *
          -     *
                * 
                * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -2038,25 +1857,22 @@ public java.lang.String getService() { } } /** - * - * *
                * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for service. */ - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -2064,82 +1880,67 @@ public com.google.protobuf.ByteString getServiceBytes() { } } /** - * - * *
                * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The service to set. * @return This builder for chaining. */ - public Builder setService(java.lang.String value) { + public Builder setService( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + service_ = value; onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearService() { - + service_ = getDefaultInstance().getService(); onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes(com.google.protobuf.ByteString value) { + public Builder setServiceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; onChanged(); return this; } - private int timeoutSeconds_; + private int timeoutSeconds_ ; /** - * - * *
                * The function execution timeout. Execution is considered failed and
                * can be terminated if the function is not completed at the end of the
          @@ -2147,7 +1948,6 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) {
                * 
          * * int32 timeout_seconds = 2; - * * @return The timeoutSeconds. */ @java.lang.Override @@ -2155,8 +1955,6 @@ public int getTimeoutSeconds() { return timeoutSeconds_; } /** - * - * *
                * The function execution timeout. Execution is considered failed and
                * can be terminated if the function is not completed at the end of the
          @@ -2164,19 +1962,16 @@ public int getTimeoutSeconds() {
                * 
          * * int32 timeout_seconds = 2; - * * @param value The timeoutSeconds to set. * @return This builder for chaining. */ public Builder setTimeoutSeconds(int value) { - + timeoutSeconds_ = value; onChanged(); return this; } /** - * - * *
                * The function execution timeout. Execution is considered failed and
                * can be terminated if the function is not completed at the end of the
          @@ -2184,11 +1979,10 @@ public Builder setTimeoutSeconds(int value) {
                * 
          * * int32 timeout_seconds = 2; - * * @return This builder for chaining. */ public Builder clearTimeoutSeconds() { - + timeoutSeconds_ = 0; onChanged(); return this; @@ -2196,8 +1990,6 @@ public Builder clearTimeoutSeconds() { private java.lang.Object availableMemory_ = ""; /** - * - * *
                * The amount of memory available for a function.
                * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
          @@ -2208,13 +2000,13 @@ public Builder clearTimeoutSeconds() {
                * 
          * * string available_memory = 13; - * * @return The availableMemory. */ public java.lang.String getAvailableMemory() { java.lang.Object ref = availableMemory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availableMemory_ = s; return s; @@ -2223,8 +2015,6 @@ public java.lang.String getAvailableMemory() { } } /** - * - * *
                * The amount of memory available for a function.
                * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
          @@ -2235,14 +2025,15 @@ public java.lang.String getAvailableMemory() {
                * 
          * * string available_memory = 13; - * * @return The bytes for availableMemory. */ - public com.google.protobuf.ByteString getAvailableMemoryBytes() { + public com.google.protobuf.ByteString + getAvailableMemoryBytes() { java.lang.Object ref = availableMemory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); availableMemory_ = b; return b; } else { @@ -2250,8 +2041,6 @@ public com.google.protobuf.ByteString getAvailableMemoryBytes() { } } /** - * - * *
                * The amount of memory available for a function.
                * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
          @@ -2262,22 +2051,20 @@ public com.google.protobuf.ByteString getAvailableMemoryBytes() {
                * 
          * * string available_memory = 13; - * * @param value The availableMemory to set. * @return This builder for chaining. */ - public Builder setAvailableMemory(java.lang.String value) { + public Builder setAvailableMemory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + availableMemory_ = value; onChanged(); return this; } /** - * - * *
                * The amount of memory available for a function.
                * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
          @@ -2288,18 +2075,15 @@ public Builder setAvailableMemory(java.lang.String value) {
                * 
          * * string available_memory = 13; - * * @return This builder for chaining. */ public Builder clearAvailableMemory() { - + availableMemory_ = getDefaultInstance().getAvailableMemory(); onChanged(); return this; } /** - * - * *
                * The amount of memory available for a function.
                * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
          @@ -2310,40 +2094,37 @@ public Builder clearAvailableMemory() {
                * 
          * * string available_memory = 13; - * * @param value The bytes for availableMemory to set. * @return This builder for chaining. */ - public Builder setAvailableMemoryBytes(com.google.protobuf.ByteString value) { + public Builder setAvailableMemoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + availableMemory_ = value; onChanged(); return this; } - private com.google.protobuf.MapField environmentVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } - private com.google.protobuf.MapField - internalGetMutableEnvironmentVariables() { - onChanged(); - ; + internalGetMutableEnvironmentVariables() { + onChanged();; if (environmentVariables_ == null) { - environmentVariables_ = - com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); + environmentVariables_ = com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); @@ -2355,30 +2136,28 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** - * - * *
                * Environment variables that shall be available during function execution.
                * 
          * * map<string, string> environment_variables = 4; */ + @java.lang.Override - public boolean containsEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** - * - * *
                * Environment variables that shall be available during function execution.
                * 
          @@ -2386,12 +2165,11 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override + public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** - * - * *
                * Environment variables that shall be available during function execution.
                * 
          @@ -2399,18 +2177,16 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override + public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
                * Environment variables that shall be available during function execution.
                * 
          @@ -2418,10 +2194,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -2431,69 +2207,69 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { } public Builder clearEnvironmentVariables() { - internalGetMutableEnvironmentVariables().getMutableMap().clear(); + internalGetMutableEnvironmentVariables().getMutableMap() + .clear(); return this; } /** - * - * *
                * Environment variables that shall be available during function execution.
                * 
          * * map<string, string> environment_variables = 4; */ - public Builder removeEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableEnvironmentVariables().getMutableMap().remove(key); + + public Builder removeEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableEnvironmentVariables().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableEnvironmentVariables() { + public java.util.Map + getMutableEnvironmentVariables() { return internalGetMutableEnvironmentVariables().getMutableMap(); } /** - * - * *
                * Environment variables that shall be available during function execution.
                * 
          * * map<string, string> environment_variables = 4; */ - public Builder putEnvironmentVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putEnvironmentVariables( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableEnvironmentVariables().getMutableMap().put(key, value); + internalGetMutableEnvironmentVariables().getMutableMap() + .put(key, value); return this; } /** - * - * *
                * Environment variables that shall be available during function execution.
                * 
          * * map<string, string> environment_variables = 4; */ + public Builder putAllEnvironmentVariables( java.util.Map values) { - internalGetMutableEnvironmentVariables().getMutableMap().putAll(values); + internalGetMutableEnvironmentVariables().getMutableMap() + .putAll(values); return this; } - private int maxInstanceCount_; + private int maxInstanceCount_ ; /** - * - * *
                * The limit on the maximum number of function instances that may coexist at a
                * given time.
          @@ -2508,7 +2284,6 @@ public Builder putAllEnvironmentVariables(
                * 
          * * int32 max_instance_count = 5; - * * @return The maxInstanceCount. */ @java.lang.Override @@ -2516,8 +2291,6 @@ public int getMaxInstanceCount() { return maxInstanceCount_; } /** - * - * *
                * The limit on the maximum number of function instances that may coexist at a
                * given time.
          @@ -2532,19 +2305,16 @@ public int getMaxInstanceCount() {
                * 
          * * int32 max_instance_count = 5; - * * @param value The maxInstanceCount to set. * @return This builder for chaining. */ public Builder setMaxInstanceCount(int value) { - + maxInstanceCount_ = value; onChanged(); return this; } /** - * - * *
                * The limit on the maximum number of function instances that may coexist at a
                * given time.
          @@ -2559,20 +2329,17 @@ public Builder setMaxInstanceCount(int value) {
                * 
          * * int32 max_instance_count = 5; - * * @return This builder for chaining. */ public Builder clearMaxInstanceCount() { - + maxInstanceCount_ = 0; onChanged(); return this; } - private int minInstanceCount_; + private int minInstanceCount_ ; /** - * - * *
                * The limit on the minimum number of function instances that may coexist at a
                * given time.
          @@ -2585,7 +2352,6 @@ public Builder clearMaxInstanceCount() {
                * 
          * * int32 min_instance_count = 12; - * * @return The minInstanceCount. */ @java.lang.Override @@ -2593,8 +2359,6 @@ public int getMinInstanceCount() { return minInstanceCount_; } /** - * - * *
                * The limit on the minimum number of function instances that may coexist at a
                * given time.
          @@ -2607,19 +2371,16 @@ public int getMinInstanceCount() {
                * 
          * * int32 min_instance_count = 12; - * * @param value The minInstanceCount to set. * @return This builder for chaining. */ public Builder setMinInstanceCount(int value) { - + minInstanceCount_ = value; onChanged(); return this; } /** - * - * *
                * The limit on the minimum number of function instances that may coexist at a
                * given time.
          @@ -2632,11 +2393,10 @@ public Builder setMinInstanceCount(int value) {
                * 
          * * int32 min_instance_count = 12; - * * @return This builder for chaining. */ public Builder clearMinInstanceCount() { - + minInstanceCount_ = 0; onChanged(); return this; @@ -2644,21 +2404,19 @@ public Builder clearMinInstanceCount() { private java.lang.Object vpcConnector_ = ""; /** - * - * *
                * 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) = { ... } - * * @return The vpcConnector. */ public java.lang.String getVpcConnector() { java.lang.Object ref = vpcConnector_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; @@ -2667,22 +2425,21 @@ public java.lang.String getVpcConnector() { } } /** - * - * *
                * 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) = { ... } - * * @return The bytes for vpcConnector. */ - public com.google.protobuf.ByteString getVpcConnectorBytes() { + public com.google.protobuf.ByteString + getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -2690,64 +2447,57 @@ public com.google.protobuf.ByteString getVpcConnectorBytes() { } } /** - * - * *
                * 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) = { ... } - * * @param value The vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnector(java.lang.String value) { + public Builder setVpcConnector( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vpcConnector_ = value; onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * * @return This builder for chaining. */ public Builder clearVpcConnector() { - + vpcConnector_ = getDefaultInstance().getVpcConnector(); onChanged(); return this; } /** - * - * *
                * 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) = { ... } - * * @param value The bytes for vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnectorBytes(com.google.protobuf.ByteString value) { + public Builder setVpcConnectorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcConnector_ = value; onChanged(); return this; @@ -2755,110 +2505,78 @@ public Builder setVpcConnectorBytes(com.google.protobuf.ByteString value) { private int vpcConnectorEgressSettings_ = 0; /** - * - * *
                * The egress settings for the connector, controlling what traffic is diverted
                * through it.
                * 
          * - * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override - public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** - * - * *
                * The egress settings for the connector, controlling what traffic is diverted
                * through it.
                * 
          * - * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @param value The enum numeric value on the wire for vpcConnectorEgressSettings to set. * @return This builder for chaining. */ public Builder setVpcConnectorEgressSettingsValue(int value) { - + vpcConnectorEgressSettings_ = value; onChanged(); return this; } /** - * - * *
                * The egress settings for the connector, controlling what traffic is diverted
                * through it.
                * 
          * - * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return The vpcConnectorEgressSettings. */ @java.lang.Override - public com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings - getVpcConnectorEgressSettings() { + public com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings result = - com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.valueOf( - vpcConnectorEgressSettings_); - return result == null - ? com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED - : result; + com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings result = com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); + return result == null ? com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED : result; } /** - * - * *
                * The egress settings for the connector, controlling what traffic is diverted
                * through it.
                * 
          * - * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @param value The vpcConnectorEgressSettings to set. * @return This builder for chaining. */ - public Builder setVpcConnectorEgressSettings( - com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings value) { + public Builder setVpcConnectorEgressSettings(com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings value) { if (value == null) { throw new NullPointerException(); } - + vpcConnectorEgressSettings_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                * The egress settings for the connector, controlling what traffic is diverted
                * through it.
                * 
          * - * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return This builder for chaining. */ public Builder clearVpcConnectorEgressSettings() { - + vpcConnectorEgressSettings_ = 0; onChanged(); return this; @@ -2866,104 +2584,78 @@ public Builder clearVpcConnectorEgressSettings() { private int ingressSettings_ = 0; /** - * - * *
                * The ingress settings for the function, controlling what traffic can reach
                * it.
                * 
          * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override - public int getIngressSettingsValue() { + @java.lang.Override public int getIngressSettingsValue() { return ingressSettings_; } /** - * - * *
                * The ingress settings for the function, controlling what traffic can reach
                * it.
                * 
          * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; * @param value The enum numeric value on the wire for ingressSettings to set. * @return This builder for chaining. */ public Builder setIngressSettingsValue(int value) { - + ingressSettings_ = value; onChanged(); return this; } /** - * - * *
                * The ingress settings for the function, controlling what traffic can reach
                * it.
                * 
          * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; * @return The ingressSettings. */ @java.lang.Override public com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings result = - com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.valueOf( - ingressSettings_); - return result == null - ? com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.UNRECOGNIZED - : result; + com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings result = com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.valueOf(ingressSettings_); + return result == null ? com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.UNRECOGNIZED : result; } /** - * - * *
                * The ingress settings for the function, controlling what traffic can reach
                * it.
                * 
          * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; * @param value The ingressSettings to set. * @return This builder for chaining. */ - public Builder setIngressSettings( - com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings value) { + public Builder setIngressSettings(com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings value) { if (value == null) { throw new NullPointerException(); } - + ingressSettings_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                * The ingress settings for the function, controlling what traffic can reach
                * it.
                * 
          * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; * @return This builder for chaining. */ public Builder clearIngressSettings() { - + ingressSettings_ = 0; onChanged(); return this; @@ -2971,20 +2663,18 @@ public Builder clearIngressSettings() { private java.lang.Object uri_ = ""; /** - * - * *
                * Output only. URI of the Service deployed.
                * 
          * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -2993,21 +2683,20 @@ public java.lang.String getUri() { } } /** - * - * *
                * Output only. URI of the Service deployed.
                * 
          * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -3015,61 +2704,54 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
                * Output only. URI of the Service deployed.
                * 
          * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
                * Output only. URI of the Service deployed.
                * 
          * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
                * Output only. URI of the Service deployed.
                * 
          * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; @@ -3077,21 +2759,19 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
                * The email of the service's service account. If empty, defaults to
                * `{project_number}-compute@developer.gserviceaccount.com`.
                * 
          * * string service_account_email = 10; - * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -3100,22 +2780,21 @@ public java.lang.String getServiceAccountEmail() { } } /** - * - * *
                * The email of the service's service account. If empty, defaults to
                * `{project_number}-compute@developer.gserviceaccount.com`.
                * 
          * * string service_account_email = 10; - * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -3123,73 +2802,64 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } } /** - * - * *
                * The email of the service's service account. If empty, defaults to
                * `{project_number}-compute@developer.gserviceaccount.com`.
                * 
          * * string service_account_email = 10; - * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail(java.lang.String value) { + public Builder setServiceAccountEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** - * - * *
                * The email of the service's service account. If empty, defaults to
                * `{project_number}-compute@developer.gserviceaccount.com`.
                * 
          * * string service_account_email = 10; - * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** - * - * *
                * The email of the service's service account. If empty, defaults to
                * `{project_number}-compute@developer.gserviceaccount.com`.
                * 
          * * string service_account_email = 10; - * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; } - private boolean allTrafficOnLatestRevision_; + private boolean allTrafficOnLatestRevision_ ; /** - * - * *
                * Whether 100% of traffic is routed to the latest revision.
                * On CreateFunction and UpdateFunction, when set to true, the revision being
          @@ -3199,7 +2869,6 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
                * 
          * * bool all_traffic_on_latest_revision = 16; - * * @return The allTrafficOnLatestRevision. */ @java.lang.Override @@ -3207,8 +2876,6 @@ public boolean getAllTrafficOnLatestRevision() { return allTrafficOnLatestRevision_; } /** - * - * *
                * Whether 100% of traffic is routed to the latest revision.
                * On CreateFunction and UpdateFunction, when set to true, the revision being
          @@ -3218,19 +2885,16 @@ public boolean getAllTrafficOnLatestRevision() {
                * 
          * * bool all_traffic_on_latest_revision = 16; - * * @param value The allTrafficOnLatestRevision to set. * @return This builder for chaining. */ public Builder setAllTrafficOnLatestRevision(boolean value) { - + allTrafficOnLatestRevision_ = value; onChanged(); return this; } /** - * - * *
                * Whether 100% of traffic is routed to the latest revision.
                * On CreateFunction and UpdateFunction, when set to true, the revision being
          @@ -3240,47 +2904,35 @@ public Builder setAllTrafficOnLatestRevision(boolean value) {
                * 
          * * bool all_traffic_on_latest_revision = 16; - * * @return This builder for chaining. */ public Builder clearAllTrafficOnLatestRevision() { - + allTrafficOnLatestRevision_ = false; onChanged(); return this; } - private java.util.List - secretEnvironmentVariables_ = java.util.Collections.emptyList(); - + private java.util.List secretEnvironmentVariables_ = + java.util.Collections.emptyList(); private void ensureSecretEnvironmentVariablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - secretEnvironmentVariables_ = - new java.util.ArrayList( - secretEnvironmentVariables_); + secretEnvironmentVariables_ = new java.util.ArrayList(secretEnvironmentVariables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretEnvVar, - com.google.cloud.functions.v2alpha.SecretEnvVar.Builder, - com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder> - secretEnvironmentVariablesBuilder_; + com.google.cloud.functions.v2alpha.SecretEnvVar, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder, com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder> secretEnvironmentVariablesBuilder_; /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ - public java.util.List - getSecretEnvironmentVariablesList() { + public java.util.List getSecretEnvironmentVariablesList() { if (secretEnvironmentVariablesBuilder_ == null) { return java.util.Collections.unmodifiableList(secretEnvironmentVariables_); } else { @@ -3288,15 +2940,11 @@ private void ensureSecretEnvironmentVariablesIsMutable() { } } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ public int getSecretEnvironmentVariablesCount() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3306,18 +2954,13 @@ public int getSecretEnvironmentVariablesCount() { } } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ - public com.google.cloud.functions.v2alpha.SecretEnvVar getSecretEnvironmentVariables( - int index) { + public com.google.cloud.functions.v2alpha.SecretEnvVar getSecretEnvironmentVariables(int index) { if (secretEnvironmentVariablesBuilder_ == null) { return secretEnvironmentVariables_.get(index); } else { @@ -3325,15 +2968,11 @@ public com.google.cloud.functions.v2alpha.SecretEnvVar getSecretEnvironmentVaria } } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v2alpha.SecretEnvVar value) { @@ -3350,15 +2989,11 @@ public Builder setSecretEnvironmentVariables( return this; } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder builderForValue) { @@ -3372,18 +3007,13 @@ public Builder setSecretEnvironmentVariables( return this; } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ - public Builder addSecretEnvironmentVariables( - com.google.cloud.functions.v2alpha.SecretEnvVar value) { + public Builder addSecretEnvironmentVariables(com.google.cloud.functions.v2alpha.SecretEnvVar value) { if (secretEnvironmentVariablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3397,15 +3027,11 @@ public Builder addSecretEnvironmentVariables( return this; } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v2alpha.SecretEnvVar value) { @@ -3422,15 +3048,11 @@ public Builder addSecretEnvironmentVariables( return this; } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ public Builder addSecretEnvironmentVariables( com.google.cloud.functions.v2alpha.SecretEnvVar.Builder builderForValue) { @@ -3444,15 +3066,11 @@ public Builder addSecretEnvironmentVariables( return this; } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder builderForValue) { @@ -3466,21 +3084,18 @@ public Builder addSecretEnvironmentVariables( return this; } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ public Builder addAllSecretEnvironmentVariables( java.lang.Iterable values) { if (secretEnvironmentVariablesBuilder_ == null) { ensureSecretEnvironmentVariablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretEnvironmentVariables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secretEnvironmentVariables_); onChanged(); } else { secretEnvironmentVariablesBuilder_.addAllMessages(values); @@ -3488,15 +3103,11 @@ public Builder addAllSecretEnvironmentVariables( return this; } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ public Builder clearSecretEnvironmentVariables() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3509,15 +3120,11 @@ public Builder clearSecretEnvironmentVariables() { return this; } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ public Builder removeSecretEnvironmentVariables(int index) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3530,52 +3137,39 @@ public Builder removeSecretEnvironmentVariables(int index) { return this; } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ - public com.google.cloud.functions.v2alpha.SecretEnvVar.Builder - getSecretEnvironmentVariablesBuilder(int index) { + public com.google.cloud.functions.v2alpha.SecretEnvVar.Builder getSecretEnvironmentVariablesBuilder( + int index) { return getSecretEnvironmentVariablesFieldBuilder().getBuilder(index); } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ - public com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder - getSecretEnvironmentVariablesOrBuilder(int index) { + public com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( + int index) { if (secretEnvironmentVariablesBuilder_ == null) { - return secretEnvironmentVariables_.get(index); - } else { + return secretEnvironmentVariables_.get(index); } else { return secretEnvironmentVariablesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ - public java.util.List - getSecretEnvironmentVariablesOrBuilderList() { + public java.util.List + getSecretEnvironmentVariablesOrBuilderList() { if (secretEnvironmentVariablesBuilder_ != null) { return secretEnvironmentVariablesBuilder_.getMessageOrBuilderList(); } else { @@ -3583,64 +3177,45 @@ public Builder removeSecretEnvironmentVariables(int index) { } } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ - public com.google.cloud.functions.v2alpha.SecretEnvVar.Builder - addSecretEnvironmentVariablesBuilder() { - return getSecretEnvironmentVariablesFieldBuilder() - .addBuilder(com.google.cloud.functions.v2alpha.SecretEnvVar.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder() { + return getSecretEnvironmentVariablesFieldBuilder().addBuilder( + com.google.cloud.functions.v2alpha.SecretEnvVar.getDefaultInstance()); } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ - public com.google.cloud.functions.v2alpha.SecretEnvVar.Builder - addSecretEnvironmentVariablesBuilder(int index) { - return getSecretEnvironmentVariablesFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2alpha.SecretEnvVar.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder( + int index) { + return getSecretEnvironmentVariablesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2alpha.SecretEnvVar.getDefaultInstance()); } /** - * - * *
                * Secret environment variables configuration.
                * 
          * - * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ - public java.util.List - getSecretEnvironmentVariablesBuilderList() { + public java.util.List + getSecretEnvironmentVariablesBuilderList() { return getSecretEnvironmentVariablesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretEnvVar, - com.google.cloud.functions.v2alpha.SecretEnvVar.Builder, - com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder> + com.google.cloud.functions.v2alpha.SecretEnvVar, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder, com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder> getSecretEnvironmentVariablesFieldBuilder() { if (secretEnvironmentVariablesBuilder_ == null) { - secretEnvironmentVariablesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretEnvVar, - com.google.cloud.functions.v2alpha.SecretEnvVar.Builder, - com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder>( + secretEnvironmentVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.SecretEnvVar, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder, com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder>( secretEnvironmentVariables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3651,26 +3226,18 @@ public Builder removeSecretEnvironmentVariables(int index) { } private java.util.List secretVolumes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSecretVolumesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - secretVolumes_ = - new java.util.ArrayList( - secretVolumes_); + secretVolumes_ = new java.util.ArrayList(secretVolumes_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretVolume, - com.google.cloud.functions.v2alpha.SecretVolume.Builder, - com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder> - secretVolumesBuilder_; + com.google.cloud.functions.v2alpha.SecretVolume, com.google.cloud.functions.v2alpha.SecretVolume.Builder, com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder> secretVolumesBuilder_; /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3685,8 +3252,6 @@ public java.util.List getSecret } } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3701,8 +3266,6 @@ public int getSecretVolumesCount() { } } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3717,8 +3280,6 @@ public com.google.cloud.functions.v2alpha.SecretVolume getSecretVolumes(int inde } } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3740,8 +3301,6 @@ public Builder setSecretVolumes( return this; } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3760,8 +3319,6 @@ public Builder setSecretVolumes( return this; } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3782,8 +3339,6 @@ public Builder addSecretVolumes(com.google.cloud.functions.v2alpha.SecretVolume return this; } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3805,8 +3360,6 @@ public Builder addSecretVolumes( return this; } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3825,8 +3378,6 @@ public Builder addSecretVolumes( return this; } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3845,8 +3396,6 @@ public Builder addSecretVolumes( return this; } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3857,7 +3406,8 @@ public Builder addAllSecretVolumes( java.lang.Iterable values) { if (secretVolumesBuilder_ == null) { ensureSecretVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretVolumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secretVolumes_); onChanged(); } else { secretVolumesBuilder_.addAllMessages(values); @@ -3865,8 +3415,6 @@ public Builder addAllSecretVolumes( return this; } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3884,8 +3432,6 @@ public Builder clearSecretVolumes() { return this; } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3903,8 +3449,6 @@ public Builder removeSecretVolumes(int index) { return this; } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3916,8 +3460,6 @@ public com.google.cloud.functions.v2alpha.SecretVolume.Builder getSecretVolumesB return getSecretVolumesFieldBuilder().getBuilder(index); } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3927,22 +3469,19 @@ public com.google.cloud.functions.v2alpha.SecretVolume.Builder getSecretVolumesB public com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder getSecretVolumesOrBuilder( int index) { if (secretVolumesBuilder_ == null) { - return secretVolumes_.get(index); - } else { + return secretVolumes_.get(index); } else { return secretVolumesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * Secret volumes configuration.
                * 
          * * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ - public java.util.List - getSecretVolumesOrBuilderList() { + public java.util.List + getSecretVolumesOrBuilderList() { if (secretVolumesBuilder_ != null) { return secretVolumesBuilder_.getMessageOrBuilderList(); } else { @@ -3950,8 +3489,6 @@ public com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder getSecretVolumes } } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3959,12 +3496,10 @@ public com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder getSecretVolumes * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ public com.google.cloud.functions.v2alpha.SecretVolume.Builder addSecretVolumesBuilder() { - return getSecretVolumesFieldBuilder() - .addBuilder(com.google.cloud.functions.v2alpha.SecretVolume.getDefaultInstance()); + return getSecretVolumesFieldBuilder().addBuilder( + com.google.cloud.functions.v2alpha.SecretVolume.getDefaultInstance()); } /** - * - * *
                * Secret volumes configuration.
                * 
          @@ -3973,34 +3508,26 @@ public com.google.cloud.functions.v2alpha.SecretVolume.Builder addSecretVolumesB */ public com.google.cloud.functions.v2alpha.SecretVolume.Builder addSecretVolumesBuilder( int index) { - return getSecretVolumesFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2alpha.SecretVolume.getDefaultInstance()); + return getSecretVolumesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2alpha.SecretVolume.getDefaultInstance()); } /** - * - * *
                * Secret volumes configuration.
                * 
          * * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ - public java.util.List - getSecretVolumesBuilderList() { + public java.util.List + getSecretVolumesBuilderList() { return getSecretVolumesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretVolume, - com.google.cloud.functions.v2alpha.SecretVolume.Builder, - com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder> + com.google.cloud.functions.v2alpha.SecretVolume, com.google.cloud.functions.v2alpha.SecretVolume.Builder, com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder> getSecretVolumesFieldBuilder() { if (secretVolumesBuilder_ == null) { - secretVolumesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretVolume, - com.google.cloud.functions.v2alpha.SecretVolume.Builder, - com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder>( + secretVolumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.SecretVolume, com.google.cloud.functions.v2alpha.SecretVolume.Builder, com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder>( secretVolumes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -4012,20 +3539,18 @@ public com.google.cloud.functions.v2alpha.SecretVolume.Builder addSecretVolumesB private java.lang.Object revision_ = ""; /** - * - * *
                * Output only. The name of service revision.
                * 
          * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revision. */ public java.lang.String getRevision() { java.lang.Object ref = revision_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; @@ -4034,21 +3559,20 @@ public java.lang.String getRevision() { } } /** - * - * *
                * Output only. The name of service revision.
                * 
          * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revision. */ - public com.google.protobuf.ByteString getRevisionBytes() { + public com.google.protobuf.ByteString + getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); revision_ = b; return b; } else { @@ -4056,68 +3580,61 @@ public com.google.protobuf.ByteString getRevisionBytes() { } } /** - * - * *
                * Output only. The name of service revision.
                * 
          * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The revision to set. * @return This builder for chaining. */ - public Builder setRevision(java.lang.String value) { + public Builder setRevision( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + revision_ = value; onChanged(); return this; } /** - * - * *
                * Output only. The name of service revision.
                * 
          * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRevision() { - + revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** - * - * *
                * Output only. The name of service revision.
                * 
          * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for revision to set. * @return This builder for chaining. */ - public Builder setRevisionBytes(com.google.protobuf.ByteString value) { + public Builder setRevisionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revision_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4127,12 +3644,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.ServiceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.ServiceConfig) private static final com.google.cloud.functions.v2alpha.ServiceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.ServiceConfig(); } @@ -4141,16 +3658,16 @@ public static com.google.cloud.functions.v2alpha.ServiceConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServiceConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServiceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4165,4 +3682,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.ServiceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java similarity index 78% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java index 4d576c0e..b1cb8908 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java @@ -1,64 +1,37 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface ServiceConfigOrBuilder - extends +public interface ServiceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.ServiceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The service. */ java.lang.String getService(); /** - * - * *
              * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for service. */ - com.google.protobuf.ByteString getServiceBytes(); + com.google.protobuf.ByteString + getServiceBytes(); /** - * - * *
              * The function execution timeout. Execution is considered failed and
              * can be terminated if the function is not completed at the end of the
          @@ -66,14 +39,11 @@ public interface ServiceConfigOrBuilder
              * 
          * * int32 timeout_seconds = 2; - * * @return The timeoutSeconds. */ int getTimeoutSeconds(); /** - * - * *
              * The amount of memory available for a function.
              * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
          @@ -84,13 +54,10 @@ public interface ServiceConfigOrBuilder
              * 
          * * string available_memory = 13; - * * @return The availableMemory. */ java.lang.String getAvailableMemory(); /** - * - * *
              * The amount of memory available for a function.
              * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
          @@ -101,14 +68,12 @@ public interface ServiceConfigOrBuilder
              * 
          * * string available_memory = 13; - * * @return The bytes for availableMemory. */ - com.google.protobuf.ByteString getAvailableMemoryBytes(); + com.google.protobuf.ByteString + getAvailableMemoryBytes(); /** - * - * *
              * Environment variables that shall be available during function execution.
              * 
          @@ -117,31 +82,30 @@ public interface ServiceConfigOrBuilder */ int getEnvironmentVariablesCount(); /** - * - * *
              * Environment variables that shall be available during function execution.
              * 
          * * map<string, string> environment_variables = 4; */ - boolean containsEnvironmentVariables(java.lang.String key); - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + boolean containsEnvironmentVariables( + java.lang.String key); + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getEnvironmentVariables(); + java.util.Map + getEnvironmentVariables(); /** - * - * *
              * Environment variables that shall be available during function execution.
              * 
          * * map<string, string> environment_variables = 4; */ - java.util.Map getEnvironmentVariablesMap(); + java.util.Map + getEnvironmentVariablesMap(); /** - * - * *
              * Environment variables that shall be available during function execution.
              * 
          @@ -150,24 +114,22 @@ public interface ServiceConfigOrBuilder */ /* nullable */ - java.lang.String getEnvironmentVariablesOrDefault( +java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
              * Environment variables that shall be available during function execution.
              * 
          * * map<string, string> environment_variables = 4; */ - java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key); + + java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key); /** - * - * *
              * The limit on the maximum number of function instances that may coexist at a
              * given time.
          @@ -182,14 +144,11 @@ java.lang.String getEnvironmentVariablesOrDefault(
              * 
          * * int32 max_instance_count = 5; - * * @return The maxInstanceCount. */ int getMaxInstanceCount(); /** - * - * *
              * The limit on the minimum number of function instances that may coexist at a
              * given time.
          @@ -202,154 +161,117 @@ java.lang.String getEnvironmentVariablesOrDefault(
              * 
          * * int32 min_instance_count = 12; - * * @return The minInstanceCount. */ int getMinInstanceCount(); /** - * - * *
              * 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) = { ... } - * * @return The vpcConnector. */ java.lang.String getVpcConnector(); /** - * - * *
              * 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) = { ... } - * * @return The bytes for vpcConnector. */ - com.google.protobuf.ByteString getVpcConnectorBytes(); + com.google.protobuf.ByteString + getVpcConnectorBytes(); /** - * - * *
              * The egress settings for the connector, controlling what traffic is diverted
              * through it.
              * 
          * - * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ int getVpcConnectorEgressSettingsValue(); /** - * - * *
              * The egress settings for the connector, controlling what traffic is diverted
              * through it.
              * 
          * - * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return The vpcConnectorEgressSettings. */ - com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings - getVpcConnectorEgressSettings(); + com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings(); /** - * - * *
              * The ingress settings for the function, controlling what traffic can reach
              * it.
              * 
          * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; * @return The enum numeric value on the wire for ingressSettings. */ int getIngressSettingsValue(); /** - * - * *
              * The ingress settings for the function, controlling what traffic can reach
              * it.
              * 
          * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; * @return The ingressSettings. */ com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings getIngressSettings(); /** - * - * *
              * Output only. URI of the Service deployed.
              * 
          * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
              * Output only. URI of the Service deployed.
              * 
          * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
              * The email of the service's service account. If empty, defaults to
              * `{project_number}-compute@developer.gserviceaccount.com`.
              * 
          * * string service_account_email = 10; - * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** - * - * *
              * The email of the service's service account. If empty, defaults to
              * `{project_number}-compute@developer.gserviceaccount.com`.
              * 
          * * string service_account_email = 10; - * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getServiceAccountEmailBytes(); /** - * - * *
              * Whether 100% of traffic is routed to the latest revision.
              * On CreateFunction and UpdateFunction, when set to true, the revision being
          @@ -359,83 +281,64 @@ java.lang.String getEnvironmentVariablesOrDefault(
              * 
          * * bool all_traffic_on_latest_revision = 16; - * * @return The allTrafficOnLatestRevision. */ boolean getAllTrafficOnLatestRevision(); /** - * - * *
              * Secret environment variables configuration.
              * 
          * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ - java.util.List + java.util.List getSecretEnvironmentVariablesList(); /** - * - * *
              * Secret environment variables configuration.
              * 
          * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ com.google.cloud.functions.v2alpha.SecretEnvVar getSecretEnvironmentVariables(int index); /** - * - * *
              * Secret environment variables configuration.
              * 
          * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ int getSecretEnvironmentVariablesCount(); /** - * - * *
              * Secret environment variables configuration.
              * 
          * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ - java.util.List + java.util.List getSecretEnvironmentVariablesOrBuilderList(); /** - * - * *
              * Secret environment variables configuration.
              * 
          * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; */ com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( int index); /** - * - * *
              * Secret volumes configuration.
              * 
          * * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ - java.util.List getSecretVolumesList(); + java.util.List + getSecretVolumesList(); /** - * - * *
              * Secret volumes configuration.
              * 
          @@ -444,8 +347,6 @@ com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder getSecretEnvironmentVar */ com.google.cloud.functions.v2alpha.SecretVolume getSecretVolumes(int index); /** - * - * *
              * Secret volumes configuration.
              * 
          @@ -454,49 +355,41 @@ com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder getSecretEnvironmentVar */ int getSecretVolumesCount(); /** - * - * *
              * Secret volumes configuration.
              * 
          * * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ - java.util.List + java.util.List getSecretVolumesOrBuilderList(); /** - * - * *
              * Secret volumes configuration.
              * 
          * * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ - com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index); + com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder getSecretVolumesOrBuilder( + int index); /** - * - * *
              * Output only. The name of service revision.
              * 
          * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revision. */ java.lang.String getRevision(); /** - * - * *
              * Output only. The name of service revision.
              * 
          * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revision. */ - com.google.protobuf.ByteString getRevisionBytes(); + com.google.protobuf.ByteString + getRevisionBytes(); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java similarity index 71% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java index 9c1953aa..ee3b2849 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java @@ -1,55 +1,39 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * The location of the function source code.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.Source} */ -public final class Source extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Source extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.Source) SourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Source.newBuilder() to construct. private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Source() {} + private Source() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Source(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Source( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,46 +52,41 @@ private Source( case 0: done = true; break; - case 10: - { - com.google.cloud.functions.v2alpha.StorageSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = - ((com.google.cloud.functions.v2alpha.StorageSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.functions.v2alpha.StorageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.functions.v2alpha.StorageSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.functions.v2alpha.StorageSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.functions.v2alpha.StorageSource) source_).toBuilder(); } - case 18: - { - com.google.cloud.functions.v2alpha.RepoSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.functions.v2alpha.RepoSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.functions.v2alpha.RepoSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.functions.v2alpha.RepoSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 2; - break; + source_ = + input.readMessage(com.google.cloud.functions.v2alpha.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.functions.v2alpha.StorageSource) source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sourceCase_ = 1; + break; + } + case 18: { + com.google.cloud.functions.v2alpha.RepoSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.functions.v2alpha.RepoSource) source_).toBuilder(); + } + source_ = + input.readMessage(com.google.cloud.functions.v2alpha.RepoSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.functions.v2alpha.RepoSource) source_); + source_ = subBuilder.buildPartial(); } + sourceCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,40 +94,35 @@ private Source( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_Source_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.Source.class, - com.google.cloud.functions.v2alpha.Source.Builder.class); + com.google.cloud.functions.v2alpha.Source.class, com.google.cloud.functions.v2alpha.Source.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STORAGE_SOURCE(1), REPO_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -164,36 +138,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return STORAGE_SOURCE; - case 2: - return REPO_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return STORAGE_SOURCE; + case 2: return REPO_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int STORAGE_SOURCE_FIELD_NUMBER = 1; /** - * - * *
              * If provided, get the source from this location in Google Cloud Storage.
              * 
          * * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; - * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -201,26 +169,21 @@ public boolean hasStorageSource() { return sourceCase_ == 1; } /** - * - * *
              * If provided, get the source from this location in Google Cloud Storage.
              * 
          * * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; - * * @return The storageSource. */ @java.lang.Override public com.google.cloud.functions.v2alpha.StorageSource getStorageSource() { if (sourceCase_ == 1) { - return (com.google.cloud.functions.v2alpha.StorageSource) source_; + return (com.google.cloud.functions.v2alpha.StorageSource) source_; } return com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance(); } /** - * - * *
              * If provided, get the source from this location in Google Cloud Storage.
              * 
          @@ -230,22 +193,19 @@ public com.google.cloud.functions.v2alpha.StorageSource getStorageSource() { @java.lang.Override public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourceOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.functions.v2alpha.StorageSource) source_; + return (com.google.cloud.functions.v2alpha.StorageSource) source_; } return com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance(); } public static final int REPO_SOURCE_FIELD_NUMBER = 2; /** - * - * *
              * If provided, get the source from this location in a Cloud Source
              * Repository.
              * 
          * * .google.cloud.functions.v2alpha.RepoSource repo_source = 2; - * * @return Whether the repoSource field is set. */ @java.lang.Override @@ -253,27 +213,22 @@ public boolean hasRepoSource() { return sourceCase_ == 2; } /** - * - * *
              * If provided, get the source from this location in a Cloud Source
              * Repository.
              * 
          * * .google.cloud.functions.v2alpha.RepoSource repo_source = 2; - * * @return The repoSource. */ @java.lang.Override public com.google.cloud.functions.v2alpha.RepoSource getRepoSource() { if (sourceCase_ == 2) { - return (com.google.cloud.functions.v2alpha.RepoSource) source_; + return (com.google.cloud.functions.v2alpha.RepoSource) source_; } return com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance(); } /** - * - * *
              * If provided, get the source from this location in a Cloud Source
              * Repository.
          @@ -284,13 +239,12 @@ public com.google.cloud.functions.v2alpha.RepoSource getRepoSource() {
             @java.lang.Override
             public com.google.cloud.functions.v2alpha.RepoSourceOrBuilder getRepoSourceOrBuilder() {
               if (sourceCase_ == 2) {
          -      return (com.google.cloud.functions.v2alpha.RepoSource) source_;
          +       return (com.google.cloud.functions.v2alpha.RepoSource) source_;
               }
               return com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance();
             }
           
             private byte memoizedIsInitialized = -1;
          -
             @java.lang.Override
             public final boolean isInitialized() {
               byte isInitialized = memoizedIsInitialized;
          @@ -302,7 +256,8 @@ public final boolean isInitialized() {
             }
           
             @java.lang.Override
          -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
          +  public void writeTo(com.google.protobuf.CodedOutputStream output)
          +                      throws java.io.IOException {
               if (sourceCase_ == 1) {
                 output.writeMessage(1, (com.google.cloud.functions.v2alpha.StorageSource) source_);
               }
          @@ -319,14 +274,12 @@ public int getSerializedSize() {
           
               size = 0;
               if (sourceCase_ == 1) {
          -      size +=
          -          com.google.protobuf.CodedOutputStream.computeMessageSize(
          -              1, (com.google.cloud.functions.v2alpha.StorageSource) source_);
          +      size += com.google.protobuf.CodedOutputStream
          +        .computeMessageSize(1, (com.google.cloud.functions.v2alpha.StorageSource) source_);
               }
               if (sourceCase_ == 2) {
          -      size +=
          -          com.google.protobuf.CodedOutputStream.computeMessageSize(
          -              2, (com.google.cloud.functions.v2alpha.RepoSource) source_);
          +      size += com.google.protobuf.CodedOutputStream
          +        .computeMessageSize(2, (com.google.cloud.functions.v2alpha.RepoSource) source_);
               }
               size += unknownFields.getSerializedSize();
               memoizedSize = size;
          @@ -336,21 +289,22 @@ public int getSerializedSize() {
             @java.lang.Override
             public boolean equals(final java.lang.Object obj) {
               if (obj == this) {
          -      return true;
          +     return true;
               }
               if (!(obj instanceof com.google.cloud.functions.v2alpha.Source)) {
                 return super.equals(obj);
               }
          -    com.google.cloud.functions.v2alpha.Source other =
          -        (com.google.cloud.functions.v2alpha.Source) obj;
          +    com.google.cloud.functions.v2alpha.Source other = (com.google.cloud.functions.v2alpha.Source) obj;
           
               if (!getSourceCase().equals(other.getSourceCase())) return false;
               switch (sourceCase_) {
                 case 1:
          -        if (!getStorageSource().equals(other.getStorageSource())) return false;
          +        if (!getStorageSource()
          +            .equals(other.getStorageSource())) return false;
                   break;
                 case 2:
          -        if (!getRepoSource().equals(other.getRepoSource())) return false;
          +        if (!getRepoSource()
          +            .equals(other.getRepoSource())) return false;
                   break;
                 case 0:
                 default:
          @@ -383,127 +337,118 @@ public int hashCode() {
               return hash;
             }
           
          -  public static com.google.cloud.functions.v2alpha.Source parseFrom(java.nio.ByteBuffer data)
          +  public static com.google.cloud.functions.v2alpha.Source parseFrom(
          +      java.nio.ByteBuffer data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.Source parseFrom(
          -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      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.v2alpha.Source parseFrom(
                 com.google.protobuf.ByteString data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.Source 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.v2alpha.Source parseFrom(byte[] data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.Source parseFrom(
          -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      byte[] data,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          -
             public static com.google.cloud.functions.v2alpha.Source parseFrom(java.io.InputStream input)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.Source parseFrom(
          -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input, extensionRegistry);
             }
          -
          -  public static com.google.cloud.functions.v2alpha.Source parseDelimitedFrom(
          -      java.io.InputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
          +  public static com.google.cloud.functions.v2alpha.Source parseDelimitedFrom(java.io.InputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseDelimitedWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.Source parseDelimitedFrom(
          -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
             }
          -
             public static com.google.cloud.functions.v2alpha.Source parseFrom(
          -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +      com.google.protobuf.CodedInputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.Source parseFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input, extensionRegistry);
             }
           
             @java.lang.Override
          -  public Builder newBuilderForType() {
          -    return newBuilder();
          -  }
          -
          +  public Builder newBuilderForType() { return newBuilder(); }
             public static Builder newBuilder() {
               return DEFAULT_INSTANCE.toBuilder();
             }
          -
             public static Builder newBuilder(com.google.cloud.functions.v2alpha.Source prototype) {
               return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
             }
          -
             @java.lang.Override
             public Builder toBuilder() {
          -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
          +    return this == DEFAULT_INSTANCE
          +        ? new Builder() : new Builder().mergeFrom(this);
             }
           
             @java.lang.Override
          -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +  protected Builder newBuilderForType(
          +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
               Builder builder = new Builder(parent);
               return builder;
             }
             /**
          -   *
          -   *
              * 
              * The location of the function source code.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.Source} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.Source) com.google.cloud.functions.v2alpha.SourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_Source_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.Source.class, - com.google.cloud.functions.v2alpha.Source.Builder.class); + com.google.cloud.functions.v2alpha.Source.class, com.google.cloud.functions.v2alpha.Source.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.Source.newBuilder() @@ -511,15 +456,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -529,9 +475,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_Source_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Source_descriptor; } @java.lang.Override @@ -550,8 +496,7 @@ public com.google.cloud.functions.v2alpha.Source build() { @java.lang.Override public com.google.cloud.functions.v2alpha.Source buildPartial() { - com.google.cloud.functions.v2alpha.Source result = - new com.google.cloud.functions.v2alpha.Source(this); + com.google.cloud.functions.v2alpha.Source result = new com.google.cloud.functions.v2alpha.Source(this); if (sourceCase_ == 1) { if (storageSourceBuilder_ == null) { result.source_ = source_; @@ -575,39 +520,38 @@ public com.google.cloud.functions.v2alpha.Source buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.Source) other); + return mergeFrom((com.google.cloud.functions.v2alpha.Source)other); } else { super.mergeFrom(other); return this; @@ -617,20 +561,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.functions.v2alpha.Source other) { if (other == com.google.cloud.functions.v2alpha.Source.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case STORAGE_SOURCE: - { - mergeStorageSource(other.getStorageSource()); - break; - } - case REPO_SOURCE: - { - mergeRepoSource(other.getRepoSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case STORAGE_SOURCE: { + mergeStorageSource(other.getStorageSource()); + break; + } + case REPO_SOURCE: { + mergeRepoSource(other.getRepoSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -660,12 +601,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -675,20 +616,15 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.StorageSource, - com.google.cloud.functions.v2alpha.StorageSource.Builder, - com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> - storageSourceBuilder_; + com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> storageSourceBuilder_; /** - * - * *
                * If provided, get the source from this location in Google Cloud Storage.
                * 
          * * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; - * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -696,14 +632,11 @@ public boolean hasStorageSource() { return sourceCase_ == 1; } /** - * - * *
                * If provided, get the source from this location in Google Cloud Storage.
                * 
          * * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; - * * @return The storageSource. */ @java.lang.Override @@ -721,8 +654,6 @@ public com.google.cloud.functions.v2alpha.StorageSource getStorageSource() { } } /** - * - * *
                * If provided, get the source from this location in Google Cloud Storage.
                * 
          @@ -743,8 +674,6 @@ public Builder setStorageSource(com.google.cloud.functions.v2alpha.StorageSource return this; } /** - * - * *
                * If provided, get the source from this location in Google Cloud Storage.
                * 
          @@ -763,8 +692,6 @@ public Builder setStorageSource( return this; } /** - * - * *
                * If provided, get the source from this location in Google Cloud Storage.
                * 
          @@ -773,13 +700,10 @@ public Builder setStorageSource( */ public Builder mergeStorageSource(com.google.cloud.functions.v2alpha.StorageSource value) { if (storageSourceBuilder_ == null) { - if (sourceCase_ == 1 - && source_ != com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance()) { - source_ = - com.google.cloud.functions.v2alpha.StorageSource.newBuilder( - (com.google.cloud.functions.v2alpha.StorageSource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 1 && + source_ != com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance()) { + source_ = com.google.cloud.functions.v2alpha.StorageSource.newBuilder((com.google.cloud.functions.v2alpha.StorageSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -795,8 +719,6 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2alpha.StorageSour return this; } /** - * - * *
                * If provided, get the source from this location in Google Cloud Storage.
                * 
          @@ -820,8 +742,6 @@ public Builder clearStorageSource() { return this; } /** - * - * *
                * If provided, get the source from this location in Google Cloud Storage.
                * 
          @@ -832,8 +752,6 @@ public com.google.cloud.functions.v2alpha.StorageSource.Builder getStorageSource return getStorageSourceFieldBuilder().getBuilder(); } /** - * - * *
                * If provided, get the source from this location in Google Cloud Storage.
                * 
          @@ -852,8 +770,6 @@ public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourc } } /** - * - * *
                * If provided, get the source from this location in Google Cloud Storage.
                * 
          @@ -861,45 +777,33 @@ public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourc * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.StorageSource, - com.google.cloud.functions.v2alpha.StorageSource.Builder, - com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> + com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> getStorageSourceFieldBuilder() { if (storageSourceBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance(); } - storageSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.StorageSource, - com.google.cloud.functions.v2alpha.StorageSource.Builder, - com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>( + storageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>( (com.google.cloud.functions.v2alpha.StorageSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 1; - onChanged(); - ; + onChanged();; return storageSourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.RepoSource, - com.google.cloud.functions.v2alpha.RepoSource.Builder, - com.google.cloud.functions.v2alpha.RepoSourceOrBuilder> - repoSourceBuilder_; + com.google.cloud.functions.v2alpha.RepoSource, com.google.cloud.functions.v2alpha.RepoSource.Builder, com.google.cloud.functions.v2alpha.RepoSourceOrBuilder> repoSourceBuilder_; /** - * - * *
                * If provided, get the source from this location in a Cloud Source
                * Repository.
                * 
          * * .google.cloud.functions.v2alpha.RepoSource repo_source = 2; - * * @return Whether the repoSource field is set. */ @java.lang.Override @@ -907,15 +811,12 @@ public boolean hasRepoSource() { return sourceCase_ == 2; } /** - * - * *
                * If provided, get the source from this location in a Cloud Source
                * Repository.
                * 
          * * .google.cloud.functions.v2alpha.RepoSource repo_source = 2; - * * @return The repoSource. */ @java.lang.Override @@ -933,8 +834,6 @@ public com.google.cloud.functions.v2alpha.RepoSource getRepoSource() { } } /** - * - * *
                * If provided, get the source from this location in a Cloud Source
                * Repository.
          @@ -956,8 +855,6 @@ public Builder setRepoSource(com.google.cloud.functions.v2alpha.RepoSource value
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * If provided, get the source from this location in a Cloud Source
                * Repository.
          @@ -977,8 +874,6 @@ public Builder setRepoSource(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * If provided, get the source from this location in a Cloud Source
                * Repository.
          @@ -988,13 +883,10 @@ public Builder setRepoSource(
                */
               public Builder mergeRepoSource(com.google.cloud.functions.v2alpha.RepoSource value) {
                 if (repoSourceBuilder_ == null) {
          -        if (sourceCase_ == 2
          -            && source_ != com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance()) {
          -          source_ =
          -              com.google.cloud.functions.v2alpha.RepoSource.newBuilder(
          -                      (com.google.cloud.functions.v2alpha.RepoSource) source_)
          -                  .mergeFrom(value)
          -                  .buildPartial();
          +        if (sourceCase_ == 2 &&
          +            source_ != com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance()) {
          +          source_ = com.google.cloud.functions.v2alpha.RepoSource.newBuilder((com.google.cloud.functions.v2alpha.RepoSource) source_)
          +              .mergeFrom(value).buildPartial();
                   } else {
                     source_ = value;
                   }
          @@ -1010,8 +902,6 @@ public Builder mergeRepoSource(com.google.cloud.functions.v2alpha.RepoSource val
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * If provided, get the source from this location in a Cloud Source
                * Repository.
          @@ -1036,8 +926,6 @@ public Builder clearRepoSource() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * If provided, get the source from this location in a Cloud Source
                * Repository.
          @@ -1049,8 +937,6 @@ public com.google.cloud.functions.v2alpha.RepoSource.Builder getRepoSourceBuilde
                 return getRepoSourceFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * If provided, get the source from this location in a Cloud Source
                * Repository.
          @@ -1070,8 +956,6 @@ public com.google.cloud.functions.v2alpha.RepoSourceOrBuilder getRepoSourceOrBui
                 }
               }
               /**
          -     *
          -     *
                * 
                * If provided, get the source from this location in a Cloud Source
                * Repository.
          @@ -1080,32 +964,26 @@ public com.google.cloud.functions.v2alpha.RepoSourceOrBuilder getRepoSourceOrBui
                * .google.cloud.functions.v2alpha.RepoSource repo_source = 2;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.cloud.functions.v2alpha.RepoSource,
          -            com.google.cloud.functions.v2alpha.RepoSource.Builder,
          -            com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>
          +        com.google.cloud.functions.v2alpha.RepoSource, com.google.cloud.functions.v2alpha.RepoSource.Builder, com.google.cloud.functions.v2alpha.RepoSourceOrBuilder> 
                   getRepoSourceFieldBuilder() {
                 if (repoSourceBuilder_ == null) {
                   if (!(sourceCase_ == 2)) {
                     source_ = com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance();
                   }
          -        repoSourceBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.cloud.functions.v2alpha.RepoSource,
          -                com.google.cloud.functions.v2alpha.RepoSource.Builder,
          -                com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>(
          +        repoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.cloud.functions.v2alpha.RepoSource, com.google.cloud.functions.v2alpha.RepoSource.Builder, com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>(
                           (com.google.cloud.functions.v2alpha.RepoSource) source_,
                           getParentForChildren(),
                           isClean());
                   source_ = null;
                 }
                 sourceCase_ = 2;
          -      onChanged();
          -      ;
          +      onChanged();;
                 return repoSourceBuilder_;
               }
          -
               @java.lang.Override
          -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
          +    public final Builder setUnknownFields(
          +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                 return super.setUnknownFields(unknownFields);
               }
           
          @@ -1115,12 +993,12 @@ public final Builder mergeUnknownFields(
                 return super.mergeUnknownFields(unknownFields);
               }
           
          +
               // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.Source)
             }
           
             // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.Source)
             private static final com.google.cloud.functions.v2alpha.Source DEFAULT_INSTANCE;
          -
             static {
               DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.Source();
             }
          @@ -1129,16 +1007,16 @@ public static com.google.cloud.functions.v2alpha.Source getDefaultInstance() {
               return DEFAULT_INSTANCE;
             }
           
          -  private static final com.google.protobuf.Parser PARSER =
          -      new com.google.protobuf.AbstractParser() {
          -        @java.lang.Override
          -        public Source parsePartialFrom(
          -            com.google.protobuf.CodedInputStream input,
          -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -            throws com.google.protobuf.InvalidProtocolBufferException {
          -          return new Source(input, extensionRegistry);
          -        }
          -      };
          +  private static final com.google.protobuf.Parser
          +      PARSER = new com.google.protobuf.AbstractParser() {
          +    @java.lang.Override
          +    public Source parsePartialFrom(
          +        com.google.protobuf.CodedInputStream input,
          +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        throws com.google.protobuf.InvalidProtocolBufferException {
          +      return new Source(input, extensionRegistry);
          +    }
          +  };
           
             public static com.google.protobuf.Parser parser() {
               return PARSER;
          @@ -1153,4 +1031,6 @@ public com.google.protobuf.Parser getParserForType() {
             public com.google.cloud.functions.v2alpha.Source getDefaultInstanceForType() {
               return DEFAULT_INSTANCE;
             }
          +
           }
          +
          diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java
          similarity index 74%
          rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java
          rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java
          index 0c2ca814..603ecc90 100644
          --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java
          +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java
          @@ -1,55 +1,31 @@
          -/*
          - * 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/v2alpha/functions.proto
           
           package com.google.cloud.functions.v2alpha;
           
          -public interface SourceOrBuilder
          -    extends
          +public interface SourceOrBuilder extends
               // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.Source)
               com.google.protobuf.MessageOrBuilder {
           
             /**
          -   *
          -   *
              * 
              * If provided, get the source from this location in Google Cloud Storage.
              * 
          * * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; - * * @return Whether the storageSource field is set. */ boolean hasStorageSource(); /** - * - * *
              * If provided, get the source from this location in Google Cloud Storage.
              * 
          * * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; - * * @return The storageSource. */ com.google.cloud.functions.v2alpha.StorageSource getStorageSource(); /** - * - * *
              * If provided, get the source from this location in Google Cloud Storage.
              * 
          @@ -59,34 +35,26 @@ public interface SourceOrBuilder com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourceOrBuilder(); /** - * - * *
              * If provided, get the source from this location in a Cloud Source
              * Repository.
              * 
          * * .google.cloud.functions.v2alpha.RepoSource repo_source = 2; - * * @return Whether the repoSource field is set. */ boolean hasRepoSource(); /** - * - * *
              * If provided, get the source from this location in a Cloud Source
              * Repository.
              * 
          * * .google.cloud.functions.v2alpha.RepoSource repo_source = 2; - * * @return The repoSource. */ com.google.cloud.functions.v2alpha.RepoSource getRepoSource(); /** - * - * *
              * If provided, get the source from this location in a Cloud Source
              * Repository.
          diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java
          similarity index 70%
          rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java
          rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java
          index 8fba4335..1352ecda 100644
          --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java
          +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java
          @@ -1,26 +1,9 @@
          -/*
          - * 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/v2alpha/functions.proto
           
           package com.google.cloud.functions.v2alpha;
           
           /**
          - *
          - *
            * 
            * Provenance of the source. Ways to find the original source, or verify that
            * some source was used for this build.
          @@ -28,29 +11,30 @@
            *
            * Protobuf type {@code google.cloud.functions.v2alpha.SourceProvenance}
            */
          -public final class SourceProvenance extends com.google.protobuf.GeneratedMessageV3
          -    implements
          +public final class SourceProvenance extends
          +    com.google.protobuf.GeneratedMessageV3 implements
               // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.SourceProvenance)
               SourceProvenanceOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +private static final long serialVersionUID = 0L;
             // Use SourceProvenance.newBuilder() to construct.
             private SourceProvenance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -
          -  private SourceProvenance() {}
          +  private SourceProvenance() {
          +  }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(
          +      UnusedPrivateParameter unused) {
               return new SourceProvenance();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet
          +  getUnknownFields() {
               return this.unknownFields;
             }
          -
             private SourceProvenance(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -69,45 +53,39 @@ private SourceProvenance(
                     case 0:
                       done = true;
                       break;
          -          case 10:
          -            {
          -              com.google.cloud.functions.v2alpha.StorageSource.Builder subBuilder = null;
          -              if (resolvedStorageSource_ != null) {
          -                subBuilder = resolvedStorageSource_.toBuilder();
          -              }
          -              resolvedStorageSource_ =
          -                  input.readMessage(
          -                      com.google.cloud.functions.v2alpha.StorageSource.parser(), extensionRegistry);
          -              if (subBuilder != null) {
          -                subBuilder.mergeFrom(resolvedStorageSource_);
          -                resolvedStorageSource_ = subBuilder.buildPartial();
          -              }
          -
          -              break;
          +          case 10: {
          +            com.google.cloud.functions.v2alpha.StorageSource.Builder subBuilder = null;
          +            if (resolvedStorageSource_ != null) {
          +              subBuilder = resolvedStorageSource_.toBuilder();
          +            }
          +            resolvedStorageSource_ = input.readMessage(com.google.cloud.functions.v2alpha.StorageSource.parser(), extensionRegistry);
          +            if (subBuilder != null) {
          +              subBuilder.mergeFrom(resolvedStorageSource_);
          +              resolvedStorageSource_ = subBuilder.buildPartial();
                       }
          -          case 18:
          -            {
          -              com.google.cloud.functions.v2alpha.RepoSource.Builder subBuilder = null;
          -              if (resolvedRepoSource_ != null) {
          -                subBuilder = resolvedRepoSource_.toBuilder();
          -              }
          -              resolvedRepoSource_ =
          -                  input.readMessage(
          -                      com.google.cloud.functions.v2alpha.RepoSource.parser(), extensionRegistry);
          -              if (subBuilder != null) {
          -                subBuilder.mergeFrom(resolvedRepoSource_);
          -                resolvedRepoSource_ = subBuilder.buildPartial();
          -              }
           
          -              break;
          +            break;
          +          }
          +          case 18: {
          +            com.google.cloud.functions.v2alpha.RepoSource.Builder subBuilder = null;
          +            if (resolvedRepoSource_ != null) {
          +              subBuilder = resolvedRepoSource_.toBuilder();
                       }
          -          default:
          -            {
          -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          -                done = true;
          -              }
          -              break;
          +            resolvedRepoSource_ = input.readMessage(com.google.cloud.functions.v2alpha.RepoSource.parser(), extensionRegistry);
          +            if (subBuilder != null) {
          +              subBuilder.mergeFrom(resolvedRepoSource_);
          +              resolvedRepoSource_ = subBuilder.buildPartial();
                       }
          +
          +            break;
          +          }
          +          default: {
          +            if (!parseUnknownField(
          +                input, unknownFields, extensionRegistry, tag)) {
          +              done = true;
          +            }
          +            break;
          +          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -115,40 +93,35 @@ private SourceProvenance(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(
          +          e).setUnfinishedMessage(this);
               } finally {
                 this.unknownFields = unknownFields.build();
                 makeExtensionsImmutable();
               }
             }
          -
          -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor;
          +  public static final com.google.protobuf.Descriptors.Descriptor
          +      getDescriptor() {
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.functions.v2alpha.FunctionsProto
          -        .internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable
          +    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.functions.v2alpha.SourceProvenance.class,
          -            com.google.cloud.functions.v2alpha.SourceProvenance.Builder.class);
          +            com.google.cloud.functions.v2alpha.SourceProvenance.class, com.google.cloud.functions.v2alpha.SourceProvenance.Builder.class);
             }
           
             public static final int RESOLVED_STORAGE_SOURCE_FIELD_NUMBER = 1;
             private com.google.cloud.functions.v2alpha.StorageSource resolvedStorageSource_;
             /**
          -   *
          -   *
              * 
              * A copy of the build's `source.storage_source`, if exists, with any
              * generations resolved.
              * 
          * * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1; - * * @return Whether the resolvedStorageSource field is set. */ @java.lang.Override @@ -156,26 +129,19 @@ public boolean hasResolvedStorageSource() { return resolvedStorageSource_ != null; } /** - * - * *
              * A copy of the build's `source.storage_source`, if exists, with any
              * generations resolved.
              * 
          * * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1; - * * @return The resolvedStorageSource. */ @java.lang.Override public com.google.cloud.functions.v2alpha.StorageSource getResolvedStorageSource() { - return resolvedStorageSource_ == null - ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() - : resolvedStorageSource_; + return resolvedStorageSource_ == null ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() : resolvedStorageSource_; } /** - * - * *
              * A copy of the build's `source.storage_source`, if exists, with any
              * generations resolved.
          @@ -184,23 +150,19 @@ public com.google.cloud.functions.v2alpha.StorageSource getResolvedStorageSource
              * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1;
              */
             @java.lang.Override
          -  public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder
          -      getResolvedStorageSourceOrBuilder() {
          +  public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder() {
               return getResolvedStorageSource();
             }
           
             public static final int RESOLVED_REPO_SOURCE_FIELD_NUMBER = 2;
             private com.google.cloud.functions.v2alpha.RepoSource resolvedRepoSource_;
             /**
          -   *
          -   *
              * 
              * A copy of the build's `source.repo_source`, if exists, with any
              * revisions resolved.
              * 
          * * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2; - * * @return Whether the resolvedRepoSource field is set. */ @java.lang.Override @@ -208,26 +170,19 @@ public boolean hasResolvedRepoSource() { return resolvedRepoSource_ != null; } /** - * - * *
              * A copy of the build's `source.repo_source`, if exists, with any
              * revisions resolved.
              * 
          * * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2; - * * @return The resolvedRepoSource. */ @java.lang.Override public com.google.cloud.functions.v2alpha.RepoSource getResolvedRepoSource() { - return resolvedRepoSource_ == null - ? com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance() - : resolvedRepoSource_; + return resolvedRepoSource_ == null ? com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance() : resolvedRepoSource_; } /** - * - * *
              * A copy of the build's `source.repo_source`, if exists, with any
              * revisions resolved.
          @@ -241,7 +196,6 @@ public com.google.cloud.functions.v2alpha.RepoSourceOrBuilder getResolvedRepoSou
             }
           
             private byte memoizedIsInitialized = -1;
          -
             @java.lang.Override
             public final boolean isInitialized() {
               byte isInitialized = memoizedIsInitialized;
          @@ -253,7 +207,8 @@ public final boolean isInitialized() {
             }
           
             @java.lang.Override
          -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
          +  public void writeTo(com.google.protobuf.CodedOutputStream output)
          +                      throws java.io.IOException {
               if (resolvedStorageSource_ != null) {
                 output.writeMessage(1, getResolvedStorageSource());
               }
          @@ -270,11 +225,12 @@ public int getSerializedSize() {
           
               size = 0;
               if (resolvedStorageSource_ != null) {
          -      size +=
          -          com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResolvedStorageSource());
          +      size += com.google.protobuf.CodedOutputStream
          +        .computeMessageSize(1, getResolvedStorageSource());
               }
               if (resolvedRepoSource_ != null) {
          -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResolvedRepoSource());
          +      size += com.google.protobuf.CodedOutputStream
          +        .computeMessageSize(2, getResolvedRepoSource());
               }
               size += unknownFields.getSerializedSize();
               memoizedSize = size;
          @@ -284,21 +240,22 @@ public int getSerializedSize() {
             @java.lang.Override
             public boolean equals(final java.lang.Object obj) {
               if (obj == this) {
          -      return true;
          +     return true;
               }
               if (!(obj instanceof com.google.cloud.functions.v2alpha.SourceProvenance)) {
                 return super.equals(obj);
               }
          -    com.google.cloud.functions.v2alpha.SourceProvenance other =
          -        (com.google.cloud.functions.v2alpha.SourceProvenance) obj;
          +    com.google.cloud.functions.v2alpha.SourceProvenance other = (com.google.cloud.functions.v2alpha.SourceProvenance) obj;
           
               if (hasResolvedStorageSource() != other.hasResolvedStorageSource()) return false;
               if (hasResolvedStorageSource()) {
          -      if (!getResolvedStorageSource().equals(other.getResolvedStorageSource())) return false;
          +      if (!getResolvedStorageSource()
          +          .equals(other.getResolvedStorageSource())) return false;
               }
               if (hasResolvedRepoSource() != other.hasResolvedRepoSource()) return false;
               if (hasResolvedRepoSource()) {
          -      if (!getResolvedRepoSource().equals(other.getResolvedRepoSource())) return false;
          +      if (!getResolvedRepoSource()
          +          .equals(other.getResolvedRepoSource())) return false;
               }
               if (!unknownFields.equals(other.unknownFields)) return false;
               return true;
          @@ -325,103 +282,96 @@ public int hashCode() {
             }
           
             public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
          -      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
          +      java.nio.ByteBuffer data)
          +      throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
          -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      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.v2alpha.SourceProvenance parseFrom(
                 com.google.protobuf.ByteString data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.SourceProvenance 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.v2alpha.SourceProvenance parseFrom(byte[] data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
          -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      byte[] data,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          -
          -  public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
          -      java.io.InputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +  public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(java.io.InputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
          -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input, extensionRegistry);
             }
          -
          -  public static com.google.cloud.functions.v2alpha.SourceProvenance parseDelimitedFrom(
          -      java.io.InputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
          +  public static com.google.cloud.functions.v2alpha.SourceProvenance parseDelimitedFrom(java.io.InputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseDelimitedWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.SourceProvenance parseDelimitedFrom(
          -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
             }
          -
             public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
          -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +      com.google.protobuf.CodedInputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input, extensionRegistry);
             }
           
             @java.lang.Override
          -  public Builder newBuilderForType() {
          -    return newBuilder();
          -  }
          -
          +  public Builder newBuilderForType() { return newBuilder(); }
             public static Builder newBuilder() {
               return DEFAULT_INSTANCE.toBuilder();
             }
          -
             public static Builder newBuilder(com.google.cloud.functions.v2alpha.SourceProvenance prototype) {
               return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
             }
          -
             @java.lang.Override
             public Builder toBuilder() {
          -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
          +    return this == DEFAULT_INSTANCE
          +        ? new Builder() : new Builder().mergeFrom(this);
             }
           
             @java.lang.Override
          -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +  protected Builder newBuilderForType(
          +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
               Builder builder = new Builder(parent);
               return builder;
             }
             /**
          -   *
          -   *
              * 
              * Provenance of the source. Ways to find the original source, or verify that
              * some source was used for this build.
          @@ -429,23 +379,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
              *
              * Protobuf type {@code google.cloud.functions.v2alpha.SourceProvenance}
              */
          -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          -      implements
          +  public static final class Builder extends
          +      com.google.protobuf.GeneratedMessageV3.Builder implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.SourceProvenance)
                 com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor
          +        getDescriptor() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.functions.v2alpha.SourceProvenance.class,
          -              com.google.cloud.functions.v2alpha.SourceProvenance.Builder.class);
          +              com.google.cloud.functions.v2alpha.SourceProvenance.class, com.google.cloud.functions.v2alpha.SourceProvenance.Builder.class);
               }
           
               // Construct using com.google.cloud.functions.v2alpha.SourceProvenance.newBuilder()
          @@ -453,15 +401,16 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(
          +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          -
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
          +      if (com.google.protobuf.GeneratedMessageV3
          +              .alwaysUseFieldBuilders) {
          +      }
               }
          -
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -481,9 +430,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          -      return com.google.cloud.functions.v2alpha.FunctionsProto
          -          .internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor
          +        getDescriptorForType() {
          +      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor;
               }
           
               @java.lang.Override
          @@ -502,8 +451,7 @@ public com.google.cloud.functions.v2alpha.SourceProvenance build() {
           
               @java.lang.Override
               public com.google.cloud.functions.v2alpha.SourceProvenance buildPartial() {
          -      com.google.cloud.functions.v2alpha.SourceProvenance result =
          -          new com.google.cloud.functions.v2alpha.SourceProvenance(this);
          +      com.google.cloud.functions.v2alpha.SourceProvenance result = new com.google.cloud.functions.v2alpha.SourceProvenance(this);
                 if (resolvedStorageSourceBuilder_ == null) {
                   result.resolvedStorageSource_ = resolvedStorageSource_;
                 } else {
          @@ -522,39 +470,38 @@ public com.google.cloud.functions.v2alpha.SourceProvenance buildPartial() {
               public Builder clone() {
                 return super.clone();
               }
          -
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
          +        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) {
          +    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) {
          +    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) {
          +        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) {
          +        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) {
          -        return mergeFrom((com.google.cloud.functions.v2alpha.SourceProvenance) other);
          +        return mergeFrom((com.google.cloud.functions.v2alpha.SourceProvenance)other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -562,8 +509,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.cloud.functions.v2alpha.SourceProvenance other) {
          -      if (other == com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance())
          -        return this;
          +      if (other == com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance()) return this;
                 if (other.hasResolvedStorageSource()) {
                   mergeResolvedStorageSource(other.getResolvedStorageSource());
                 }
          @@ -589,8 +535,7 @@ public Builder mergeFrom(
                 try {
                   parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          -        parsedMessage =
          -            (com.google.cloud.functions.v2alpha.SourceProvenance) e.getUnfinishedMessage();
          +        parsedMessage = (com.google.cloud.functions.v2alpha.SourceProvenance) e.getUnfinishedMessage();
                   throw e.unwrapIOException();
                 } finally {
                   if (parsedMessage != null) {
          @@ -602,49 +547,36 @@ public Builder mergeFrom(
           
               private com.google.cloud.functions.v2alpha.StorageSource resolvedStorageSource_;
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.cloud.functions.v2alpha.StorageSource,
          -            com.google.cloud.functions.v2alpha.StorageSource.Builder,
          -            com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>
          -        resolvedStorageSourceBuilder_;
          +        com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> resolvedStorageSourceBuilder_;
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.storage_source`, if exists, with any
                * generations resolved.
                * 
          * * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1; - * * @return Whether the resolvedStorageSource field is set. */ public boolean hasResolvedStorageSource() { return resolvedStorageSourceBuilder_ != null || resolvedStorageSource_ != null; } /** - * - * *
                * A copy of the build's `source.storage_source`, if exists, with any
                * generations resolved.
                * 
          * * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1; - * * @return The resolvedStorageSource. */ public com.google.cloud.functions.v2alpha.StorageSource getResolvedStorageSource() { if (resolvedStorageSourceBuilder_ == null) { - return resolvedStorageSource_ == null - ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() - : resolvedStorageSource_; + return resolvedStorageSource_ == null ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() : resolvedStorageSource_; } else { return resolvedStorageSourceBuilder_.getMessage(); } } /** - * - * *
                * A copy of the build's `source.storage_source`, if exists, with any
                * generations resolved.
          @@ -652,8 +584,7 @@ public com.google.cloud.functions.v2alpha.StorageSource getResolvedStorageSource
                *
                * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1;
                */
          -    public Builder setResolvedStorageSource(
          -        com.google.cloud.functions.v2alpha.StorageSource value) {
          +    public Builder setResolvedStorageSource(com.google.cloud.functions.v2alpha.StorageSource value) {
                 if (resolvedStorageSourceBuilder_ == null) {
                   if (value == null) {
                     throw new NullPointerException();
          @@ -667,8 +598,6 @@ public Builder setResolvedStorageSource(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.storage_source`, if exists, with any
                * generations resolved.
          @@ -688,8 +617,6 @@ public Builder setResolvedStorageSource(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.storage_source`, if exists, with any
                * generations resolved.
          @@ -697,14 +624,11 @@ public Builder setResolvedStorageSource(
                *
                * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1;
                */
          -    public Builder mergeResolvedStorageSource(
          -        com.google.cloud.functions.v2alpha.StorageSource value) {
          +    public Builder mergeResolvedStorageSource(com.google.cloud.functions.v2alpha.StorageSource value) {
                 if (resolvedStorageSourceBuilder_ == null) {
                   if (resolvedStorageSource_ != null) {
                     resolvedStorageSource_ =
          -              com.google.cloud.functions.v2alpha.StorageSource.newBuilder(resolvedStorageSource_)
          -                  .mergeFrom(value)
          -                  .buildPartial();
          +            com.google.cloud.functions.v2alpha.StorageSource.newBuilder(resolvedStorageSource_).mergeFrom(value).buildPartial();
                   } else {
                     resolvedStorageSource_ = value;
                   }
          @@ -716,8 +640,6 @@ public Builder mergeResolvedStorageSource(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.storage_source`, if exists, with any
                * generations resolved.
          @@ -737,8 +659,6 @@ public Builder clearResolvedStorageSource() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.storage_source`, if exists, with any
                * generations resolved.
          @@ -746,15 +666,12 @@ public Builder clearResolvedStorageSource() {
                *
                * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1;
                */
          -    public com.google.cloud.functions.v2alpha.StorageSource.Builder
          -        getResolvedStorageSourceBuilder() {
          -
          +    public com.google.cloud.functions.v2alpha.StorageSource.Builder getResolvedStorageSourceBuilder() {
          +      
                 onChanged();
                 return getResolvedStorageSourceFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.storage_source`, if exists, with any
                * generations resolved.
          @@ -762,19 +679,15 @@ public Builder clearResolvedStorageSource() {
                *
                * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1;
                */
          -    public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder
          -        getResolvedStorageSourceOrBuilder() {
          +    public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder() {
                 if (resolvedStorageSourceBuilder_ != null) {
                   return resolvedStorageSourceBuilder_.getMessageOrBuilder();
                 } else {
          -        return resolvedStorageSource_ == null
          -            ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance()
          -            : resolvedStorageSource_;
          +        return resolvedStorageSource_ == null ?
          +            com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() : resolvedStorageSource_;
                 }
               }
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.storage_source`, if exists, with any
                * generations resolved.
          @@ -783,17 +696,14 @@ public Builder clearResolvedStorageSource() {
                * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.cloud.functions.v2alpha.StorageSource,
          -            com.google.cloud.functions.v2alpha.StorageSource.Builder,
          -            com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>
          +        com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> 
                   getResolvedStorageSourceFieldBuilder() {
                 if (resolvedStorageSourceBuilder_ == null) {
          -        resolvedStorageSourceBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.cloud.functions.v2alpha.StorageSource,
          -                com.google.cloud.functions.v2alpha.StorageSource.Builder,
          -                com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>(
          -                getResolvedStorageSource(), getParentForChildren(), isClean());
          +        resolvedStorageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>(
          +                getResolvedStorageSource(),
          +                getParentForChildren(),
          +                isClean());
                   resolvedStorageSource_ = null;
                 }
                 return resolvedStorageSourceBuilder_;
          @@ -801,49 +711,36 @@ public Builder clearResolvedStorageSource() {
           
               private com.google.cloud.functions.v2alpha.RepoSource resolvedRepoSource_;
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.cloud.functions.v2alpha.RepoSource,
          -            com.google.cloud.functions.v2alpha.RepoSource.Builder,
          -            com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>
          -        resolvedRepoSourceBuilder_;
          +        com.google.cloud.functions.v2alpha.RepoSource, com.google.cloud.functions.v2alpha.RepoSource.Builder, com.google.cloud.functions.v2alpha.RepoSourceOrBuilder> resolvedRepoSourceBuilder_;
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.repo_source`, if exists, with any
                * revisions resolved.
                * 
          * * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2; - * * @return Whether the resolvedRepoSource field is set. */ public boolean hasResolvedRepoSource() { return resolvedRepoSourceBuilder_ != null || resolvedRepoSource_ != null; } /** - * - * *
                * A copy of the build's `source.repo_source`, if exists, with any
                * revisions resolved.
                * 
          * * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2; - * * @return The resolvedRepoSource. */ public com.google.cloud.functions.v2alpha.RepoSource getResolvedRepoSource() { if (resolvedRepoSourceBuilder_ == null) { - return resolvedRepoSource_ == null - ? com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance() - : resolvedRepoSource_; + return resolvedRepoSource_ == null ? com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance() : resolvedRepoSource_; } else { return resolvedRepoSourceBuilder_.getMessage(); } } /** - * - * *
                * A copy of the build's `source.repo_source`, if exists, with any
                * revisions resolved.
          @@ -865,8 +762,6 @@ public Builder setResolvedRepoSource(com.google.cloud.functions.v2alpha.RepoSour
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.repo_source`, if exists, with any
                * revisions resolved.
          @@ -886,8 +781,6 @@ public Builder setResolvedRepoSource(
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.repo_source`, if exists, with any
                * revisions resolved.
          @@ -899,9 +792,7 @@ public Builder mergeResolvedRepoSource(com.google.cloud.functions.v2alpha.RepoSo
                 if (resolvedRepoSourceBuilder_ == null) {
                   if (resolvedRepoSource_ != null) {
                     resolvedRepoSource_ =
          -              com.google.cloud.functions.v2alpha.RepoSource.newBuilder(resolvedRepoSource_)
          -                  .mergeFrom(value)
          -                  .buildPartial();
          +            com.google.cloud.functions.v2alpha.RepoSource.newBuilder(resolvedRepoSource_).mergeFrom(value).buildPartial();
                   } else {
                     resolvedRepoSource_ = value;
                   }
          @@ -913,8 +804,6 @@ public Builder mergeResolvedRepoSource(com.google.cloud.functions.v2alpha.RepoSo
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.repo_source`, if exists, with any
                * revisions resolved.
          @@ -934,8 +823,6 @@ public Builder clearResolvedRepoSource() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.repo_source`, if exists, with any
                * revisions resolved.
          @@ -944,13 +831,11 @@ public Builder clearResolvedRepoSource() {
                * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2;
                */
               public com.google.cloud.functions.v2alpha.RepoSource.Builder getResolvedRepoSourceBuilder() {
          -
          +      
                 onChanged();
                 return getResolvedRepoSourceFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.repo_source`, if exists, with any
                * revisions resolved.
          @@ -962,14 +847,11 @@ public com.google.cloud.functions.v2alpha.RepoSourceOrBuilder getResolvedRepoSou
                 if (resolvedRepoSourceBuilder_ != null) {
                   return resolvedRepoSourceBuilder_.getMessageOrBuilder();
                 } else {
          -        return resolvedRepoSource_ == null
          -            ? com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance()
          -            : resolvedRepoSource_;
          +        return resolvedRepoSource_ == null ?
          +            com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance() : resolvedRepoSource_;
                 }
               }
               /**
          -     *
          -     *
                * 
                * A copy of the build's `source.repo_source`, if exists, with any
                * revisions resolved.
          @@ -978,24 +860,21 @@ public com.google.cloud.functions.v2alpha.RepoSourceOrBuilder getResolvedRepoSou
                * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.cloud.functions.v2alpha.RepoSource,
          -            com.google.cloud.functions.v2alpha.RepoSource.Builder,
          -            com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>
          +        com.google.cloud.functions.v2alpha.RepoSource, com.google.cloud.functions.v2alpha.RepoSource.Builder, com.google.cloud.functions.v2alpha.RepoSourceOrBuilder> 
                   getResolvedRepoSourceFieldBuilder() {
                 if (resolvedRepoSourceBuilder_ == null) {
          -        resolvedRepoSourceBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.cloud.functions.v2alpha.RepoSource,
          -                com.google.cloud.functions.v2alpha.RepoSource.Builder,
          -                com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>(
          -                getResolvedRepoSource(), getParentForChildren(), isClean());
          +        resolvedRepoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.cloud.functions.v2alpha.RepoSource, com.google.cloud.functions.v2alpha.RepoSource.Builder, com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>(
          +                getResolvedRepoSource(),
          +                getParentForChildren(),
          +                isClean());
                   resolvedRepoSource_ = null;
                 }
                 return resolvedRepoSourceBuilder_;
               }
          -
               @java.lang.Override
          -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
          +    public final Builder setUnknownFields(
          +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                 return super.setUnknownFields(unknownFields);
               }
           
          @@ -1005,12 +884,12 @@ public final Builder mergeUnknownFields(
                 return super.mergeUnknownFields(unknownFields);
               }
           
          +
               // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.SourceProvenance)
             }
           
             // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.SourceProvenance)
             private static final com.google.cloud.functions.v2alpha.SourceProvenance DEFAULT_INSTANCE;
          -
             static {
               DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.SourceProvenance();
             }
          @@ -1019,16 +898,16 @@ public static com.google.cloud.functions.v2alpha.SourceProvenance getDefaultInst
               return DEFAULT_INSTANCE;
             }
           
          -  private static final com.google.protobuf.Parser PARSER =
          -      new com.google.protobuf.AbstractParser() {
          -        @java.lang.Override
          -        public SourceProvenance parsePartialFrom(
          -            com.google.protobuf.CodedInputStream input,
          -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -            throws com.google.protobuf.InvalidProtocolBufferException {
          -          return new SourceProvenance(input, extensionRegistry);
          -        }
          -      };
          +  private static final com.google.protobuf.Parser
          +      PARSER = new com.google.protobuf.AbstractParser() {
          +    @java.lang.Override
          +    public SourceProvenance parsePartialFrom(
          +        com.google.protobuf.CodedInputStream input,
          +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        throws com.google.protobuf.InvalidProtocolBufferException {
          +      return new SourceProvenance(input, extensionRegistry);
          +    }
          +  };
           
             public static com.google.protobuf.Parser parser() {
               return PARSER;
          @@ -1043,4 +922,6 @@ public com.google.protobuf.Parser getParserForType() {
             public com.google.cloud.functions.v2alpha.SourceProvenance getDefaultInstanceForType() {
               return DEFAULT_INSTANCE;
             }
          +
           }
          +
          diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java
          similarity index 75%
          rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java
          rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java
          index 322e6b23..165b82ea 100644
          --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java
          +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java
          @@ -1,57 +1,33 @@
          -/*
          - * 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/v2alpha/functions.proto
           
           package com.google.cloud.functions.v2alpha;
           
          -public interface SourceProvenanceOrBuilder
          -    extends
          +public interface SourceProvenanceOrBuilder extends
               // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.SourceProvenance)
               com.google.protobuf.MessageOrBuilder {
           
             /**
          -   *
          -   *
              * 
              * A copy of the build's `source.storage_source`, if exists, with any
              * generations resolved.
              * 
          * * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1; - * * @return Whether the resolvedStorageSource field is set. */ boolean hasResolvedStorageSource(); /** - * - * *
              * A copy of the build's `source.storage_source`, if exists, with any
              * generations resolved.
              * 
          * * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1; - * * @return The resolvedStorageSource. */ com.google.cloud.functions.v2alpha.StorageSource getResolvedStorageSource(); /** - * - * *
              * A copy of the build's `source.storage_source`, if exists, with any
              * generations resolved.
          @@ -62,34 +38,26 @@ public interface SourceProvenanceOrBuilder
             com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder();
           
             /**
          -   *
          -   *
              * 
              * A copy of the build's `source.repo_source`, if exists, with any
              * revisions resolved.
              * 
          * * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2; - * * @return Whether the resolvedRepoSource field is set. */ boolean hasResolvedRepoSource(); /** - * - * *
              * A copy of the build's `source.repo_source`, if exists, with any
              * revisions resolved.
              * 
          * * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2; - * * @return The resolvedRepoSource. */ com.google.cloud.functions.v2alpha.RepoSource getResolvedRepoSource(); /** - * - * *
              * A copy of the build's `source.repo_source`, if exists, with any
              * revisions resolved.
          diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java
          similarity index 75%
          rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java
          rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java
          index a72d37b4..ef709f32 100644
          --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java
          +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java
          @@ -1,42 +1,24 @@
          -/*
          - * 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/v2alpha/functions.proto
           
           package com.google.cloud.functions.v2alpha;
           
           /**
          - *
          - *
            * 
            * Each Stage of the deployment process
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.Stage} */ -public final class Stage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Stage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.Stage) StageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Stage.newBuilder() to construct. private Stage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Stage() { name_ = 0; message_ = ""; @@ -48,15 +30,16 @@ private Stage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Stage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Stage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,60 +59,52 @@ private Stage( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - name_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + message_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - resource_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + resource_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - resourceUri_ = s; - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stateMessages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stateMessages_.add( - input.readMessage( - com.google.cloud.functions.v2alpha.StateMessage.parser(), extensionRegistry)); - break; + resourceUri_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stateMessages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + stateMessages_.add( + input.readMessage(com.google.cloud.functions.v2alpha.StateMessage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -137,7 +112,8 @@ private Stage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_); @@ -146,35 +122,29 @@ private Stage( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_Stage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Stage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.Stage.class, - com.google.cloud.functions.v2alpha.Stage.Builder.class); + com.google.cloud.functions.v2alpha.Stage.class, com.google.cloud.functions.v2alpha.Stage.Builder.class); } /** - * - * *
              * Possible names for a Stage
              * 
          * * Protobuf enum {@code google.cloud.functions.v2alpha.Stage.Name} */ - public enum Name implements com.google.protobuf.ProtocolMessageEnum { + public enum Name + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                * Not specified. Invalid name.
                * 
          @@ -183,8 +153,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ NAME_UNSPECIFIED(0), /** - * - * *
                * Artifact Regsitry Stage
                * 
          @@ -193,8 +161,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ ARTIFACT_REGISTRY(1), /** - * - * *
                * Build Stage
                * 
          @@ -203,8 +169,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ BUILD(2), /** - * - * *
                * Service Stage
                * 
          @@ -213,8 +177,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ SERVICE(3), /** - * - * *
                * Trigger Stage
                * 
          @@ -223,8 +185,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ TRIGGER(4), /** - * - * *
                * Service Rollback Stage
                * 
          @@ -233,8 +193,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ SERVICE_ROLLBACK(5), /** - * - * *
                * Trigger Rollback Stage
                * 
          @@ -246,8 +204,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                * Not specified. Invalid name.
                * 
          @@ -256,8 +212,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NAME_UNSPECIFIED_VALUE = 0; /** - * - * *
                * Artifact Regsitry Stage
                * 
          @@ -266,8 +220,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ARTIFACT_REGISTRY_VALUE = 1; /** - * - * *
                * Build Stage
                * 
          @@ -276,8 +228,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BUILD_VALUE = 2; /** - * - * *
                * Service Stage
                * 
          @@ -286,8 +236,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SERVICE_VALUE = 3; /** - * - * *
                * Trigger Stage
                * 
          @@ -296,8 +244,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRIGGER_VALUE = 4; /** - * - * *
                * Service Rollback Stage
                * 
          @@ -306,8 +252,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SERVICE_ROLLBACK_VALUE = 5; /** - * - * *
                * Trigger Rollback Stage
                * 
          @@ -316,6 +260,7 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRIGGER_ROLLBACK_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -340,57 +285,53 @@ public static Name valueOf(int value) { */ public static Name forNumber(int value) { switch (value) { - case 0: - return NAME_UNSPECIFIED; - case 1: - return ARTIFACT_REGISTRY; - case 2: - return BUILD; - case 3: - return SERVICE; - case 4: - return TRIGGER; - case 5: - return SERVICE_ROLLBACK; - case 6: - return TRIGGER_ROLLBACK; - default: - return null; + case 0: return NAME_UNSPECIFIED; + case 1: return ARTIFACT_REGISTRY; + case 2: return BUILD; + case 3: return SERVICE; + case 4: return TRIGGER; + case 5: return SERVICE_ROLLBACK; + case 6: return TRIGGER_ROLLBACK; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Name> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Name findValueByNumber(int number) { + return Name.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Name findValueByNumber(int number) { - return Name.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.functions.v2alpha.Stage.getDescriptor().getEnumTypes().get(0); } private static final Name[] VALUES = values(); - public static Name valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Name valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -408,18 +349,15 @@ private Name(int value) { } /** - * - * *
              * Possible states for a Stage
              * 
          * * Protobuf enum {@code google.cloud.functions.v2alpha.Stage.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                * Not specified. Invalid state.
                * 
          @@ -428,8 +366,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
                * Stage has not started.
                * 
          @@ -438,8 +374,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ NOT_STARTED(1), /** - * - * *
                * Stage is in progress.
                * 
          @@ -448,8 +382,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ IN_PROGRESS(2), /** - * - * *
                * Stage has completed.
                * 
          @@ -461,8 +393,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                * Not specified. Invalid state.
                * 
          @@ -471,8 +401,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
                * Stage has not started.
                * 
          @@ -481,8 +409,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_STARTED_VALUE = 1; /** - * - * *
                * Stage is in progress.
                * 
          @@ -491,8 +417,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IN_PROGRESS_VALUE = 2; /** - * - * *
                * Stage has completed.
                * 
          @@ -501,6 +425,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPLETE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -525,51 +450,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return NOT_STARTED; - case 2: - return IN_PROGRESS; - case 3: - return COMPLETE; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return NOT_STARTED; + case 2: return IN_PROGRESS; + case 3: return COMPLETE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.functions.v2alpha.Stage.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -589,50 +513,38 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private int name_; /** - * - * *
              * Name of the Stage. This will be unique for each Stage.
              * 
          * * .google.cloud.functions.v2alpha.Stage.Name name = 1; - * * @return The enum numeric value on the wire for name. */ - @java.lang.Override - public int getNameValue() { + @java.lang.Override public int getNameValue() { return name_; } /** - * - * *
              * Name of the Stage. This will be unique for each Stage.
              * 
          * * .google.cloud.functions.v2alpha.Stage.Name name = 1; - * * @return The name. */ - @java.lang.Override - public com.google.cloud.functions.v2alpha.Stage.Name getName() { + @java.lang.Override public com.google.cloud.functions.v2alpha.Stage.Name getName() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Stage.Name result = - com.google.cloud.functions.v2alpha.Stage.Name.valueOf(name_); + com.google.cloud.functions.v2alpha.Stage.Name result = com.google.cloud.functions.v2alpha.Stage.Name.valueOf(name_); return result == null ? com.google.cloud.functions.v2alpha.Stage.Name.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** - * - * *
              * Message describing the Stage
              * 
          * * string message = 2; - * * @return The message. */ @java.lang.Override @@ -641,29 +553,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** - * - * *
              * Message describing the Stage
              * 
          * * string message = 2; - * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -674,50 +586,38 @@ public com.google.protobuf.ByteString getMessageBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
              * Current state of the Stage
              * 
          * * .google.cloud.functions.v2alpha.Stage.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
              * Current state of the Stage
              * 
          * * .google.cloud.functions.v2alpha.Stage.State state = 3; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.functions.v2alpha.Stage.State getState() { + @java.lang.Override public com.google.cloud.functions.v2alpha.Stage.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Stage.State result = - com.google.cloud.functions.v2alpha.Stage.State.valueOf(state_); + com.google.cloud.functions.v2alpha.Stage.State result = com.google.cloud.functions.v2alpha.Stage.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2alpha.Stage.State.UNRECOGNIZED : result; } public static final int RESOURCE_FIELD_NUMBER = 4; private volatile java.lang.Object resource_; /** - * - * *
              * Resource of the Stage
              * 
          * * string resource = 4; - * * @return The resource. */ @java.lang.Override @@ -726,29 +626,29 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
              * Resource of the Stage
              * 
          * * string resource = 4; - * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -759,14 +659,11 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int RESOURCE_URI_FIELD_NUMBER = 5; private volatile java.lang.Object resourceUri_; /** - * - * *
              * Link to the current Stage resource
              * 
          * * string resource_uri = 5; - * * @return The resourceUri. */ @java.lang.Override @@ -775,29 +672,29 @@ public java.lang.String getResourceUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUri_ = s; return s; } } /** - * - * *
              * Link to the current Stage resource
              * 
          * * string resource_uri = 5; - * * @return The bytes for resourceUri. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceUriBytes() { + public com.google.protobuf.ByteString + getResourceUriBytes() { java.lang.Object ref = resourceUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUri_ = b; return b; } else { @@ -808,8 +705,6 @@ public com.google.protobuf.ByteString getResourceUriBytes() { public static final int STATE_MESSAGES_FIELD_NUMBER = 6; private java.util.List stateMessages_; /** - * - * *
              * State messages from the current Stage.
              * 
          @@ -821,8 +716,6 @@ public java.util.List getStateM return stateMessages_; } /** - * - * *
              * State messages from the current Stage.
              * 
          @@ -830,13 +723,11 @@ public java.util.List getStateM * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ @java.lang.Override - public java.util.List + public java.util.List getStateMessagesOrBuilderList() { return stateMessages_; } /** - * - * *
              * State messages from the current Stage.
              * 
          @@ -848,8 +739,6 @@ public int getStateMessagesCount() { return stateMessages_.size(); } /** - * - * *
              * State messages from the current Stage.
              * 
          @@ -861,8 +750,6 @@ public com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int inde return stateMessages_.get(index); } /** - * - * *
              * State messages from the current Stage.
              * 
          @@ -876,7 +763,6 @@ public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessages } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -888,7 +774,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (name_ != com.google.cloud.functions.v2alpha.Stage.Name.NAME_UNSPECIFIED.getNumber()) { output.writeEnum(1, name_); } @@ -917,13 +804,15 @@ public int getSerializedSize() { size = 0; if (name_ != com.google.cloud.functions.v2alpha.Stage.Name.NAME_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, name_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } if (state_ != com.google.cloud.functions.v2alpha.Stage.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); @@ -932,7 +821,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, resourceUri_); } for (int i = 0; i < stateMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, stateMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, stateMessages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -942,7 +832,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.Stage)) { return super.equals(obj); @@ -950,11 +840,15 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.functions.v2alpha.Stage other = (com.google.cloud.functions.v2alpha.Stage) obj; if (name_ != other.name_) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (state_ != other.state_) return false; - if (!getResource().equals(other.getResource())) return false; - if (!getResourceUri().equals(other.getResourceUri())) return false; - if (!getStateMessagesList().equals(other.getStateMessagesList())) return false; + if (!getResource() + .equals(other.getResource())) return false; + if (!getResourceUri() + .equals(other.getResourceUri())) return false; + if (!getStateMessagesList() + .equals(other.getStateMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -985,127 +879,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.Stage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.Stage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.Stage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.Stage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.Stage 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.v2alpha.Stage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.Stage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.Stage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.Stage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.Stage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.Stage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.Stage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.Stage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.Stage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.Stage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Each Stage of the deployment process
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.Stage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.Stage) com.google.cloud.functions.v2alpha.StageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_Stage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Stage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.Stage.class, - com.google.cloud.functions.v2alpha.Stage.Builder.class); + com.google.cloud.functions.v2alpha.Stage.class, com.google.cloud.functions.v2alpha.Stage.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.Stage.newBuilder() @@ -1113,17 +998,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStateMessagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1147,9 +1032,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_Stage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Stage_descriptor; } @java.lang.Override @@ -1168,8 +1053,7 @@ public com.google.cloud.functions.v2alpha.Stage build() { @java.lang.Override public com.google.cloud.functions.v2alpha.Stage buildPartial() { - com.google.cloud.functions.v2alpha.Stage result = - new com.google.cloud.functions.v2alpha.Stage(this); + com.google.cloud.functions.v2alpha.Stage result = new com.google.cloud.functions.v2alpha.Stage(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.message_ = message_; @@ -1193,39 +1077,38 @@ public com.google.cloud.functions.v2alpha.Stage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.Stage) other); + return mergeFrom((com.google.cloud.functions.v2alpha.Stage)other); } else { super.mergeFrom(other); return this; @@ -1270,10 +1153,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.Stage other) { stateMessagesBuilder_ = null; stateMessages_ = other.stateMessages_; bitField0_ = (bitField0_ & ~0x00000001); - stateMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStateMessagesFieldBuilder() - : null; + stateMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStateMessagesFieldBuilder() : null; } else { stateMessagesBuilder_.addAllMessages(other.stateMessages_); } @@ -1307,70 +1189,55 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private int name_ = 0; /** - * - * *
                * Name of the Stage. This will be unique for each Stage.
                * 
          * * .google.cloud.functions.v2alpha.Stage.Name name = 1; - * * @return The enum numeric value on the wire for name. */ - @java.lang.Override - public int getNameValue() { + @java.lang.Override public int getNameValue() { return name_; } /** - * - * *
                * Name of the Stage. This will be unique for each Stage.
                * 
          * * .google.cloud.functions.v2alpha.Stage.Name name = 1; - * * @param value The enum numeric value on the wire for name to set. * @return This builder for chaining. */ public Builder setNameValue(int value) { - + name_ = value; onChanged(); return this; } /** - * - * *
                * Name of the Stage. This will be unique for each Stage.
                * 
          * * .google.cloud.functions.v2alpha.Stage.Name name = 1; - * * @return The name. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Stage.Name getName() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Stage.Name result = - com.google.cloud.functions.v2alpha.Stage.Name.valueOf(name_); + com.google.cloud.functions.v2alpha.Stage.Name result = com.google.cloud.functions.v2alpha.Stage.Name.valueOf(name_); return result == null ? com.google.cloud.functions.v2alpha.Stage.Name.UNRECOGNIZED : result; } /** - * - * *
                * Name of the Stage. This will be unique for each Stage.
                * 
          * * .google.cloud.functions.v2alpha.Stage.Name name = 1; - * * @param value The name to set. * @return This builder for chaining. */ @@ -1378,24 +1245,21 @@ public Builder setName(com.google.cloud.functions.v2alpha.Stage.Name value) { if (value == null) { throw new NullPointerException(); } - + name_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                * Name of the Stage. This will be unique for each Stage.
                * 
          * * .google.cloud.functions.v2alpha.Stage.Name name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = 0; onChanged(); return this; @@ -1403,20 +1267,18 @@ public Builder clearName() { private java.lang.Object message_ = ""; /** - * - * *
                * Message describing the Stage
                * 
          * * string message = 2; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -1425,21 +1287,20 @@ public java.lang.String getMessage() { } } /** - * - * *
                * Message describing the Stage
                * 
          * * string message = 2; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -1447,61 +1308,54 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
                * Message describing the Stage
                * 
          * * string message = 2; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { + public Builder setMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** - * - * *
                * Message describing the Stage
                * 
          * * string message = 2; - * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** - * - * *
                * Message describing the Stage
                * 
          * * string message = 2; - * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; @@ -1509,65 +1363,51 @@ public Builder setMessageBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
                * Current state of the Stage
                * 
          * * .google.cloud.functions.v2alpha.Stage.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
                * Current state of the Stage
                * 
          * * .google.cloud.functions.v2alpha.Stage.State state = 3; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
                * Current state of the Stage
                * 
          * * .google.cloud.functions.v2alpha.Stage.State state = 3; - * * @return The state. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Stage.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Stage.State result = - com.google.cloud.functions.v2alpha.Stage.State.valueOf(state_); + com.google.cloud.functions.v2alpha.Stage.State result = com.google.cloud.functions.v2alpha.Stage.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2alpha.Stage.State.UNRECOGNIZED : result; } /** - * - * *
                * Current state of the Stage
                * 
          * * .google.cloud.functions.v2alpha.Stage.State state = 3; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1575,24 +1415,21 @@ public Builder setState(com.google.cloud.functions.v2alpha.Stage.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                * Current state of the Stage
                * 
          * * .google.cloud.functions.v2alpha.Stage.State state = 3; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1600,20 +1437,18 @@ public Builder clearState() { private java.lang.Object resource_ = ""; /** - * - * *
                * Resource of the Stage
                * 
          * * string resource = 4; - * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -1622,21 +1457,20 @@ public java.lang.String getResource() { } } /** - * - * *
                * Resource of the Stage
                * 
          * * string resource = 4; - * * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -1644,61 +1478,54 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
                * Resource of the Stage
                * 
          * * string resource = 4; - * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { + public Builder setResource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** - * - * *
                * Resource of the Stage
                * 
          * * string resource = 4; - * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** - * - * *
                * Resource of the Stage
                * 
          * * string resource = 4; - * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -1706,20 +1533,18 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceUri_ = ""; /** - * - * *
                * Link to the current Stage resource
                * 
          * * string resource_uri = 5; - * * @return The resourceUri. */ public java.lang.String getResourceUri() { java.lang.Object ref = resourceUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUri_ = s; return s; @@ -1728,21 +1553,20 @@ public java.lang.String getResourceUri() { } } /** - * - * *
                * Link to the current Stage resource
                * 
          * * string resource_uri = 5; - * * @return The bytes for resourceUri. */ - public com.google.protobuf.ByteString getResourceUriBytes() { + public com.google.protobuf.ByteString + getResourceUriBytes() { java.lang.Object ref = resourceUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUri_ = b; return b; } else { @@ -1750,87 +1574,72 @@ public com.google.protobuf.ByteString getResourceUriBytes() { } } /** - * - * *
                * Link to the current Stage resource
                * 
          * * string resource_uri = 5; - * * @param value The resourceUri to set. * @return This builder for chaining. */ - public Builder setResourceUri(java.lang.String value) { + public Builder setResourceUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUri_ = value; onChanged(); return this; } /** - * - * *
                * Link to the current Stage resource
                * 
          * * string resource_uri = 5; - * * @return This builder for chaining. */ public Builder clearResourceUri() { - + resourceUri_ = getDefaultInstance().getResourceUri(); onChanged(); return this; } /** - * - * *
                * Link to the current Stage resource
                * 
          * * string resource_uri = 5; - * * @param value The bytes for resourceUri to set. * @return This builder for chaining. */ - public Builder setResourceUriBytes(com.google.protobuf.ByteString value) { + public Builder setResourceUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUri_ = value; onChanged(); return this; } private java.util.List stateMessages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStateMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - stateMessages_ = - new java.util.ArrayList( - stateMessages_); + stateMessages_ = new java.util.ArrayList(stateMessages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.StateMessage, - com.google.cloud.functions.v2alpha.StateMessage.Builder, - com.google.cloud.functions.v2alpha.StateMessageOrBuilder> - stateMessagesBuilder_; + com.google.cloud.functions.v2alpha.StateMessage, com.google.cloud.functions.v2alpha.StateMessage.Builder, com.google.cloud.functions.v2alpha.StateMessageOrBuilder> stateMessagesBuilder_; /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -1845,8 +1654,6 @@ public java.util.List getStateM } } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -1861,8 +1668,6 @@ public int getStateMessagesCount() { } } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -1877,8 +1682,6 @@ public com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int inde } } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -1900,8 +1703,6 @@ public Builder setStateMessages( return this; } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -1920,8 +1721,6 @@ public Builder setStateMessages( return this; } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -1942,8 +1741,6 @@ public Builder addStateMessages(com.google.cloud.functions.v2alpha.StateMessage return this; } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -1965,8 +1762,6 @@ public Builder addStateMessages( return this; } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -1985,8 +1780,6 @@ public Builder addStateMessages( return this; } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -2005,8 +1798,6 @@ public Builder addStateMessages( return this; } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -2017,7 +1808,8 @@ public Builder addAllStateMessages( java.lang.Iterable values) { if (stateMessagesBuilder_ == null) { ensureStateMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stateMessages_); onChanged(); } else { stateMessagesBuilder_.addAllMessages(values); @@ -2025,8 +1817,6 @@ public Builder addAllStateMessages( return this; } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -2044,8 +1834,6 @@ public Builder clearStateMessages() { return this; } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -2063,8 +1851,6 @@ public Builder removeStateMessages(int index) { return this; } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -2076,8 +1862,6 @@ public com.google.cloud.functions.v2alpha.StateMessage.Builder getStateMessagesB return getStateMessagesFieldBuilder().getBuilder(index); } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -2087,22 +1871,19 @@ public com.google.cloud.functions.v2alpha.StateMessage.Builder getStateMessagesB public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder( int index) { if (stateMessagesBuilder_ == null) { - return stateMessages_.get(index); - } else { + return stateMessages_.get(index); } else { return stateMessagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                * State messages from the current Stage.
                * 
          * * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ - public java.util.List - getStateMessagesOrBuilderList() { + public java.util.List + getStateMessagesOrBuilderList() { if (stateMessagesBuilder_ != null) { return stateMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -2110,8 +1891,6 @@ public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessages } } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -2119,12 +1898,10 @@ public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessages * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesBuilder() { - return getStateMessagesFieldBuilder() - .addBuilder(com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder().addBuilder( + com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); } /** - * - * *
                * State messages from the current Stage.
                * 
          @@ -2133,34 +1910,26 @@ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesB */ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesBuilder( int index) { - return getStateMessagesFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); } /** - * - * *
                * State messages from the current Stage.
                * 
          * * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ - public java.util.List - getStateMessagesBuilderList() { + public java.util.List + getStateMessagesBuilderList() { return getStateMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.StateMessage, - com.google.cloud.functions.v2alpha.StateMessage.Builder, - com.google.cloud.functions.v2alpha.StateMessageOrBuilder> + com.google.cloud.functions.v2alpha.StateMessage, com.google.cloud.functions.v2alpha.StateMessage.Builder, com.google.cloud.functions.v2alpha.StateMessageOrBuilder> getStateMessagesFieldBuilder() { if (stateMessagesBuilder_ == null) { - stateMessagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.StateMessage, - com.google.cloud.functions.v2alpha.StateMessage.Builder, - com.google.cloud.functions.v2alpha.StateMessageOrBuilder>( + stateMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.StateMessage, com.google.cloud.functions.v2alpha.StateMessage.Builder, com.google.cloud.functions.v2alpha.StateMessageOrBuilder>( stateMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2169,9 +1938,9 @@ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesB } return stateMessagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2181,12 +1950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.Stage) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.Stage) private static final com.google.cloud.functions.v2alpha.Stage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.Stage(); } @@ -2195,16 +1964,16 @@ public static com.google.cloud.functions.v2alpha.Stage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Stage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Stage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Stage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2219,4 +1988,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.Stage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java similarity index 76% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java index 47a82604..1b3ad8b7 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java @@ -1,166 +1,120 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface StageOrBuilder - extends +public interface StageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.Stage) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Name of the Stage. This will be unique for each Stage.
              * 
          * * .google.cloud.functions.v2alpha.Stage.Name name = 1; - * * @return The enum numeric value on the wire for name. */ int getNameValue(); /** - * - * *
              * Name of the Stage. This will be unique for each Stage.
              * 
          * * .google.cloud.functions.v2alpha.Stage.Name name = 1; - * * @return The name. */ com.google.cloud.functions.v2alpha.Stage.Name getName(); /** - * - * *
              * Message describing the Stage
              * 
          * * string message = 2; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
              * Message describing the Stage
              * 
          * * string message = 2; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); /** - * - * *
              * Current state of the Stage
              * 
          * * .google.cloud.functions.v2alpha.Stage.State state = 3; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
              * Current state of the Stage
              * 
          * * .google.cloud.functions.v2alpha.Stage.State state = 3; - * * @return The state. */ com.google.cloud.functions.v2alpha.Stage.State getState(); /** - * - * *
              * Resource of the Stage
              * 
          * * string resource = 4; - * * @return The resource. */ java.lang.String getResource(); /** - * - * *
              * Resource of the Stage
              * 
          * * string resource = 4; - * * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
              * Link to the current Stage resource
              * 
          * * string resource_uri = 5; - * * @return The resourceUri. */ java.lang.String getResourceUri(); /** - * - * *
              * Link to the current Stage resource
              * 
          * * string resource_uri = 5; - * * @return The bytes for resourceUri. */ - com.google.protobuf.ByteString getResourceUriBytes(); + com.google.protobuf.ByteString + getResourceUriBytes(); /** - * - * *
              * State messages from the current Stage.
              * 
          * * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ - java.util.List getStateMessagesList(); + java.util.List + getStateMessagesList(); /** - * - * *
              * State messages from the current Stage.
              * 
          @@ -169,8 +123,6 @@ public interface StageOrBuilder */ com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int index); /** - * - * *
              * State messages from the current Stage.
              * 
          @@ -179,24 +131,21 @@ public interface StageOrBuilder */ int getStateMessagesCount(); /** - * - * *
              * State messages from the current Stage.
              * 
          * * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ - java.util.List + java.util.List getStateMessagesOrBuilderList(); /** - * - * *
              * State messages from the current Stage.
              * 
          * * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ - com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder(int index); + com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder( + int index); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java similarity index 70% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java index 3e5d1753..d1e3212b 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java @@ -1,42 +1,24 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Informational messages about the state of the Cloud Function or Operation.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.StateMessage} */ -public final class StateMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StateMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.StateMessage) StateMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StateMessage.newBuilder() to construct. private StateMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StateMessage() { severity_ = 0; type_ = ""; @@ -45,15 +27,16 @@ private StateMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StateMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StateMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,31 @@ private StateMessage( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - severity_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + severity_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + type_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + message_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,41 +87,36 @@ private StateMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.StateMessage.class, - com.google.cloud.functions.v2alpha.StateMessage.Builder.class); + com.google.cloud.functions.v2alpha.StateMessage.class, com.google.cloud.functions.v2alpha.StateMessage.Builder.class); } /** - * - * *
              * Severity of the state message.
              * 
          * * Protobuf enum {@code google.cloud.functions.v2alpha.StateMessage.Severity} */ - public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                * Not specified. Invalid severity.
                * 
          @@ -150,8 +125,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ SEVERITY_UNSPECIFIED(0), /** - * - * *
                * ERROR-level severity.
                * 
          @@ -160,8 +133,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(1), /** - * - * *
                * WARNING-level severity.
                * 
          @@ -170,8 +141,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ WARNING(2), /** - * - * *
                * INFO-level severity.
                * 
          @@ -183,8 +152,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                * Not specified. Invalid severity.
                * 
          @@ -193,8 +160,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** - * - * *
                * ERROR-level severity.
                * 
          @@ -203,8 +168,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 1; /** - * - * *
                * WARNING-level severity.
                * 
          @@ -213,8 +176,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WARNING_VALUE = 2; /** - * - * *
                * INFO-level severity.
                * 
          @@ -223,6 +184,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INFO_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -247,51 +209,50 @@ public static Severity valueOf(int value) { */ public static Severity forNumber(int value) { switch (value) { - case 0: - return SEVERITY_UNSPECIFIED; - case 1: - return ERROR; - case 2: - return WARNING; - case 3: - return INFO; - default: - return null; + case 0: return SEVERITY_UNSPECIFIED; + case 1: return ERROR; + case 2: return WARNING; + case 3: return INFO; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Severity> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.functions.v2alpha.StateMessage.getDescriptor().getEnumTypes().get(0); } private static final Severity[] VALUES = values(); - public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Severity valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -311,52 +272,38 @@ private Severity(int value) { public static final int SEVERITY_FIELD_NUMBER = 1; private int severity_; /** - * - * *
              * Severity of the state message.
              * 
          * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; - * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
              * Severity of the state message.
              * 
          * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; - * * @return The severity. */ - @java.lang.Override - public com.google.cloud.functions.v2alpha.StateMessage.Severity getSeverity() { + @java.lang.Override public com.google.cloud.functions.v2alpha.StateMessage.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.StateMessage.Severity result = - com.google.cloud.functions.v2alpha.StateMessage.Severity.valueOf(severity_); - return result == null - ? com.google.cloud.functions.v2alpha.StateMessage.Severity.UNRECOGNIZED - : result; + com.google.cloud.functions.v2alpha.StateMessage.Severity result = com.google.cloud.functions.v2alpha.StateMessage.Severity.valueOf(severity_); + return result == null ? com.google.cloud.functions.v2alpha.StateMessage.Severity.UNRECOGNIZED : result; } public static final int TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object type_; /** - * - * *
              * One-word CamelCase type of the state message.
              * 
          * * string type = 2; - * * @return The type. */ @java.lang.Override @@ -365,29 +312,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * *
              * One-word CamelCase type of the state message.
              * 
          * * string type = 2; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -398,14 +345,11 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object message_; /** - * - * *
              * The message.
              * 
          * * string message = 3; - * * @return The message. */ @java.lang.Override @@ -414,29 +358,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** - * - * *
              * The message.
              * 
          * * string message = 3; - * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -445,7 +389,6 @@ public com.google.protobuf.ByteString getMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -457,10 +400,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (severity_ - != com.google.cloud.functions.v2alpha.StateMessage.Severity.SEVERITY_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (severity_ != com.google.cloud.functions.v2alpha.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { output.writeEnum(1, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { @@ -478,10 +420,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (severity_ - != com.google.cloud.functions.v2alpha.StateMessage.Severity.SEVERITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, severity_); + if (severity_ != com.google.cloud.functions.v2alpha.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); @@ -497,17 +438,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.StateMessage)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.StateMessage other = - (com.google.cloud.functions.v2alpha.StateMessage) obj; + com.google.cloud.functions.v2alpha.StateMessage other = (com.google.cloud.functions.v2alpha.StateMessage) obj; if (severity_ != other.severity_) return false; - if (!getType().equals(other.getType())) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getType() + .equals(other.getType())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -530,127 +472,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.StateMessage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.StateMessage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.StateMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.StateMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.StateMessage 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.v2alpha.StateMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.StateMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.StateMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.StateMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.StateMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.StateMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.StateMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.StateMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.StateMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.StateMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Informational messages about the state of the Cloud Function or Operation.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.StateMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.StateMessage) com.google.cloud.functions.v2alpha.StateMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.StateMessage.class, - com.google.cloud.functions.v2alpha.StateMessage.Builder.class); + com.google.cloud.functions.v2alpha.StateMessage.class, com.google.cloud.functions.v2alpha.StateMessage.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.StateMessage.newBuilder() @@ -658,15 +591,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -680,9 +614,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; } @java.lang.Override @@ -701,8 +635,7 @@ public com.google.cloud.functions.v2alpha.StateMessage build() { @java.lang.Override public com.google.cloud.functions.v2alpha.StateMessage buildPartial() { - com.google.cloud.functions.v2alpha.StateMessage result = - new com.google.cloud.functions.v2alpha.StateMessage(this); + com.google.cloud.functions.v2alpha.StateMessage result = new com.google.cloud.functions.v2alpha.StateMessage(this); result.severity_ = severity_; result.type_ = type_; result.message_ = message_; @@ -714,39 +647,38 @@ public com.google.cloud.functions.v2alpha.StateMessage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.StateMessage) other); + return mergeFrom((com.google.cloud.functions.v2alpha.StateMessage)other); } else { super.mergeFrom(other); return this; @@ -754,8 +686,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.StateMessage other) { - if (other == com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()) return this; if (other.severity_ != 0) { setSeverityValue(other.getSeverityValue()); } @@ -798,67 +729,51 @@ public Builder mergeFrom( private int severity_ = 0; /** - * - * *
                * Severity of the state message.
                * 
          * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; - * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
                * Severity of the state message.
                * 
          * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; - * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** - * - * *
                * Severity of the state message.
                * 
          * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; - * * @return The severity. */ @java.lang.Override public com.google.cloud.functions.v2alpha.StateMessage.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.StateMessage.Severity result = - com.google.cloud.functions.v2alpha.StateMessage.Severity.valueOf(severity_); - return result == null - ? com.google.cloud.functions.v2alpha.StateMessage.Severity.UNRECOGNIZED - : result; + com.google.cloud.functions.v2alpha.StateMessage.Severity result = com.google.cloud.functions.v2alpha.StateMessage.Severity.valueOf(severity_); + return result == null ? com.google.cloud.functions.v2alpha.StateMessage.Severity.UNRECOGNIZED : result; } /** - * - * *
                * Severity of the state message.
                * 
          * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; - * * @param value The severity to set. * @return This builder for chaining. */ @@ -866,24 +781,21 @@ public Builder setSeverity(com.google.cloud.functions.v2alpha.StateMessage.Sever if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                * Severity of the state message.
                * 
          * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; - * * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -891,20 +803,18 @@ public Builder clearSeverity() { private java.lang.Object type_ = ""; /** - * - * *
                * One-word CamelCase type of the state message.
                * 
          * * string type = 2; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -913,21 +823,20 @@ public java.lang.String getType() { } } /** - * - * *
                * One-word CamelCase type of the state message.
                * 
          * * string type = 2; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -935,61 +844,54 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
                * One-word CamelCase type of the state message.
                * 
          * * string type = 2; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { + public Builder setType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** - * - * *
                * One-word CamelCase type of the state message.
                * 
          * * string type = 2; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** - * - * *
                * One-word CamelCase type of the state message.
                * 
          * * string type = 2; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -997,20 +899,18 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object message_ = ""; /** - * - * *
                * The message.
                * 
          * * string message = 3; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -1019,21 +919,20 @@ public java.lang.String getMessage() { } } /** - * - * *
                * The message.
                * 
          * * string message = 3; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -1041,68 +940,61 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
                * The message.
                * 
          * * string message = 3; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { + public Builder setMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** - * - * *
                * The message.
                * 
          * * string message = 3; - * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** - * - * *
                * The message.
                * 
          * * string message = 3; - * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,12 +1004,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.StateMessage) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.StateMessage) private static final com.google.cloud.functions.v2alpha.StateMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.StateMessage(); } @@ -1126,16 +1018,16 @@ public static com.google.cloud.functions.v2alpha.StateMessage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StateMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,4 +1042,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.StateMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java similarity index 63% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java index b879c44e..066a19cb 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java @@ -1,100 +1,68 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface StateMessageOrBuilder - extends +public interface StateMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.StateMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Severity of the state message.
              * 
          * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; - * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** - * - * *
              * Severity of the state message.
              * 
          * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; - * * @return The severity. */ com.google.cloud.functions.v2alpha.StateMessage.Severity getSeverity(); /** - * - * *
              * One-word CamelCase type of the state message.
              * 
          * * string type = 2; - * * @return The type. */ java.lang.String getType(); /** - * - * *
              * One-word CamelCase type of the state message.
              * 
          * * string type = 2; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
              * The message.
              * 
          * * string message = 3; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
              * The message.
              * 
          * * string message = 3; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java similarity index 72% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java index 2ede7a30..f60a9874 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java @@ -1,42 +1,24 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Location of the source in an archive file in Google Cloud Storage.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.StorageSource} */ -public final class StorageSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StorageSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.StorageSource) StorageSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StorageSource.newBuilder() to construct. private StorageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StorageSource() { bucket_ = ""; object_ = ""; @@ -44,15 +26,16 @@ private StorageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StorageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StorageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private StorageSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - bucket_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + bucket_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - object_ = s; - break; - } - case 24: - { - generation_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + object_ = s; + break; + } + case 24: { + + generation_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,33 +85,29 @@ private StorageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.StorageSource.class, - com.google.cloud.functions.v2alpha.StorageSource.Builder.class); + com.google.cloud.functions.v2alpha.StorageSource.class, com.google.cloud.functions.v2alpha.StorageSource.Builder.class); } public static final int BUCKET_FIELD_NUMBER = 1; private volatile java.lang.Object bucket_; /** - * - * *
              * Google Cloud Storage bucket containing the source (see
              * [Bucket Name
          @@ -138,7 +115,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              * 
          * * string bucket = 1; - * * @return The bucket. */ @java.lang.Override @@ -147,15 +123,14 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** - * - * *
              * Google Cloud Storage bucket containing the source (see
              * [Bucket Name
          @@ -163,15 +138,16 @@ public java.lang.String getBucket() {
              * 
          * * string bucket = 1; - * * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -182,8 +158,6 @@ public com.google.protobuf.ByteString getBucketBytes() { public static final int OBJECT_FIELD_NUMBER = 2; private volatile java.lang.Object object_; /** - * - * *
              * Google Cloud Storage object containing the source.
              * This object must be a gzipped archive file (`.tar.gz`) containing source to
          @@ -191,7 +165,6 @@ public com.google.protobuf.ByteString getBucketBytes() {
              * 
          * * string object = 2; - * * @return The object. */ @java.lang.Override @@ -200,15 +173,14 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** - * - * *
              * Google Cloud Storage object containing the source.
              * This object must be a gzipped archive file (`.tar.gz`) containing source to
          @@ -216,15 +188,16 @@ public java.lang.String getObject() {
              * 
          * * string object = 2; - * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -235,15 +208,12 @@ public com.google.protobuf.ByteString getObjectBytes() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_; /** - * - * *
              * Google Cloud Storage generation for the object. If the generation is
              * omitted, the latest generation will be used.
              * 
          * * int64 generation = 3; - * * @return The generation. */ @java.lang.Override @@ -252,7 +222,6 @@ public long getGeneration() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -290,7 +260,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, generation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -300,17 +271,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.StorageSource)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.StorageSource other = - (com.google.cloud.functions.v2alpha.StorageSource) obj; + com.google.cloud.functions.v2alpha.StorageSource other = (com.google.cloud.functions.v2alpha.StorageSource) obj; - if (!getBucket().equals(other.getBucket())) return false; - if (!getObject().equals(other.getObject())) return false; - if (getGeneration() != other.getGeneration()) return false; + if (!getBucket() + .equals(other.getBucket())) return false; + if (!getObject() + .equals(other.getObject())) return false; + if (getGeneration() + != other.getGeneration()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,133 +300,125 @@ public int hashCode() { hash = (37 * hash) + OBJECT_FIELD_NUMBER; hash = (53 * hash) + getObject().hashCode(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGeneration()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.functions.v2alpha.StorageSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.StorageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.StorageSource 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.v2alpha.StorageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.StorageSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2alpha.StorageSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2alpha.StorageSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.StorageSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.StorageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
              * Location of the source in an archive file in Google Cloud Storage.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.StorageSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.StorageSource) com.google.cloud.functions.v2alpha.StorageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.StorageSource.class, - com.google.cloud.functions.v2alpha.StorageSource.Builder.class); + com.google.cloud.functions.v2alpha.StorageSource.class, com.google.cloud.functions.v2alpha.StorageSource.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.StorageSource.newBuilder() @@ -461,15 +426,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; } @java.lang.Override @@ -504,8 +470,7 @@ public com.google.cloud.functions.v2alpha.StorageSource build() { @java.lang.Override public com.google.cloud.functions.v2alpha.StorageSource buildPartial() { - com.google.cloud.functions.v2alpha.StorageSource result = - new com.google.cloud.functions.v2alpha.StorageSource(this); + com.google.cloud.functions.v2alpha.StorageSource result = new com.google.cloud.functions.v2alpha.StorageSource(this); result.bucket_ = bucket_; result.object_ = object_; result.generation_ = generation_; @@ -517,39 +482,38 @@ public com.google.cloud.functions.v2alpha.StorageSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.StorageSource) other); + return mergeFrom((com.google.cloud.functions.v2alpha.StorageSource)other); } else { super.mergeFrom(other); return this; @@ -557,8 +521,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.StorageSource other) { - if (other == com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance()) return this; if (!other.getBucket().isEmpty()) { bucket_ = other.bucket_; onChanged(); @@ -601,8 +564,6 @@ public Builder mergeFrom( private java.lang.Object bucket_ = ""; /** - * - * *
                * Google Cloud Storage bucket containing the source (see
                * [Bucket Name
          @@ -610,13 +571,13 @@ public Builder mergeFrom(
                * 
          * * string bucket = 1; - * * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; @@ -625,8 +586,6 @@ public java.lang.String getBucket() { } } /** - * - * *
                * Google Cloud Storage bucket containing the source (see
                * [Bucket Name
          @@ -634,14 +593,15 @@ public java.lang.String getBucket() {
                * 
          * * string bucket = 1; - * * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -649,8 +609,6 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
                * Google Cloud Storage bucket containing the source (see
                * [Bucket Name
          @@ -658,22 +616,20 @@ public com.google.protobuf.ByteString getBucketBytes() {
                * 
          * * string bucket = 1; - * * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { + public Builder setBucket( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bucket_ = value; onChanged(); return this; } /** - * - * *
                * Google Cloud Storage bucket containing the source (see
                * [Bucket Name
          @@ -681,18 +637,15 @@ public Builder setBucket(java.lang.String value) {
                * 
          * * string bucket = 1; - * * @return This builder for chaining. */ public Builder clearBucket() { - + bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } /** - * - * *
                * Google Cloud Storage bucket containing the source (see
                * [Bucket Name
          @@ -700,16 +653,16 @@ public Builder clearBucket() {
                * 
          * * string bucket = 1; - * * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; onChanged(); return this; @@ -717,8 +670,6 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object object_ = ""; /** - * - * *
                * Google Cloud Storage object containing the source.
                * This object must be a gzipped archive file (`.tar.gz`) containing source to
          @@ -726,13 +677,13 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) {
                * 
          * * string object = 2; - * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -741,8 +692,6 @@ 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
          @@ -750,14 +699,15 @@ public java.lang.String getObject() {
                * 
          * * string object = 2; - * * @return The bytes for object. */ - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -765,8 +715,6 @@ 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
          @@ -774,22 +722,20 @@ public com.google.protobuf.ByteString getObjectBytes() {
                * 
          * * string object = 2; - * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject(java.lang.String value) { + public Builder setObject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + object_ = value; onChanged(); return this; } /** - * - * *
                * Google Cloud Storage object containing the source.
                * This object must be a gzipped archive file (`.tar.gz`) containing source to
          @@ -797,18 +743,15 @@ public Builder setObject(java.lang.String value) {
                * 
          * * string object = 2; - * * @return This builder for chaining. */ public Builder clearObject() { - + object_ = getDefaultInstance().getObject(); onChanged(); return this; } /** - * - * *
                * Google Cloud Storage object containing the source.
                * This object must be a gzipped archive file (`.tar.gz`) containing source to
          @@ -816,32 +759,29 @@ public Builder clearObject() {
                * 
          * * string object = 2; - * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes(com.google.protobuf.ByteString value) { + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + object_ = value; onChanged(); return this; } - private long generation_; + private long generation_ ; /** - * - * *
                * Google Cloud Storage generation for the object. If the generation is
                * omitted, the latest generation will be used.
                * 
          * * int64 generation = 3; - * * @return The generation. */ @java.lang.Override @@ -849,45 +789,39 @@ public long getGeneration() { return generation_; } /** - * - * *
                * Google Cloud Storage generation for the object. If the generation is
                * omitted, the latest generation will be used.
                * 
          * * int64 generation = 3; - * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { - + generation_ = value; onChanged(); return this; } /** - * - * *
                * Google Cloud Storage generation for the object. If the generation is
                * omitted, the latest generation will be used.
                * 
          * * int64 generation = 3; - * * @return This builder for chaining. */ public Builder clearGeneration() { - + generation_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -897,12 +831,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.StorageSource) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.StorageSource) private static final com.google.cloud.functions.v2alpha.StorageSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.StorageSource(); } @@ -911,16 +845,16 @@ public static com.google.cloud.functions.v2alpha.StorageSource getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StorageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -935,4 +869,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.StorageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java similarity index 67% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java index 78dcde7a..6b41f0f3 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface StorageSourceOrBuilder - extends +public interface StorageSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.StorageSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
              * Google Cloud Storage bucket containing the source (see
              * [Bucket Name
          @@ -33,13 +15,10 @@ public interface StorageSourceOrBuilder
              * 
          * * string bucket = 1; - * * @return The bucket. */ java.lang.String getBucket(); /** - * - * *
              * Google Cloud Storage bucket containing the source (see
              * [Bucket Name
          @@ -47,14 +26,12 @@ public interface StorageSourceOrBuilder
              * 
          * * string bucket = 1; - * * @return The bytes for bucket. */ - com.google.protobuf.ByteString getBucketBytes(); + 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
          @@ -62,13 +39,10 @@ public interface StorageSourceOrBuilder
              * 
          * * string object = 2; - * * @return The object. */ java.lang.String getObject(); /** - * - * *
              * Google Cloud Storage object containing the source.
              * This object must be a gzipped archive file (`.tar.gz`) containing source to
          @@ -76,21 +50,18 @@ public interface StorageSourceOrBuilder
              * 
          * * string object = 2; - * * @return The bytes for object. */ - com.google.protobuf.ByteString getObjectBytes(); + com.google.protobuf.ByteString + getObjectBytes(); /** - * - * *
              * Google Cloud Storage generation for the object. If the generation is
              * omitted, the latest generation will be used.
              * 
          * * int64 generation = 3; - * * @return The generation. */ long getGeneration(); diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java similarity index 66% rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java index 2d6af7a6..5f483550 100644 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java @@ -1,55 +1,39 @@ -/* - * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** - * - * *
            * Request for the `UpdateFunction` method.
            * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.UpdateFunctionRequest} */ -public final class UpdateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.UpdateFunctionRequest) UpdateFunctionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateFunctionRequest.newBuilder() to construct. private UpdateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateFunctionRequest() {} + private UpdateFunctionRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateFunctionRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.functions.v2alpha.Function.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); - } - function_ = - input.readMessage( - com.google.cloud.functions.v2alpha.Function.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.functions.v2alpha.Function.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); + } + function_ = input.readMessage(com.google.cloud.functions.v2alpha.Function.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,41 +92,34 @@ private UpdateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.UpdateFunctionRequest.class, - com.google.cloud.functions.v2alpha.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.UpdateFunctionRequest.class, com.google.cloud.functions.v2alpha.UpdateFunctionRequest.Builder.class); } public static final int FUNCTION_FIELD_NUMBER = 1; private com.google.cloud.functions.v2alpha.Function function_; /** - * - * *
              * Required. New version of the function.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ @java.lang.Override @@ -155,34 +127,23 @@ public boolean hasFunction() { return function_ != null; } /** - * - * *
              * Required. New version of the function.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Function getFunction() { - return function_ == null - ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() - : function_; + return function_ == null ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() : function_; } /** - * - * *
              * Required. New version of the function.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder() { @@ -192,8 +153,6 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
              * The list of fields to be updated.
              * If no field mask is provided, all provided fields in the request will be
          @@ -201,7 +160,6 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder
              * 
          * * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -209,8 +167,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
              * The list of fields to be updated.
              * If no field mask is provided, all provided fields in the request will be
          @@ -218,7 +174,6 @@ public boolean hasUpdateMask() {
              * 
          * * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -226,8 +181,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
              * The list of fields to be updated.
              * If no field mask is provided, all provided fields in the request will be
          @@ -242,7 +195,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
             }
           
             private byte memoizedIsInitialized = -1;
          -
             @java.lang.Override
             public final boolean isInitialized() {
               byte isInitialized = memoizedIsInitialized;
          @@ -254,7 +206,8 @@ public final boolean isInitialized() {
             }
           
             @java.lang.Override
          -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
          +  public void writeTo(com.google.protobuf.CodedOutputStream output)
          +                      throws java.io.IOException {
               if (function_ != null) {
                 output.writeMessage(1, getFunction());
               }
          @@ -271,10 +224,12 @@ public int getSerializedSize() {
           
               size = 0;
               if (function_ != null) {
          -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunction());
          +      size += com.google.protobuf.CodedOutputStream
          +        .computeMessageSize(1, getFunction());
               }
               if (updateMask_ != null) {
          -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
          +      size += com.google.protobuf.CodedOutputStream
          +        .computeMessageSize(2, getUpdateMask());
               }
               size += unknownFields.getSerializedSize();
               memoizedSize = size;
          @@ -284,21 +239,22 @@ public int getSerializedSize() {
             @java.lang.Override
             public boolean equals(final java.lang.Object obj) {
               if (obj == this) {
          -      return true;
          +     return true;
               }
               if (!(obj instanceof com.google.cloud.functions.v2alpha.UpdateFunctionRequest)) {
                 return super.equals(obj);
               }
          -    com.google.cloud.functions.v2alpha.UpdateFunctionRequest other =
          -        (com.google.cloud.functions.v2alpha.UpdateFunctionRequest) obj;
          +    com.google.cloud.functions.v2alpha.UpdateFunctionRequest other = (com.google.cloud.functions.v2alpha.UpdateFunctionRequest) obj;
           
               if (hasFunction() != other.hasFunction()) return false;
               if (hasFunction()) {
          -      if (!getFunction().equals(other.getFunction())) return false;
          +      if (!getFunction()
          +          .equals(other.getFunction())) return false;
               }
               if (hasUpdateMask() != other.hasUpdateMask()) return false;
               if (hasUpdateMask()) {
          -      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
          +      if (!getUpdateMask()
          +          .equals(other.getUpdateMask())) return false;
               }
               if (!unknownFields.equals(other.unknownFields)) return false;
               return true;
          @@ -325,127 +281,117 @@ public int hashCode() {
             }
           
             public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
          -      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
          +      java.nio.ByteBuffer data)
          +      throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
          -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      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.v2alpha.UpdateFunctionRequest parseFrom(
                 com.google.protobuf.ByteString data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest 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.v2alpha.UpdateFunctionRequest parseFrom(byte[] data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          -
             public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
          -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      byte[] data,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          -
          -  public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
          -      java.io.InputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +  public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(java.io.InputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
          -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input, extensionRegistry);
             }
          -
          -  public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseDelimitedFrom(
          -      java.io.InputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
          +  public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseDelimitedFrom(java.io.InputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseDelimitedWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseDelimitedFrom(
          -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input,
          +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
             }
          -
             public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
          -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
          +      com.google.protobuf.CodedInputStream input)
          +      throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input);
             }
          -
             public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          -        PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3
          +        .parseWithIOException(PARSER, input, extensionRegistry);
             }
           
             @java.lang.Override
          -  public Builder newBuilderForType() {
          -    return newBuilder();
          -  }
          -
          +  public Builder newBuilderForType() { return newBuilder(); }
             public static Builder newBuilder() {
               return DEFAULT_INSTANCE.toBuilder();
             }
          -
          -  public static Builder newBuilder(
          -      com.google.cloud.functions.v2alpha.UpdateFunctionRequest prototype) {
          +  public static Builder newBuilder(com.google.cloud.functions.v2alpha.UpdateFunctionRequest prototype) {
               return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
             }
          -
             @java.lang.Override
             public Builder toBuilder() {
          -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
          +    return this == DEFAULT_INSTANCE
          +        ? new Builder() : new Builder().mergeFrom(this);
             }
           
             @java.lang.Override
          -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +  protected Builder newBuilderForType(
          +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
               Builder builder = new Builder(parent);
               return builder;
             }
             /**
          -   *
          -   *
              * 
              * Request for the `UpdateFunction` method.
              * 
          * * Protobuf type {@code google.cloud.functions.v2alpha.UpdateFunctionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.UpdateFunctionRequest) com.google.cloud.functions.v2alpha.UpdateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.UpdateFunctionRequest.class, - com.google.cloud.functions.v2alpha.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.UpdateFunctionRequest.class, com.google.cloud.functions.v2alpha.UpdateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.UpdateFunctionRequest.newBuilder() @@ -453,15 +399,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto - .internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; } @java.lang.Override @@ -502,8 +449,7 @@ public com.google.cloud.functions.v2alpha.UpdateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.UpdateFunctionRequest buildPartial() { - com.google.cloud.functions.v2alpha.UpdateFunctionRequest result = - new com.google.cloud.functions.v2alpha.UpdateFunctionRequest(this); + com.google.cloud.functions.v2alpha.UpdateFunctionRequest result = new com.google.cloud.functions.v2alpha.UpdateFunctionRequest(this); if (functionBuilder_ == null) { result.function_ = function_; } else { @@ -522,39 +468,38 @@ public com.google.cloud.functions.v2alpha.UpdateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.UpdateFunctionRequest) other); + return mergeFrom((com.google.cloud.functions.v2alpha.UpdateFunctionRequest)other); } else { super.mergeFrom(other); return this; @@ -562,8 +507,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.UpdateFunctionRequest other) { - if (other == com.google.cloud.functions.v2alpha.UpdateFunctionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2alpha.UpdateFunctionRequest.getDefaultInstance()) return this; if (other.hasFunction()) { mergeFunction(other.getFunction()); } @@ -589,8 +533,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2alpha.UpdateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2alpha.UpdateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -602,58 +545,39 @@ public Builder mergeFrom( private com.google.cloud.functions.v2alpha.Function function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, - com.google.cloud.functions.v2alpha.Function.Builder, - com.google.cloud.functions.v2alpha.FunctionOrBuilder> - functionBuilder_; + com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder> functionBuilder_; /** - * - * *
                * Required. New version of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** - * - * *
                * Required. New version of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ public com.google.cloud.functions.v2alpha.Function getFunction() { if (functionBuilder_ == null) { - return function_ == null - ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() - : function_; + return function_ == null ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() : function_; } else { return functionBuilder_.getMessage(); } } /** - * - * *
                * Required. New version of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFunction(com.google.cloud.functions.v2alpha.Function value) { if (functionBuilder_ == null) { @@ -669,15 +593,11 @@ public Builder setFunction(com.google.cloud.functions.v2alpha.Function value) { return this; } /** - * - * *
                * Required. New version of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFunction( com.google.cloud.functions.v2alpha.Function.Builder builderForValue) { @@ -691,23 +611,17 @@ public Builder setFunction( return this; } /** - * - * *
                * Required. New version of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFunction(com.google.cloud.functions.v2alpha.Function value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v2alpha.Function.newBuilder(function_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.functions.v2alpha.Function.newBuilder(function_).mergeFrom(value).buildPartial(); } else { function_ = value; } @@ -719,15 +633,11 @@ public Builder mergeFunction(com.google.cloud.functions.v2alpha.Function value) return this; } /** - * - * *
                * Required. New version of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -741,64 +651,48 @@ public Builder clearFunction() { return this; } /** - * - * *
                * Required. New version of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.functions.v2alpha.Function.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** - * - * *
                * Required. New version of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null - ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() - : function_; + return function_ == null ? + com.google.cloud.functions.v2alpha.Function.getDefaultInstance() : function_; } } /** - * - * *
                * Required. New version of the function.
                * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, - com.google.cloud.functions.v2alpha.Function.Builder, - com.google.cloud.functions.v2alpha.FunctionOrBuilder> + com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, - com.google.cloud.functions.v2alpha.Function.Builder, - com.google.cloud.functions.v2alpha.FunctionOrBuilder>( - getFunction(), getParentForChildren(), isClean()); + functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder>( + getFunction(), + getParentForChildren(), + isClean()); function_ = null; } return functionBuilder_; @@ -806,13 +700,8 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
                * The list of fields to be updated.
                * If no field mask is provided, all provided fields in the request will be
          @@ -820,15 +709,12 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder
                * 
          * * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
                * The list of fields to be updated.
                * If no field mask is provided, all provided fields in the request will be
          @@ -836,21 +722,16 @@ public boolean hasUpdateMask() {
                * 
          * * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
                * The list of fields to be updated.
                * If no field mask is provided, all provided fields in the request will be
          @@ -873,8 +754,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The list of fields to be updated.
                * If no field mask is provided, all provided fields in the request will be
          @@ -883,7 +762,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                *
                * .google.protobuf.FieldMask update_mask = 2;
                */
          -    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
          +    public Builder setUpdateMask(
          +        com.google.protobuf.FieldMask.Builder builderForValue) {
                 if (updateMaskBuilder_ == null) {
                   updateMask_ = builderForValue.build();
                   onChanged();
          @@ -894,8 +774,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The list of fields to be updated.
                * If no field mask is provided, all provided fields in the request will be
          @@ -908,7 +786,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                 if (updateMaskBuilder_ == null) {
                   if (updateMask_ != null) {
                     updateMask_ =
          -              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
          +            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
                   } else {
                     updateMask_ = value;
                   }
          @@ -920,8 +798,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The list of fields to be updated.
                * If no field mask is provided, all provided fields in the request will be
          @@ -942,8 +818,6 @@ public Builder clearUpdateMask() {
                 return this;
               }
               /**
          -     *
          -     *
                * 
                * The list of fields to be updated.
                * If no field mask is provided, all provided fields in the request will be
          @@ -953,13 +827,11 @@ public Builder clearUpdateMask() {
                * .google.protobuf.FieldMask update_mask = 2;
                */
               public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
          -
          +      
                 onChanged();
                 return getUpdateMaskFieldBuilder().getBuilder();
               }
               /**
          -     *
          -     *
                * 
                * The list of fields to be updated.
                * If no field mask is provided, all provided fields in the request will be
          @@ -972,14 +844,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                 if (updateMaskBuilder_ != null) {
                   return updateMaskBuilder_.getMessageOrBuilder();
                 } else {
          -        return updateMask_ == null
          -            ? com.google.protobuf.FieldMask.getDefaultInstance()
          -            : updateMask_;
          +        return updateMask_ == null ?
          +            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
                 }
               }
               /**
          -     *
          -     *
                * 
                * The list of fields to be updated.
                * If no field mask is provided, all provided fields in the request will be
          @@ -989,24 +858,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                * .google.protobuf.FieldMask update_mask = 2;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.protobuf.FieldMask,
          -            com.google.protobuf.FieldMask.Builder,
          -            com.google.protobuf.FieldMaskOrBuilder>
          +        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
                   getUpdateMaskFieldBuilder() {
                 if (updateMaskBuilder_ == null) {
          -        updateMaskBuilder_ =
          -            new com.google.protobuf.SingleFieldBuilderV3<
          -                com.google.protobuf.FieldMask,
          -                com.google.protobuf.FieldMask.Builder,
          -                com.google.protobuf.FieldMaskOrBuilder>(
          -                getUpdateMask(), getParentForChildren(), isClean());
          +        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          +            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
          +                getUpdateMask(),
          +                getParentForChildren(),
          +                isClean());
                   updateMask_ = null;
                 }
                 return updateMaskBuilder_;
               }
          -
               @java.lang.Override
          -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
          +    public final Builder setUnknownFields(
          +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                 return super.setUnknownFields(unknownFields);
               }
           
          @@ -1016,12 +882,12 @@ public final Builder mergeUnknownFields(
                 return super.mergeUnknownFields(unknownFields);
               }
           
          +
               // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.UpdateFunctionRequest)
             }
           
             // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.UpdateFunctionRequest)
             private static final com.google.cloud.functions.v2alpha.UpdateFunctionRequest DEFAULT_INSTANCE;
          -
             static {
               DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.UpdateFunctionRequest();
             }
          @@ -1030,16 +896,16 @@ public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest getDefaul
               return DEFAULT_INSTANCE;
             }
           
          -  private static final com.google.protobuf.Parser PARSER =
          -      new com.google.protobuf.AbstractParser() {
          -        @java.lang.Override
          -        public UpdateFunctionRequest parsePartialFrom(
          -            com.google.protobuf.CodedInputStream input,
          -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -            throws com.google.protobuf.InvalidProtocolBufferException {
          -          return new UpdateFunctionRequest(input, extensionRegistry);
          -        }
          -      };
          +  private static final com.google.protobuf.Parser
          +      PARSER = new com.google.protobuf.AbstractParser() {
          +    @java.lang.Override
          +    public UpdateFunctionRequest parsePartialFrom(
          +        com.google.protobuf.CodedInputStream input,
          +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +        throws com.google.protobuf.InvalidProtocolBufferException {
          +      return new UpdateFunctionRequest(input, extensionRegistry);
          +    }
          +  };
           
             public static com.google.protobuf.Parser parser() {
               return PARSER;
          @@ -1054,4 +920,6 @@ public com.google.protobuf.Parser getParserForType() {
             public com.google.cloud.functions.v2alpha.UpdateFunctionRequest getDefaultInstanceForType() {
               return DEFAULT_INSTANCE;
             }
          +
           }
          +
          diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java
          similarity index 60%
          rename from proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java
          rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java
          index fad1333c..fdd2d1eb 100644
          --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java
          +++ b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java
          @@ -1,72 +1,40 @@
          -/*
          - * 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/v2alpha/functions.proto
           
           package com.google.cloud.functions.v2alpha;
           
          -public interface UpdateFunctionRequestOrBuilder
          -    extends
          +public interface UpdateFunctionRequestOrBuilder extends
               // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.UpdateFunctionRequest)
               com.google.protobuf.MessageOrBuilder {
           
             /**
          -   *
          -   *
              * 
              * Required. New version of the function.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ boolean hasFunction(); /** - * - * *
              * Required. New version of the function.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ com.google.cloud.functions.v2alpha.Function getFunction(); /** - * - * *
              * Required. New version of the function.
              * 
          * - * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder(); /** - * - * *
              * The list of fields to be updated.
              * If no field mask is provided, all provided fields in the request will be
          @@ -74,13 +42,10 @@ public interface UpdateFunctionRequestOrBuilder
              * 
          * * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
              * The list of fields to be updated.
              * If no field mask is provided, all provided fields in the request will be
          @@ -88,13 +53,10 @@ public interface UpdateFunctionRequestOrBuilder
              * 
          * * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
              * The list of fields to be updated.
              * If no field mask is provided, all provided fields in the request will be
          diff --git a/proto-google-cloud-functions-v2alpha/src/main/proto/google/cloud/functions/v2alpha/functions.proto b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/proto/google/cloud/functions/v2alpha/functions.proto
          similarity index 100%
          rename from proto-google-cloud-functions-v2alpha/src/main/proto/google/cloud/functions/v2alpha/functions.proto
          rename to owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/proto/google/cloud/functions/v2alpha/functions.proto
          diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java
          similarity index 98%
          rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java
          rename to owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java
          index dc8cc17d..f276c143 100644
          --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java
          +++ b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java
          @@ -76,13 +76,13 @@
            * methods:
            *
            * 
            - *
          1. A "flattened" method. With this type of method, the fields of the request type have been + *
          2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
          3. A "request object" method. This type of method only takes one parameter, a request object, + *
          4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
          5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
          6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
          * @@ -879,8 +879,8 @@ public final UnaryCallable deleteFunctionCalla *

          When uploading source code to the generated signed URL, please follow these restrictions: * *

            - *
          • Source file type should be a zip file. - *
          • No credentials should be attached - the signed URLs provide access to the target bucket + *
          • Source file type should be a zip file. + *
          • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -889,13 +889,13 @@ public final UnaryCallable deleteFunctionCalla *

            When making a HTTP PUT request, these two headers need to be specified: * *

              - *
            • `content-type: application/zip` + *
            • `content-type: application/zip` *
            * *

            And this header SHOULD NOT be specified: * *

              - *
            • `Authorization: Bearer YOUR_TOKEN` + *
            • `Authorization: Bearer YOUR_TOKEN` *
            * *

            Sample code: @@ -929,8 +929,8 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

            When uploading source code to the generated signed URL, please follow these restrictions: * *

              - *
            • Source file type should be a zip file. - *
            • No credentials should be attached - the signed URLs provide access to the target bucket + *
            • Source file type should be a zip file. + *
            • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -939,13 +939,13 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

              When making a HTTP PUT request, these two headers need to be specified: * *

                - *
              • `content-type: application/zip` + *
              • `content-type: application/zip` *
              * *

              And this header SHOULD NOT be specified: * *

                - *
              • `Authorization: Bearer YOUR_TOKEN` + *
              • `Authorization: Bearer YOUR_TOKEN` *
              * *

              Sample code: @@ -1431,10 +1431,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListFunctionsPagedResponse extends AbstractPagedListResponse< - ListFunctionsRequest, - ListFunctionsResponse, - Function, - ListFunctionsPage, + ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage, ListFunctionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1484,10 +1481,7 @@ public ApiFuture createPageAsync( public static class ListFunctionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFunctionsRequest, - ListFunctionsResponse, - Function, - ListFunctionsPage, + ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage, ListFunctionsFixedSizeCollection> { private ListFunctionsFixedSizeCollection(List pages, int collectionSize) { @@ -1507,10 +1501,7 @@ protected ListFunctionsFixedSizeCollection createCollection( public static class ListLocationsPagedResponse extends AbstractPagedListResponse< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1560,10 +1551,7 @@ public ApiFuture createPageAsync( public static class ListLocationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, ListLocationsFixedSizeCollection> { private ListLocationsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java similarity index 98% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java index 0a20e92f..8aad7ebe 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java +++ b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java @@ -30,6 +30,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.functions.v2beta.stub.FunctionServiceStubSettings; @@ -53,10 +54,10 @@ *

              The default instance has everything set to sensible defaults: * *

                - *
              • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
              • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
              • Credentials are acquired automatically through Application Default Credentials. - *
              • Retries are configured for idempotent methods but not for non-idempotent methods. + *
              • Credentials are acquired automatically through Application Default Credentials. + *
              • Retries are configured for idempotent methods but not for non-idempotent methods. *
              * *

              The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/gapic_metadata.json b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/gapic_metadata.json similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/gapic_metadata.json rename to owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/gapic_metadata.json diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/package-info.java b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/package-info.java similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/package-info.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/package-info.java diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java similarity index 99% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java index 838580f6..3f0e9196 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java +++ b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java @@ -88,10 +88,10 @@ *

              The default instance has everything set to sensible defaults: * *

                - *
              • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
              • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
              • Credentials are acquired automatically through Application Default Credentials. - *
              • Retries are configured for idempotent methods but not for non-idempotent methods. + *
              • Credentials are acquired automatically through Application Default Credentials. + *
              • Retries are configured for idempotent methods but not for non-idempotent methods. *
              * *

              The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceCallableFactory.java b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceCallableFactory.java similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceCallableFactory.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceCallableFactory.java diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java similarity index 99% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java index 8346fe77..b0503937 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java +++ b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java @@ -55,6 +55,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceCallableFactory.java b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceCallableFactory.java similarity index 100% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceCallableFactory.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceCallableFactory.java diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java similarity index 99% rename from google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java index 82e0d1f3..b2e64d1d 100644 --- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java +++ b/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java @@ -31,6 +31,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java b/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java b/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionService.java b/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionService.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionService.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionService.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionServiceImpl.java b/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionServiceImpl.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionServiceImpl.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionServiceImpl.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicy.java b/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicy.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicy.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicy.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicyImpl.java b/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicyImpl.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicyImpl.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicyImpl.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocations.java b/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocations.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocations.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocations.java diff --git a/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocationsImpl.java b/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocationsImpl.java similarity index 100% rename from google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocationsImpl.java rename to owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocationsImpl.java diff --git a/owl-bot-staging/v2beta/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java b/owl-bot-staging/v2beta/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java new file mode 100644 index 00000000..6929bb43 --- /dev/null +++ b/owl-bot-staging/v2beta/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java @@ -0,0 +1,1021 @@ +package com.google.cloud.functions.v2beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

              + * Google Cloud Functions is used to deploy functions that are executed by
              + * Google in response to various events. Data connected with that event is
              + * passed to a function as the input data.
              + * A **function** is a resource which describes a function that should be
              + * executed and how it is triggered.
              + * 
              + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/functions/v2beta/functions.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class FunctionServiceGrpc { + + private FunctionServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.functions.v2beta.FunctionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFunction", + requestType = com.google.cloud.functions.v2beta.GetFunctionRequest.class, + responseType = com.google.cloud.functions.v2beta.Function.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFunctionMethod() { + io.grpc.MethodDescriptor getGetFunctionMethod; + if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { + FunctionServiceGrpc.getGetFunctionMethod = getGetFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.GetFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.Function.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GetFunction")) + .build(); + } + } + } + return getGetFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFunctionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFunctions", + requestType = com.google.cloud.functions.v2beta.ListFunctionsRequest.class, + responseType = com.google.cloud.functions.v2beta.ListFunctionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFunctionsMethod() { + io.grpc.MethodDescriptor getListFunctionsMethod; + if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { + FunctionServiceGrpc.getListFunctionsMethod = getListFunctionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.ListFunctionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.ListFunctionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListFunctions")) + .build(); + } + } + } + return getListFunctionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFunction", + requestType = com.google.cloud.functions.v2beta.CreateFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFunctionMethod() { + io.grpc.MethodDescriptor getCreateFunctionMethod; + if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { + FunctionServiceGrpc.getCreateFunctionMethod = getCreateFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.CreateFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("CreateFunction")) + .build(); + } + } + } + return getCreateFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFunction", + requestType = com.google.cloud.functions.v2beta.UpdateFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateFunctionMethod() { + io.grpc.MethodDescriptor getUpdateFunctionMethod; + if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { + FunctionServiceGrpc.getUpdateFunctionMethod = getUpdateFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.UpdateFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("UpdateFunction")) + .build(); + } + } + } + return getUpdateFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFunction", + requestType = com.google.cloud.functions.v2beta.DeleteFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteFunctionMethod() { + io.grpc.MethodDescriptor getDeleteFunctionMethod; + if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { + FunctionServiceGrpc.getDeleteFunctionMethod = getDeleteFunctionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.DeleteFunctionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("DeleteFunction")) + .build(); + } + } + } + return getDeleteFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateUploadUrlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateUploadUrl", + requestType = com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.class, + responseType = com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateUploadUrlMethod() { + io.grpc.MethodDescriptor getGenerateUploadUrlMethod; + if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { + FunctionServiceGrpc.getGenerateUploadUrlMethod = getGenerateUploadUrlMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GenerateUploadUrl")) + .build(); + } + } + } + return getGenerateUploadUrlMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateDownloadUrl", + requestType = com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.class, + responseType = com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateDownloadUrlMethod() { + io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; + if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { + FunctionServiceGrpc.getGenerateDownloadUrlMethod = getGenerateDownloadUrlMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GenerateDownloadUrl")) + .build(); + } + } + } + return getGenerateDownloadUrlMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRuntimesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", + requestType = com.google.cloud.functions.v2beta.ListRuntimesRequest.class, + responseType = com.google.cloud.functions.v2beta.ListRuntimesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRuntimesMethod() { + io.grpc.MethodDescriptor getListRuntimesMethod; + if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { + FunctionServiceGrpc.getListRuntimesMethod = getListRuntimesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.ListRuntimesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.ListRuntimesResponse.getDefaultInstance())) + .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListRuntimes")) + .build(); + } + } + } + return getListRuntimesMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static FunctionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceStub(channel, callOptions); + } + }; + return FunctionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static FunctionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceBlockingStub(channel, callOptions); + } + }; + return FunctionServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static FunctionServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceFutureStub(channel, callOptions); + } + }; + return FunctionServiceFutureStub.newStub(factory, channel); + } + + /** + *
              +   * Google Cloud Functions is used to deploy functions that are executed by
              +   * Google in response to various events. Data connected with that event is
              +   * passed to a function as the input data.
              +   * A **function** is a resource which describes a function that should be
              +   * executed and how it is triggered.
              +   * 
              + */ + public static abstract class FunctionServiceImplBase implements io.grpc.BindableService { + + /** + *
              +     * Returns a function with the given name from the requested project.
              +     * 
              + */ + public void getFunction(com.google.cloud.functions.v2beta.GetFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFunctionMethod(), responseObserver); + } + + /** + *
              +     * Returns a list of functions that belong to the requested project.
              +     * 
              + */ + public void listFunctions(com.google.cloud.functions.v2beta.ListFunctionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFunctionsMethod(), responseObserver); + } + + /** + *
              +     * 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.
              +     * 
              + */ + public void createFunction(com.google.cloud.functions.v2beta.CreateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFunctionMethod(), responseObserver); + } + + /** + *
              +     * Updates existing function.
              +     * 
              + */ + public void updateFunction(com.google.cloud.functions.v2beta.UpdateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFunctionMethod(), responseObserver); + } + + /** + *
              +     * Deletes a function with the given name from the specified project. If the
              +     * given function is used by some trigger, the trigger will be updated to
              +     * remove this function.
              +     * 
              + */ + public void deleteFunction(com.google.cloud.functions.v2beta.DeleteFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFunctionMethod(), responseObserver); + } + + /** + *
              +     * Returns a signed URL for uploading a function source code.
              +     * For more information about the signed URL usage see:
              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
              +     * Once the function source code upload is complete, the used signed
              +     * URL should be provided in CreateFunction or UpdateFunction request
              +     * as a reference to the function source code.
              +     * When uploading source code to the generated signed URL, please follow
              +     * these restrictions:
              +     * * Source file type should be a zip file.
              +     * * No credentials should be attached - the signed URLs provide access to the
              +     *   target bucket using internal service identity; if credentials were
              +     *   attached, the identity from the credentials would be used, but that
              +     *   identity does not have permissions to upload files to the URL.
              +     * When making a HTTP PUT request, these two headers need to be specified:
              +     * * `content-type: application/zip`
              +     * And this header SHOULD NOT be specified:
              +     * * `Authorization: Bearer YOUR_TOKEN`
              +     * 
              + */ + public void generateUploadUrl(com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateUploadUrlMethod(), responseObserver); + } + + /** + *
              +     * Returns a signed URL for downloading deployed function source code.
              +     * The URL is only valid for a limited period and should be used within
              +     * 30 minutes of generation.
              +     * For more information about the signed URL usage see:
              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
              +     * 
              + */ + public void generateDownloadUrl(com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateDownloadUrlMethod(), responseObserver); + } + + /** + *
              +     * Returns a list of runtimes that are supported for the requested project.
              +     * 
              + */ + public void listRuntimes(com.google.cloud.functions.v2beta.ListRuntimesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuntimesMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.GetFunctionRequest, + com.google.cloud.functions.v2beta.Function>( + this, METHODID_GET_FUNCTION))) + .addMethod( + getListFunctionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.ListFunctionsRequest, + com.google.cloud.functions.v2beta.ListFunctionsResponse>( + this, METHODID_LIST_FUNCTIONS))) + .addMethod( + getCreateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.CreateFunctionRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_FUNCTION))) + .addMethod( + getUpdateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.UpdateFunctionRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_FUNCTION))) + .addMethod( + getDeleteFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.DeleteFunctionRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_FUNCTION))) + .addMethod( + getGenerateUploadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest, + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse>( + this, METHODID_GENERATE_UPLOAD_URL))) + .addMethod( + getGenerateDownloadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse>( + this, METHODID_GENERATE_DOWNLOAD_URL))) + .addMethod( + getListRuntimesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.ListRuntimesRequest, + com.google.cloud.functions.v2beta.ListRuntimesResponse>( + this, METHODID_LIST_RUNTIMES))) + .build(); + } + } + + /** + *
              +   * Google Cloud Functions is used to deploy functions that are executed by
              +   * Google in response to various events. Data connected with that event is
              +   * passed to a function as the input data.
              +   * A **function** is a resource which describes a function that should be
              +   * executed and how it is triggered.
              +   * 
              + */ + public static final class FunctionServiceStub extends io.grpc.stub.AbstractAsyncStub { + private FunctionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceStub(channel, callOptions); + } + + /** + *
              +     * Returns a function with the given name from the requested project.
              +     * 
              + */ + public void getFunction(com.google.cloud.functions.v2beta.GetFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
              +     * Returns a list of functions that belong to the requested project.
              +     * 
              + */ + public void listFunctions(com.google.cloud.functions.v2beta.ListFunctionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
              +     * 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.
              +     * 
              + */ + public void createFunction(com.google.cloud.functions.v2beta.CreateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
              +     * Updates existing function.
              +     * 
              + */ + public void updateFunction(com.google.cloud.functions.v2beta.UpdateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
              +     * Deletes a function with the given name from the specified project. If the
              +     * given function is used by some trigger, the trigger will be updated to
              +     * remove this function.
              +     * 
              + */ + public void deleteFunction(com.google.cloud.functions.v2beta.DeleteFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
              +     * Returns a signed URL for uploading a function source code.
              +     * For more information about the signed URL usage see:
              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
              +     * Once the function source code upload is complete, the used signed
              +     * URL should be provided in CreateFunction or UpdateFunction request
              +     * as a reference to the function source code.
              +     * When uploading source code to the generated signed URL, please follow
              +     * these restrictions:
              +     * * Source file type should be a zip file.
              +     * * No credentials should be attached - the signed URLs provide access to the
              +     *   target bucket using internal service identity; if credentials were
              +     *   attached, the identity from the credentials would be used, but that
              +     *   identity does not have permissions to upload files to the URL.
              +     * When making a HTTP PUT request, these two headers need to be specified:
              +     * * `content-type: application/zip`
              +     * And this header SHOULD NOT be specified:
              +     * * `Authorization: Bearer YOUR_TOKEN`
              +     * 
              + */ + public void generateUploadUrl(com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
              +     * Returns a signed URL for downloading deployed function source code.
              +     * The URL is only valid for a limited period and should be used within
              +     * 30 minutes of generation.
              +     * For more information about the signed URL usage see:
              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
              +     * 
              + */ + public void generateDownloadUrl(com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
              +     * Returns a list of runtimes that are supported for the requested project.
              +     * 
              + */ + public void listRuntimes(com.google.cloud.functions.v2beta.ListRuntimesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
              +   * Google Cloud Functions is used to deploy functions that are executed by
              +   * Google in response to various events. Data connected with that event is
              +   * passed to a function as the input data.
              +   * A **function** is a resource which describes a function that should be
              +   * executed and how it is triggered.
              +   * 
              + */ + public static final class FunctionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private FunctionServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceBlockingStub(channel, callOptions); + } + + /** + *
              +     * Returns a function with the given name from the requested project.
              +     * 
              + */ + public com.google.cloud.functions.v2beta.Function getFunction(com.google.cloud.functions.v2beta.GetFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFunctionMethod(), getCallOptions(), request); + } + + /** + *
              +     * Returns a list of functions that belong to the requested project.
              +     * 
              + */ + public com.google.cloud.functions.v2beta.ListFunctionsResponse listFunctions(com.google.cloud.functions.v2beta.ListFunctionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFunctionsMethod(), getCallOptions(), request); + } + + /** + *
              +     * 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.
              +     * 
              + */ + public com.google.longrunning.Operation createFunction(com.google.cloud.functions.v2beta.CreateFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFunctionMethod(), getCallOptions(), request); + } + + /** + *
              +     * Updates existing function.
              +     * 
              + */ + public com.google.longrunning.Operation updateFunction(com.google.cloud.functions.v2beta.UpdateFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); + } + + /** + *
              +     * Deletes a function with the given name from the specified project. If the
              +     * given function is used by some trigger, the trigger will be updated to
              +     * remove this function.
              +     * 
              + */ + public com.google.longrunning.Operation deleteFunction(com.google.cloud.functions.v2beta.DeleteFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); + } + + /** + *
              +     * Returns a signed URL for uploading a function source code.
              +     * For more information about the signed URL usage see:
              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
              +     * Once the function source code upload is complete, the used signed
              +     * URL should be provided in CreateFunction or UpdateFunction request
              +     * as a reference to the function source code.
              +     * When uploading source code to the generated signed URL, please follow
              +     * these restrictions:
              +     * * Source file type should be a zip file.
              +     * * No credentials should be attached - the signed URLs provide access to the
              +     *   target bucket using internal service identity; if credentials were
              +     *   attached, the identity from the credentials would be used, but that
              +     *   identity does not have permissions to upload files to the URL.
              +     * When making a HTTP PUT request, these two headers need to be specified:
              +     * * `content-type: application/zip`
              +     * And this header SHOULD NOT be specified:
              +     * * `Authorization: Bearer YOUR_TOKEN`
              +     * 
              + */ + public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse generateUploadUrl(com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); + } + + /** + *
              +     * Returns a signed URL for downloading deployed function source code.
              +     * The URL is only valid for a limited period and should be used within
              +     * 30 minutes of generation.
              +     * For more information about the signed URL usage see:
              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
              +     * 
              + */ + public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse generateDownloadUrl(com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); + } + + /** + *
              +     * Returns a list of runtimes that are supported for the requested project.
              +     * 
              + */ + public com.google.cloud.functions.v2beta.ListRuntimesResponse listRuntimes(com.google.cloud.functions.v2beta.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRuntimesMethod(), getCallOptions(), request); + } + } + + /** + *
              +   * Google Cloud Functions is used to deploy functions that are executed by
              +   * Google in response to various events. Data connected with that event is
              +   * passed to a function as the input data.
              +   * A **function** is a resource which describes a function that should be
              +   * executed and how it is triggered.
              +   * 
              + */ + public static final class FunctionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private FunctionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceFutureStub(channel, callOptions); + } + + /** + *
              +     * Returns a function with the given name from the requested project.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture getFunction( + com.google.cloud.functions.v2beta.GetFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request); + } + + /** + *
              +     * Returns a list of functions that belong to the requested project.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture listFunctions( + com.google.cloud.functions.v2beta.ListFunctionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request); + } + + /** + *
              +     * 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.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture createFunction( + com.google.cloud.functions.v2beta.CreateFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request); + } + + /** + *
              +     * Updates existing function.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture updateFunction( + com.google.cloud.functions.v2beta.UpdateFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request); + } + + /** + *
              +     * Deletes a function with the given name from the specified project. If the
              +     * given function is used by some trigger, the trigger will be updated to
              +     * remove this function.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture deleteFunction( + com.google.cloud.functions.v2beta.DeleteFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request); + } + + /** + *
              +     * Returns a signed URL for uploading a function source code.
              +     * For more information about the signed URL usage see:
              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
              +     * Once the function source code upload is complete, the used signed
              +     * URL should be provided in CreateFunction or UpdateFunction request
              +     * as a reference to the function source code.
              +     * When uploading source code to the generated signed URL, please follow
              +     * these restrictions:
              +     * * Source file type should be a zip file.
              +     * * No credentials should be attached - the signed URLs provide access to the
              +     *   target bucket using internal service identity; if credentials were
              +     *   attached, the identity from the credentials would be used, but that
              +     *   identity does not have permissions to upload files to the URL.
              +     * When making a HTTP PUT request, these two headers need to be specified:
              +     * * `content-type: application/zip`
              +     * And this header SHOULD NOT be specified:
              +     * * `Authorization: Bearer YOUR_TOKEN`
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture generateUploadUrl( + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request); + } + + /** + *
              +     * Returns a signed URL for downloading deployed function source code.
              +     * The URL is only valid for a limited period and should be used within
              +     * 30 minutes of generation.
              +     * For more information about the signed URL usage see:
              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture generateDownloadUrl( + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request); + } + + /** + *
              +     * Returns a list of runtimes that are supported for the requested project.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture listRuntimes( + com.google.cloud.functions.v2beta.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_FUNCTION = 0; + private static final int METHODID_LIST_FUNCTIONS = 1; + private static final int METHODID_CREATE_FUNCTION = 2; + private static final int METHODID_UPDATE_FUNCTION = 3; + private static final int METHODID_DELETE_FUNCTION = 4; + private static final int METHODID_GENERATE_UPLOAD_URL = 5; + private static final int METHODID_GENERATE_DOWNLOAD_URL = 6; + private static final int METHODID_LIST_RUNTIMES = 7; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final FunctionServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(FunctionServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_FUNCTION: + serviceImpl.getFunction((com.google.cloud.functions.v2beta.GetFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FUNCTIONS: + serviceImpl.listFunctions((com.google.cloud.functions.v2beta.ListFunctionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FUNCTION: + serviceImpl.createFunction((com.google.cloud.functions.v2beta.CreateFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FUNCTION: + serviceImpl.updateFunction((com.google.cloud.functions.v2beta.UpdateFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FUNCTION: + serviceImpl.deleteFunction((com.google.cloud.functions.v2beta.DeleteFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_UPLOAD_URL: + serviceImpl.generateUploadUrl((com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_DOWNLOAD_URL: + serviceImpl.generateDownloadUrl((com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RUNTIMES: + serviceImpl.listRuntimes((com.google.cloud.functions.v2beta.ListRuntimesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class FunctionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + FunctionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("FunctionService"); + } + } + + private static final class FunctionServiceFileDescriptorSupplier + extends FunctionServiceBaseDescriptorSupplier { + FunctionServiceFileDescriptorSupplier() {} + } + + private static final class FunctionServiceMethodDescriptorSupplier + extends FunctionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + FunctionServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (FunctionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new FunctionServiceFileDescriptorSupplier()) + .addMethod(getGetFunctionMethod()) + .addMethod(getListFunctionsMethod()) + .addMethod(getCreateFunctionMethod()) + .addMethod(getUpdateFunctionMethod()) + .addMethod(getDeleteFunctionMethod()) + .addMethod(getGenerateUploadUrlMethod()) + .addMethod(getGenerateDownloadUrlMethod()) + .addMethod(getListRuntimesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java similarity index 70% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java index c5165e5c..06ba2869 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * *
                * Describes the Build step of the function that builds a container from the
                * given source.
              @@ -28,16 +11,15 @@
                *
                * Protobuf type {@code google.cloud.functions.v2beta.BuildConfig}
                */
              -public final class BuildConfig extends com.google.protobuf.GeneratedMessageV3
              -    implements
              +public final class BuildConfig extends
              +    com.google.protobuf.GeneratedMessageV3 implements
                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.BuildConfig)
                   BuildConfigOrBuilder {
              -  private static final long serialVersionUID = 0L;
              +private static final long serialVersionUID = 0L;
                 // Use BuildConfig.newBuilder() to construct.
                 private BuildConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
              -
                 private BuildConfig() {
                   build_ = "";
                   runtime_ = "";
              @@ -48,15 +30,16 @@ private BuildConfig() {
               
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
              -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
              +  protected java.lang.Object newInstance(
              +      UnusedPrivateParameter unused) {
                   return new BuildConfig();
                 }
               
                 @java.lang.Override
              -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
              +  public final com.google.protobuf.UnknownFieldSet
              +  getUnknownFields() {
                   return this.unknownFields;
                 }
              -
                 private BuildConfig(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              @@ -76,99 +59,82 @@ private BuildConfig(
                         case 0:
                           done = true;
                           break;
              -          case 10:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +          case 10: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              build_ = s;
              -              break;
              -            }
              -          case 18:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            build_ = s;
              +            break;
              +          }
              +          case 18: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              runtime_ = s;
              -              break;
              -            }
              -          case 26:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            runtime_ = s;
              +            break;
              +          }
              +          case 26: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              entryPoint_ = s;
              -              break;
              +            entryPoint_ = s;
              +            break;
              +          }
              +          case 34: {
              +            com.google.cloud.functions.v2beta.Source.Builder subBuilder = null;
              +            if (source_ != null) {
              +              subBuilder = source_.toBuilder();
                           }
              -          case 34:
              -            {
              -              com.google.cloud.functions.v2beta.Source.Builder subBuilder = null;
              -              if (source_ != null) {
              -                subBuilder = source_.toBuilder();
              -              }
              -              source_ =
              -                  input.readMessage(
              -                      com.google.cloud.functions.v2beta.Source.parser(), extensionRegistry);
              -              if (subBuilder != null) {
              -                subBuilder.mergeFrom(source_);
              -                source_ = subBuilder.buildPartial();
              -              }
              -
              -              break;
              +            source_ = input.readMessage(com.google.cloud.functions.v2beta.Source.parser(), extensionRegistry);
              +            if (subBuilder != null) {
              +              subBuilder.mergeFrom(source_);
              +              source_ = subBuilder.buildPartial();
                           }
              -          case 42:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
               
              -              workerPool_ = s;
              -              break;
              -            }
              -          case 50:
              -            {
              -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              -                environmentVariables_ =
              -                    com.google.protobuf.MapField.newMapField(
              -                        EnvironmentVariablesDefaultEntryHolder.defaultEntry);
              -                mutable_bitField0_ |= 0x00000001;
              -              }
              -              com.google.protobuf.MapEntry
              -                  environmentVariables__ =
              -                      input.readMessage(
              -                          EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
              -                          extensionRegistry);
              -              environmentVariables_
              -                  .getMutableMap()
              -                  .put(environmentVariables__.getKey(), environmentVariables__.getValue());
              -              break;
              +            break;
              +          }
              +          case 42: {
              +            java.lang.String s = input.readStringRequireUtf8();
              +
              +            workerPool_ = s;
              +            break;
              +          }
              +          case 50: {
              +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              +              environmentVariables_ = com.google.protobuf.MapField.newMapField(
              +                  EnvironmentVariablesDefaultEntryHolder.defaultEntry);
              +              mutable_bitField0_ |= 0x00000001;
                           }
              -          case 58:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            com.google.protobuf.MapEntry
              +            environmentVariables__ = input.readMessage(
              +                EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              +            environmentVariables_.getMutableMap().put(
              +                environmentVariables__.getKey(), environmentVariables__.getValue());
              +            break;
              +          }
              +          case 58: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              dockerRepository_ = s;
              -              break;
              +            dockerRepository_ = s;
              +            break;
              +          }
              +          case 66: {
              +            com.google.cloud.functions.v2beta.SourceProvenance.Builder subBuilder = null;
              +            if (sourceProvenance_ != null) {
              +              subBuilder = sourceProvenance_.toBuilder();
                           }
              -          case 66:
              -            {
              -              com.google.cloud.functions.v2beta.SourceProvenance.Builder subBuilder = null;
              -              if (sourceProvenance_ != null) {
              -                subBuilder = sourceProvenance_.toBuilder();
              -              }
              -              sourceProvenance_ =
              -                  input.readMessage(
              -                      com.google.cloud.functions.v2beta.SourceProvenance.parser(),
              -                      extensionRegistry);
              -              if (subBuilder != null) {
              -                subBuilder.mergeFrom(sourceProvenance_);
              -                sourceProvenance_ = subBuilder.buildPartial();
              -              }
              -
              -              break;
              +            sourceProvenance_ = input.readMessage(com.google.cloud.functions.v2beta.SourceProvenance.parser(), extensionRegistry);
              +            if (subBuilder != null) {
              +              subBuilder.mergeFrom(sourceProvenance_);
              +              sourceProvenance_ = subBuilder.buildPartial();
                           }
              -          default:
              -            {
              -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
              -                done = true;
              -              }
              -              break;
              +
              +            break;
              +          }
              +          default: {
              +            if (!parseUnknownField(
              +                input, unknownFields, extensionRegistry, tag)) {
              +              done = true;
                           }
              +            break;
              +          }
                       }
                     }
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              @@ -176,53 +142,47 @@ private BuildConfig(
                   } catch (com.google.protobuf.UninitializedMessageException e) {
                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                   } catch (java.io.IOException e) {
              -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
              +      throw new com.google.protobuf.InvalidProtocolBufferException(
              +          e).setUnfinishedMessage(this);
                   } finally {
                     this.unknownFields = unknownFields.build();
                     makeExtensionsImmutable();
                   }
                 }
              -
              -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor;
              +  public static final com.google.protobuf.Descriptors.Descriptor
              +      getDescriptor() {
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor;
                 }
               
                 @SuppressWarnings({"rawtypes"})
                 @java.lang.Override
              -  protected com.google.protobuf.MapField internalGetMapField(int number) {
              +  protected com.google.protobuf.MapField internalGetMapField(
              +      int number) {
                   switch (number) {
                     case 6:
                       return internalGetEnvironmentVariables();
                     default:
              -        throw new RuntimeException("Invalid map field number: " + number);
              +        throw new RuntimeException(
              +            "Invalid map field number: " + number);
                   }
                 }
              -
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
              -            com.google.cloud.functions.v2beta.BuildConfig.class,
              -            com.google.cloud.functions.v2beta.BuildConfig.Builder.class);
              +            com.google.cloud.functions.v2beta.BuildConfig.class, com.google.cloud.functions.v2beta.BuildConfig.Builder.class);
                 }
               
                 public static final int BUILD_FIELD_NUMBER = 1;
                 private volatile java.lang.Object build_;
                 /**
              -   *
              -   *
                  * 
                  * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The build. */ @java.lang.Override @@ -231,32 +191,30 @@ public java.lang.String getBuild() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; } } /** - * - * *
                  * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for build. */ @java.lang.Override - public com.google.protobuf.ByteString getBuildBytes() { + public com.google.protobuf.ByteString + getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); build_ = b; return b; } else { @@ -267,8 +225,6 @@ public com.google.protobuf.ByteString getBuildBytes() { public static final int RUNTIME_FIELD_NUMBER = 2; private volatile java.lang.Object runtime_; /** - * - * *
                  * The runtime in which to run the function. Required when deploying a new
                  * function, optional when updating an existing function. For a complete
              @@ -278,7 +234,6 @@ public com.google.protobuf.ByteString getBuildBytes() {
                  * 
              * * string runtime = 2; - * * @return The runtime. */ @java.lang.Override @@ -287,15 +242,14 @@ public java.lang.String getRuntime() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; } } /** - * - * *
                  * The runtime in which to run the function. Required when deploying a new
                  * function, optional when updating an existing function. For a complete
              @@ -305,15 +259,16 @@ public java.lang.String getRuntime() {
                  * 
              * * string runtime = 2; - * * @return The bytes for runtime. */ @java.lang.Override - public com.google.protobuf.ByteString getRuntimeBytes() { + public com.google.protobuf.ByteString + getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); runtime_ = b; return b; } else { @@ -324,8 +279,6 @@ public com.google.protobuf.ByteString getRuntimeBytes() { public static final int ENTRY_POINT_FIELD_NUMBER = 3; private volatile java.lang.Object entryPoint_; /** - * - * *
                  * The name of the function (as defined in source code) that will be
                  * executed. Defaults to the resource name suffix, if not specified. For
              @@ -336,7 +289,6 @@ public com.google.protobuf.ByteString getRuntimeBytes() {
                  * 
              * * string entry_point = 3; - * * @return The entryPoint. */ @java.lang.Override @@ -345,15 +297,14 @@ public java.lang.String getEntryPoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; } } /** - * - * *
                  * The name of the function (as defined in source code) that will be
                  * executed. Defaults to the resource name suffix, if not specified. For
              @@ -364,15 +315,16 @@ public java.lang.String getEntryPoint() {
                  * 
              * * string entry_point = 3; - * * @return The bytes for entryPoint. */ @java.lang.Override - public com.google.protobuf.ByteString getEntryPointBytes() { + public com.google.protobuf.ByteString + getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -383,14 +335,11 @@ public com.google.protobuf.ByteString getEntryPointBytes() { public static final int SOURCE_FIELD_NUMBER = 4; private com.google.cloud.functions.v2beta.Source source_; /** - * - * *
                  * The location of the function source code.
                  * 
              * * .google.cloud.functions.v2beta.Source source = 4; - * * @return Whether the source field is set. */ @java.lang.Override @@ -398,25 +347,18 @@ public boolean hasSource() { return source_ != null; } /** - * - * *
                  * The location of the function source code.
                  * 
              * * .google.cloud.functions.v2beta.Source source = 4; - * * @return The source. */ @java.lang.Override public com.google.cloud.functions.v2beta.Source getSource() { - return source_ == null - ? com.google.cloud.functions.v2beta.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.functions.v2beta.Source.getDefaultInstance() : source_; } /** - * - * *
                  * The location of the function source code.
                  * 
              @@ -431,16 +373,11 @@ public com.google.cloud.functions.v2beta.SourceOrBuilder getSourceOrBuilder() { public static final int SOURCE_PROVENANCE_FIELD_NUMBER = 8; private com.google.cloud.functions.v2beta.SourceProvenance sourceProvenance_; /** - * - * *
                  * Output only. A permanent fixed identifier for source.
                  * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sourceProvenance field is set. */ @java.lang.Override @@ -448,46 +385,32 @@ public boolean hasSourceProvenance() { return sourceProvenance_ != null; } /** - * - * *
                  * Output only. A permanent fixed identifier for source.
                  * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceProvenance. */ @java.lang.Override public com.google.cloud.functions.v2beta.SourceProvenance getSourceProvenance() { - return sourceProvenance_ == null - ? com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance() - : sourceProvenance_; + return sourceProvenance_ == null ? com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance() : sourceProvenance_; } /** - * - * *
                  * Output only. A permanent fixed identifier for source.
                  * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder - getSourceProvenanceOrBuilder() { + public com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { return getSourceProvenance(); } public static final int WORKER_POOL_FIELD_NUMBER = 5; private volatile java.lang.Object workerPool_; /** - * - * *
                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                  * function. The format of this field is
              @@ -503,7 +426,6 @@ public com.google.cloud.functions.v2beta.SourceProvenance getSourceProvenance()
                  * 
              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return The workerPool. */ @java.lang.Override @@ -512,15 +434,14 @@ public java.lang.String getWorkerPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerPool_ = s; return s; } } /** - * - * *
                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                  * function. The format of this field is
              @@ -536,15 +457,16 @@ public java.lang.String getWorkerPool() {
                  * 
              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for workerPool. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkerPoolBytes() { + public com.google.protobuf.ByteString + getWorkerPoolBytes() { java.lang.Object ref = workerPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workerPool_ = b; return b; } else { @@ -553,22 +475,21 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() { } public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 6; - private static final class EnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField environmentVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -580,30 +501,28 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** - * - * *
                  * User-provided build-time environment variables for the function
                  * 
              * * map<string, string> environment_variables = 6; */ + @java.lang.Override - public boolean containsEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** - * - * *
                  * User-provided build-time environment variables for the function
                  * 
              @@ -611,12 +530,11 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override + public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** - * - * *
                  * User-provided build-time environment variables for the function
                  * 
              @@ -624,18 +542,16 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override + public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
                  * User-provided build-time environment variables for the function
                  * 
              @@ -643,10 +559,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -658,8 +574,6 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { public static final int DOCKER_REPOSITORY_FIELD_NUMBER = 7; private volatile 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
              @@ -673,10 +587,7 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) {
                  * Repository format must be 'DOCKER'.
                  * 
              * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The dockerRepository. */ @java.lang.Override @@ -685,15 +596,14 @@ public java.lang.String getDockerRepository() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; } } /** - * - * *
                  * Optional. User managed repository created in Artifact Registry optionally with a
                  * customer managed encryption key. This is the repository to which the
              @@ -707,18 +617,17 @@ public java.lang.String getDockerRepository() {
                  * Repository format must be 'DOCKER'.
                  * 
              * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for dockerRepository. */ @java.lang.Override - public com.google.protobuf.ByteString getDockerRepositoryBytes() { + public com.google.protobuf.ByteString + getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -727,7 +636,6 @@ public com.google.protobuf.ByteString getDockerRepositoryBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -739,7 +647,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(build_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, build_); } @@ -755,7 +664,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workerPool_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -785,26 +695,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entryPoint_); } if (source_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workerPool_); } - for (java.util.Map.Entry entry : - internalGetEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry environmentVariables__ = - EnvironmentVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, environmentVariables__); + for (java.util.Map.Entry entry + : internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, environmentVariables__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dockerRepository_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, dockerRepository_); } if (sourceProvenance_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSourceProvenance()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSourceProvenance()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -814,29 +726,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.BuildConfig)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.BuildConfig other = - (com.google.cloud.functions.v2beta.BuildConfig) obj; + com.google.cloud.functions.v2beta.BuildConfig other = (com.google.cloud.functions.v2beta.BuildConfig) obj; - if (!getBuild().equals(other.getBuild())) return false; - if (!getRuntime().equals(other.getRuntime())) return false; - if (!getEntryPoint().equals(other.getEntryPoint())) return false; + if (!getBuild() + .equals(other.getBuild())) return false; + if (!getRuntime() + .equals(other.getRuntime())) return false; + if (!getEntryPoint() + .equals(other.getEntryPoint())) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource().equals(other.getSource())) return false; + if (!getSource() + .equals(other.getSource())) return false; } if (hasSourceProvenance() != other.hasSourceProvenance()) return false; if (hasSourceProvenance()) { - if (!getSourceProvenance().equals(other.getSourceProvenance())) return false; - } - if (!getWorkerPool().equals(other.getWorkerPool())) return false; - if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) - return false; - if (!getDockerRepository().equals(other.getDockerRepository())) return false; + if (!getSourceProvenance() + .equals(other.getSourceProvenance())) return false; + } + if (!getWorkerPool() + .equals(other.getWorkerPool())) return false; + if (!internalGetEnvironmentVariables().equals( + other.internalGetEnvironmentVariables())) return false; + if (!getDockerRepository() + .equals(other.getDockerRepository())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -875,104 +793,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.BuildConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.BuildConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.BuildConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.BuildConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.BuildConfig 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.BuildConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.BuildConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.BuildConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.BuildConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.BuildConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.BuildConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.BuildConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.BuildConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.BuildConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.BuildConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Describes the Build step of the function that builds a container from the
                  * given source.
              @@ -980,43 +891,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                  *
                  * Protobuf type {@code google.cloud.functions.v2beta.BuildConfig}
                  */
              -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
              -      implements
              +  public static final class Builder extends
              +      com.google.protobuf.GeneratedMessageV3.Builder implements
                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.BuildConfig)
                     com.google.cloud.functions.v2beta.BuildConfigOrBuilder {
              -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor;
              +    public static final com.google.protobuf.Descriptors.Descriptor
              +        getDescriptor() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor;
                   }
               
                   @SuppressWarnings({"rawtypes"})
              -    protected com.google.protobuf.MapField internalGetMapField(int number) {
              +    protected com.google.protobuf.MapField internalGetMapField(
              +        int number) {
                     switch (number) {
                       case 6:
                         return internalGetEnvironmentVariables();
                       default:
              -          throw new RuntimeException("Invalid map field number: " + number);
              +          throw new RuntimeException(
              +              "Invalid map field number: " + number);
                     }
                   }
              -
                   @SuppressWarnings({"rawtypes"})
              -    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
              +    protected com.google.protobuf.MapField internalGetMutableMapField(
              +        int number) {
                     switch (number) {
                       case 6:
                         return internalGetMutableEnvironmentVariables();
                       default:
              -          throw new RuntimeException("Invalid map field number: " + number);
              +          throw new RuntimeException(
              +              "Invalid map field number: " + number);
                     }
                   }
              -
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
              -              com.google.cloud.functions.v2beta.BuildConfig.class,
              -              com.google.cloud.functions.v2beta.BuildConfig.Builder.class);
              +              com.google.cloud.functions.v2beta.BuildConfig.class, com.google.cloud.functions.v2beta.BuildConfig.Builder.class);
                   }
               
                   // Construct using com.google.cloud.functions.v2beta.BuildConfig.newBuilder()
              @@ -1024,15 +935,16 @@ private Builder() {
                     maybeForceBuilderInitialization();
                   }
               
              -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
              +    private Builder(
              +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                     super(parent);
                     maybeForceBuilderInitialization();
                   }
              -
                   private void maybeForceBuilderInitialization() {
              -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
              +      if (com.google.protobuf.GeneratedMessageV3
              +              .alwaysUseFieldBuilders) {
              +      }
                   }
              -
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
              @@ -1063,9 +975,9 @@ public Builder clear() {
                   }
               
                   @java.lang.Override
              -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor;
              +    public com.google.protobuf.Descriptors.Descriptor
              +        getDescriptorForType() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor;
                   }
               
                   @java.lang.Override
              @@ -1084,8 +996,7 @@ public com.google.cloud.functions.v2beta.BuildConfig build() {
               
                   @java.lang.Override
                   public com.google.cloud.functions.v2beta.BuildConfig buildPartial() {
              -      com.google.cloud.functions.v2beta.BuildConfig result =
              -          new com.google.cloud.functions.v2beta.BuildConfig(this);
              +      com.google.cloud.functions.v2beta.BuildConfig result = new com.google.cloud.functions.v2beta.BuildConfig(this);
                     int from_bitField0_ = bitField0_;
                     result.build_ = build_;
                     result.runtime_ = runtime_;
              @@ -1112,39 +1023,38 @@ public com.google.cloud.functions.v2beta.BuildConfig buildPartial() {
                   public Builder clone() {
                     return super.clone();
                   }
              -
                   @java.lang.Override
                   public Builder setField(
              -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
              +        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) {
              +    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) {
              +    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) {
              +        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) {
              +        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) {
              -        return mergeFrom((com.google.cloud.functions.v2beta.BuildConfig) other);
              +        return mergeFrom((com.google.cloud.functions.v2beta.BuildConfig)other);
                     } else {
                       super.mergeFrom(other);
                       return this;
              @@ -1175,7 +1085,8 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.BuildConfig other) {
                       workerPool_ = other.workerPool_;
                       onChanged();
                     }
              -      internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables());
              +      internalGetMutableEnvironmentVariables().mergeFrom(
              +          other.internalGetEnvironmentVariables());
                     if (!other.getDockerRepository().isEmpty()) {
                       dockerRepository_ = other.dockerRepository_;
                       onChanged();
              @@ -1208,28 +1119,23 @@ public Builder mergeFrom(
                     }
                     return this;
                   }
              -
                   private int bitField0_;
               
                   private java.lang.Object build_ = "";
                   /**
              -     *
              -     *
                    * 
                    * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The build. */ public java.lang.String getBuild() { java.lang.Object ref = build_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; @@ -1238,24 +1144,21 @@ public java.lang.String getBuild() { } } /** - * - * *
                    * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for build. */ - public com.google.protobuf.ByteString getBuildBytes() { + public com.google.protobuf.ByteString + getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); build_ = b; return b; } else { @@ -1263,70 +1166,57 @@ public com.google.protobuf.ByteString getBuildBytes() { } } /** - * - * *
                    * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The build to set. * @return This builder for chaining. */ - public Builder setBuild(java.lang.String value) { + public Builder setBuild( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + build_ = value; onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBuild() { - + build_ = getDefaultInstance().getBuild(); onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for build to set. * @return This builder for chaining. */ - public Builder setBuildBytes(com.google.protobuf.ByteString value) { + public Builder setBuildBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + build_ = value; onChanged(); return this; @@ -1334,8 +1224,6 @@ public Builder setBuildBytes(com.google.protobuf.ByteString value) { private java.lang.Object runtime_ = ""; /** - * - * *
                    * The runtime in which to run the function. Required when deploying a new
                    * function, optional when updating an existing function. For a complete
              @@ -1345,13 +1233,13 @@ public Builder setBuildBytes(com.google.protobuf.ByteString value) {
                    * 
              * * string runtime = 2; - * * @return The runtime. */ public java.lang.String getRuntime() { java.lang.Object ref = runtime_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; @@ -1360,8 +1248,6 @@ public java.lang.String getRuntime() { } } /** - * - * *
                    * The runtime in which to run the function. Required when deploying a new
                    * function, optional when updating an existing function. For a complete
              @@ -1371,14 +1257,15 @@ public java.lang.String getRuntime() {
                    * 
              * * string runtime = 2; - * * @return The bytes for runtime. */ - public com.google.protobuf.ByteString getRuntimeBytes() { + public com.google.protobuf.ByteString + getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); runtime_ = b; return b; } else { @@ -1386,8 +1273,6 @@ public com.google.protobuf.ByteString getRuntimeBytes() { } } /** - * - * *
                    * The runtime in which to run the function. Required when deploying a new
                    * function, optional when updating an existing function. For a complete
              @@ -1397,22 +1282,20 @@ public com.google.protobuf.ByteString getRuntimeBytes() {
                    * 
              * * string runtime = 2; - * * @param value The runtime to set. * @return This builder for chaining. */ - public Builder setRuntime(java.lang.String value) { + public Builder setRuntime( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + runtime_ = value; onChanged(); return this; } /** - * - * *
                    * The runtime in which to run the function. Required when deploying a new
                    * function, optional when updating an existing function. For a complete
              @@ -1422,18 +1305,15 @@ public Builder setRuntime(java.lang.String value) {
                    * 
              * * string runtime = 2; - * * @return This builder for chaining. */ public Builder clearRuntime() { - + runtime_ = getDefaultInstance().getRuntime(); onChanged(); return this; } /** - * - * *
                    * The runtime in which to run the function. Required when deploying a new
                    * function, optional when updating an existing function. For a complete
              @@ -1443,16 +1323,16 @@ public Builder clearRuntime() {
                    * 
              * * string runtime = 2; - * * @param value The bytes for runtime to set. * @return This builder for chaining. */ - public Builder setRuntimeBytes(com.google.protobuf.ByteString value) { + public Builder setRuntimeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + runtime_ = value; onChanged(); return this; @@ -1460,8 +1340,6 @@ public Builder setRuntimeBytes(com.google.protobuf.ByteString value) { private java.lang.Object entryPoint_ = ""; /** - * - * *
                    * The name of the function (as defined in source code) that will be
                    * executed. Defaults to the resource name suffix, if not specified. For
              @@ -1472,13 +1350,13 @@ public Builder setRuntimeBytes(com.google.protobuf.ByteString value) {
                    * 
              * * string entry_point = 3; - * * @return The entryPoint. */ public java.lang.String getEntryPoint() { java.lang.Object ref = entryPoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; @@ -1487,8 +1365,6 @@ public java.lang.String getEntryPoint() { } } /** - * - * *
                    * The name of the function (as defined in source code) that will be
                    * executed. Defaults to the resource name suffix, if not specified. For
              @@ -1499,14 +1375,15 @@ public java.lang.String getEntryPoint() {
                    * 
              * * string entry_point = 3; - * * @return The bytes for entryPoint. */ - public com.google.protobuf.ByteString getEntryPointBytes() { + public com.google.protobuf.ByteString + getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -1514,8 +1391,6 @@ public com.google.protobuf.ByteString getEntryPointBytes() { } } /** - * - * *
                    * The name of the function (as defined in source code) that will be
                    * executed. Defaults to the resource name suffix, if not specified. For
              @@ -1526,22 +1401,20 @@ public com.google.protobuf.ByteString getEntryPointBytes() {
                    * 
              * * string entry_point = 3; - * * @param value The entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPoint(java.lang.String value) { + public Builder setEntryPoint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entryPoint_ = value; onChanged(); return this; } /** - * - * *
                    * The name of the function (as defined in source code) that will be
                    * executed. Defaults to the resource name suffix, if not specified. For
              @@ -1552,18 +1425,15 @@ public Builder setEntryPoint(java.lang.String value) {
                    * 
              * * string entry_point = 3; - * * @return This builder for chaining. */ public Builder clearEntryPoint() { - + entryPoint_ = getDefaultInstance().getEntryPoint(); onChanged(); return this; } /** - * - * *
                    * The name of the function (as defined in source code) that will be
                    * executed. Defaults to the resource name suffix, if not specified. For
              @@ -1574,16 +1444,16 @@ public Builder clearEntryPoint() {
                    * 
              * * string entry_point = 3; - * * @param value The bytes for entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPointBytes(com.google.protobuf.ByteString value) { + public Builder setEntryPointBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryPoint_ = value; onChanged(); return this; @@ -1591,47 +1461,34 @@ public Builder setEntryPointBytes(com.google.protobuf.ByteString value) { private com.google.cloud.functions.v2beta.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Source, - com.google.cloud.functions.v2beta.Source.Builder, - com.google.cloud.functions.v2beta.SourceOrBuilder> - sourceBuilder_; + com.google.cloud.functions.v2beta.Source, com.google.cloud.functions.v2beta.Source.Builder, com.google.cloud.functions.v2beta.SourceOrBuilder> sourceBuilder_; /** - * - * *
                    * The location of the function source code.
                    * 
              * * .google.cloud.functions.v2beta.Source source = 4; - * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** - * - * *
                    * The location of the function source code.
                    * 
              * * .google.cloud.functions.v2beta.Source source = 4; - * * @return The source. */ public com.google.cloud.functions.v2beta.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null - ? com.google.cloud.functions.v2beta.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.functions.v2beta.Source.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** - * - * *
                    * The location of the function source code.
                    * 
              @@ -1652,15 +1509,14 @@ public Builder setSource(com.google.cloud.functions.v2beta.Source value) { return this; } /** - * - * *
                    * The location of the function source code.
                    * 
              * * .google.cloud.functions.v2beta.Source source = 4; */ - public Builder setSource(com.google.cloud.functions.v2beta.Source.Builder builderForValue) { + public Builder setSource( + com.google.cloud.functions.v2beta.Source.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -1671,8 +1527,6 @@ public Builder setSource(com.google.cloud.functions.v2beta.Source.Builder builde return this; } /** - * - * *
                    * The location of the function source code.
                    * 
              @@ -1683,9 +1537,7 @@ public Builder mergeSource(com.google.cloud.functions.v2beta.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.functions.v2beta.Source.newBuilder(source_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.functions.v2beta.Source.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -1697,8 +1549,6 @@ public Builder mergeSource(com.google.cloud.functions.v2beta.Source value) { return this; } /** - * - * *
                    * The location of the function source code.
                    * 
              @@ -1717,8 +1567,6 @@ public Builder clearSource() { return this; } /** - * - * *
                    * The location of the function source code.
                    * 
              @@ -1726,13 +1574,11 @@ public Builder clearSource() { * .google.cloud.functions.v2beta.Source source = 4; */ public com.google.cloud.functions.v2beta.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** - * - * *
                    * The location of the function source code.
                    * 
              @@ -1743,14 +1589,11 @@ public com.google.cloud.functions.v2beta.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null - ? com.google.cloud.functions.v2beta.Source.getDefaultInstance() - : source_; + return source_ == null ? + com.google.cloud.functions.v2beta.Source.getDefaultInstance() : source_; } } /** - * - * *
                    * The location of the function source code.
                    * 
              @@ -1758,17 +1601,14 @@ public com.google.cloud.functions.v2beta.SourceOrBuilder getSourceOrBuilder() { * .google.cloud.functions.v2beta.Source source = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Source, - com.google.cloud.functions.v2beta.Source.Builder, - com.google.cloud.functions.v2beta.SourceOrBuilder> + com.google.cloud.functions.v2beta.Source, com.google.cloud.functions.v2beta.Source.Builder, com.google.cloud.functions.v2beta.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Source, - com.google.cloud.functions.v2beta.Source.Builder, - com.google.cloud.functions.v2beta.SourceOrBuilder>( - getSource(), getParentForChildren(), isClean()); + sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2beta.Source, com.google.cloud.functions.v2beta.Source.Builder, com.google.cloud.functions.v2beta.SourceOrBuilder>( + getSource(), + getParentForChildren(), + isClean()); source_ = null; } return sourceBuilder_; @@ -1776,58 +1616,39 @@ public com.google.cloud.functions.v2beta.SourceOrBuilder getSourceOrBuilder() { private com.google.cloud.functions.v2beta.SourceProvenance sourceProvenance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.SourceProvenance, - com.google.cloud.functions.v2beta.SourceProvenance.Builder, - com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder> - sourceProvenanceBuilder_; + com.google.cloud.functions.v2beta.SourceProvenance, com.google.cloud.functions.v2beta.SourceProvenance.Builder, com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder> sourceProvenanceBuilder_; /** - * - * *
                    * Output only. A permanent fixed identifier for source.
                    * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sourceProvenance field is set. */ public boolean hasSourceProvenance() { return sourceProvenanceBuilder_ != null || sourceProvenance_ != null; } /** - * - * *
                    * Output only. A permanent fixed identifier for source.
                    * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceProvenance. */ public com.google.cloud.functions.v2beta.SourceProvenance getSourceProvenance() { if (sourceProvenanceBuilder_ == null) { - return sourceProvenance_ == null - ? com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance() - : sourceProvenance_; + return sourceProvenance_ == null ? com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance() : sourceProvenance_; } else { return sourceProvenanceBuilder_.getMessage(); } } /** - * - * *
                    * Output only. A permanent fixed identifier for source.
                    * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSourceProvenance(com.google.cloud.functions.v2beta.SourceProvenance value) { if (sourceProvenanceBuilder_ == null) { @@ -1843,15 +1664,11 @@ public Builder setSourceProvenance(com.google.cloud.functions.v2beta.SourceProve return this; } /** - * - * *
                    * Output only. A permanent fixed identifier for source.
                    * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSourceProvenance( com.google.cloud.functions.v2beta.SourceProvenance.Builder builderForValue) { @@ -1865,23 +1682,17 @@ public Builder setSourceProvenance( return this; } /** - * - * *
                    * Output only. A permanent fixed identifier for source.
                    * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSourceProvenance(com.google.cloud.functions.v2beta.SourceProvenance value) { if (sourceProvenanceBuilder_ == null) { if (sourceProvenance_ != null) { sourceProvenance_ = - com.google.cloud.functions.v2beta.SourceProvenance.newBuilder(sourceProvenance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.functions.v2beta.SourceProvenance.newBuilder(sourceProvenance_).mergeFrom(value).buildPartial(); } else { sourceProvenance_ = value; } @@ -1893,15 +1704,11 @@ public Builder mergeSourceProvenance(com.google.cloud.functions.v2beta.SourcePro return this; } /** - * - * *
                    * Output only. A permanent fixed identifier for source.
                    * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSourceProvenance() { if (sourceProvenanceBuilder_ == null) { @@ -1915,65 +1722,48 @@ public Builder clearSourceProvenance() { return this; } /** - * - * *
                    * Output only. A permanent fixed identifier for source.
                    * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.functions.v2beta.SourceProvenance.Builder getSourceProvenanceBuilder() { - + onChanged(); return getSourceProvenanceFieldBuilder().getBuilder(); } /** - * - * *
                    * Output only. A permanent fixed identifier for source.
                    * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder - getSourceProvenanceOrBuilder() { + public com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { if (sourceProvenanceBuilder_ != null) { return sourceProvenanceBuilder_.getMessageOrBuilder(); } else { - return sourceProvenance_ == null - ? com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance() - : sourceProvenance_; + return sourceProvenance_ == null ? + com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance() : sourceProvenance_; } } /** - * - * *
                    * Output only. A permanent fixed identifier for source.
                    * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.SourceProvenance, - com.google.cloud.functions.v2beta.SourceProvenance.Builder, - com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder> + com.google.cloud.functions.v2beta.SourceProvenance, com.google.cloud.functions.v2beta.SourceProvenance.Builder, com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder> getSourceProvenanceFieldBuilder() { if (sourceProvenanceBuilder_ == null) { - sourceProvenanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.SourceProvenance, - com.google.cloud.functions.v2beta.SourceProvenance.Builder, - com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder>( - getSourceProvenance(), getParentForChildren(), isClean()); + sourceProvenanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2beta.SourceProvenance, com.google.cloud.functions.v2beta.SourceProvenance.Builder, com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder>( + getSourceProvenance(), + getParentForChildren(), + isClean()); sourceProvenance_ = null; } return sourceProvenanceBuilder_; @@ -1981,8 +1771,6 @@ public com.google.cloud.functions.v2beta.SourceProvenance.Builder getSourceProve private java.lang.Object workerPool_ = ""; /** - * - * *
                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                    * function. The format of this field is
              @@ -1998,13 +1786,13 @@ public com.google.cloud.functions.v2beta.SourceProvenance.Builder getSourceProve
                    * 
              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return The workerPool. */ public java.lang.String getWorkerPool() { java.lang.Object ref = workerPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerPool_ = s; return s; @@ -2013,8 +1801,6 @@ public java.lang.String getWorkerPool() { } } /** - * - * *
                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                    * function. The format of this field is
              @@ -2030,14 +1816,15 @@ public java.lang.String getWorkerPool() {
                    * 
              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for workerPool. */ - public com.google.protobuf.ByteString getWorkerPoolBytes() { + public com.google.protobuf.ByteString + getWorkerPoolBytes() { java.lang.Object ref = workerPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workerPool_ = b; return b; } else { @@ -2045,8 +1832,6 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() { } } /** - * - * *
                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                    * function. The format of this field is
              @@ -2062,22 +1847,20 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() {
                    * 
              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @param value The workerPool to set. * @return This builder for chaining. */ - public Builder setWorkerPool(java.lang.String value) { + public Builder setWorkerPool( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workerPool_ = value; onChanged(); return this; } /** - * - * *
                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                    * function. The format of this field is
              @@ -2093,18 +1876,15 @@ public Builder setWorkerPool(java.lang.String value) {
                    * 
              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearWorkerPool() { - + workerPool_ = getDefaultInstance().getWorkerPool(); onChanged(); return this; } /** - * - * *
                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                    * function. The format of this field is
              @@ -2120,40 +1900,37 @@ public Builder clearWorkerPool() {
                    * 
              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for workerPool to set. * @return This builder for chaining. */ - public Builder setWorkerPoolBytes(com.google.protobuf.ByteString value) { + public Builder setWorkerPoolBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerPool_ = value; onChanged(); return this; } - private com.google.protobuf.MapField environmentVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } - private com.google.protobuf.MapField - internalGetMutableEnvironmentVariables() { - onChanged(); - ; + internalGetMutableEnvironmentVariables() { + onChanged();; if (environmentVariables_ == null) { - environmentVariables_ = - com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); + environmentVariables_ = com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); @@ -2165,30 +1942,28 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** - * - * *
                    * User-provided build-time environment variables for the function
                    * 
              * * map<string, string> environment_variables = 6; */ + @java.lang.Override - public boolean containsEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** - * - * *
                    * User-provided build-time environment variables for the function
                    * 
              @@ -2196,12 +1971,11 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override + public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** - * - * *
                    * User-provided build-time environment variables for the function
                    * 
              @@ -2209,18 +1983,16 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override + public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
                    * User-provided build-time environment variables for the function
                    * 
              @@ -2228,10 +2000,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -2241,69 +2013,69 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { } public Builder clearEnvironmentVariables() { - internalGetMutableEnvironmentVariables().getMutableMap().clear(); + internalGetMutableEnvironmentVariables().getMutableMap() + .clear(); return this; } /** - * - * *
                    * User-provided build-time environment variables for the function
                    * 
              * * map<string, string> environment_variables = 6; */ - public Builder removeEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableEnvironmentVariables().getMutableMap().remove(key); + + public Builder removeEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableEnvironmentVariables().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableEnvironmentVariables() { + public java.util.Map + getMutableEnvironmentVariables() { return internalGetMutableEnvironmentVariables().getMutableMap(); } /** - * - * *
                    * User-provided build-time environment variables for the function
                    * 
              * * map<string, string> environment_variables = 6; */ - public Builder putEnvironmentVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putEnvironmentVariables( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableEnvironmentVariables().getMutableMap().put(key, value); + internalGetMutableEnvironmentVariables().getMutableMap() + .put(key, value); return this; } /** - * - * *
                    * User-provided build-time environment variables for the function
                    * 
              * * map<string, string> environment_variables = 6; */ + public Builder putAllEnvironmentVariables( java.util.Map values) { - internalGetMutableEnvironmentVariables().getMutableMap().putAll(values); + internalGetMutableEnvironmentVariables().getMutableMap() + .putAll(values); 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
              @@ -2317,16 +2089,14 @@ public Builder putAllEnvironmentVariables(
                    * Repository format must be 'DOCKER'.
                    * 
              * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The dockerRepository. */ public java.lang.String getDockerRepository() { java.lang.Object ref = dockerRepository_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; @@ -2335,8 +2105,6 @@ 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
              @@ -2350,17 +2118,16 @@ public java.lang.String getDockerRepository() {
                    * Repository format must be 'DOCKER'.
                    * 
              * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for dockerRepository. */ - public com.google.protobuf.ByteString getDockerRepositoryBytes() { + public com.google.protobuf.ByteString + getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -2368,8 +2135,6 @@ 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
              @@ -2383,25 +2148,21 @@ public com.google.protobuf.ByteString getDockerRepositoryBytes() {
                    * Repository format must be 'DOCKER'.
                    * 
              * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepository(java.lang.String value) { + public Builder setDockerRepository( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dockerRepository_ = value; onChanged(); return this; } /** - * - * *
                    * Optional. User managed repository created in Artifact Registry optionally with a
                    * customer managed encryption key. This is the repository to which the
              @@ -2415,21 +2176,16 @@ public Builder setDockerRepository(java.lang.String value) {
                    * Repository format must be 'DOCKER'.
                    * 
              * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDockerRepository() { - + dockerRepository_ = getDefaultInstance().getDockerRepository(); onChanged(); return this; } /** - * - * *
                    * Optional. User managed repository created in Artifact Registry optionally with a
                    * customer managed encryption key. This is the repository to which the
              @@ -2443,26 +2199,24 @@ public Builder clearDockerRepository() {
                    * Repository format must be 'DOCKER'.
                    * 
              * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value) { + public Builder setDockerRepositoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dockerRepository_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2472,12 +2226,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.BuildConfig) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.BuildConfig) private static final com.google.cloud.functions.v2beta.BuildConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.BuildConfig(); } @@ -2486,16 +2240,16 @@ public static com.google.cloud.functions.v2beta.BuildConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BuildConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BuildConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuildConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BuildConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2510,4 +2264,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.BuildConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java similarity index 75% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java index 2f3d2721..556189ac 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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 BuildConfigOrBuilder - extends +public interface BuildConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.BuildConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The build. */ java.lang.String getBuild(); /** - * - * *
                  * 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) = { ... } - * - * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for build. */ - com.google.protobuf.ByteString getBuildBytes(); + com.google.protobuf.ByteString + getBuildBytes(); /** - * - * *
                  * The runtime in which to run the function. Required when deploying a new
                  * function, optional when updating an existing function. For a complete
              @@ -66,13 +39,10 @@ public interface BuildConfigOrBuilder
                  * 
              * * string runtime = 2; - * * @return The runtime. */ java.lang.String getRuntime(); /** - * - * *
                  * The runtime in which to run the function. Required when deploying a new
                  * function, optional when updating an existing function. For a complete
              @@ -82,14 +52,12 @@ public interface BuildConfigOrBuilder
                  * 
              * * string runtime = 2; - * * @return The bytes for runtime. */ - com.google.protobuf.ByteString getRuntimeBytes(); + com.google.protobuf.ByteString + getRuntimeBytes(); /** - * - * *
                  * The name of the function (as defined in source code) that will be
                  * executed. Defaults to the resource name suffix, if not specified. For
              @@ -100,13 +68,10 @@ public interface BuildConfigOrBuilder
                  * 
              * * string entry_point = 3; - * * @return The entryPoint. */ java.lang.String getEntryPoint(); /** - * - * *
                  * The name of the function (as defined in source code) that will be
                  * executed. Defaults to the resource name suffix, if not specified. For
              @@ -117,38 +82,30 @@ public interface BuildConfigOrBuilder
                  * 
              * * string entry_point = 3; - * * @return The bytes for entryPoint. */ - com.google.protobuf.ByteString getEntryPointBytes(); + com.google.protobuf.ByteString + getEntryPointBytes(); /** - * - * *
                  * The location of the function source code.
                  * 
              * * .google.cloud.functions.v2beta.Source source = 4; - * * @return Whether the source field is set. */ boolean hasSource(); /** - * - * *
                  * The location of the function source code.
                  * 
              * * .google.cloud.functions.v2beta.Source source = 4; - * * @return The source. */ com.google.cloud.functions.v2beta.Source getSource(); /** - * - * *
                  * The location of the function source code.
                  * 
              @@ -158,49 +115,33 @@ public interface BuildConfigOrBuilder com.google.cloud.functions.v2beta.SourceOrBuilder getSourceOrBuilder(); /** - * - * *
                  * Output only. A permanent fixed identifier for source.
                  * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sourceProvenance field is set. */ boolean hasSourceProvenance(); /** - * - * *
                  * Output only. A permanent fixed identifier for source.
                  * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sourceProvenance. */ com.google.cloud.functions.v2beta.SourceProvenance getSourceProvenance(); /** - * - * *
                  * Output only. A permanent fixed identifier for source.
                  * 
              * - * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder(); /** - * - * *
                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                  * function. The format of this field is
              @@ -216,13 +157,10 @@ public interface BuildConfigOrBuilder
                  * 
              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return The workerPool. */ java.lang.String getWorkerPool(); /** - * - * *
                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                  * function. The format of this field is
              @@ -238,14 +176,12 @@ public interface BuildConfigOrBuilder
                  * 
              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } - * * @return The bytes for workerPool. */ - com.google.protobuf.ByteString getWorkerPoolBytes(); + com.google.protobuf.ByteString + getWorkerPoolBytes(); /** - * - * *
                  * User-provided build-time environment variables for the function
                  * 
              @@ -254,31 +190,30 @@ public interface BuildConfigOrBuilder */ int getEnvironmentVariablesCount(); /** - * - * *
                  * User-provided build-time environment variables for the function
                  * 
              * * map<string, string> environment_variables = 6; */ - boolean containsEnvironmentVariables(java.lang.String key); - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + boolean containsEnvironmentVariables( + java.lang.String key); + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getEnvironmentVariables(); + java.util.Map + getEnvironmentVariables(); /** - * - * *
                  * User-provided build-time environment variables for the function
                  * 
              * * map<string, string> environment_variables = 6; */ - java.util.Map getEnvironmentVariablesMap(); + java.util.Map + getEnvironmentVariablesMap(); /** - * - * *
                  * User-provided build-time environment variables for the function
                  * 
              @@ -287,24 +222,22 @@ public interface BuildConfigOrBuilder */ /* nullable */ - java.lang.String getEnvironmentVariablesOrDefault( +java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
                  * User-provided build-time environment variables for the function
                  * 
              * * map<string, string> environment_variables = 6; */ - java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key); + + 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
              @@ -318,16 +251,11 @@ java.lang.String getEnvironmentVariablesOrDefault(
                  * Repository format must be 'DOCKER'.
                  * 
              * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The dockerRepository. */ 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
              @@ -341,11 +269,9 @@ java.lang.String getEnvironmentVariablesOrDefault(
                  * Repository format must be 'DOCKER'.
                  * 
              * - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for dockerRepository. */ - com.google.protobuf.ByteString getDockerRepositoryBytes(); + com.google.protobuf.ByteString + getDockerRepositoryBytes(); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java similarity index 65% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java index 81761723..5e2fc45c 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * *
                * Request for the `CreateFunction` method.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.CreateFunctionRequest} */ -public final class CreateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.CreateFunctionRequest) CreateFunctionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFunctionRequest.newBuilder() to construct. private CreateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFunctionRequest() { parent_ = ""; functionId_ = ""; @@ -44,15 +26,16 @@ private CreateFunctionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateFunctionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.functions.v2beta.Function.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); } - case 18: - { - com.google.cloud.functions.v2beta.Function.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); - } - function_ = - input.readMessage( - com.google.cloud.functions.v2beta.Function.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); - } - - break; + function_ = input.readMessage(com.google.cloud.functions.v2beta.Function.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - functionId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + functionId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,42 +93,35 @@ private CreateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.CreateFunctionRequest.class, - com.google.cloud.functions.v2beta.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.CreateFunctionRequest.class, com.google.cloud.functions.v2beta.CreateFunctionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
                  * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -159,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
                  * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -195,16 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FUNCTION_FIELD_NUMBER = 2; private com.google.cloud.functions.v2beta.Function function_; /** - * - * *
                  * Required. Function to be created.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ @java.lang.Override @@ -212,34 +176,23 @@ public boolean hasFunction() { return function_ != null; } /** - * - * *
                  * Required. Function to be created.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ @java.lang.Override public com.google.cloud.functions.v2beta.Function getFunction() { - return function_ == null - ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() - : function_; + return function_ == null ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() : function_; } /** - * - * *
                  * Required. Function to be created.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder() { @@ -249,8 +202,6 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder( public static final int FUNCTION_ID_FIELD_NUMBER = 3; private volatile java.lang.Object functionId_; /** - * - * *
                  * The ID to use for the function, which will become the final component of
                  * the function's resource name.
              @@ -259,7 +210,6 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder(
                  * 
              * * string function_id = 3; - * * @return The functionId. */ @java.lang.Override @@ -268,15 +218,14 @@ public java.lang.String getFunctionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } } /** - * - * *
                  * The ID to use for the function, which will become the final component of
                  * the function's resource name.
              @@ -285,15 +234,16 @@ public java.lang.String getFunctionId() {
                  * 
              * * string function_id = 3; - * * @return The bytes for functionId. */ @java.lang.Override - public com.google.protobuf.ByteString getFunctionIdBytes() { + public com.google.protobuf.ByteString + getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); functionId_ = b; return b; } else { @@ -302,7 +252,6 @@ public com.google.protobuf.ByteString getFunctionIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -337,7 +287,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (function_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFunction()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFunction()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, functionId_); @@ -350,20 +301,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.CreateFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.CreateFunctionRequest other = - (com.google.cloud.functions.v2beta.CreateFunctionRequest) obj; + com.google.cloud.functions.v2beta.CreateFunctionRequest other = (com.google.cloud.functions.v2beta.CreateFunctionRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasFunction() != other.hasFunction()) return false; if (hasFunction()) { - if (!getFunction().equals(other.getFunction())) return false; + if (!getFunction() + .equals(other.getFunction())) return false; } - if (!getFunctionId().equals(other.getFunctionId())) return false; + if (!getFunctionId() + .equals(other.getFunctionId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -389,127 +342,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.CreateFunctionRequest 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.CreateFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2beta.CreateFunctionRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2beta.CreateFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Request for the `CreateFunction` method.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.CreateFunctionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.CreateFunctionRequest) com.google.cloud.functions.v2beta.CreateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.CreateFunctionRequest.class, - com.google.cloud.functions.v2beta.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.CreateFunctionRequest.class, com.google.cloud.functions.v2beta.CreateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.CreateFunctionRequest.newBuilder() @@ -517,15 +460,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; } @java.lang.Override @@ -564,8 +508,7 @@ public com.google.cloud.functions.v2beta.CreateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.CreateFunctionRequest buildPartial() { - com.google.cloud.functions.v2beta.CreateFunctionRequest result = - new com.google.cloud.functions.v2beta.CreateFunctionRequest(this); + com.google.cloud.functions.v2beta.CreateFunctionRequest result = new com.google.cloud.functions.v2beta.CreateFunctionRequest(this); result.parent_ = parent_; if (functionBuilder_ == null) { result.function_ = function_; @@ -581,39 +524,38 @@ public com.google.cloud.functions.v2beta.CreateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.CreateFunctionRequest) other); + return mergeFrom((com.google.cloud.functions.v2beta.CreateFunctionRequest)other); } else { super.mergeFrom(other); return this; @@ -621,8 +563,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.CreateFunctionRequest other) { - if (other == com.google.cloud.functions.v2beta.CreateFunctionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.CreateFunctionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -653,8 +594,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.CreateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.CreateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,23 +606,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
                    * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -691,24 +627,21 @@ public java.lang.String getParent() { } } /** - * - * *
                    * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -716,70 +649,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                    * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -787,58 +707,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.functions.v2beta.Function function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, - com.google.cloud.functions.v2beta.Function.Builder, - com.google.cloud.functions.v2beta.FunctionOrBuilder> - functionBuilder_; + com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder> functionBuilder_; /** - * - * *
                    * Required. Function to be created.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** - * - * *
                    * Required. Function to be created.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ public com.google.cloud.functions.v2beta.Function getFunction() { if (functionBuilder_ == null) { - return function_ == null - ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() - : function_; + return function_ == null ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() : function_; } else { return functionBuilder_.getMessage(); } } /** - * - * *
                    * Required. Function to be created.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFunction(com.google.cloud.functions.v2beta.Function value) { if (functionBuilder_ == null) { @@ -854,17 +755,14 @@ public Builder setFunction(com.google.cloud.functions.v2beta.Function value) { return this; } /** - * - * *
                    * Required. Function to be created.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setFunction(com.google.cloud.functions.v2beta.Function.Builder builderForValue) { + public Builder setFunction( + com.google.cloud.functions.v2beta.Function.Builder builderForValue) { if (functionBuilder_ == null) { function_ = builderForValue.build(); onChanged(); @@ -875,23 +773,17 @@ public Builder setFunction(com.google.cloud.functions.v2beta.Function.Builder bu return this; } /** - * - * *
                    * Required. Function to be created.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFunction(com.google.cloud.functions.v2beta.Function value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v2beta.Function.newBuilder(function_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.functions.v2beta.Function.newBuilder(function_).mergeFrom(value).buildPartial(); } else { function_ = value; } @@ -903,15 +795,11 @@ public Builder mergeFunction(com.google.cloud.functions.v2beta.Function value) { return this; } /** - * - * *
                    * Required. Function to be created.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -925,64 +813,48 @@ public Builder clearFunction() { return this; } /** - * - * *
                    * Required. Function to be created.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.functions.v2beta.Function.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** - * - * *
                    * Required. Function to be created.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null - ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() - : function_; + return function_ == null ? + com.google.cloud.functions.v2beta.Function.getDefaultInstance() : function_; } } /** - * - * *
                    * Required. Function to be created.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, - com.google.cloud.functions.v2beta.Function.Builder, - com.google.cloud.functions.v2beta.FunctionOrBuilder> + com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, - com.google.cloud.functions.v2beta.Function.Builder, - com.google.cloud.functions.v2beta.FunctionOrBuilder>( - getFunction(), getParentForChildren(), isClean()); + functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder>( + getFunction(), + getParentForChildren(), + isClean()); function_ = null; } return functionBuilder_; @@ -990,8 +862,6 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder( private java.lang.Object functionId_ = ""; /** - * - * *
                    * The ID to use for the function, which will become the final component of
                    * the function's resource name.
              @@ -1000,13 +870,13 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder(
                    * 
              * * string function_id = 3; - * * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; @@ -1015,8 +885,6 @@ public java.lang.String getFunctionId() { } } /** - * - * *
                    * The ID to use for the function, which will become the final component of
                    * the function's resource name.
              @@ -1025,14 +893,15 @@ public java.lang.String getFunctionId() {
                    * 
              * * string function_id = 3; - * * @return The bytes for functionId. */ - public com.google.protobuf.ByteString getFunctionIdBytes() { + public com.google.protobuf.ByteString + getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); functionId_ = b; return b; } else { @@ -1040,8 +909,6 @@ 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.
              @@ -1050,22 +917,20 @@ public com.google.protobuf.ByteString getFunctionIdBytes() {
                    * 
              * * string function_id = 3; - * * @param value The functionId to set. * @return This builder for chaining. */ - public Builder setFunctionId(java.lang.String value) { + public Builder setFunctionId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + functionId_ = value; onChanged(); return this; } /** - * - * *
                    * The ID to use for the function, which will become the final component of
                    * the function's resource name.
              @@ -1074,18 +939,15 @@ public Builder setFunctionId(java.lang.String value) {
                    * 
              * * string function_id = 3; - * * @return This builder for chaining. */ public Builder clearFunctionId() { - + functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** - * - * *
                    * The ID to use for the function, which will become the final component of
                    * the function's resource name.
              @@ -1094,23 +956,23 @@ public Builder clearFunctionId() {
                    * 
              * * string function_id = 3; - * * @param value The bytes for functionId to set. * @return This builder for chaining. */ - public Builder setFunctionIdBytes(com.google.protobuf.ByteString value) { + public Builder setFunctionIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + functionId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1120,12 +982,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.CreateFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.CreateFunctionRequest) private static final com.google.cloud.functions.v2beta.CreateFunctionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.CreateFunctionRequest(); } @@ -1134,16 +996,16 @@ public static com.google.cloud.functions.v2beta.CreateFunctionRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,4 +1020,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.CreateFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java index 165baa6b..95462240 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * 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 CreateFunctionRequestOrBuilder - extends +public interface CreateFunctionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.CreateFunctionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
                  * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
                  * Required. Function to be created.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ boolean hasFunction(); /** - * - * *
                  * Required. Function to be created.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ com.google.cloud.functions.v2beta.Function getFunction(); /** - * - * *
                  * Required. Function to be created.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; */ 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.
              @@ -106,13 +65,10 @@ public interface CreateFunctionRequestOrBuilder
                  * 
              * * string function_id = 3; - * * @return The functionId. */ java.lang.String getFunctionId(); /** - * - * *
                  * The ID to use for the function, which will become the final component of
                  * the function's resource name.
              @@ -121,8 +77,8 @@ public interface CreateFunctionRequestOrBuilder
                  * 
              * * string function_id = 3; - * * @return The bytes for functionId. */ - com.google.protobuf.ByteString getFunctionIdBytes(); + com.google.protobuf.ByteString + getFunctionIdBytes(); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java similarity index 64% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java index f0e5948b..80d24c06 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java @@ -1,57 +1,40 @@ -/* - * 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; /** - * - * *
                * Request for the `DeleteFunction` method.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.DeleteFunctionRequest} */ -public final class DeleteFunctionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.DeleteFunctionRequest) DeleteFunctionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteFunctionRequest.newBuilder() to construct. private DeleteFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteFunctionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private DeleteFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.DeleteFunctionRequest.class, - com.google.cloud.functions.v2beta.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.DeleteFunctionRequest.class, com.google.cloud.functions.v2beta.DeleteFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
                  * Required. The name of the function which should be deleted.
                  * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                  * Required. The name of the function which should be deleted.
                  * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.DeleteFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.DeleteFunctionRequest other = - (com.google.cloud.functions.v2beta.DeleteFunctionRequest) obj; + com.google.cloud.functions.v2beta.DeleteFunctionRequest other = (com.google.cloud.functions.v2beta.DeleteFunctionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.DeleteFunctionRequest 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.DeleteFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2beta.DeleteFunctionRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2beta.DeleteFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Request for the `DeleteFunction` method.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.DeleteFunctionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.DeleteFunctionRequest) com.google.cloud.functions.v2beta.DeleteFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.DeleteFunctionRequest.class, - com.google.cloud.functions.v2beta.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.DeleteFunctionRequest.class, com.google.cloud.functions.v2beta.DeleteFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.DeleteFunctionRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.functions.v2beta.DeleteFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.DeleteFunctionRequest buildPartial() { - com.google.cloud.functions.v2beta.DeleteFunctionRequest result = - new com.google.cloud.functions.v2beta.DeleteFunctionRequest(this); + com.google.cloud.functions.v2beta.DeleteFunctionRequest result = new com.google.cloud.functions.v2beta.DeleteFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.functions.v2beta.DeleteFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.DeleteFunctionRequest) other); + return mergeFrom((com.google.cloud.functions.v2beta.DeleteFunctionRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.DeleteFunctionRequest other) { - if (other == com.google.cloud.functions.v2beta.DeleteFunctionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.DeleteFunctionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.DeleteFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.DeleteFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
                    * Required. The name of the function which should be deleted.
                    * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
                    * Required. The name of the function which should be deleted.
                    * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -535,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                    * Required. The name of the function which should be deleted.
                    * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
                    * Required. The name of the function which should be deleted.
                    * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
                    * Required. The name of the function which should be deleted.
                    * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -612,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.DeleteFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.DeleteFunctionRequest) private static final com.google.cloud.functions.v2beta.DeleteFunctionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.DeleteFunctionRequest(); } @@ -626,16 +566,16 @@ public static com.google.cloud.functions.v2beta.DeleteFunctionRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.DeleteFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java new file mode 100644 index 00000000..40753e74 --- /dev/null +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2beta/functions.proto + +package com.google.cloud.functions.v2beta; + +public interface DeleteFunctionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.DeleteFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
              +   * Required. The name of the function which should be deleted.
              +   * 
              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
              +   * Required. The name of the function which should be deleted.
              +   * 
              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Environment.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Environment.java similarity index 65% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Environment.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Environment.java index 98e27688..2218f55e 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Environment.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Environment.java @@ -1,36 +1,18 @@ -/* - * 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; /** - * - * *
                * The environment the function is hosted on.
                * 
              * * Protobuf enum {@code google.cloud.functions.v2beta.Environment} */ -public enum Environment implements com.google.protobuf.ProtocolMessageEnum { +public enum Environment + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                  * Unspecified
                  * 
              @@ -39,8 +21,6 @@ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { */ ENVIRONMENT_UNSPECIFIED(0), /** - * - * *
                  * Gen 1
                  * 
              @@ -49,8 +29,6 @@ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { */ GEN_1(1), /** - * - * *
                  * Gen 2
                  * 
              @@ -62,8 +40,6 @@ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                  * Unspecified
                  * 
              @@ -72,8 +48,6 @@ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENVIRONMENT_UNSPECIFIED_VALUE = 0; /** - * - * *
                  * Gen 1
                  * 
              @@ -82,8 +56,6 @@ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GEN_1_VALUE = 1; /** - * - * *
                  * Gen 2
                  * 
              @@ -92,6 +64,7 @@ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GEN_2_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,49 +89,49 @@ public static Environment valueOf(int value) { */ public static Environment forNumber(int value) { switch (value) { - case 0: - return ENVIRONMENT_UNSPECIFIED; - case 1: - return GEN_1; - case 2: - return GEN_2; - default: - return null; + case 0: return ENVIRONMENT_UNSPECIFIED; + case 1: return GEN_1; + case 2: return GEN_2; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 Environment findValueByNumber(int number) { - return Environment.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Environment> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Environment findValueByNumber(int number) { + return Environment.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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto.getDescriptor().getEnumTypes().get(0); } private static final Environment[] VALUES = values(); - public static Environment valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Environment valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -174,3 +147,4 @@ private Environment(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2beta.Environment) } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java similarity index 72% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java index ba3b631e..09a6b934 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * *
                * Filters events based on exact matches on the CloudEvents attributes.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.EventFilter} */ -public final class EventFilter extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EventFilter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.EventFilter) EventFilterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EventFilter.newBuilder() to construct. private EventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EventFilter() { attribute_ = ""; value_ = ""; @@ -45,15 +27,16 @@ private EventFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EventFilter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EventFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,31 @@ private EventFilter( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - attribute_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + attribute_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + value_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - operator_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + operator_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,39 +87,34 @@ private EventFilter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.EventFilter.class, - com.google.cloud.functions.v2beta.EventFilter.Builder.class); + com.google.cloud.functions.v2beta.EventFilter.class, com.google.cloud.functions.v2beta.EventFilter.Builder.class); } public static final int ATTRIBUTE_FIELD_NUMBER = 1; private volatile java.lang.Object attribute_; /** - * - * *
                  * Required. The name of a CloudEvents attribute.
                  * 
              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attribute. */ @java.lang.Override @@ -148,29 +123,29 @@ public java.lang.String getAttribute() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; } } /** - * - * *
                  * Required. The name of a CloudEvents attribute.
                  * 
              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attribute. */ @java.lang.Override - public com.google.protobuf.ByteString getAttributeBytes() { + public com.google.protobuf.ByteString + getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attribute_ = b; return b; } else { @@ -181,14 +156,11 @@ public com.google.protobuf.ByteString getAttributeBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
                  * Required. The value for the attribute.
                  * 
              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ @java.lang.Override @@ -197,29 +169,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
                  * Required. The value for the attribute.
                  * 
              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -230,8 +202,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int OPERATOR_FIELD_NUMBER = 3; private volatile java.lang.Object operator_; /** - * - * *
                  * Optional. The operator used for matching the events with the value of the
                  * filter. If not specified, only events that have an exact key-value pair
              @@ -240,7 +210,6 @@ public com.google.protobuf.ByteString getValueBytes() {
                  * 
              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The operator. */ @java.lang.Override @@ -249,15 +218,14 @@ public java.lang.String getOperator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operator_ = s; return s; } } /** - * - * *
                  * Optional. The operator used for matching the events with the value of the
                  * filter. If not specified, only events that have an exact key-value pair
              @@ -266,15 +234,16 @@ public java.lang.String getOperator() {
                  * 
              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for operator. */ @java.lang.Override - public com.google.protobuf.ByteString getOperatorBytes() { + public com.google.protobuf.ByteString + getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operator_ = b; return b; } else { @@ -283,7 +252,6 @@ public com.google.protobuf.ByteString getOperatorBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -295,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attribute_); } @@ -331,17 +300,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.EventFilter)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.EventFilter other = - (com.google.cloud.functions.v2beta.EventFilter) obj; + com.google.cloud.functions.v2beta.EventFilter other = (com.google.cloud.functions.v2beta.EventFilter) obj; - if (!getAttribute().equals(other.getAttribute())) return false; - if (!getValue().equals(other.getValue())) return false; - if (!getOperator().equals(other.getOperator())) return false; + if (!getAttribute() + .equals(other.getAttribute())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!getOperator() + .equals(other.getOperator())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -364,127 +335,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.EventFilter parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.EventFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.EventFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.EventFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.EventFilter 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.EventFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.EventFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.EventFilter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.EventFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.EventFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.EventFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.EventFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.EventFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.EventFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.EventFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Filters events based on exact matches on the CloudEvents attributes.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.EventFilter} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.EventFilter) com.google.cloud.functions.v2beta.EventFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.EventFilter.class, - com.google.cloud.functions.v2beta.EventFilter.Builder.class); + com.google.cloud.functions.v2beta.EventFilter.class, com.google.cloud.functions.v2beta.EventFilter.Builder.class); } // Construct using com.google.cloud.functions.v2beta.EventFilter.newBuilder() @@ -492,15 +454,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -514,9 +477,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; } @java.lang.Override @@ -535,8 +498,7 @@ public com.google.cloud.functions.v2beta.EventFilter build() { @java.lang.Override public com.google.cloud.functions.v2beta.EventFilter buildPartial() { - com.google.cloud.functions.v2beta.EventFilter result = - new com.google.cloud.functions.v2beta.EventFilter(this); + com.google.cloud.functions.v2beta.EventFilter result = new com.google.cloud.functions.v2beta.EventFilter(this); result.attribute_ = attribute_; result.value_ = value_; result.operator_ = operator_; @@ -548,39 +510,38 @@ public com.google.cloud.functions.v2beta.EventFilter buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.EventFilter) other); + return mergeFrom((com.google.cloud.functions.v2beta.EventFilter)other); } else { super.mergeFrom(other); return this; @@ -632,20 +593,18 @@ public Builder mergeFrom( private java.lang.Object attribute_ = ""; /** - * - * *
                    * Required. The name of a CloudEvents attribute.
                    * 
              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attribute. */ public java.lang.String getAttribute() { java.lang.Object ref = attribute_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; @@ -654,21 +613,20 @@ public java.lang.String getAttribute() { } } /** - * - * *
                    * Required. The name of a CloudEvents attribute.
                    * 
              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attribute. */ - public com.google.protobuf.ByteString getAttributeBytes() { + public com.google.protobuf.ByteString + getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attribute_ = b; return b; } else { @@ -676,61 +634,54 @@ public com.google.protobuf.ByteString getAttributeBytes() { } } /** - * - * *
                    * Required. The name of a CloudEvents attribute.
                    * 
              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The attribute to set. * @return This builder for chaining. */ - public Builder setAttribute(java.lang.String value) { + public Builder setAttribute( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attribute_ = value; onChanged(); return this; } /** - * - * *
                    * Required. The name of a CloudEvents attribute.
                    * 
              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAttribute() { - + attribute_ = getDefaultInstance().getAttribute(); onChanged(); return this; } /** - * - * *
                    * Required. The name of a CloudEvents attribute.
                    * 
              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for attribute to set. * @return This builder for chaining. */ - public Builder setAttributeBytes(com.google.protobuf.ByteString value) { + public Builder setAttributeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attribute_ = value; onChanged(); return this; @@ -738,20 +689,18 @@ public Builder setAttributeBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
                    * Required. The value for the attribute.
                    * 
              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -760,21 +709,20 @@ public java.lang.String getValue() { } } /** - * - * *
                    * Required. The value for the attribute.
                    * 
              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -782,61 +730,54 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
                    * Required. The value for the attribute.
                    * 
              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
                    * Required. The value for the attribute.
                    * 
              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
                    * Required. The value for the attribute.
                    * 
              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; @@ -844,8 +785,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { private java.lang.Object operator_ = ""; /** - * - * *
                    * Optional. The operator used for matching the events with the value of the
                    * filter. If not specified, only events that have an exact key-value pair
              @@ -854,13 +793,13 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
                    * 
              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The operator. */ public java.lang.String getOperator() { java.lang.Object ref = operator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operator_ = s; return s; @@ -869,8 +808,6 @@ public java.lang.String getOperator() { } } /** - * - * *
                    * Optional. The operator used for matching the events with the value of the
                    * filter. If not specified, only events that have an exact key-value pair
              @@ -879,14 +816,15 @@ public java.lang.String getOperator() {
                    * 
              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for operator. */ - public com.google.protobuf.ByteString getOperatorBytes() { + public com.google.protobuf.ByteString + getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operator_ = b; return b; } else { @@ -894,8 +832,6 @@ public com.google.protobuf.ByteString getOperatorBytes() { } } /** - * - * *
                    * Optional. The operator used for matching the events with the value of the
                    * filter. If not specified, only events that have an exact key-value pair
              @@ -904,22 +840,20 @@ public com.google.protobuf.ByteString getOperatorBytes() {
                    * 
              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The operator to set. * @return This builder for chaining. */ - public Builder setOperator(java.lang.String value) { + public Builder setOperator( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operator_ = value; onChanged(); return this; } /** - * - * *
                    * Optional. The operator used for matching the events with the value of the
                    * filter. If not specified, only events that have an exact key-value pair
              @@ -928,18 +862,15 @@ public Builder setOperator(java.lang.String value) {
                    * 
              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOperator() { - + operator_ = getDefaultInstance().getOperator(); onChanged(); return this; } /** - * - * *
                    * Optional. The operator used for matching the events with the value of the
                    * filter. If not specified, only events that have an exact key-value pair
              @@ -948,23 +879,23 @@ public Builder clearOperator() {
                    * 
              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for operator to set. * @return This builder for chaining. */ - public Builder setOperatorBytes(com.google.protobuf.ByteString value) { + public Builder setOperatorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operator_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -974,12 +905,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.EventFilter) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.EventFilter) private static final com.google.cloud.functions.v2beta.EventFilter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.EventFilter(); } @@ -988,16 +919,16 @@ public static com.google.cloud.functions.v2beta.EventFilter getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventFilter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventFilter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1012,4 +943,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.EventFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java similarity index 69% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java index 3ce1de81..183bcce3 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java @@ -1,81 +1,53 @@ -/* - * 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 EventFilterOrBuilder - extends +public interface EventFilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.EventFilter) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * Required. The name of a CloudEvents attribute.
                  * 
              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attribute. */ java.lang.String getAttribute(); /** - * - * *
                  * Required. The name of a CloudEvents attribute.
                  * 
              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attribute. */ - com.google.protobuf.ByteString getAttributeBytes(); + com.google.protobuf.ByteString + getAttributeBytes(); /** - * - * *
                  * Required. The value for the attribute.
                  * 
              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
                  * Required. The value for the attribute.
                  * 
              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
                  * Optional. The operator used for matching the events with the value of the
                  * filter. If not specified, only events that have an exact key-value pair
              @@ -84,13 +56,10 @@ public interface EventFilterOrBuilder
                  * 
              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The operator. */ java.lang.String getOperator(); /** - * - * *
                  * Optional. The operator used for matching the events with the value of the
                  * filter. If not specified, only events that have an exact key-value pair
              @@ -99,8 +68,8 @@ public interface EventFilterOrBuilder
                  * 
              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for operator. */ - com.google.protobuf.ByteString getOperatorBytes(); + com.google.protobuf.ByteString + getOperatorBytes(); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java similarity index 73% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java index d699c52d..c07f6531 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * *
                * Describes EventTrigger, used to request events to be sent from another
                * service.
              @@ -28,16 +11,15 @@
                *
                * Protobuf type {@code google.cloud.functions.v2beta.EventTrigger}
                */
              -public final class EventTrigger extends com.google.protobuf.GeneratedMessageV3
              -    implements
              +public final class EventTrigger extends
              +    com.google.protobuf.GeneratedMessageV3 implements
                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.EventTrigger)
                   EventTriggerOrBuilder {
              -  private static final long serialVersionUID = 0L;
              +private static final long serialVersionUID = 0L;
                 // Use EventTrigger.newBuilder() to construct.
                 private EventTrigger(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
              -
                 private EventTrigger() {
                   trigger_ = "";
                   triggerRegion_ = "";
              @@ -51,15 +33,16 @@ private EventTrigger() {
               
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
              -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
              +  protected java.lang.Object newInstance(
              +      UnusedPrivateParameter unused) {
                   return new EventTrigger();
                 }
               
                 @java.lang.Override
              -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
              +  public final com.google.protobuf.UnknownFieldSet
              +  getUnknownFields() {
                   return this.unknownFields;
                 }
              -
                 private EventTrigger(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              @@ -79,74 +62,64 @@ private EventTrigger(
                         case 0:
                           done = true;
                           break;
              -          case 10:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +          case 10: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              trigger_ = s;
              -              break;
              -            }
              -          case 18:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            trigger_ = s;
              +            break;
              +          }
              +          case 18: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              triggerRegion_ = s;
              -              break;
              -            }
              -          case 26:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            triggerRegion_ = s;
              +            break;
              +          }
              +          case 26: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              eventType_ = s;
              -              break;
              -            }
              -          case 34:
              -            {
              -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              -                eventFilters_ =
              -                    new java.util.ArrayList();
              -                mutable_bitField0_ |= 0x00000001;
              -              }
              -              eventFilters_.add(
              -                  input.readMessage(
              -                      com.google.cloud.functions.v2beta.EventFilter.parser(), extensionRegistry));
              -              break;
              +            eventType_ = s;
              +            break;
              +          }
              +          case 34: {
              +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              +              eventFilters_ = new java.util.ArrayList();
              +              mutable_bitField0_ |= 0x00000001;
                           }
              -          case 42:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            eventFilters_.add(
              +                input.readMessage(com.google.cloud.functions.v2beta.EventFilter.parser(), extensionRegistry));
              +            break;
              +          }
              +          case 42: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              pubsubTopic_ = s;
              -              break;
              -            }
              -          case 50:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            pubsubTopic_ = s;
              +            break;
              +          }
              +          case 50: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              serviceAccountEmail_ = s;
              -              break;
              -            }
              -          case 56:
              -            {
              -              int rawValue = input.readEnum();
              +            serviceAccountEmail_ = s;
              +            break;
              +          }
              +          case 56: {
              +            int rawValue = input.readEnum();
               
              -              retryPolicy_ = rawValue;
              -              break;
              -            }
              -          case 66:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            retryPolicy_ = rawValue;
              +            break;
              +          }
              +          case 66: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              channel_ = s;
              -              break;
              -            }
              -          default:
              -            {
              -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
              -                done = true;
              -              }
              -              break;
              +            channel_ = s;
              +            break;
              +          }
              +          default: {
              +            if (!parseUnknownField(
              +                input, unknownFields, extensionRegistry, tag)) {
              +              done = true;
                           }
              +            break;
              +          }
                       }
                     }
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              @@ -154,7 +127,8 @@ private EventTrigger(
                   } catch (com.google.protobuf.UninitializedMessageException e) {
                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                   } catch (java.io.IOException e) {
              -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
              +      throw new com.google.protobuf.InvalidProtocolBufferException(
              +          e).setUnfinishedMessage(this);
                   } finally {
                     if (((mutable_bitField0_ & 0x00000001) != 0)) {
                       eventFilters_ = java.util.Collections.unmodifiableList(eventFilters_);
              @@ -163,25 +137,20 @@ private EventTrigger(
                     makeExtensionsImmutable();
                   }
                 }
              -
              -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor;
              +  public static final com.google.protobuf.Descriptors.Descriptor
              +      getDescriptor() {
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor;
                 }
               
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
              -            com.google.cloud.functions.v2beta.EventTrigger.class,
              -            com.google.cloud.functions.v2beta.EventTrigger.Builder.class);
              +            com.google.cloud.functions.v2beta.EventTrigger.class, com.google.cloud.functions.v2beta.EventTrigger.Builder.class);
                 }
               
                 /**
              -   *
              -   *
                  * 
                  * Describes the retry policy in case of function's execution failure.
                  * Retried execution is charged as any other execution.
              @@ -189,10 +158,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                  *
                  * Protobuf enum {@code google.cloud.functions.v2beta.EventTrigger.RetryPolicy}
                  */
              -  public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum {
              +  public enum RetryPolicy
              +      implements com.google.protobuf.ProtocolMessageEnum {
                   /**
              -     *
              -     *
                    * 
                    * Not specified.
                    * 
              @@ -201,8 +169,6 @@ public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum { */ RETRY_POLICY_UNSPECIFIED(0), /** - * - * *
                    * Do not retry.
                    * 
              @@ -211,8 +177,6 @@ public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum { */ RETRY_POLICY_DO_NOT_RETRY(1), /** - * - * *
                    * Retry on any failure, retry up to 7 days with an exponential backoff
                    * (capped at 10 seconds).
              @@ -225,8 +189,6 @@ public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum {
                   ;
               
                   /**
              -     *
              -     *
                    * 
                    * Not specified.
                    * 
              @@ -235,8 +197,6 @@ public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RETRY_POLICY_UNSPECIFIED_VALUE = 0; /** - * - * *
                    * Do not retry.
                    * 
              @@ -245,8 +205,6 @@ public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RETRY_POLICY_DO_NOT_RETRY_VALUE = 1; /** - * - * *
                    * Retry on any failure, retry up to 7 days with an exponential backoff
                    * (capped at 10 seconds).
              @@ -256,6 +214,7 @@ public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum {
                    */
                   public static final int RETRY_POLICY_RETRY_VALUE = 2;
               
              +
                   public final int getNumber() {
                     if (this == UNRECOGNIZED) {
                       throw new java.lang.IllegalArgumentException(
              @@ -280,49 +239,49 @@ public static RetryPolicy valueOf(int value) {
                    */
                   public static RetryPolicy forNumber(int value) {
                     switch (value) {
              -        case 0:
              -          return RETRY_POLICY_UNSPECIFIED;
              -        case 1:
              -          return RETRY_POLICY_DO_NOT_RETRY;
              -        case 2:
              -          return RETRY_POLICY_RETRY;
              -        default:
              -          return null;
              +        case 0: return RETRY_POLICY_UNSPECIFIED;
              +        case 1: return RETRY_POLICY_DO_NOT_RETRY;
              +        case 2: return RETRY_POLICY_RETRY;
              +        default: return null;
                     }
                   }
               
              -    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
              +    public static com.google.protobuf.Internal.EnumLiteMap
              +        internalGetValueMap() {
                     return internalValueMap;
                   }
              +    private static final com.google.protobuf.Internal.EnumLiteMap<
              +        RetryPolicy> internalValueMap =
              +          new com.google.protobuf.Internal.EnumLiteMap() {
              +            public RetryPolicy findValueByNumber(int number) {
              +              return RetryPolicy.forNumber(number);
              +            }
              +          };
               
              -    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
              -        new com.google.protobuf.Internal.EnumLiteMap() {
              -          public RetryPolicy findValueByNumber(int number) {
              -            return RetryPolicy.forNumber(number);
              -          }
              -        };
              -
              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
              +    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() {
              +    public final com.google.protobuf.Descriptors.EnumDescriptor
              +        getDescriptorForType() {
                     return getDescriptor();
                   }
              -
              -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
              +    public static final com.google.protobuf.Descriptors.EnumDescriptor
              +        getDescriptor() {
                     return com.google.cloud.functions.v2beta.EventTrigger.getDescriptor().getEnumTypes().get(0);
                   }
               
                   private static final RetryPolicy[] VALUES = values();
               
              -    public static RetryPolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
              +    public static RetryPolicy valueOf(
              +        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                     if (desc.getType() != getDescriptor()) {
              -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
              +        throw new java.lang.IllegalArgumentException(
              +          "EnumValueDescriptor is not for this type.");
                     }
                     if (desc.getIndex() == -1) {
                       return UNRECOGNIZED;
              @@ -342,17 +301,12 @@ private RetryPolicy(int value) {
                 public static final int TRIGGER_FIELD_NUMBER = 1;
                 private volatile java.lang.Object 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) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The trigger. */ @java.lang.Override @@ -361,32 +315,30 @@ public java.lang.String getTrigger() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trigger_ = s; return s; } } /** - * - * *
                  * 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) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for trigger. */ @java.lang.Override - public com.google.protobuf.ByteString getTriggerBytes() { + public com.google.protobuf.ByteString + getTriggerBytes() { java.lang.Object ref = trigger_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trigger_ = b; return b; } else { @@ -397,8 +349,6 @@ public com.google.protobuf.ByteString getTriggerBytes() { public static final int TRIGGER_REGION_FIELD_NUMBER = 2; private volatile java.lang.Object triggerRegion_; /** - * - * *
                  * The region that the trigger will be in. The trigger will only receive
                  * events originating in this region. It can be the same
              @@ -407,7 +357,6 @@ public com.google.protobuf.ByteString getTriggerBytes() {
                  * 
              * * string trigger_region = 2; - * * @return The triggerRegion. */ @java.lang.Override @@ -416,15 +365,14 @@ public java.lang.String getTriggerRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); triggerRegion_ = s; return s; } } /** - * - * *
                  * The region that the trigger will be in. The trigger will only receive
                  * events originating in this region. It can be the same
              @@ -433,15 +381,16 @@ public java.lang.String getTriggerRegion() {
                  * 
              * * string trigger_region = 2; - * * @return The bytes for triggerRegion. */ @java.lang.Override - public com.google.protobuf.ByteString getTriggerRegionBytes() { + public com.google.protobuf.ByteString + getTriggerRegionBytes() { java.lang.Object ref = triggerRegion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); triggerRegion_ = b; return b; } else { @@ -452,8 +401,6 @@ public com.google.protobuf.ByteString getTriggerRegionBytes() { public static final int EVENT_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object eventType_; /** - * - * *
                  * Required. The type of event to observe. For example:
                  * `google.cloud.audit.log.v1.written` or
              @@ -461,7 +408,6 @@ public com.google.protobuf.ByteString getTriggerRegionBytes() {
                  * 
              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The eventType. */ @java.lang.Override @@ -470,15 +416,14 @@ public java.lang.String getEventType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; } } /** - * - * *
                  * Required. The type of event to observe. For example:
                  * `google.cloud.audit.log.v1.written` or
              @@ -486,15 +431,16 @@ public java.lang.String getEventType() {
                  * 
              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for eventType. */ @java.lang.Override - public com.google.protobuf.ByteString getEventTypeBytes() { + public com.google.protobuf.ByteString + getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); eventType_ = b; return b; } else { @@ -505,8 +451,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() { public static final int EVENT_FILTERS_FIELD_NUMBER = 4; private java.util.List eventFilters_; /** - * - * *
                  * Criteria used to filter events.
                  * 
              @@ -518,8 +462,6 @@ public java.util.List getEventFil return eventFilters_; } /** - * - * *
                  * Criteria used to filter events.
                  * 
              @@ -527,13 +469,11 @@ public java.util.List getEventFil * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ @java.lang.Override - public java.util.List + public java.util.List getEventFiltersOrBuilderList() { return eventFilters_; } /** - * - * *
                  * Criteria used to filter events.
                  * 
              @@ -545,8 +485,6 @@ public int getEventFiltersCount() { return eventFilters_.size(); } /** - * - * *
                  * Criteria used to filter events.
                  * 
              @@ -558,8 +496,6 @@ public com.google.cloud.functions.v2beta.EventFilter getEventFilters(int index) return eventFilters_.get(index); } /** - * - * *
                  * Criteria used to filter events.
                  * 
              @@ -575,8 +511,6 @@ public com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrB public static final int PUBSUB_TOPIC_FIELD_NUMBER = 5; private volatile java.lang.Object pubsubTopic_; /** - * - * *
                  * 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:
              @@ -586,10 +520,7 @@ public com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrB
                  * will not be deleted at function deletion.
                  * 
              * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The pubsubTopic. */ @java.lang.Override @@ -598,15 +529,14 @@ public java.lang.String getPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; } } /** - * - * *
                  * 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:
              @@ -616,18 +546,17 @@ public java.lang.String getPubsubTopic() {
                  * will not be deleted at function deletion.
                  * 
              * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -638,8 +567,6 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 6; private volatile java.lang.Object serviceAccountEmail_; /** - * - * *
                  * Optional. The email of the trigger's service account. The service account must have
                  * permission to invoke Cloud Run services, the permission is
              @@ -649,7 +576,6 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
                  * 
              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccountEmail. */ @java.lang.Override @@ -658,15 +584,14 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** - * - * *
                  * Optional. The email of the trigger's service account. The service account must have
                  * permission to invoke Cloud Run services, the permission is
              @@ -676,15 +601,16 @@ public java.lang.String getServiceAccountEmail() {
                  * 
              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -695,60 +621,40 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { public static final int RETRY_POLICY_FIELD_NUMBER = 7; private int retryPolicy_; /** - * - * *
                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                  * 
              * - * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for retryPolicy. */ - @java.lang.Override - public int getRetryPolicyValue() { + @java.lang.Override public int getRetryPolicyValue() { return retryPolicy_; } /** - * - * *
                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                  * 
              * - * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The retryPolicy. */ - @java.lang.Override - public com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy getRetryPolicy() { + @java.lang.Override public com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy getRetryPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy result = - com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.valueOf(retryPolicy_); - return result == null - ? com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.UNRECOGNIZED - : result; + com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy result = com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.valueOf(retryPolicy_); + return result == null ? com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.UNRECOGNIZED : result; } public static final int CHANNEL_FIELD_NUMBER = 8; private volatile java.lang.Object channel_; /** - * - * *
                  * Optional. The name of the channel associated with the trigger in
                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                  * You must provide a channel to receive events from Eventarc SaaS partners.
                  * 
              * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The channel. */ @java.lang.Override @@ -757,33 +663,31 @@ public java.lang.String getChannel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; } } /** - * - * *
                  * Optional. The name of the channel associated with the trigger in
                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                  * You must provide a channel to receive events from Eventarc SaaS partners.
                  * 
              * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for channel. */ @java.lang.Override - public com.google.protobuf.ByteString getChannelBytes() { + public com.google.protobuf.ByteString + getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); channel_ = b; return b; } else { @@ -792,7 +696,6 @@ public com.google.protobuf.ByteString getChannelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -804,7 +707,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trigger_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trigger_); } @@ -823,9 +727,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAccountEmail_); } - if (retryPolicy_ - != com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED - .getNumber()) { + if (retryPolicy_ != com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(7, retryPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { @@ -850,7 +752,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, eventType_); } for (int i = 0; i < eventFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, eventFilters_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, eventFilters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pubsubTopic_); @@ -858,10 +761,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAccountEmail_); } - if (retryPolicy_ - != com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, retryPolicy_); + if (retryPolicy_ != com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, retryPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, channel_); @@ -874,22 +776,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.EventTrigger)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.EventTrigger other = - (com.google.cloud.functions.v2beta.EventTrigger) obj; - - if (!getTrigger().equals(other.getTrigger())) return false; - if (!getTriggerRegion().equals(other.getTriggerRegion())) return false; - if (!getEventType().equals(other.getEventType())) return false; - if (!getEventFiltersList().equals(other.getEventFiltersList())) return false; - if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; + com.google.cloud.functions.v2beta.EventTrigger other = (com.google.cloud.functions.v2beta.EventTrigger) obj; + + if (!getTrigger() + .equals(other.getTrigger())) return false; + if (!getTriggerRegion() + .equals(other.getTriggerRegion())) return false; + if (!getEventType() + .equals(other.getEventType())) return false; + if (!getEventFiltersList() + .equals(other.getEventFiltersList())) return false; + if (!getPubsubTopic() + .equals(other.getPubsubTopic())) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; if (retryPolicy_ != other.retryPolicy_) return false; - if (!getChannel().equals(other.getChannel())) return false; + if (!getChannel() + .equals(other.getChannel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -924,104 +832,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.EventTrigger parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.EventTrigger parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.EventTrigger parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.EventTrigger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.EventTrigger 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.EventTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.EventTrigger parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.EventTrigger parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.EventTrigger parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.EventTrigger parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.EventTrigger parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.EventTrigger parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.EventTrigger parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.EventTrigger parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.EventTrigger prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Describes EventTrigger, used to request events to be sent from another
                  * service.
              @@ -1029,23 +930,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                  *
                  * Protobuf type {@code google.cloud.functions.v2beta.EventTrigger}
                  */
              -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
              -      implements
              +  public static final class Builder extends
              +      com.google.protobuf.GeneratedMessageV3.Builder implements
                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.EventTrigger)
                     com.google.cloud.functions.v2beta.EventTriggerOrBuilder {
              -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor;
              +    public static final com.google.protobuf.Descriptors.Descriptor
              +        getDescriptor() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor;
                   }
               
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
              -              com.google.cloud.functions.v2beta.EventTrigger.class,
              -              com.google.cloud.functions.v2beta.EventTrigger.Builder.class);
              +              com.google.cloud.functions.v2beta.EventTrigger.class, com.google.cloud.functions.v2beta.EventTrigger.Builder.class);
                   }
               
                   // Construct using com.google.cloud.functions.v2beta.EventTrigger.newBuilder()
              @@ -1053,17 +952,17 @@ private Builder() {
                     maybeForceBuilderInitialization();
                   }
               
              -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
              +    private Builder(
              +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                     super(parent);
                     maybeForceBuilderInitialization();
                   }
              -
                   private void maybeForceBuilderInitialization() {
              -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
              +      if (com.google.protobuf.GeneratedMessageV3
              +              .alwaysUseFieldBuilders) {
                       getEventFiltersFieldBuilder();
                     }
                   }
              -
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
              @@ -1091,9 +990,9 @@ public Builder clear() {
                   }
               
                   @java.lang.Override
              -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor;
              +    public com.google.protobuf.Descriptors.Descriptor
              +        getDescriptorForType() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor;
                   }
               
                   @java.lang.Override
              @@ -1112,8 +1011,7 @@ public com.google.cloud.functions.v2beta.EventTrigger build() {
               
                   @java.lang.Override
                   public com.google.cloud.functions.v2beta.EventTrigger buildPartial() {
              -      com.google.cloud.functions.v2beta.EventTrigger result =
              -          new com.google.cloud.functions.v2beta.EventTrigger(this);
              +      com.google.cloud.functions.v2beta.EventTrigger result = new com.google.cloud.functions.v2beta.EventTrigger(this);
                     int from_bitField0_ = bitField0_;
                     result.trigger_ = trigger_;
                     result.triggerRegion_ = triggerRegion_;
              @@ -1139,39 +1037,38 @@ public com.google.cloud.functions.v2beta.EventTrigger buildPartial() {
                   public Builder clone() {
                     return super.clone();
                   }
              -
                   @java.lang.Override
                   public Builder setField(
              -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
              +        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) {
              +    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) {
              +    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) {
              +        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) {
              +        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) {
              -        return mergeFrom((com.google.cloud.functions.v2beta.EventTrigger) other);
              +        return mergeFrom((com.google.cloud.functions.v2beta.EventTrigger)other);
                     } else {
                       super.mergeFrom(other);
                       return this;
              @@ -1210,10 +1107,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.EventTrigger other) {
                           eventFiltersBuilder_ = null;
                           eventFilters_ = other.eventFilters_;
                           bitField0_ = (bitField0_ & ~0x00000001);
              -            eventFiltersBuilder_ =
              -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
              -                    ? getEventFiltersFieldBuilder()
              -                    : null;
              +            eventFiltersBuilder_ = 
              +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
              +                 getEventFiltersFieldBuilder() : null;
                         } else {
                           eventFiltersBuilder_.addAllMessages(other.eventFilters_);
                         }
              @@ -1262,28 +1158,23 @@ public Builder mergeFrom(
                     }
                     return this;
                   }
              -
                   private int bitField0_;
               
                   private java.lang.Object 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) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The trigger. */ public java.lang.String getTrigger() { java.lang.Object ref = trigger_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trigger_ = s; return s; @@ -1292,24 +1183,21 @@ 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}`.
                    * 
              * - * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for trigger. */ - public com.google.protobuf.ByteString getTriggerBytes() { + public com.google.protobuf.ByteString + getTriggerBytes() { java.lang.Object ref = trigger_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trigger_ = b; return b; } else { @@ -1317,70 +1205,57 @@ 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}`.
                    * 
              * - * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The trigger to set. * @return This builder for chaining. */ - public Builder setTrigger(java.lang.String value) { + public Builder setTrigger( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trigger_ = value; onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearTrigger() { - + trigger_ = getDefaultInstance().getTrigger(); onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for trigger to set. * @return This builder for chaining. */ - public Builder setTriggerBytes(com.google.protobuf.ByteString value) { + public Builder setTriggerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trigger_ = value; onChanged(); return this; @@ -1388,8 +1263,6 @@ public Builder setTriggerBytes(com.google.protobuf.ByteString value) { private java.lang.Object triggerRegion_ = ""; /** - * - * *
                    * The region that the trigger will be in. The trigger will only receive
                    * events originating in this region. It can be the same
              @@ -1398,13 +1271,13 @@ public Builder setTriggerBytes(com.google.protobuf.ByteString value) {
                    * 
              * * string trigger_region = 2; - * * @return The triggerRegion. */ public java.lang.String getTriggerRegion() { java.lang.Object ref = triggerRegion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); triggerRegion_ = s; return s; @@ -1413,8 +1286,6 @@ public java.lang.String getTriggerRegion() { } } /** - * - * *
                    * The region that the trigger will be in. The trigger will only receive
                    * events originating in this region. It can be the same
              @@ -1423,14 +1294,15 @@ public java.lang.String getTriggerRegion() {
                    * 
              * * string trigger_region = 2; - * * @return The bytes for triggerRegion. */ - public com.google.protobuf.ByteString getTriggerRegionBytes() { + public com.google.protobuf.ByteString + getTriggerRegionBytes() { java.lang.Object ref = triggerRegion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); triggerRegion_ = b; return b; } else { @@ -1438,8 +1310,6 @@ public com.google.protobuf.ByteString getTriggerRegionBytes() { } } /** - * - * *
                    * The region that the trigger will be in. The trigger will only receive
                    * events originating in this region. It can be the same
              @@ -1448,22 +1318,20 @@ public com.google.protobuf.ByteString getTriggerRegionBytes() {
                    * 
              * * string trigger_region = 2; - * * @param value The triggerRegion to set. * @return This builder for chaining. */ - public Builder setTriggerRegion(java.lang.String value) { + public Builder setTriggerRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + triggerRegion_ = value; onChanged(); return this; } /** - * - * *
                    * The region that the trigger will be in. The trigger will only receive
                    * events originating in this region. It can be the same
              @@ -1472,18 +1340,15 @@ public Builder setTriggerRegion(java.lang.String value) {
                    * 
              * * string trigger_region = 2; - * * @return This builder for chaining. */ public Builder clearTriggerRegion() { - + triggerRegion_ = getDefaultInstance().getTriggerRegion(); onChanged(); return this; } /** - * - * *
                    * The region that the trigger will be in. The trigger will only receive
                    * events originating in this region. It can be the same
              @@ -1492,16 +1357,16 @@ public Builder clearTriggerRegion() {
                    * 
              * * string trigger_region = 2; - * * @param value The bytes for triggerRegion to set. * @return This builder for chaining. */ - public Builder setTriggerRegionBytes(com.google.protobuf.ByteString value) { + public Builder setTriggerRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + triggerRegion_ = value; onChanged(); return this; @@ -1509,8 +1374,6 @@ public Builder setTriggerRegionBytes(com.google.protobuf.ByteString value) { private java.lang.Object eventType_ = ""; /** - * - * *
                    * Required. The type of event to observe. For example:
                    * `google.cloud.audit.log.v1.written` or
              @@ -1518,13 +1381,13 @@ public Builder setTriggerRegionBytes(com.google.protobuf.ByteString value) {
                    * 
              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The eventType. */ public java.lang.String getEventType() { java.lang.Object ref = eventType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; @@ -1533,8 +1396,6 @@ public java.lang.String getEventType() { } } /** - * - * *
                    * Required. The type of event to observe. For example:
                    * `google.cloud.audit.log.v1.written` or
              @@ -1542,14 +1403,15 @@ public java.lang.String getEventType() {
                    * 
              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for eventType. */ - public com.google.protobuf.ByteString getEventTypeBytes() { + public com.google.protobuf.ByteString + getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); eventType_ = b; return b; } else { @@ -1557,8 +1419,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() { } } /** - * - * *
                    * Required. The type of event to observe. For example:
                    * `google.cloud.audit.log.v1.written` or
              @@ -1566,22 +1426,20 @@ public com.google.protobuf.ByteString getEventTypeBytes() {
                    * 
              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType(java.lang.String value) { + public Builder setEventType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + eventType_ = value; onChanged(); return this; } /** - * - * *
                    * Required. The type of event to observe. For example:
                    * `google.cloud.audit.log.v1.written` or
              @@ -1589,18 +1447,15 @@ public Builder setEventType(java.lang.String value) {
                    * 
              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearEventType() { - + eventType_ = getDefaultInstance().getEventType(); onChanged(); return this; } /** - * - * *
                    * Required. The type of event to observe. For example:
                    * `google.cloud.audit.log.v1.written` or
              @@ -1608,41 +1463,34 @@ public Builder clearEventType() {
                    * 
              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for eventType to set. * @return This builder for chaining. */ - public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { + public Builder setEventTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventType_ = value; onChanged(); return this; } private java.util.List eventFilters_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEventFiltersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - eventFilters_ = - new java.util.ArrayList(eventFilters_); + eventFilters_ = new java.util.ArrayList(eventFilters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.EventFilter, - com.google.cloud.functions.v2beta.EventFilter.Builder, - com.google.cloud.functions.v2beta.EventFilterOrBuilder> - eventFiltersBuilder_; + com.google.cloud.functions.v2beta.EventFilter, com.google.cloud.functions.v2beta.EventFilter.Builder, com.google.cloud.functions.v2beta.EventFilterOrBuilder> eventFiltersBuilder_; /** - * - * *
                    * Criteria used to filter events.
                    * 
              @@ -1657,8 +1505,6 @@ public java.util.List getEventFil } } /** - * - * *
                    * Criteria used to filter events.
                    * 
              @@ -1673,8 +1519,6 @@ public int getEventFiltersCount() { } } /** - * - * *
                    * Criteria used to filter events.
                    * 
              @@ -1689,15 +1533,14 @@ public com.google.cloud.functions.v2beta.EventFilter getEventFilters(int index) } } /** - * - * *
                    * Criteria used to filter events.
                    * 
              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - public Builder setEventFilters(int index, com.google.cloud.functions.v2beta.EventFilter value) { + public Builder setEventFilters( + int index, com.google.cloud.functions.v2beta.EventFilter value) { if (eventFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1711,8 +1554,6 @@ public Builder setEventFilters(int index, com.google.cloud.functions.v2beta.Even return this; } /** - * - * *
                    * Criteria used to filter events.
                    * 
              @@ -1731,8 +1572,6 @@ public Builder setEventFilters( return this; } /** - * - * *
                    * Criteria used to filter events.
                    * 
              @@ -1753,15 +1592,14 @@ public Builder addEventFilters(com.google.cloud.functions.v2beta.EventFilter val return this; } /** - * - * *
                    * Criteria used to filter events.
                    * 
              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - public Builder addEventFilters(int index, com.google.cloud.functions.v2beta.EventFilter value) { + public Builder addEventFilters( + int index, com.google.cloud.functions.v2beta.EventFilter value) { if (eventFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1775,8 +1613,6 @@ public Builder addEventFilters(int index, com.google.cloud.functions.v2beta.Even return this; } /** - * - * *
                    * Criteria used to filter events.
                    * 
              @@ -1795,8 +1631,6 @@ public Builder addEventFilters( return this; } /** - * - * *
                    * Criteria used to filter events.
                    * 
              @@ -1815,8 +1649,6 @@ public Builder addEventFilters( return this; } /** - * - * *
                    * Criteria used to filter events.
                    * 
              @@ -1827,7 +1659,8 @@ public Builder addAllEventFilters( java.lang.Iterable values) { if (eventFiltersBuilder_ == null) { ensureEventFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventFilters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, eventFilters_); onChanged(); } else { eventFiltersBuilder_.addAllMessages(values); @@ -1835,8 +1668,6 @@ public Builder addAllEventFilters( return this; } /** - * - * *
                    * Criteria used to filter events.
                    * 
              @@ -1854,8 +1685,6 @@ public Builder clearEventFilters() { return this; } /** - * - * *
                    * Criteria used to filter events.
                    * 
              @@ -1873,20 +1702,17 @@ public Builder removeEventFilters(int index) { return this; } /** - * - * *
                    * Criteria used to filter events.
                    * 
              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - public com.google.cloud.functions.v2beta.EventFilter.Builder getEventFiltersBuilder(int index) { + public com.google.cloud.functions.v2beta.EventFilter.Builder getEventFiltersBuilder( + int index) { return getEventFiltersFieldBuilder().getBuilder(index); } /** - * - * *
                    * Criteria used to filter events.
                    * 
              @@ -1896,22 +1722,19 @@ public com.google.cloud.functions.v2beta.EventFilter.Builder getEventFiltersBuil public com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrBuilder( int index) { if (eventFiltersBuilder_ == null) { - return eventFilters_.get(index); - } else { + return eventFilters_.get(index); } else { return eventFiltersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                    * Criteria used to filter events.
                    * 
              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - public java.util.List - getEventFiltersOrBuilderList() { + public java.util.List + getEventFiltersOrBuilderList() { if (eventFiltersBuilder_ != null) { return eventFiltersBuilder_.getMessageOrBuilderList(); } else { @@ -1919,8 +1742,6 @@ public com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrB } } /** - * - * *
                    * Criteria used to filter events.
                    * 
              @@ -1928,48 +1749,42 @@ public com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrB * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ public com.google.cloud.functions.v2beta.EventFilter.Builder addEventFiltersBuilder() { - return getEventFiltersFieldBuilder() - .addBuilder(com.google.cloud.functions.v2beta.EventFilter.getDefaultInstance()); + return getEventFiltersFieldBuilder().addBuilder( + com.google.cloud.functions.v2beta.EventFilter.getDefaultInstance()); } /** - * - * *
                    * Criteria used to filter events.
                    * 
              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - public com.google.cloud.functions.v2beta.EventFilter.Builder addEventFiltersBuilder(int index) { - return getEventFiltersFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2beta.EventFilter.getDefaultInstance()); + public com.google.cloud.functions.v2beta.EventFilter.Builder addEventFiltersBuilder( + int index) { + return getEventFiltersFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2beta.EventFilter.getDefaultInstance()); } /** - * - * *
                    * Criteria used to filter events.
                    * 
              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - public java.util.List - getEventFiltersBuilderList() { + public java.util.List + getEventFiltersBuilderList() { return getEventFiltersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.EventFilter, - com.google.cloud.functions.v2beta.EventFilter.Builder, - com.google.cloud.functions.v2beta.EventFilterOrBuilder> + com.google.cloud.functions.v2beta.EventFilter, com.google.cloud.functions.v2beta.EventFilter.Builder, com.google.cloud.functions.v2beta.EventFilterOrBuilder> getEventFiltersFieldBuilder() { if (eventFiltersBuilder_ == null) { - eventFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.EventFilter, - com.google.cloud.functions.v2beta.EventFilter.Builder, - com.google.cloud.functions.v2beta.EventFilterOrBuilder>( - eventFilters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + eventFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.EventFilter, com.google.cloud.functions.v2beta.EventFilter.Builder, com.google.cloud.functions.v2beta.EventFilterOrBuilder>( + eventFilters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); eventFilters_ = null; } return eventFiltersBuilder_; @@ -1977,8 +1792,6 @@ public com.google.cloud.functions.v2beta.EventFilter.Builder addEventFiltersBuil private java.lang.Object pubsubTopic_ = ""; /** - * - * *
                    * 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:
              @@ -1988,16 +1801,14 @@ public com.google.cloud.functions.v2beta.EventFilter.Builder addEventFiltersBuil
                    * will not be deleted at function deletion.
                    * 
              * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; @@ -2006,8 +1817,6 @@ 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:
              @@ -2017,17 +1826,16 @@ public java.lang.String getPubsubTopic() {
                    * will not be deleted at function deletion.
                    * 
              * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -2035,8 +1843,6 @@ 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:
              @@ -2046,25 +1852,21 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() {
                    * will not be deleted at function deletion.
                    * 
              * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic(java.lang.String value) { + public Builder setPubsubTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopic_ = value; onChanged(); return this; } /** - * - * *
                    * 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:
              @@ -2074,21 +1876,16 @@ public Builder setPubsubTopic(java.lang.String value) {
                    * will not be deleted at function deletion.
                    * 
              * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearPubsubTopic() { - + pubsubTopic_ = getDefaultInstance().getPubsubTopic(); onChanged(); return this; } /** - * - * *
                    * 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:
              @@ -2098,19 +1895,17 @@ public Builder clearPubsubTopic() {
                    * will not be deleted at function deletion.
                    * 
              * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { + public Builder setPubsubTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopic_ = value; onChanged(); return this; @@ -2118,8 +1913,6 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
                    * Optional. The email of the trigger's service account. The service account must have
                    * permission to invoke Cloud Run services, the permission is
              @@ -2129,13 +1922,13 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) {
                    * 
              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -2144,8 +1937,6 @@ 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
              @@ -2155,14 +1946,15 @@ public java.lang.String getServiceAccountEmail() {
                    * 
              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -2170,8 +1962,6 @@ 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
              @@ -2181,22 +1971,20 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() {
                    * 
              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail(java.lang.String value) { + public Builder setServiceAccountEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** - * - * *
                    * Optional. The email of the trigger's service account. The service account must have
                    * permission to invoke Cloud Run services, the permission is
              @@ -2206,18 +1994,15 @@ public Builder setServiceAccountEmail(java.lang.String value) {
                    * 
              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** - * - * *
                    * Optional. The email of the trigger's service account. The service account must have
                    * permission to invoke Cloud Run services, the permission is
              @@ -2227,16 +2012,16 @@ public Builder clearServiceAccountEmail() {
                    * 
              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; @@ -2244,103 +2029,73 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) private int retryPolicy_ = 0; /** - * - * *
                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                    * 
              * - * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for retryPolicy. */ - @java.lang.Override - public int getRetryPolicyValue() { + @java.lang.Override public int getRetryPolicyValue() { return retryPolicy_; } /** - * - * *
                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                    * 
              * - * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for retryPolicy to set. * @return This builder for chaining. */ public Builder setRetryPolicyValue(int value) { - + retryPolicy_ = value; onChanged(); return this; } /** - * - * *
                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                    * 
              * - * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The retryPolicy. */ @java.lang.Override public com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy getRetryPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy result = - com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.valueOf(retryPolicy_); - return result == null - ? com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.UNRECOGNIZED - : result; + com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy result = com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.valueOf(retryPolicy_); + return result == null ? com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.UNRECOGNIZED : result; } /** - * - * *
                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                    * 
              * - * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param value The retryPolicy to set. * @return This builder for chaining. */ - public Builder setRetryPolicy( - com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy value) { + public Builder setRetryPolicy(com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy value) { if (value == null) { throw new NullPointerException(); } - + retryPolicy_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                    * 
              * - * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearRetryPolicy() { - + retryPolicy_ = 0; onChanged(); return this; @@ -2348,24 +2103,20 @@ public Builder clearRetryPolicy() { private java.lang.Object channel_ = ""; /** - * - * *
                    * Optional. The name of the channel associated with the trigger in
                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                    * You must provide a channel to receive events from Eventarc SaaS partners.
                    * 
              * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The channel. */ public java.lang.String getChannel() { java.lang.Object ref = channel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; @@ -2374,25 +2125,22 @@ public java.lang.String getChannel() { } } /** - * - * *
                    * Optional. The name of the channel associated with the trigger in
                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                    * You must provide a channel to receive events from Eventarc SaaS partners.
                    * 
              * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for channel. */ - public com.google.protobuf.ByteString getChannelBytes() { + public com.google.protobuf.ByteString + getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); channel_ = b; return b; } else { @@ -2400,80 +2148,67 @@ public com.google.protobuf.ByteString getChannelBytes() { } } /** - * - * *
                    * Optional. The name of the channel associated with the trigger in
                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                    * You must provide a channel to receive events from Eventarc SaaS partners.
                    * 
              * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The channel to set. * @return This builder for chaining. */ - public Builder setChannel(java.lang.String value) { + public Builder setChannel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + channel_ = value; onChanged(); return this; } /** - * - * *
                    * Optional. The name of the channel associated with the trigger in
                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                    * You must provide a channel to receive events from Eventarc SaaS partners.
                    * 
              * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearChannel() { - + channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } /** - * - * *
                    * Optional. The name of the channel associated with the trigger in
                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                    * You must provide a channel to receive events from Eventarc SaaS partners.
                    * 
              * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for channel to set. * @return This builder for chaining. */ - public Builder setChannelBytes(com.google.protobuf.ByteString value) { + public Builder setChannelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channel_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2483,12 +2218,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.EventTrigger) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.EventTrigger) private static final com.google.cloud.functions.v2beta.EventTrigger DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.EventTrigger(); } @@ -2497,16 +2232,16 @@ public static com.google.cloud.functions.v2beta.EventTrigger getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventTrigger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventTrigger(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventTrigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventTrigger(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2521,4 +2256,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.EventTrigger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java similarity index 72% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java index 93c9551b..1ddb4a07 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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 EventTriggerOrBuilder - extends +public interface EventTriggerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.EventTrigger) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * 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) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The trigger. */ 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}`.
                  * 
              * - * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for trigger. */ - com.google.protobuf.ByteString getTriggerBytes(); + com.google.protobuf.ByteString + getTriggerBytes(); /** - * - * *
                  * The region that the trigger will be in. The trigger will only receive
                  * events originating in this region. It can be the same
              @@ -65,13 +38,10 @@ public interface EventTriggerOrBuilder
                  * 
              * * string trigger_region = 2; - * * @return The triggerRegion. */ java.lang.String getTriggerRegion(); /** - * - * *
                  * The region that the trigger will be in. The trigger will only receive
                  * events originating in this region. It can be the same
              @@ -80,14 +50,12 @@ public interface EventTriggerOrBuilder
                  * 
              * * string trigger_region = 2; - * * @return The bytes for triggerRegion. */ - com.google.protobuf.ByteString getTriggerRegionBytes(); + com.google.protobuf.ByteString + getTriggerRegionBytes(); /** - * - * *
                  * Required. The type of event to observe. For example:
                  * `google.cloud.audit.log.v1.written` or
              @@ -95,13 +63,10 @@ public interface EventTriggerOrBuilder
                  * 
              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The eventType. */ java.lang.String getEventType(); /** - * - * *
                  * Required. The type of event to observe. For example:
                  * `google.cloud.audit.log.v1.written` or
              @@ -109,24 +74,21 @@ public interface EventTriggerOrBuilder
                  * 
              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for eventType. */ - com.google.protobuf.ByteString getEventTypeBytes(); + com.google.protobuf.ByteString + getEventTypeBytes(); /** - * - * *
                  * Criteria used to filter events.
                  * 
              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - java.util.List getEventFiltersList(); + java.util.List + getEventFiltersList(); /** - * - * *
                  * Criteria used to filter events.
                  * 
              @@ -135,8 +97,6 @@ public interface EventTriggerOrBuilder */ com.google.cloud.functions.v2beta.EventFilter getEventFilters(int index); /** - * - * *
                  * Criteria used to filter events.
                  * 
              @@ -145,30 +105,25 @@ public interface EventTriggerOrBuilder */ int getEventFiltersCount(); /** - * - * *
                  * Criteria used to filter events.
                  * 
              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - java.util.List + java.util.List getEventFiltersOrBuilderList(); /** - * - * *
                  * Criteria used to filter events.
                  * 
              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrBuilder(int index); + com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrBuilder( + int index); /** - * - * *
                  * 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:
              @@ -178,16 +133,11 @@ public interface EventTriggerOrBuilder
                  * will not be deleted at function deletion.
                  * 
              * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The pubsubTopic. */ 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:
              @@ -197,17 +147,13 @@ public interface EventTriggerOrBuilder
                  * will not be deleted at function deletion.
                  * 
              * - * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString getPubsubTopicBytes(); + 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
              @@ -217,13 +163,10 @@ public interface EventTriggerOrBuilder
                  * 
              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccountEmail. */ 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
              @@ -233,70 +176,51 @@ public interface EventTriggerOrBuilder
                  * 
              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getServiceAccountEmailBytes(); /** - * - * *
                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                  * 
              * - * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for retryPolicy. */ int getRetryPolicyValue(); /** - * - * *
                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                  * 
              * - * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The retryPolicy. */ com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy getRetryPolicy(); /** - * - * *
                  * Optional. The name of the channel associated with the trigger in
                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                  * You must provide a channel to receive events from Eventarc SaaS partners.
                  * 
              * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The channel. */ java.lang.String getChannel(); /** - * - * *
                  * Optional. The name of the channel associated with the trigger in
                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                  * You must provide a channel to receive events from Eventarc SaaS partners.
                  * 
              * - * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for channel. */ - com.google.protobuf.ByteString getChannelBytes(); + com.google.protobuf.ByteString + getChannelBytes(); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java similarity index 68% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java index 9074b95b..a246525e 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * *
                * Describes a Cloud Function that contains user computation executed in
                * response to an event. It encapsulates function and trigger configurations.
              @@ -28,16 +11,15 @@
                *
                * Protobuf type {@code google.cloud.functions.v2beta.Function}
                */
              -public final class Function extends com.google.protobuf.GeneratedMessageV3
              -    implements
              +public final class Function extends
              +    com.google.protobuf.GeneratedMessageV3 implements
                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.Function)
                   FunctionOrBuilder {
              -  private static final long serialVersionUID = 0L;
              +private static final long serialVersionUID = 0L;
                 // Use Function.newBuilder() to construct.
                 private Function(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
              -
                 private Function() {
                   name_ = "";
                   environment_ = 0;
              @@ -48,15 +30,16 @@ private Function() {
               
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
              -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
              +  protected java.lang.Object newInstance(
              +      UnusedPrivateParameter unused) {
                   return new Function();
                 }
               
                 @java.lang.Override
              -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
              +  public final com.google.protobuf.UnknownFieldSet
              +  getUnknownFields() {
                   return this.unknownFields;
                 }
              -
                 private Function(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              @@ -76,129 +59,111 @@ private Function(
                         case 0:
                           done = true;
                           break;
              -          case 10:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +          case 10: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              name_ = s;
              -              break;
              -            }
              -          case 18:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            name_ = s;
              +            break;
              +          }
              +          case 18: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              description_ = s;
              -              break;
              +            description_ = s;
              +            break;
              +          }
              +          case 26: {
              +            com.google.cloud.functions.v2beta.BuildConfig.Builder subBuilder = null;
              +            if (buildConfig_ != null) {
              +              subBuilder = buildConfig_.toBuilder();
                           }
              -          case 26:
              -            {
              -              com.google.cloud.functions.v2beta.BuildConfig.Builder subBuilder = null;
              -              if (buildConfig_ != null) {
              -                subBuilder = buildConfig_.toBuilder();
              -              }
              -              buildConfig_ =
              -                  input.readMessage(
              -                      com.google.cloud.functions.v2beta.BuildConfig.parser(), extensionRegistry);
              -              if (subBuilder != null) {
              -                subBuilder.mergeFrom(buildConfig_);
              -                buildConfig_ = subBuilder.buildPartial();
              -              }
              -
              -              break;
              +            buildConfig_ = input.readMessage(com.google.cloud.functions.v2beta.BuildConfig.parser(), extensionRegistry);
              +            if (subBuilder != null) {
              +              subBuilder.mergeFrom(buildConfig_);
              +              buildConfig_ = subBuilder.buildPartial();
                           }
              -          case 34:
              -            {
              -              com.google.cloud.functions.v2beta.ServiceConfig.Builder subBuilder = null;
              -              if (serviceConfig_ != null) {
              -                subBuilder = serviceConfig_.toBuilder();
              -              }
              -              serviceConfig_ =
              -                  input.readMessage(
              -                      com.google.cloud.functions.v2beta.ServiceConfig.parser(), extensionRegistry);
              -              if (subBuilder != null) {
              -                subBuilder.mergeFrom(serviceConfig_);
              -                serviceConfig_ = subBuilder.buildPartial();
              -              }
              -
              -              break;
              +
              +            break;
              +          }
              +          case 34: {
              +            com.google.cloud.functions.v2beta.ServiceConfig.Builder subBuilder = null;
              +            if (serviceConfig_ != null) {
              +              subBuilder = serviceConfig_.toBuilder();
                           }
              -          case 42:
              -            {
              -              com.google.cloud.functions.v2beta.EventTrigger.Builder subBuilder = null;
              -              if (eventTrigger_ != null) {
              -                subBuilder = eventTrigger_.toBuilder();
              -              }
              -              eventTrigger_ =
              -                  input.readMessage(
              -                      com.google.cloud.functions.v2beta.EventTrigger.parser(), extensionRegistry);
              -              if (subBuilder != null) {
              -                subBuilder.mergeFrom(eventTrigger_);
              -                eventTrigger_ = subBuilder.buildPartial();
              -              }
              -
              -              break;
              +            serviceConfig_ = input.readMessage(com.google.cloud.functions.v2beta.ServiceConfig.parser(), extensionRegistry);
              +            if (subBuilder != null) {
              +              subBuilder.mergeFrom(serviceConfig_);
              +              serviceConfig_ = subBuilder.buildPartial();
                           }
              -          case 48:
              -            {
              -              int rawValue = input.readEnum();
               
              -              state_ = rawValue;
              -              break;
              +            break;
              +          }
              +          case 42: {
              +            com.google.cloud.functions.v2beta.EventTrigger.Builder subBuilder = null;
              +            if (eventTrigger_ != null) {
              +              subBuilder = eventTrigger_.toBuilder();
                           }
              -          case 58:
              -            {
              -              com.google.protobuf.Timestamp.Builder subBuilder = null;
              -              if (updateTime_ != null) {
              -                subBuilder = updateTime_.toBuilder();
              -              }
              -              updateTime_ =
              -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              -              if (subBuilder != null) {
              -                subBuilder.mergeFrom(updateTime_);
              -                updateTime_ = subBuilder.buildPartial();
              -              }
              -
              -              break;
              +            eventTrigger_ = input.readMessage(com.google.cloud.functions.v2beta.EventTrigger.parser(), extensionRegistry);
              +            if (subBuilder != null) {
              +              subBuilder.mergeFrom(eventTrigger_);
              +              eventTrigger_ = subBuilder.buildPartial();
                           }
              -          case 66:
              -            {
              -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              -                labels_ =
              -                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
              -                mutable_bitField0_ |= 0x00000001;
              -              }
              -              com.google.protobuf.MapEntry labels__ =
              -                  input.readMessage(
              -                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              -              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
              -              break;
              +
              +            break;
              +          }
              +          case 48: {
              +            int rawValue = input.readEnum();
              +
              +            state_ = rawValue;
              +            break;
              +          }
              +          case 58: {
              +            com.google.protobuf.Timestamp.Builder subBuilder = null;
              +            if (updateTime_ != null) {
              +              subBuilder = updateTime_.toBuilder();
                           }
              -          case 74:
              -            {
              -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              -                stateMessages_ =
              -                    new java.util.ArrayList();
              -                mutable_bitField0_ |= 0x00000002;
              -              }
              -              stateMessages_.add(
              -                  input.readMessage(
              -                      com.google.cloud.functions.v2beta.StateMessage.parser(), extensionRegistry));
              -              break;
              +            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              +            if (subBuilder != null) {
              +              subBuilder.mergeFrom(updateTime_);
              +              updateTime_ = subBuilder.buildPartial();
                           }
              -          case 80:
              -            {
              -              int rawValue = input.readEnum();
               
              -              environment_ = rawValue;
              -              break;
              +            break;
              +          }
              +          case 66: {
              +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              +              labels_ = com.google.protobuf.MapField.newMapField(
              +                  LabelsDefaultEntryHolder.defaultEntry);
              +              mutable_bitField0_ |= 0x00000001;
                           }
              -          default:
              -            {
              -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
              -                done = true;
              -              }
              -              break;
              +            com.google.protobuf.MapEntry
              +            labels__ = input.readMessage(
              +                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              +            labels_.getMutableMap().put(
              +                labels__.getKey(), labels__.getValue());
              +            break;
              +          }
              +          case 74: {
              +            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              +              stateMessages_ = new java.util.ArrayList();
              +              mutable_bitField0_ |= 0x00000002;
                           }
              +            stateMessages_.add(
              +                input.readMessage(com.google.cloud.functions.v2beta.StateMessage.parser(), extensionRegistry));
              +            break;
              +          }
              +          case 80: {
              +            int rawValue = input.readEnum();
              +
              +            environment_ = rawValue;
              +            break;
              +          }
              +          default: {
              +            if (!parseUnknownField(
              +                input, unknownFields, extensionRegistry, tag)) {
              +              done = true;
              +            }
              +            break;
              +          }
                       }
                     }
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              @@ -206,7 +171,8 @@ private Function(
                   } catch (com.google.protobuf.UninitializedMessageException e) {
                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                   } catch (java.io.IOException e) {
              -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
              +      throw new com.google.protobuf.InvalidProtocolBufferException(
              +          e).setUnfinishedMessage(this);
                   } finally {
                     if (((mutable_bitField0_ & 0x00000002) != 0)) {
                       stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_);
              @@ -215,46 +181,41 @@ private Function(
                     makeExtensionsImmutable();
                   }
                 }
              -
              -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_Function_descriptor;
              +  public static final com.google.protobuf.Descriptors.Descriptor
              +      getDescriptor() {
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Function_descriptor;
                 }
               
                 @SuppressWarnings({"rawtypes"})
                 @java.lang.Override
              -  protected com.google.protobuf.MapField internalGetMapField(int number) {
              +  protected com.google.protobuf.MapField internalGetMapField(
              +      int number) {
                   switch (number) {
                     case 8:
                       return internalGetLabels();
                     default:
              -        throw new RuntimeException("Invalid map field number: " + number);
              +        throw new RuntimeException(
              +            "Invalid map field number: " + number);
                   }
                 }
              -
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
              -            com.google.cloud.functions.v2beta.Function.class,
              -            com.google.cloud.functions.v2beta.Function.Builder.class);
              +            com.google.cloud.functions.v2beta.Function.class, com.google.cloud.functions.v2beta.Function.Builder.class);
                 }
               
                 /**
              -   *
              -   *
                  * 
                  * Describes the current state of the function.
                  * 
              * * Protobuf enum {@code google.cloud.functions.v2beta.Function.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                    * Not specified. Invalid state.
                    * 
              @@ -263,8 +224,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
                    * Function has been successfully deployed and is serving.
                    * 
              @@ -273,8 +232,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
                    * Function deployment failed and the function is not serving.
                    * 
              @@ -283,8 +240,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(2), /** - * - * *
                    * Function is being created or updated.
                    * 
              @@ -293,8 +248,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DEPLOYING(3), /** - * - * *
                    * Function is being deleted.
                    * 
              @@ -303,8 +256,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
                    * Function deployment failed and the function serving state is undefined.
                    * The function should be updated or deleted to move it out of this state.
              @@ -317,8 +268,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
                   ;
               
                   /**
              -     *
              -     *
                    * 
                    * Not specified. Invalid state.
                    * 
              @@ -327,8 +276,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
                    * Function has been successfully deployed and is serving.
                    * 
              @@ -337,8 +284,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
                    * Function deployment failed and the function is not serving.
                    * 
              @@ -347,8 +292,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 2; /** - * - * *
                    * Function is being created or updated.
                    * 
              @@ -357,8 +300,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPLOYING_VALUE = 3; /** - * - * *
                    * Function is being deleted.
                    * 
              @@ -367,8 +308,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
                    * Function deployment failed and the function serving state is undefined.
                    * The function should be updated or deleted to move it out of this state.
              @@ -378,6 +317,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
                    */
                   public static final int UNKNOWN_VALUE = 5;
               
              +
                   public final int getNumber() {
                     if (this == UNRECOGNIZED) {
                       throw new java.lang.IllegalArgumentException(
              @@ -402,55 +342,52 @@ public static State valueOf(int value) {
                    */
                   public static State forNumber(int value) {
                     switch (value) {
              -        case 0:
              -          return STATE_UNSPECIFIED;
              -        case 1:
              -          return ACTIVE;
              -        case 2:
              -          return FAILED;
              -        case 3:
              -          return DEPLOYING;
              -        case 4:
              -          return DELETING;
              -        case 5:
              -          return UNKNOWN;
              -        default:
              -          return null;
              +        case 0: return STATE_UNSPECIFIED;
              +        case 1: return ACTIVE;
              +        case 2: return FAILED;
              +        case 3: return DEPLOYING;
              +        case 4: return DELETING;
              +        case 5: return UNKNOWN;
              +        default: return null;
                     }
                   }
               
              -    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
              +    public static com.google.protobuf.Internal.EnumLiteMap
              +        internalGetValueMap() {
                     return internalValueMap;
                   }
              +    private static final com.google.protobuf.Internal.EnumLiteMap<
              +        State> internalValueMap =
              +          new com.google.protobuf.Internal.EnumLiteMap() {
              +            public State findValueByNumber(int number) {
              +              return State.forNumber(number);
              +            }
              +          };
               
              -    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
              -        new com.google.protobuf.Internal.EnumLiteMap() {
              -          public State findValueByNumber(int number) {
              -            return State.forNumber(number);
              -          }
              -        };
              -
              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
              +    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() {
              +    public final com.google.protobuf.Descriptors.EnumDescriptor
              +        getDescriptorForType() {
                     return getDescriptor();
                   }
              -
              -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
              +    public static final com.google.protobuf.Descriptors.EnumDescriptor
              +        getDescriptor() {
                     return com.google.cloud.functions.v2beta.Function.getDescriptor().getEnumTypes().get(0);
                   }
               
                   private static final State[] VALUES = values();
               
              -    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
              +    public static State valueOf(
              +        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                     if (desc.getType() != getDescriptor()) {
              -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
              +        throw new java.lang.IllegalArgumentException(
              +          "EnumValueDescriptor is not for this type.");
                     }
                     if (desc.getIndex() == -1) {
                       return UNRECOGNIZED;
              @@ -470,15 +407,12 @@ private State(int value) {
                 public static final int NAME_FIELD_NUMBER = 1;
                 private volatile java.lang.Object name_;
                 /**
              -   *
              -   *
                  * 
                  * A user-defined name of the function. Function names must be unique
                  * globally and match pattern `projects/*/locations/*/functions/*`
                  * 
              * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -487,30 +421,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                  * A user-defined name of the function. Function names must be unique
                  * globally and match pattern `projects/*/locations/*/functions/*`
                  * 
              * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -521,50 +455,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ENVIRONMENT_FIELD_NUMBER = 10; private int environment_; /** - * - * *
                  * 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() { + @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() { + @java.lang.Override public com.google.cloud.functions.v2beta.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Environment result = - com.google.cloud.functions.v2beta.Environment.valueOf(environment_); + com.google.cloud.functions.v2beta.Environment result = com.google.cloud.functions.v2beta.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2beta.Environment.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
                  * User-provided description of a function.
                  * 
              * * string description = 2; - * * @return The description. */ @java.lang.Override @@ -573,29 +495,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
                  * User-provided description of a function.
                  * 
              * * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -606,15 +528,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int BUILD_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.functions.v2beta.BuildConfig buildConfig_; /** - * - * *
                  * Describes the Build step of the function that builds a container from the
                  * given source.
                  * 
              * * .google.cloud.functions.v2beta.BuildConfig build_config = 3; - * * @return Whether the buildConfig field is set. */ @java.lang.Override @@ -622,26 +541,19 @@ public boolean hasBuildConfig() { return buildConfig_ != null; } /** - * - * *
                  * Describes the Build step of the function that builds a container from the
                  * given source.
                  * 
              * * .google.cloud.functions.v2beta.BuildConfig build_config = 3; - * * @return The buildConfig. */ @java.lang.Override public com.google.cloud.functions.v2beta.BuildConfig getBuildConfig() { - return buildConfig_ == null - ? com.google.cloud.functions.v2beta.BuildConfig.getDefaultInstance() - : buildConfig_; + return buildConfig_ == null ? com.google.cloud.functions.v2beta.BuildConfig.getDefaultInstance() : buildConfig_; } /** - * - * *
                  * Describes the Build step of the function that builds a container from the
                  * given source.
              @@ -657,15 +569,12 @@ public com.google.cloud.functions.v2beta.BuildConfigOrBuilder getBuildConfigOrBu
                 public static final int SERVICE_CONFIG_FIELD_NUMBER = 4;
                 private com.google.cloud.functions.v2beta.ServiceConfig serviceConfig_;
                 /**
              -   *
              -   *
                  * 
                  * Describes the Service being deployed. Currently deploys services to Cloud
                  * Run (fully managed).
                  * 
              * * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; - * * @return Whether the serviceConfig field is set. */ @java.lang.Override @@ -673,26 +582,19 @@ public boolean hasServiceConfig() { return serviceConfig_ != null; } /** - * - * *
                  * Describes the Service being deployed. Currently deploys services to Cloud
                  * Run (fully managed).
                  * 
              * * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; - * * @return The serviceConfig. */ @java.lang.Override public com.google.cloud.functions.v2beta.ServiceConfig getServiceConfig() { - return serviceConfig_ == null - ? com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance() - : serviceConfig_; + return serviceConfig_ == null ? com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance() : serviceConfig_; } /** - * - * *
                  * Describes the Service being deployed. Currently deploys services to Cloud
                  * Run (fully managed).
              @@ -708,15 +610,12 @@ public com.google.cloud.functions.v2beta.ServiceConfigOrBuilder getServiceConfig
                 public static final int EVENT_TRIGGER_FIELD_NUMBER = 5;
                 private com.google.cloud.functions.v2beta.EventTrigger eventTrigger_;
                 /**
              -   *
              -   *
                  * 
                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                  * response to a condition in another service.
                  * 
              * * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; - * * @return Whether the eventTrigger field is set. */ @java.lang.Override @@ -724,26 +623,19 @@ public boolean hasEventTrigger() { return eventTrigger_ != null; } /** - * - * *
                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                  * response to a condition in another service.
                  * 
              * * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; - * * @return The eventTrigger. */ @java.lang.Override public com.google.cloud.functions.v2beta.EventTrigger getEventTrigger() { - return eventTrigger_ == null - ? com.google.cloud.functions.v2beta.EventTrigger.getDefaultInstance() - : eventTrigger_; + return eventTrigger_ == null ? com.google.cloud.functions.v2beta.EventTrigger.getDefaultInstance() : eventTrigger_; } /** - * - * *
                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                  * response to a condition in another service.
              @@ -759,55 +651,38 @@ public com.google.cloud.functions.v2beta.EventTriggerOrBuilder getEventTriggerOr
                 public static final int STATE_FIELD_NUMBER = 6;
                 private int state_;
                 /**
              -   *
              -   *
                  * 
                  * Output only. State of the function.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
                  * Output only. State of the function.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.functions.v2beta.Function.State getState() { + @java.lang.Override public com.google.cloud.functions.v2beta.Function.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Function.State result = - com.google.cloud.functions.v2beta.Function.State.valueOf(state_); + com.google.cloud.functions.v2beta.Function.State result = com.google.cloud.functions.v2beta.Function.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2beta.Function.State.UNRECOGNIZED : result; } public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
                  * 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]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -815,15 +690,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
                  * 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]; * @return The updateTime. */ @java.lang.Override @@ -831,14 +702,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
                  * 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]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -846,23 +714,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -871,30 +740,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
                  * Labels associated with this Cloud Function.
                  * 
              * * map<string, string> labels = 8; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
                  * Labels associated with this Cloud Function.
                  * 
              @@ -902,12 +769,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
                  * Labels associated with this Cloud Function.
                  * 
              @@ -915,16 +781,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
                  * Labels associated with this Cloud Function.
                  * 
              @@ -932,11 +798,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -946,76 +813,56 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int STATE_MESSAGES_FIELD_NUMBER = 9; private java.util.List stateMessages_; /** - * - * *
                  * Output only. State Messages for this Cloud Function.
                  * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getStateMessagesList() { return stateMessages_; } /** - * - * *
                  * Output only. State Messages for this Cloud Function.
                  * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getStateMessagesOrBuilderList() { return stateMessages_; } /** - * - * *
                  * Output only. State Messages for this Cloud Function.
                  * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getStateMessagesCount() { return stateMessages_.size(); } /** - * - * *
                  * Output only. State Messages for this Cloud Function.
                  * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index) { return stateMessages_.get(index); } /** - * - * *
                  * Output only. State Messages for this Cloud Function.
                  * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder( @@ -1024,7 +871,6 @@ public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1036,7 +882,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1058,13 +905,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(7, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); for (int i = 0; i < stateMessages_.size(); i++) { output.writeMessage(9, stateMessages_.get(i)); } - if (environment_ - != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (environment_ != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(10, environment_); } unknownFields.writeTo(output); @@ -1083,36 +933,42 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (buildConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBuildConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBuildConfig()); } if (serviceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getServiceConfig()); } if (eventTrigger_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEventTrigger()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEventTrigger()); } if (state_ != com.google.cloud.functions.v2beta.Function.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, labels__); } for (int i = 0; i < stateMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, stateMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, stateMessages_.get(i)); } - if (environment_ - != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, environment_); + if (environment_ != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, environment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1122,36 +978,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.Function)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.Function other = - (com.google.cloud.functions.v2beta.Function) obj; + com.google.cloud.functions.v2beta.Function other = (com.google.cloud.functions.v2beta.Function) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (environment_ != other.environment_) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasBuildConfig() != other.hasBuildConfig()) return false; if (hasBuildConfig()) { - if (!getBuildConfig().equals(other.getBuildConfig())) return false; + if (!getBuildConfig() + .equals(other.getBuildConfig())) return false; } if (hasServiceConfig() != other.hasServiceConfig()) return false; if (hasServiceConfig()) { - if (!getServiceConfig().equals(other.getServiceConfig())) return false; + if (!getServiceConfig() + .equals(other.getServiceConfig())) return false; } if (hasEventTrigger() != other.hasEventTrigger()) return false; if (hasEventTrigger()) { - if (!getEventTrigger().equals(other.getEventTrigger())) return false; + if (!getEventTrigger() + .equals(other.getEventTrigger())) return false; } if (state_ != other.state_) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getStateMessagesList().equals(other.getStateMessagesList())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getStateMessagesList() + .equals(other.getStateMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1200,104 +1063,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.Function parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.Function parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.Function parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Function parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.Function 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.Function parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.Function parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.Function parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.Function parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.Function parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.Function parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.Function parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.Function parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.Function parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.Function prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Describes a Cloud Function that contains user computation executed in
                  * response to an event. It encapsulates function and trigger configurations.
              @@ -1305,43 +1161,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                  *
                  * Protobuf type {@code google.cloud.functions.v2beta.Function}
                  */
              -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
              -      implements
              +  public static final class Builder extends
              +      com.google.protobuf.GeneratedMessageV3.Builder implements
                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.Function)
                     com.google.cloud.functions.v2beta.FunctionOrBuilder {
              -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_Function_descriptor;
              +    public static final com.google.protobuf.Descriptors.Descriptor
              +        getDescriptor() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Function_descriptor;
                   }
               
                   @SuppressWarnings({"rawtypes"})
              -    protected com.google.protobuf.MapField internalGetMapField(int number) {
              +    protected com.google.protobuf.MapField internalGetMapField(
              +        int number) {
                     switch (number) {
                       case 8:
                         return internalGetLabels();
                       default:
              -          throw new RuntimeException("Invalid map field number: " + number);
              +          throw new RuntimeException(
              +              "Invalid map field number: " + number);
                     }
                   }
              -
                   @SuppressWarnings({"rawtypes"})
              -    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
              +    protected com.google.protobuf.MapField internalGetMutableMapField(
              +        int number) {
                     switch (number) {
                       case 8:
                         return internalGetMutableLabels();
                       default:
              -          throw new RuntimeException("Invalid map field number: " + number);
              +          throw new RuntimeException(
              +              "Invalid map field number: " + number);
                     }
                   }
              -
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
              -              com.google.cloud.functions.v2beta.Function.class,
              -              com.google.cloud.functions.v2beta.Function.Builder.class);
              +              com.google.cloud.functions.v2beta.Function.class, com.google.cloud.functions.v2beta.Function.Builder.class);
                   }
               
                   // Construct using com.google.cloud.functions.v2beta.Function.newBuilder()
              @@ -1349,17 +1205,17 @@ private Builder() {
                     maybeForceBuilderInitialization();
                   }
               
              -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
              +    private Builder(
              +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                     super(parent);
                     maybeForceBuilderInitialization();
                   }
              -
                   private void maybeForceBuilderInitialization() {
              -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
              +      if (com.google.protobuf.GeneratedMessageV3
              +              .alwaysUseFieldBuilders) {
                       getStateMessagesFieldBuilder();
                     }
                   }
              -
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
              @@ -1406,9 +1262,9 @@ public Builder clear() {
                   }
               
                   @java.lang.Override
              -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_Function_descriptor;
              +    public com.google.protobuf.Descriptors.Descriptor
              +        getDescriptorForType() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Function_descriptor;
                   }
               
                   @java.lang.Override
              @@ -1427,8 +1283,7 @@ public com.google.cloud.functions.v2beta.Function build() {
               
                   @java.lang.Override
                   public com.google.cloud.functions.v2beta.Function buildPartial() {
              -      com.google.cloud.functions.v2beta.Function result =
              -          new com.google.cloud.functions.v2beta.Function(this);
              +      com.google.cloud.functions.v2beta.Function result = new com.google.cloud.functions.v2beta.Function(this);
                     int from_bitField0_ = bitField0_;
                     result.name_ = name_;
                     result.environment_ = environment_;
              @@ -1473,39 +1328,38 @@ public com.google.cloud.functions.v2beta.Function buildPartial() {
                   public Builder clone() {
                     return super.clone();
                   }
              -
                   @java.lang.Override
                   public Builder setField(
              -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
              +        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) {
              +    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) {
              +    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) {
              +        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) {
              +        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.Function) {
              -        return mergeFrom((com.google.cloud.functions.v2beta.Function) other);
              +        return mergeFrom((com.google.cloud.functions.v2beta.Function)other);
                     } else {
                       super.mergeFrom(other);
                       return this;
              @@ -1540,7 +1394,8 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.Function other) {
                     if (other.hasUpdateTime()) {
                       mergeUpdateTime(other.getUpdateTime());
                     }
              -      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
              +      internalGetMutableLabels().mergeFrom(
              +          other.internalGetLabels());
                     if (stateMessagesBuilder_ == null) {
                       if (!other.stateMessages_.isEmpty()) {
                         if (stateMessages_.isEmpty()) {
              @@ -1559,10 +1414,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.Function other) {
                           stateMessagesBuilder_ = null;
                           stateMessages_ = other.stateMessages_;
                           bitField0_ = (bitField0_ & ~0x00000002);
              -            stateMessagesBuilder_ =
              -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
              -                    ? getStateMessagesFieldBuilder()
              -                    : null;
              +            stateMessagesBuilder_ = 
              +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
              +                 getStateMessagesFieldBuilder() : null;
                         } else {
                           stateMessagesBuilder_.addAllMessages(other.stateMessages_);
                         }
              @@ -1596,26 +1450,23 @@ public Builder mergeFrom(
                     }
                     return this;
                   }
              -
                   private int bitField0_;
               
                   private java.lang.Object name_ = "";
                   /**
              -     *
              -     *
                    * 
                    * A user-defined name of the function. Function names must be unique
                    * globally and match pattern `projects/*/locations/*/functions/*`
                    * 
              * * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1624,22 +1475,21 @@ public java.lang.String getName() { } } /** - * - * *
                    * A user-defined name of the function. Function names must be unique
                    * globally and match pattern `projects/*/locations/*/functions/*`
                    * 
              * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1647,64 +1497,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                    * A user-defined name of the function. Function names must be unique
                    * globally and match pattern `projects/*/locations/*/functions/*`
                    * 
              * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
                    * A user-defined name of the function. Function names must be unique
                    * globally and match pattern `projects/*/locations/*/functions/*`
                    * 
              * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
                    * A user-defined name of the function. Function names must be unique
                    * globally and match pattern `projects/*/locations/*/functions/*`
                    * 
              * * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1712,65 +1555,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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() { + @java.lang.Override public int getEnvironmentValue() { return environment_; } /** - * - * *
                    * Describe whether the function is gen1 or gen2.
                    * 
              * * .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; 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() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Environment result = - com.google.cloud.functions.v2beta.Environment.valueOf(environment_); + com.google.cloud.functions.v2beta.Environment result = com.google.cloud.functions.v2beta.Environment.valueOf(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. */ @@ -1778,24 +1607,21 @@ public Builder setEnvironment(com.google.cloud.functions.v2beta.Environment valu if (value == null) { throw new NullPointerException(); } - + 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() { - + environment_ = 0; onChanged(); return this; @@ -1803,20 +1629,18 @@ public Builder clearEnvironment() { 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1825,21 +1649,20 @@ public java.lang.String getDescription() { } } /** - * - * *
                    * User-provided description of a function.
                    * 
              * * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1847,61 +1670,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
                    * User-provided description of a function.
                    * 
              * * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
                    * User-provided description of a function.
                    * 
              * * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
                    * User-provided description of a function.
                    * 
              * * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1909,49 +1725,36 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.functions.v2beta.BuildConfig buildConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.BuildConfig, - com.google.cloud.functions.v2beta.BuildConfig.Builder, - com.google.cloud.functions.v2beta.BuildConfigOrBuilder> - buildConfigBuilder_; + com.google.cloud.functions.v2beta.BuildConfig, com.google.cloud.functions.v2beta.BuildConfig.Builder, com.google.cloud.functions.v2beta.BuildConfigOrBuilder> buildConfigBuilder_; /** - * - * *
                    * Describes the Build step of the function that builds a container from the
                    * given source.
                    * 
              * * .google.cloud.functions.v2beta.BuildConfig build_config = 3; - * * @return Whether the buildConfig field is set. */ public boolean hasBuildConfig() { return buildConfigBuilder_ != null || buildConfig_ != null; } /** - * - * *
                    * Describes the Build step of the function that builds a container from the
                    * given source.
                    * 
              * * .google.cloud.functions.v2beta.BuildConfig build_config = 3; - * * @return The buildConfig. */ public com.google.cloud.functions.v2beta.BuildConfig getBuildConfig() { if (buildConfigBuilder_ == null) { - return buildConfig_ == null - ? com.google.cloud.functions.v2beta.BuildConfig.getDefaultInstance() - : buildConfig_; + return buildConfig_ == null ? com.google.cloud.functions.v2beta.BuildConfig.getDefaultInstance() : buildConfig_; } else { return buildConfigBuilder_.getMessage(); } } /** - * - * *
                    * Describes the Build step of the function that builds a container from the
                    * given source.
              @@ -1973,8 +1776,6 @@ public Builder setBuildConfig(com.google.cloud.functions.v2beta.BuildConfig valu
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * Describes the Build step of the function that builds a container from the
                    * given source.
              @@ -1994,8 +1795,6 @@ public Builder setBuildConfig(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * Describes the Build step of the function that builds a container from the
                    * given source.
              @@ -2007,9 +1806,7 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2beta.BuildConfig va
                     if (buildConfigBuilder_ == null) {
                       if (buildConfig_ != null) {
                         buildConfig_ =
              -              com.google.cloud.functions.v2beta.BuildConfig.newBuilder(buildConfig_)
              -                  .mergeFrom(value)
              -                  .buildPartial();
              +            com.google.cloud.functions.v2beta.BuildConfig.newBuilder(buildConfig_).mergeFrom(value).buildPartial();
                       } else {
                         buildConfig_ = value;
                       }
              @@ -2021,8 +1818,6 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2beta.BuildConfig va
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * Describes the Build step of the function that builds a container from the
                    * given source.
              @@ -2042,8 +1837,6 @@ public Builder clearBuildConfig() {
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * Describes the Build step of the function that builds a container from the
                    * given source.
              @@ -2052,13 +1845,11 @@ public Builder clearBuildConfig() {
                    * .google.cloud.functions.v2beta.BuildConfig build_config = 3;
                    */
                   public com.google.cloud.functions.v2beta.BuildConfig.Builder getBuildConfigBuilder() {
              -
              +      
                     onChanged();
                     return getBuildConfigFieldBuilder().getBuilder();
                   }
                   /**
              -     *
              -     *
                    * 
                    * Describes the Build step of the function that builds a container from the
                    * given source.
              @@ -2070,14 +1861,11 @@ public com.google.cloud.functions.v2beta.BuildConfigOrBuilder getBuildConfigOrBu
                     if (buildConfigBuilder_ != null) {
                       return buildConfigBuilder_.getMessageOrBuilder();
                     } else {
              -        return buildConfig_ == null
              -            ? com.google.cloud.functions.v2beta.BuildConfig.getDefaultInstance()
              -            : buildConfig_;
              +        return buildConfig_ == null ?
              +            com.google.cloud.functions.v2beta.BuildConfig.getDefaultInstance() : buildConfig_;
                     }
                   }
                   /**
              -     *
              -     *
                    * 
                    * Describes the Build step of the function that builds a container from the
                    * given source.
              @@ -2086,17 +1874,14 @@ public com.google.cloud.functions.v2beta.BuildConfigOrBuilder getBuildConfigOrBu
                    * .google.cloud.functions.v2beta.BuildConfig build_config = 3;
                    */
                   private com.google.protobuf.SingleFieldBuilderV3<
              -            com.google.cloud.functions.v2beta.BuildConfig,
              -            com.google.cloud.functions.v2beta.BuildConfig.Builder,
              -            com.google.cloud.functions.v2beta.BuildConfigOrBuilder>
              +        com.google.cloud.functions.v2beta.BuildConfig, com.google.cloud.functions.v2beta.BuildConfig.Builder, com.google.cloud.functions.v2beta.BuildConfigOrBuilder> 
                       getBuildConfigFieldBuilder() {
                     if (buildConfigBuilder_ == null) {
              -        buildConfigBuilder_ =
              -            new com.google.protobuf.SingleFieldBuilderV3<
              -                com.google.cloud.functions.v2beta.BuildConfig,
              -                com.google.cloud.functions.v2beta.BuildConfig.Builder,
              -                com.google.cloud.functions.v2beta.BuildConfigOrBuilder>(
              -                getBuildConfig(), getParentForChildren(), isClean());
              +        buildConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              +            com.google.cloud.functions.v2beta.BuildConfig, com.google.cloud.functions.v2beta.BuildConfig.Builder, com.google.cloud.functions.v2beta.BuildConfigOrBuilder>(
              +                getBuildConfig(),
              +                getParentForChildren(),
              +                isClean());
                       buildConfig_ = null;
                     }
                     return buildConfigBuilder_;
              @@ -2104,49 +1889,36 @@ public com.google.cloud.functions.v2beta.BuildConfigOrBuilder getBuildConfigOrBu
               
                   private com.google.cloud.functions.v2beta.ServiceConfig serviceConfig_;
                   private com.google.protobuf.SingleFieldBuilderV3<
              -            com.google.cloud.functions.v2beta.ServiceConfig,
              -            com.google.cloud.functions.v2beta.ServiceConfig.Builder,
              -            com.google.cloud.functions.v2beta.ServiceConfigOrBuilder>
              -        serviceConfigBuilder_;
              +        com.google.cloud.functions.v2beta.ServiceConfig, com.google.cloud.functions.v2beta.ServiceConfig.Builder, com.google.cloud.functions.v2beta.ServiceConfigOrBuilder> serviceConfigBuilder_;
                   /**
              -     *
              -     *
                    * 
                    * Describes the Service being deployed. Currently deploys services to Cloud
                    * Run (fully managed).
                    * 
              * * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; - * * @return Whether the serviceConfig field is set. */ public boolean hasServiceConfig() { return serviceConfigBuilder_ != null || serviceConfig_ != null; } /** - * - * *
                    * Describes the Service being deployed. Currently deploys services to Cloud
                    * Run (fully managed).
                    * 
              * * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; - * * @return The serviceConfig. */ public com.google.cloud.functions.v2beta.ServiceConfig getServiceConfig() { if (serviceConfigBuilder_ == null) { - return serviceConfig_ == null - ? com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance() - : serviceConfig_; + return serviceConfig_ == null ? com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance() : serviceConfig_; } else { return serviceConfigBuilder_.getMessage(); } } /** - * - * *
                    * Describes the Service being deployed. Currently deploys services to Cloud
                    * Run (fully managed).
              @@ -2168,8 +1940,6 @@ public Builder setServiceConfig(com.google.cloud.functions.v2beta.ServiceConfig
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * Describes the Service being deployed. Currently deploys services to Cloud
                    * Run (fully managed).
              @@ -2189,8 +1959,6 @@ public Builder setServiceConfig(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * Describes the Service being deployed. Currently deploys services to Cloud
                    * Run (fully managed).
              @@ -2202,9 +1970,7 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2beta.ServiceConfi
                     if (serviceConfigBuilder_ == null) {
                       if (serviceConfig_ != null) {
                         serviceConfig_ =
              -              com.google.cloud.functions.v2beta.ServiceConfig.newBuilder(serviceConfig_)
              -                  .mergeFrom(value)
              -                  .buildPartial();
              +            com.google.cloud.functions.v2beta.ServiceConfig.newBuilder(serviceConfig_).mergeFrom(value).buildPartial();
                       } else {
                         serviceConfig_ = value;
                       }
              @@ -2216,8 +1982,6 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2beta.ServiceConfi
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * Describes the Service being deployed. Currently deploys services to Cloud
                    * Run (fully managed).
              @@ -2237,8 +2001,6 @@ public Builder clearServiceConfig() {
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * Describes the Service being deployed. Currently deploys services to Cloud
                    * Run (fully managed).
              @@ -2247,13 +2009,11 @@ public Builder clearServiceConfig() {
                    * .google.cloud.functions.v2beta.ServiceConfig service_config = 4;
                    */
                   public com.google.cloud.functions.v2beta.ServiceConfig.Builder getServiceConfigBuilder() {
              -
              +      
                     onChanged();
                     return getServiceConfigFieldBuilder().getBuilder();
                   }
                   /**
              -     *
              -     *
                    * 
                    * Describes the Service being deployed. Currently deploys services to Cloud
                    * Run (fully managed).
              @@ -2265,14 +2025,11 @@ public com.google.cloud.functions.v2beta.ServiceConfigOrBuilder getServiceConfig
                     if (serviceConfigBuilder_ != null) {
                       return serviceConfigBuilder_.getMessageOrBuilder();
                     } else {
              -        return serviceConfig_ == null
              -            ? com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance()
              -            : serviceConfig_;
              +        return serviceConfig_ == null ?
              +            com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance() : serviceConfig_;
                     }
                   }
                   /**
              -     *
              -     *
                    * 
                    * Describes the Service being deployed. Currently deploys services to Cloud
                    * Run (fully managed).
              @@ -2281,17 +2038,14 @@ public com.google.cloud.functions.v2beta.ServiceConfigOrBuilder getServiceConfig
                    * .google.cloud.functions.v2beta.ServiceConfig service_config = 4;
                    */
                   private com.google.protobuf.SingleFieldBuilderV3<
              -            com.google.cloud.functions.v2beta.ServiceConfig,
              -            com.google.cloud.functions.v2beta.ServiceConfig.Builder,
              -            com.google.cloud.functions.v2beta.ServiceConfigOrBuilder>
              +        com.google.cloud.functions.v2beta.ServiceConfig, com.google.cloud.functions.v2beta.ServiceConfig.Builder, com.google.cloud.functions.v2beta.ServiceConfigOrBuilder> 
                       getServiceConfigFieldBuilder() {
                     if (serviceConfigBuilder_ == null) {
              -        serviceConfigBuilder_ =
              -            new com.google.protobuf.SingleFieldBuilderV3<
              -                com.google.cloud.functions.v2beta.ServiceConfig,
              -                com.google.cloud.functions.v2beta.ServiceConfig.Builder,
              -                com.google.cloud.functions.v2beta.ServiceConfigOrBuilder>(
              -                getServiceConfig(), getParentForChildren(), isClean());
              +        serviceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              +            com.google.cloud.functions.v2beta.ServiceConfig, com.google.cloud.functions.v2beta.ServiceConfig.Builder, com.google.cloud.functions.v2beta.ServiceConfigOrBuilder>(
              +                getServiceConfig(),
              +                getParentForChildren(),
              +                isClean());
                       serviceConfig_ = null;
                     }
                     return serviceConfigBuilder_;
              @@ -2299,49 +2053,36 @@ public com.google.cloud.functions.v2beta.ServiceConfigOrBuilder getServiceConfig
               
                   private com.google.cloud.functions.v2beta.EventTrigger eventTrigger_;
                   private com.google.protobuf.SingleFieldBuilderV3<
              -            com.google.cloud.functions.v2beta.EventTrigger,
              -            com.google.cloud.functions.v2beta.EventTrigger.Builder,
              -            com.google.cloud.functions.v2beta.EventTriggerOrBuilder>
              -        eventTriggerBuilder_;
              +        com.google.cloud.functions.v2beta.EventTrigger, com.google.cloud.functions.v2beta.EventTrigger.Builder, com.google.cloud.functions.v2beta.EventTriggerOrBuilder> eventTriggerBuilder_;
                   /**
              -     *
              -     *
                    * 
                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                    * response to a condition in another service.
                    * 
              * * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; - * * @return Whether the eventTrigger field is set. */ public boolean hasEventTrigger() { return eventTriggerBuilder_ != null || eventTrigger_ != null; } /** - * - * *
                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                    * response to a condition in another service.
                    * 
              * * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; - * * @return The eventTrigger. */ public com.google.cloud.functions.v2beta.EventTrigger getEventTrigger() { if (eventTriggerBuilder_ == null) { - return eventTrigger_ == null - ? com.google.cloud.functions.v2beta.EventTrigger.getDefaultInstance() - : eventTrigger_; + return eventTrigger_ == null ? com.google.cloud.functions.v2beta.EventTrigger.getDefaultInstance() : eventTrigger_; } else { return eventTriggerBuilder_.getMessage(); } } /** - * - * *
                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                    * response to a condition in another service.
              @@ -2363,8 +2104,6 @@ public Builder setEventTrigger(com.google.cloud.functions.v2beta.EventTrigger va
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                    * response to a condition in another service.
              @@ -2384,8 +2123,6 @@ public Builder setEventTrigger(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                    * response to a condition in another service.
              @@ -2397,9 +2134,7 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2beta.EventTrigger
                     if (eventTriggerBuilder_ == null) {
                       if (eventTrigger_ != null) {
                         eventTrigger_ =
              -              com.google.cloud.functions.v2beta.EventTrigger.newBuilder(eventTrigger_)
              -                  .mergeFrom(value)
              -                  .buildPartial();
              +            com.google.cloud.functions.v2beta.EventTrigger.newBuilder(eventTrigger_).mergeFrom(value).buildPartial();
                       } else {
                         eventTrigger_ = value;
                       }
              @@ -2411,8 +2146,6 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2beta.EventTrigger
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                    * response to a condition in another service.
              @@ -2432,8 +2165,6 @@ public Builder clearEventTrigger() {
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                    * response to a condition in another service.
              @@ -2442,13 +2173,11 @@ public Builder clearEventTrigger() {
                    * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5;
                    */
                   public com.google.cloud.functions.v2beta.EventTrigger.Builder getEventTriggerBuilder() {
              -
              +      
                     onChanged();
                     return getEventTriggerFieldBuilder().getBuilder();
                   }
                   /**
              -     *
              -     *
                    * 
                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                    * response to a condition in another service.
              @@ -2460,14 +2189,11 @@ public com.google.cloud.functions.v2beta.EventTriggerOrBuilder getEventTriggerOr
                     if (eventTriggerBuilder_ != null) {
                       return eventTriggerBuilder_.getMessageOrBuilder();
                     } else {
              -        return eventTrigger_ == null
              -            ? com.google.cloud.functions.v2beta.EventTrigger.getDefaultInstance()
              -            : eventTrigger_;
              +        return eventTrigger_ == null ?
              +            com.google.cloud.functions.v2beta.EventTrigger.getDefaultInstance() : eventTrigger_;
                     }
                   }
                   /**
              -     *
              -     *
                    * 
                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                    * response to a condition in another service.
              @@ -2476,17 +2202,14 @@ public com.google.cloud.functions.v2beta.EventTriggerOrBuilder getEventTriggerOr
                    * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5;
                    */
                   private com.google.protobuf.SingleFieldBuilderV3<
              -            com.google.cloud.functions.v2beta.EventTrigger,
              -            com.google.cloud.functions.v2beta.EventTrigger.Builder,
              -            com.google.cloud.functions.v2beta.EventTriggerOrBuilder>
              +        com.google.cloud.functions.v2beta.EventTrigger, com.google.cloud.functions.v2beta.EventTrigger.Builder, com.google.cloud.functions.v2beta.EventTriggerOrBuilder> 
                       getEventTriggerFieldBuilder() {
                     if (eventTriggerBuilder_ == null) {
              -        eventTriggerBuilder_ =
              -            new com.google.protobuf.SingleFieldBuilderV3<
              -                com.google.cloud.functions.v2beta.EventTrigger,
              -                com.google.cloud.functions.v2beta.EventTrigger.Builder,
              -                com.google.cloud.functions.v2beta.EventTriggerOrBuilder>(
              -                getEventTrigger(), getParentForChildren(), isClean());
              +        eventTriggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              +            com.google.cloud.functions.v2beta.EventTrigger, com.google.cloud.functions.v2beta.EventTrigger.Builder, com.google.cloud.functions.v2beta.EventTriggerOrBuilder>(
              +                getEventTrigger(),
              +                getParentForChildren(),
              +                isClean());
                       eventTrigger_ = null;
                     }
                     return eventTriggerBuilder_;
              @@ -2494,75 +2217,51 @@ public com.google.cloud.functions.v2beta.EventTriggerOrBuilder getEventTriggerOr
               
                   private int state_ = 0;
                   /**
              -     *
              -     *
                    * 
                    * Output only. State of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
                    * Output only. State of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
                    * Output only. State of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.functions.v2beta.Function.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Function.State result = - com.google.cloud.functions.v2beta.Function.State.valueOf(state_); - return result == null - ? com.google.cloud.functions.v2beta.Function.State.UNRECOGNIZED - : result; + com.google.cloud.functions.v2beta.Function.State result = com.google.cloud.functions.v2beta.Function.State.valueOf(state_); + return result == null ? com.google.cloud.functions.v2beta.Function.State.UNRECOGNIZED : result; } /** - * - * *
                    * Output only. State of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2570,26 +2269,21 @@ public Builder setState(com.google.cloud.functions.v2beta.Function.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                    * Output only. State of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2597,58 +2291,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
                    * 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]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
                    * 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]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
                    * 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]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2664,17 +2339,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                    * 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]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2685,21 +2357,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                    * 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]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2711,15 +2379,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                    * 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]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2733,84 +2397,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
                    * 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]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
                    * 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]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
                    * 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]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2822,30 +2471,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
                    * Labels associated with this Cloud Function.
                    * 
              * * map<string, string> labels = 8; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
                    * Labels associated with this Cloud Function.
                    * 
              @@ -2853,12 +2500,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
                    * Labels associated with this Cloud Function.
                    * 
              @@ -2866,17 +2512,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
                    * Labels associated with this Cloud Function.
                    * 
              @@ -2884,11 +2529,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2896,91 +2542,85 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
                    * Labels associated with this Cloud Function.
                    * 
              * * map<string, string> labels = 8; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
                    * Labels associated with this Cloud Function.
                    * 
              * * map<string, string> labels = 8; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
                    * Labels associated with this Cloud Function.
                    * 
              * * map<string, string> labels = 8; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.util.List stateMessages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStateMessagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - stateMessages_ = - new java.util.ArrayList(stateMessages_); + stateMessages_ = new java.util.ArrayList(stateMessages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.StateMessage, - com.google.cloud.functions.v2beta.StateMessage.Builder, - com.google.cloud.functions.v2beta.StateMessageOrBuilder> - stateMessagesBuilder_; + com.google.cloud.functions.v2beta.StateMessage, com.google.cloud.functions.v2beta.StateMessage.Builder, com.google.cloud.functions.v2beta.StateMessageOrBuilder> stateMessagesBuilder_; /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getStateMessagesList() { if (stateMessagesBuilder_ == null) { @@ -2990,15 +2630,11 @@ public java.util.List getStateMe } } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getStateMessagesCount() { if (stateMessagesBuilder_ == null) { @@ -3008,15 +2644,11 @@ public int getStateMessagesCount() { } } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index) { if (stateMessagesBuilder_ == null) { @@ -3026,15 +2658,11 @@ public com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index } } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateMessages( int index, com.google.cloud.functions.v2beta.StateMessage value) { @@ -3051,15 +2679,11 @@ public Builder setStateMessages( return this; } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateMessages( int index, com.google.cloud.functions.v2beta.StateMessage.Builder builderForValue) { @@ -3073,15 +2697,11 @@ public Builder setStateMessages( return this; } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStateMessages(com.google.cloud.functions.v2beta.StateMessage value) { if (stateMessagesBuilder_ == null) { @@ -3097,15 +2717,11 @@ public Builder addStateMessages(com.google.cloud.functions.v2beta.StateMessage v return this; } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStateMessages( int index, com.google.cloud.functions.v2beta.StateMessage value) { @@ -3122,15 +2738,11 @@ public Builder addStateMessages( return this; } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStateMessages( com.google.cloud.functions.v2beta.StateMessage.Builder builderForValue) { @@ -3144,15 +2756,11 @@ public Builder addStateMessages( return this; } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStateMessages( int index, com.google.cloud.functions.v2beta.StateMessage.Builder builderForValue) { @@ -3166,21 +2774,18 @@ public Builder addStateMessages( return this; } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllStateMessages( java.lang.Iterable values) { if (stateMessagesBuilder_ == null) { ensureStateMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stateMessages_); onChanged(); } else { stateMessagesBuilder_.addAllMessages(values); @@ -3188,15 +2793,11 @@ public Builder addAllStateMessages( return this; } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStateMessages() { if (stateMessagesBuilder_ == null) { @@ -3209,15 +2810,11 @@ public Builder clearStateMessages() { return this; } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeStateMessages(int index) { if (stateMessagesBuilder_ == null) { @@ -3230,52 +2827,39 @@ public Builder removeStateMessages(int index) { return this; } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.functions.v2beta.StateMessage.Builder getStateMessagesBuilder( int index) { return getStateMessagesFieldBuilder().getBuilder(index); } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder( int index) { if (stateMessagesBuilder_ == null) { - return stateMessages_.get(index); - } else { + return stateMessages_.get(index); } else { return stateMessagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStateMessagesOrBuilderList() { + public java.util.List + getStateMessagesOrBuilderList() { if (stateMessagesBuilder_ != null) { return stateMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -3283,63 +2867,45 @@ public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesO } } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBuilder() { - return getStateMessagesFieldBuilder() - .addBuilder(com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder().addBuilder( + com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBuilder( int index) { - return getStateMessagesFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); } /** - * - * *
                    * Output only. State Messages for this Cloud Function.
                    * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStateMessagesBuilderList() { + public java.util.List + getStateMessagesBuilderList() { return getStateMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.StateMessage, - com.google.cloud.functions.v2beta.StateMessage.Builder, - com.google.cloud.functions.v2beta.StateMessageOrBuilder> + com.google.cloud.functions.v2beta.StateMessage, com.google.cloud.functions.v2beta.StateMessage.Builder, com.google.cloud.functions.v2beta.StateMessageOrBuilder> getStateMessagesFieldBuilder() { if (stateMessagesBuilder_ == null) { - stateMessagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.StateMessage, - com.google.cloud.functions.v2beta.StateMessage.Builder, - com.google.cloud.functions.v2beta.StateMessageOrBuilder>( + stateMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.StateMessage, com.google.cloud.functions.v2beta.StateMessage.Builder, com.google.cloud.functions.v2beta.StateMessageOrBuilder>( stateMessages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3348,9 +2914,9 @@ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBu } return stateMessagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3360,12 +2926,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.Function) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.Function) private static final com.google.cloud.functions.v2beta.Function DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.Function(); } @@ -3374,16 +2940,16 @@ public static com.google.cloud.functions.v2beta.Function getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Function parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Function(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Function parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Function(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3398,4 +2964,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.Function getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java similarity index 100% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java similarity index 73% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java index 60b4d58b..c731530c 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java @@ -1,134 +1,94 @@ -/* - * 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 FunctionOrBuilder - extends +public interface FunctionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.Function) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * A user-defined name of the function. Function names must be unique
                  * globally and match pattern `projects/*/locations/*/functions/*`
                  * 
              * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
                  * A user-defined name of the function. Function names must be unique
                  * globally and match pattern `projects/*/locations/*/functions/*`
                  * 
              * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + 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(); /** - * - * *
                  * User-provided description of a function.
                  * 
              * * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
                  * User-provided description of a function.
                  * 
              * * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
                  * Describes the Build step of the function that builds a container from the
                  * given source.
                  * 
              * * .google.cloud.functions.v2beta.BuildConfig build_config = 3; - * * @return Whether the buildConfig field is set. */ boolean hasBuildConfig(); /** - * - * *
                  * Describes the Build step of the function that builds a container from the
                  * given source.
                  * 
              * * .google.cloud.functions.v2beta.BuildConfig build_config = 3; - * * @return The buildConfig. */ com.google.cloud.functions.v2beta.BuildConfig getBuildConfig(); /** - * - * *
                  * Describes the Build step of the function that builds a container from the
                  * given source.
              @@ -139,34 +99,26 @@ public interface FunctionOrBuilder
                 com.google.cloud.functions.v2beta.BuildConfigOrBuilder getBuildConfigOrBuilder();
               
                 /**
              -   *
              -   *
                  * 
                  * Describes the Service being deployed. Currently deploys services to Cloud
                  * Run (fully managed).
                  * 
              * * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; - * * @return Whether the serviceConfig field is set. */ boolean hasServiceConfig(); /** - * - * *
                  * Describes the Service being deployed. Currently deploys services to Cloud
                  * Run (fully managed).
                  * 
              * * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; - * * @return The serviceConfig. */ com.google.cloud.functions.v2beta.ServiceConfig getServiceConfig(); /** - * - * *
                  * Describes the Service being deployed. Currently deploys services to Cloud
                  * Run (fully managed).
              @@ -177,34 +129,26 @@ public interface FunctionOrBuilder
                 com.google.cloud.functions.v2beta.ServiceConfigOrBuilder getServiceConfigOrBuilder();
               
                 /**
              -   *
              -   *
                  * 
                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                  * response to a condition in another service.
                  * 
              * * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; - * * @return Whether the eventTrigger field is set. */ boolean hasEventTrigger(); /** - * - * *
                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                  * response to a condition in another service.
                  * 
              * * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; - * * @return The eventTrigger. */ com.google.cloud.functions.v2beta.EventTrigger getEventTrigger(); /** - * - * *
                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                  * response to a condition in another service.
              @@ -215,75 +159,52 @@ public interface FunctionOrBuilder
                 com.google.cloud.functions.v2beta.EventTriggerOrBuilder getEventTriggerOrBuilder();
               
                 /**
              -   *
              -   *
                  * 
                  * Output only. State of the function.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
                  * Output only. State of the function.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.functions.v2beta.Function.State getState(); /** - * - * *
                  * 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]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
                  * 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]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
                  * 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]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
                  * Labels associated with this Cloud Function.
                  * 
              @@ -292,31 +213,30 @@ public interface FunctionOrBuilder */ int getLabelsCount(); /** - * - * *
                  * Labels associated with this Cloud Function.
                  * 
              * * map<string, string> labels = 8; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
                  * Labels associated with this Cloud Function.
                  * 
              * * map<string, string> labels = 8; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
                  * Labels associated with this Cloud Function.
                  * 
              @@ -325,80 +245,62 @@ public interface FunctionOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
                  * Labels associated with this Cloud Function.
                  * 
              * * map<string, string> labels = 8; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
                  * Output only. State Messages for this Cloud Function.
                  * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getStateMessagesList(); + java.util.List + getStateMessagesList(); /** - * - * *
                  * Output only. State Messages for this Cloud Function.
                  * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index); /** - * - * *
                  * Output only. State Messages for this Cloud Function.
                  * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getStateMessagesCount(); /** - * - * *
                  * Output only. State Messages for this Cloud Function.
                  * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getStateMessagesOrBuilderList(); /** - * - * *
                  * Output only. State Messages for this Cloud Function.
                  * 
              * - * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder(int index); + com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder( + int index); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java new file mode 100644 index 00000000..02d7660b --- /dev/null +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java @@ -0,0 +1,651 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2beta/functions.proto + +package com.google.cloud.functions.v2beta; + +public final class FunctionsProto { + private FunctionsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_Function_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_Source_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_Stage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/functions/v2beta/function" + + "s.proto\022\035google.cloud.functions.v2beta\032\034" + + "google/api/annotations.proto\032\027google/api" + + "/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\202\007\n!com.g" + + "oogle.cloud.functions.v2betaB\016FunctionsP" + + "rotoP\001ZFgoogle.golang.org/genproto/googl" + + "eapis/cloud/functions/v2beta;functions\242\002" + + "\003GCF\352Ao\n*artifactregistry.googleapis.com" + + "/Repository\022Aprojects/{project}/location" + + "s/{location}/repositories/{repository}\352A" + + "Y\n\037cloudbuild.googleapis.com/Build\0226proj" + + "ects/{project}/locations/{location}/buil" + + "ds/{build}\352Ai\n$cloudbuild.googleapis.com" + + "/WorkerPool\022Aprojects/{project}/location" + + "s/{location}/workerPools/{worker_pool}\352A" + + "X\n\032run.googleapis.com/Service\022:projects/" + + "{project}/locations/{location}/services/" + + "{service}\352Ad\n\"vpcaccess.googleapis.com/C" + + "onnector\022>projects/{project}/locations/{" + + "location}/connectors/{connector}\352A]\n\037eve" + + "ntarc.googleapis.com/Trigger\022:projects/{" + + "project}/locations/{location}/triggers/{" + + "trigger}\352A]\n\037eventarc.googleapis.com/Cha" + + "nnel\022:projects/{project}/locations/{loca" + + "tion}/channels/{channel}\352A@\n\033pubsub.goog" + + "leapis.com/Topic\022!projects/{project}/top" + + "ics/{topic}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_functions_v2beta_Function_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_Function_descriptor, + new java.lang.String[] { "Name", "Environment", "Description", "BuildConfig", "ServiceConfig", "EventTrigger", "State", "UpdateTime", "Labels", "StateMessages", }); + internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor = + internal_static_google_cloud_functions_v2beta_Function_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_functions_v2beta_StateMessage_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_StateMessage_descriptor, + new java.lang.String[] { "Severity", "Type", "Message", }); + internal_static_google_cloud_functions_v2beta_StorageSource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_StorageSource_descriptor, + new java.lang.String[] { "Bucket", "Object", "Generation", }); + internal_static_google_cloud_functions_v2beta_RepoSource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_RepoSource_descriptor, + new java.lang.String[] { "BranchName", "TagName", "CommitSha", "ProjectId", "RepoName", "Dir", "InvertRegex", "Revision", }); + internal_static_google_cloud_functions_v2beta_Source_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_Source_descriptor, + new java.lang.String[] { "StorageSource", "RepoSource", "Source", }); + internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor, + new java.lang.String[] { "ResolvedStorageSource", "ResolvedRepoSource", }); + internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor, + new java.lang.String[] { "Build", "Runtime", "EntryPoint", "Source", "SourceProvenance", "WorkerPool", "EnvironmentVariables", "DockerRepository", }); + internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor, + new java.lang.String[] { "Service", "TimeoutSeconds", "AvailableMemory", "EnvironmentVariables", "MaxInstanceCount", "MinInstanceCount", "VpcConnector", "VpcConnectorEgressSettings", "IngressSettings", "Uri", "ServiceAccountEmail", "AllTrafficOnLatestRevision", "SecretEnvironmentVariables", "SecretVolumes", "Revision", }); + internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor, + new java.lang.String[] { "Key", "ProjectId", "Secret", "Version", }); + internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor, + new java.lang.String[] { "MountPath", "ProjectId", "Secret", "Versions", }); + internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor = + internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor, + new java.lang.String[] { "Version", "Path", }); + internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor, + new java.lang.String[] { "Trigger", "TriggerRegion", "EventType", "EventFilters", "PubsubTopic", "ServiceAccountEmail", "RetryPolicy", "Channel", }); + internal_static_google_cloud_functions_v2beta_EventFilter_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_EventFilter_descriptor, + new java.lang.String[] { "Attribute", "Value", "Operator", }); + internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor, + new java.lang.String[] { "Functions", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor, + new java.lang.String[] { "Parent", "Function", "FunctionId", }); + internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor, + new java.lang.String[] { "Function", "UpdateMask", }); + internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor, + new java.lang.String[] { "UploadUrl", "StorageSource", }); + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor, + new java.lang.String[] { "DownloadUrl", }); + internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", }); + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor, + new java.lang.String[] { "Runtimes", }); + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor = + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Stage", "Warnings", "Environment", }); + internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_functions_v2beta_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", "RequestResource", "Stages", }); + internal_static_google_cloud_functions_v2beta_Stage_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_Stage_descriptor, + new java.lang.String[] { "Name", "Message", "State", "Resource", "ResourceUri", "StateMessages", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java similarity index 64% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java index b2ecc701..86fe75d7 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java @@ -1,57 +1,40 @@ -/* - * 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; /** - * - * *
                * Request of `GenerateDownloadUrl` method.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateDownloadUrlRequest} */ -public final class GenerateDownloadUrlRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateDownloadUrlRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.GenerateDownloadUrlRequest) GenerateDownloadUrlRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlRequest.newBuilder() to construct. private GenerateDownloadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateDownloadUrlRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateDownloadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateDownloadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GenerateDownloadUrlRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GenerateDownloadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.class, - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
                  * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                  * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest other = - (com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) obj; + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest other = (com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest 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.GenerateDownloadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Request of `GenerateDownloadUrl` method.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateDownloadUrlRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.GenerateDownloadUrlRequest) com.google.cloud.functions.v2beta.GenerateDownloadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.class, - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest - getDefaultInstanceForType() { + public com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest getDefaultInstanceForType() { return com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest buildPartial() { - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest result = - new com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest(this); + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest result = new com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +374,38 @@ public com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) other); + return mergeFrom((com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest)other); } else { super.mergeFrom(other); return this; @@ -452,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest other) { - if (other - == com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
                    * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -516,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
                    * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -541,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                    * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -621,13 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.GenerateDownloadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.GenerateDownloadUrlRequest) - private static final com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest(); } @@ -636,16 +573,16 @@ public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java new file mode 100644 index 00000000..4e7c5db4 --- /dev/null +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2beta/functions.proto + +package com.google.cloud.functions.v2beta; + +public interface GenerateDownloadUrlRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GenerateDownloadUrlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
              +   * 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) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
              +   * 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) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java similarity index 67% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java index ca2ce3bf..793cc7c6 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java @@ -1,57 +1,40 @@ -/* - * 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; /** - * - * *
                * Response of `GenerateDownloadUrl` method.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateDownloadUrlResponse} */ -public final class GenerateDownloadUrlResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateDownloadUrlResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.GenerateDownloadUrlResponse) GenerateDownloadUrlResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlResponse.newBuilder() to construct. private GenerateDownloadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateDownloadUrlResponse() { downloadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateDownloadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateDownloadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GenerateDownloadUrlResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - downloadUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + downloadUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GenerateDownloadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.class, - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.Builder.class); } public static final int DOWNLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object downloadUrl_; /** - * - * *
                  * The generated Google Cloud Storage signed URL that should be used for
                  * function source code download.
                  * 
              * * string download_url = 1; - * * @return The downloadUrl. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getDownloadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; } } /** - * - * *
                  * The generated Google Cloud Storage signed URL that should be used for
                  * function source code download.
                  * 
              * * string download_url = 1; - * * @return The bytes for downloadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getDownloadUrlBytes() { + public com.google.protobuf.ByteString + getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getDownloadUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(downloadUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, downloadUrl_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse other = - (com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse) obj; + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse other = (com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse) obj; - if (!getDownloadUrl().equals(other.getDownloadUrl())) return false; + if (!getDownloadUrl() + .equals(other.getDownloadUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse 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.GenerateDownloadUrlResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Response of `GenerateDownloadUrl` method.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateDownloadUrlResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.GenerateDownloadUrlResponse) com.google.cloud.functions.v2beta.GenerateDownloadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.class, - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.newBuilder() @@ -357,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse - getDefaultInstanceForType() { + public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse getDefaultInstanceForType() { return com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.getDefaultInstance(); } @@ -397,8 +364,7 @@ public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse buildPartial() { - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse result = - new com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse(this); + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse result = new com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse(this); result.downloadUrl_ = downloadUrl_; onBuilt(); return result; @@ -408,39 +374,38 @@ public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse) other); + return mergeFrom((com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse)other); } else { super.mergeFrom(other); return this; @@ -448,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse other) { - if (other - == com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.getDefaultInstance()) return this; if (!other.getDownloadUrl().isEmpty()) { downloadUrl_ = other.downloadUrl_; onChanged(); @@ -474,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object downloadUrl_ = ""; /** - * - * *
                    * The generated Google Cloud Storage signed URL that should be used for
                    * function source code download.
                    * 
              * * string download_url = 1; - * * @return The downloadUrl. */ public java.lang.String getDownloadUrl() { java.lang.Object ref = downloadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; @@ -511,22 +470,21 @@ public java.lang.String getDownloadUrl() { } } /** - * - * *
                    * The generated Google Cloud Storage signed URL that should be used for
                    * function source code download.
                    * 
              * * string download_url = 1; - * * @return The bytes for downloadUrl. */ - public com.google.protobuf.ByteString getDownloadUrlBytes() { + public com.google.protobuf.ByteString + getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -534,71 +492,64 @@ public com.google.protobuf.ByteString getDownloadUrlBytes() { } } /** - * - * *
                    * The generated Google Cloud Storage signed URL that should be used for
                    * function source code download.
                    * 
              * * string download_url = 1; - * * @param value The downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrl(java.lang.String value) { + public Builder setDownloadUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + downloadUrl_ = value; onChanged(); return this; } /** - * - * *
                    * The generated Google Cloud Storage signed URL that should be used for
                    * function source code download.
                    * 
              * * string download_url = 1; - * * @return This builder for chaining. */ public Builder clearDownloadUrl() { - + downloadUrl_ = getDefaultInstance().getDownloadUrl(); onChanged(); return this; } /** - * - * *
                    * The generated Google Cloud Storage signed URL that should be used for
                    * function source code download.
                    * 
              * * string download_url = 1; - * * @param value The bytes for downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrlBytes(com.google.protobuf.ByteString value) { + public Builder setDownloadUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + downloadUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -608,13 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.GenerateDownloadUrlResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.GenerateDownloadUrlResponse) - private static final com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse(); } @@ -623,16 +573,16 @@ public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +597,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java similarity index 52% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java index 38f50641..7d2a0491 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java @@ -1,52 +1,31 @@ -/* - * 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 GenerateDownloadUrlResponseOrBuilder - extends +public interface GenerateDownloadUrlResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GenerateDownloadUrlResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * The generated Google Cloud Storage signed URL that should be used for
                  * function source code download.
                  * 
              * * string download_url = 1; - * * @return The downloadUrl. */ java.lang.String getDownloadUrl(); /** - * - * *
                  * The generated Google Cloud Storage signed URL that should be used for
                  * function source code download.
                  * 
              * * string download_url = 1; - * * @return The bytes for downloadUrl. */ - com.google.protobuf.ByteString getDownloadUrlBytes(); + com.google.protobuf.ByteString + getDownloadUrlBytes(); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java similarity index 65% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java index 44dc62e3..b9149cce 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java @@ -1,57 +1,40 @@ -/* - * 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; /** - * - * *
                * Request of `GenerateSourceUploadUrl` method.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateUploadUrlRequest} */ -public final class GenerateUploadUrlRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateUploadUrlRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.GenerateUploadUrlRequest) GenerateUploadUrlRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateUploadUrlRequest.newBuilder() to construct. private GenerateUploadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateUploadUrlRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateUploadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateUploadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GenerateUploadUrlRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GenerateUploadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.class, - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.class, com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
                  * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
                  * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.GenerateUploadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest other = - (com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) obj; + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest other = (com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GenerateUploadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest 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.GenerateUploadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2beta.GenerateUploadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Request of `GenerateSourceUploadUrl` method.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateUploadUrlRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.GenerateUploadUrlRequest) com.google.cloud.functions.v2beta.GenerateUploadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.class, - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.class, com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.functions.v2beta.GenerateUploadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.GenerateUploadUrlRequest buildPartial() { - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest result = - new com.google.cloud.functions.v2beta.GenerateUploadUrlRequest(this); + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest result = new com.google.cloud.functions.v2beta.GenerateUploadUrlRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.functions.v2beta.GenerateUploadUrlRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GenerateUploadUrlRequest) { - return mergeFrom((com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) other); + return mergeFrom((com.google.cloud.functions.v2beta.GenerateUploadUrlRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.GenerateUploadUrlRequest other) { - if (other == com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
                    * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -514,24 +470,21 @@ 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/*`.
                    * 
              * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -539,77 +492,64 @@ 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/*`.
                    * 
              * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.GenerateUploadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.GenerateUploadUrlRequest) private static final com.google.cloud.functions.v2beta.GenerateUploadUrlRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.GenerateUploadUrlRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateUploadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateUploadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateUploadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateUploadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.GenerateUploadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java new file mode 100644 index 00000000..4bad9a26 --- /dev/null +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2beta/functions.proto + +package com.google.cloud.functions.v2beta; + +public interface GenerateUploadUrlRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GenerateUploadUrlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
              +   * 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) = { ... } + * @return The parent. + */ + 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/*`.
              +   * 
              + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java similarity index 73% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java index fae8cd20..ecb54827 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java @@ -1,57 +1,40 @@ -/* - * 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; /** - * - * *
                * Response of `GenerateSourceUploadUrl` method.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateUploadUrlResponse} */ -public final class GenerateUploadUrlResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateUploadUrlResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.GenerateUploadUrlResponse) GenerateUploadUrlResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateUploadUrlResponse.newBuilder() to construct. private GenerateUploadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateUploadUrlResponse() { uploadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateUploadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateUploadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private GenerateUploadUrlResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uploadUrl_ = s; - break; + uploadUrl_ = s; + break; + } + case 18: { + com.google.cloud.functions.v2beta.StorageSource.Builder subBuilder = null; + if (storageSource_ != null) { + subBuilder = storageSource_.toBuilder(); } - case 18: - { - com.google.cloud.functions.v2beta.StorageSource.Builder subBuilder = null; - if (storageSource_ != null) { - subBuilder = storageSource_.toBuilder(); - } - storageSource_ = - input.readMessage( - com.google.cloud.functions.v2beta.StorageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(storageSource_); - storageSource_ = subBuilder.buildPartial(); - } - - break; + storageSource_ = input.readMessage(com.google.cloud.functions.v2beta.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storageSource_); + storageSource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,33 +86,29 @@ private GenerateUploadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.class, - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.class, com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.Builder.class); } public static final int UPLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object uploadUrl_; /** - * - * *
                  * The generated Google Cloud Storage signed URL that should be used for a
                  * function source code upload. The uploaded file should be a zip archive
              @@ -141,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                  * 
              * * string upload_url = 1; - * * @return The uploadUrl. */ @java.lang.Override @@ -150,15 +124,14 @@ public java.lang.String getUploadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; } } /** - * - * *
                  * The generated Google Cloud Storage signed URL that should be used for a
                  * function source code upload. The uploaded file should be a zip archive
              @@ -166,15 +139,16 @@ public java.lang.String getUploadUrl() {
                  * 
              * * string upload_url = 1; - * * @return The bytes for uploadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getUploadUrlBytes() { + public com.google.protobuf.ByteString + getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -185,8 +159,6 @@ public com.google.protobuf.ByteString getUploadUrlBytes() { public static final int STORAGE_SOURCE_FIELD_NUMBER = 2; private com.google.cloud.functions.v2beta.StorageSource storageSource_; /** - * - * *
                  * The location of the source code in the upload bucket.
                  * Once the archive is uploaded using the `upload_url` use this field to
              @@ -197,7 +169,6 @@ public com.google.protobuf.ByteString getUploadUrlBytes() {
                  * 
              * * .google.cloud.functions.v2beta.StorageSource storage_source = 2; - * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -205,8 +176,6 @@ public boolean hasStorageSource() { return storageSource_ != null; } /** - * - * *
                  * The location of the source code in the upload bucket.
                  * Once the archive is uploaded using the `upload_url` use this field to
              @@ -217,18 +186,13 @@ public boolean hasStorageSource() {
                  * 
              * * .google.cloud.functions.v2beta.StorageSource storage_source = 2; - * * @return The storageSource. */ @java.lang.Override public com.google.cloud.functions.v2beta.StorageSource getStorageSource() { - return storageSource_ == null - ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() - : storageSource_; + return storageSource_ == null ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() : storageSource_; } /** - * - * *
                  * The location of the source code in the upload bucket.
                  * Once the archive is uploaded using the `upload_url` use this field to
              @@ -246,7 +210,6 @@ public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSource
                 }
               
                 private byte memoizedIsInitialized = -1;
              -
                 @java.lang.Override
                 public final boolean isInitialized() {
                   byte isInitialized = memoizedIsInitialized;
              @@ -258,7 +221,8 @@ public final boolean isInitialized() {
                 }
               
                 @java.lang.Override
              -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
              +  public void writeTo(com.google.protobuf.CodedOutputStream output)
              +                      throws java.io.IOException {
                   if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadUrl_)) {
                     com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadUrl_);
                   }
              @@ -278,7 +242,8 @@ public int getSerializedSize() {
                     size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadUrl_);
                   }
                   if (storageSource_ != null) {
              -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStorageSource());
              +      size += com.google.protobuf.CodedOutputStream
              +        .computeMessageSize(2, getStorageSource());
                   }
                   size += unknownFields.getSerializedSize();
                   memoizedSize = size;
              @@ -288,18 +253,19 @@ public int getSerializedSize() {
                 @java.lang.Override
                 public boolean equals(final java.lang.Object obj) {
                   if (obj == this) {
              -      return true;
              +     return true;
                   }
                   if (!(obj instanceof com.google.cloud.functions.v2beta.GenerateUploadUrlResponse)) {
                     return super.equals(obj);
                   }
              -    com.google.cloud.functions.v2beta.GenerateUploadUrlResponse other =
              -        (com.google.cloud.functions.v2beta.GenerateUploadUrlResponse) obj;
              +    com.google.cloud.functions.v2beta.GenerateUploadUrlResponse other = (com.google.cloud.functions.v2beta.GenerateUploadUrlResponse) obj;
               
              -    if (!getUploadUrl().equals(other.getUploadUrl())) return false;
              +    if (!getUploadUrl()
              +        .equals(other.getUploadUrl())) return false;
                   if (hasStorageSource() != other.hasStorageSource()) return false;
                   if (hasStorageSource()) {
              -      if (!getStorageSource().equals(other.getStorageSource())) return false;
              +      if (!getStorageSource()
              +          .equals(other.getStorageSource())) return false;
                   }
                   if (!unknownFields.equals(other.unknownFields)) return false;
                   return true;
              @@ -324,127 +290,117 @@ public int hashCode() {
                 }
               
                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
              -      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
              +      java.nio.ByteBuffer data)
              +      throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
              -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      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.GenerateUploadUrlResponse parseFrom(
                     com.google.protobuf.ByteString data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse 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.GenerateUploadUrlResponse parseFrom(byte[] data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
              -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      byte[] data,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data, extensionRegistry);
                 }
              -
              -  public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
              -      java.io.InputStream input) throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
              +  public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(java.io.InputStream input)
              +      throws java.io.IOException {
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
              -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      java.io.InputStream input,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input, extensionRegistry);
                 }
              -
              -  public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseDelimitedFrom(
              -      java.io.InputStream input) throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
              +  public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseDelimitedFrom(java.io.InputStream input)
              +      throws java.io.IOException {
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseDelimitedWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseDelimitedFrom(
              -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      java.io.InputStream input,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                 }
              -
                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
              -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
              +      com.google.protobuf.CodedInputStream input)
              +      throws java.io.IOException {
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input, extensionRegistry);
                 }
               
                 @java.lang.Override
              -  public Builder newBuilderForType() {
              -    return newBuilder();
              -  }
              -
              +  public Builder newBuilderForType() { return newBuilder(); }
                 public static Builder newBuilder() {
                   return DEFAULT_INSTANCE.toBuilder();
                 }
              -
              -  public static Builder newBuilder(
              -      com.google.cloud.functions.v2beta.GenerateUploadUrlResponse prototype) {
              +  public static Builder newBuilder(com.google.cloud.functions.v2beta.GenerateUploadUrlResponse prototype) {
                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                 }
              -
                 @java.lang.Override
                 public Builder toBuilder() {
              -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
              +    return this == DEFAULT_INSTANCE
              +        ? new Builder() : new Builder().mergeFrom(this);
                 }
               
                 @java.lang.Override
              -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
              +  protected Builder newBuilderForType(
              +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   Builder builder = new Builder(parent);
                   return builder;
                 }
                 /**
              -   *
              -   *
                  * 
                  * Response of `GenerateSourceUploadUrl` method.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateUploadUrlResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.GenerateUploadUrlResponse) com.google.cloud.functions.v2beta.GenerateUploadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.class, - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.class, com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.newBuilder() @@ -452,15 +408,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -476,9 +433,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; } @java.lang.Override @@ -497,8 +454,7 @@ public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse buildPartial() { - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse result = - new com.google.cloud.functions.v2beta.GenerateUploadUrlResponse(this); + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse result = new com.google.cloud.functions.v2beta.GenerateUploadUrlResponse(this); result.uploadUrl_ = uploadUrl_; if (storageSourceBuilder_ == null) { result.storageSource_ = storageSource_; @@ -513,39 +469,38 @@ public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.GenerateUploadUrlResponse) other); + return mergeFrom((com.google.cloud.functions.v2beta.GenerateUploadUrlResponse)other); } else { super.mergeFrom(other); return this; @@ -553,8 +508,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.GenerateUploadUrlResponse other) { - if (other == com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.getDefaultInstance()) return this; if (!other.getUploadUrl().isEmpty()) { uploadUrl_ = other.uploadUrl_; onChanged(); @@ -581,8 +535,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.GenerateUploadUrlResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.GenerateUploadUrlResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -594,8 +547,6 @@ public Builder mergeFrom( private java.lang.Object uploadUrl_ = ""; /** - * - * *
                    * The generated Google Cloud Storage signed URL that should be used for a
                    * function source code upload. The uploaded file should be a zip archive
              @@ -603,13 +554,13 @@ public Builder mergeFrom(
                    * 
              * * string upload_url = 1; - * * @return The uploadUrl. */ public java.lang.String getUploadUrl() { java.lang.Object ref = uploadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; @@ -618,8 +569,6 @@ public java.lang.String getUploadUrl() { } } /** - * - * *
                    * The generated Google Cloud Storage signed URL that should be used for a
                    * function source code upload. The uploaded file should be a zip archive
              @@ -627,14 +576,15 @@ public java.lang.String getUploadUrl() {
                    * 
              * * string upload_url = 1; - * * @return The bytes for uploadUrl. */ - public com.google.protobuf.ByteString getUploadUrlBytes() { + public com.google.protobuf.ByteString + getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -642,8 +592,6 @@ public com.google.protobuf.ByteString getUploadUrlBytes() { } } /** - * - * *
                    * The generated Google Cloud Storage signed URL that should be used for a
                    * function source code upload. The uploaded file should be a zip archive
              @@ -651,22 +599,20 @@ public com.google.protobuf.ByteString getUploadUrlBytes() {
                    * 
              * * string upload_url = 1; - * * @param value The uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrl(java.lang.String value) { + public Builder setUploadUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uploadUrl_ = value; onChanged(); return this; } /** - * - * *
                    * The generated Google Cloud Storage signed URL that should be used for a
                    * function source code upload. The uploaded file should be a zip archive
              @@ -674,18 +620,15 @@ public Builder setUploadUrl(java.lang.String value) {
                    * 
              * * string upload_url = 1; - * * @return This builder for chaining. */ public Builder clearUploadUrl() { - + uploadUrl_ = getDefaultInstance().getUploadUrl(); onChanged(); return this; } /** - * - * *
                    * The generated Google Cloud Storage signed URL that should be used for a
                    * function source code upload. The uploaded file should be a zip archive
              @@ -693,16 +636,16 @@ public Builder clearUploadUrl() {
                    * 
              * * string upload_url = 1; - * * @param value The bytes for uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUploadUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uploadUrl_ = value; onChanged(); return this; @@ -710,13 +653,8 @@ public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) { private com.google.cloud.functions.v2beta.StorageSource storageSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.StorageSource, - com.google.cloud.functions.v2beta.StorageSource.Builder, - com.google.cloud.functions.v2beta.StorageSourceOrBuilder> - storageSourceBuilder_; + com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder> storageSourceBuilder_; /** - * - * *
                    * The location of the source code in the upload bucket.
                    * Once the archive is uploaded using the `upload_url` use this field to
              @@ -727,15 +665,12 @@ public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) {
                    * 
              * * .google.cloud.functions.v2beta.StorageSource storage_source = 2; - * * @return Whether the storageSource field is set. */ public boolean hasStorageSource() { return storageSourceBuilder_ != null || storageSource_ != null; } /** - * - * *
                    * The location of the source code in the upload bucket.
                    * Once the archive is uploaded using the `upload_url` use this field to
              @@ -746,21 +681,16 @@ public boolean hasStorageSource() {
                    * 
              * * .google.cloud.functions.v2beta.StorageSource storage_source = 2; - * * @return The storageSource. */ public com.google.cloud.functions.v2beta.StorageSource getStorageSource() { if (storageSourceBuilder_ == null) { - return storageSource_ == null - ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() - : storageSource_; + return storageSource_ == null ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() : storageSource_; } else { return storageSourceBuilder_.getMessage(); } } /** - * - * *
                    * The location of the source code in the upload bucket.
                    * Once the archive is uploaded using the `upload_url` use this field to
              @@ -786,8 +716,6 @@ public Builder setStorageSource(com.google.cloud.functions.v2beta.StorageSource
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * The location of the source code in the upload bucket.
                    * Once the archive is uploaded using the `upload_url` use this field to
              @@ -811,8 +739,6 @@ public Builder setStorageSource(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * The location of the source code in the upload bucket.
                    * Once the archive is uploaded using the `upload_url` use this field to
              @@ -828,9 +754,7 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2beta.StorageSourc
                     if (storageSourceBuilder_ == null) {
                       if (storageSource_ != null) {
                         storageSource_ =
              -              com.google.cloud.functions.v2beta.StorageSource.newBuilder(storageSource_)
              -                  .mergeFrom(value)
              -                  .buildPartial();
              +            com.google.cloud.functions.v2beta.StorageSource.newBuilder(storageSource_).mergeFrom(value).buildPartial();
                       } else {
                         storageSource_ = value;
                       }
              @@ -842,8 +766,6 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2beta.StorageSourc
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * The location of the source code in the upload bucket.
                    * Once the archive is uploaded using the `upload_url` use this field to
              @@ -867,8 +789,6 @@ public Builder clearStorageSource() {
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * The location of the source code in the upload bucket.
                    * Once the archive is uploaded using the `upload_url` use this field to
              @@ -881,13 +801,11 @@ public Builder clearStorageSource() {
                    * .google.cloud.functions.v2beta.StorageSource storage_source = 2;
                    */
                   public com.google.cloud.functions.v2beta.StorageSource.Builder getStorageSourceBuilder() {
              -
              +      
                     onChanged();
                     return getStorageSourceFieldBuilder().getBuilder();
                   }
                   /**
              -     *
              -     *
                    * 
                    * The location of the source code in the upload bucket.
                    * Once the archive is uploaded using the `upload_url` use this field to
              @@ -903,14 +821,11 @@ public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSource
                     if (storageSourceBuilder_ != null) {
                       return storageSourceBuilder_.getMessageOrBuilder();
                     } else {
              -        return storageSource_ == null
              -            ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance()
              -            : storageSource_;
              +        return storageSource_ == null ?
              +            com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() : storageSource_;
                     }
                   }
                   /**
              -     *
              -     *
                    * 
                    * The location of the source code in the upload bucket.
                    * Once the archive is uploaded using the `upload_url` use this field to
              @@ -923,24 +838,21 @@ public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSource
                    * .google.cloud.functions.v2beta.StorageSource storage_source = 2;
                    */
                   private com.google.protobuf.SingleFieldBuilderV3<
              -            com.google.cloud.functions.v2beta.StorageSource,
              -            com.google.cloud.functions.v2beta.StorageSource.Builder,
              -            com.google.cloud.functions.v2beta.StorageSourceOrBuilder>
              +        com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder> 
                       getStorageSourceFieldBuilder() {
                     if (storageSourceBuilder_ == null) {
              -        storageSourceBuilder_ =
              -            new com.google.protobuf.SingleFieldBuilderV3<
              -                com.google.cloud.functions.v2beta.StorageSource,
              -                com.google.cloud.functions.v2beta.StorageSource.Builder,
              -                com.google.cloud.functions.v2beta.StorageSourceOrBuilder>(
              -                getStorageSource(), getParentForChildren(), isClean());
              +        storageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              +            com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder>(
              +                getStorageSource(),
              +                getParentForChildren(),
              +                isClean());
                       storageSource_ = null;
                     }
                     return storageSourceBuilder_;
                   }
              -
                   @java.lang.Override
              -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
              +    public final Builder setUnknownFields(
              +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                     return super.setUnknownFields(unknownFields);
                   }
               
              @@ -950,12 +862,12 @@ public final Builder mergeUnknownFields(
                     return super.mergeUnknownFields(unknownFields);
                   }
               
              +
                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.GenerateUploadUrlResponse)
                 }
               
                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.GenerateUploadUrlResponse)
                 private static final com.google.cloud.functions.v2beta.GenerateUploadUrlResponse DEFAULT_INSTANCE;
              -
                 static {
                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.GenerateUploadUrlResponse();
                 }
              @@ -964,16 +876,16 @@ public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse getDef
                   return DEFAULT_INSTANCE;
                 }
               
              -  private static final com.google.protobuf.Parser PARSER =
              -      new com.google.protobuf.AbstractParser() {
              -        @java.lang.Override
              -        public GenerateUploadUrlResponse parsePartialFrom(
              -            com.google.protobuf.CodedInputStream input,
              -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              -            throws com.google.protobuf.InvalidProtocolBufferException {
              -          return new GenerateUploadUrlResponse(input, extensionRegistry);
              -        }
              -      };
              +  private static final com.google.protobuf.Parser
              +      PARSER = new com.google.protobuf.AbstractParser() {
              +    @java.lang.Override
              +    public GenerateUploadUrlResponse parsePartialFrom(
              +        com.google.protobuf.CodedInputStream input,
              +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +        throws com.google.protobuf.InvalidProtocolBufferException {
              +      return new GenerateUploadUrlResponse(input, extensionRegistry);
              +    }
              +  };
               
                 public static com.google.protobuf.Parser parser() {
                   return PARSER;
              @@ -988,4 +900,6 @@ public com.google.protobuf.Parser getParserForType()
                 public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse getDefaultInstanceForType() {
                   return DEFAULT_INSTANCE;
                 }
              +
               }
              +
              diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java
              similarity index 77%
              rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java
              rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java
              index aa64d6b2..9cabf40b 100644
              --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java
              +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java
              @@ -1,31 +1,13 @@
              -/*
              - * 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 GenerateUploadUrlResponseOrBuilder
              -    extends
              +public interface GenerateUploadUrlResponseOrBuilder extends
                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GenerateUploadUrlResponse)
                   com.google.protobuf.MessageOrBuilder {
               
                 /**
              -   *
              -   *
                  * 
                  * The generated Google Cloud Storage signed URL that should be used for a
                  * function source code upload. The uploaded file should be a zip archive
              @@ -33,13 +15,10 @@ public interface GenerateUploadUrlResponseOrBuilder
                  * 
              * * string upload_url = 1; - * * @return The uploadUrl. */ java.lang.String getUploadUrl(); /** - * - * *
                  * The generated Google Cloud Storage signed URL that should be used for a
                  * function source code upload. The uploaded file should be a zip archive
              @@ -47,14 +26,12 @@ public interface GenerateUploadUrlResponseOrBuilder
                  * 
              * * string upload_url = 1; - * * @return The bytes for uploadUrl. */ - com.google.protobuf.ByteString getUploadUrlBytes(); + 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
              @@ -65,13 +42,10 @@ public interface GenerateUploadUrlResponseOrBuilder
                  * 
              * * .google.cloud.functions.v2beta.StorageSource storage_source = 2; - * * @return Whether the storageSource field is set. */ 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
              @@ -82,13 +56,10 @@ public interface GenerateUploadUrlResponseOrBuilder
                  * 
              * * .google.cloud.functions.v2beta.StorageSource storage_source = 2; - * * @return The storageSource. */ 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
              diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java
              similarity index 65%
              rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java
              rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java
              index 0c37e6ca..a187af2f 100644
              --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java
              +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java
              @@ -1,57 +1,40 @@
              -/*
              - * 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;
               
               /**
              - *
              - *
                * 
                * Request for the `GetFunction` method.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.GetFunctionRequest} */ -public final class GetFunctionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.GetFunctionRequest) GetFunctionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFunctionRequest.newBuilder() to construct. private GetFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetFunctionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,41 +73,34 @@ private GetFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GetFunctionRequest.class, - com.google.cloud.functions.v2beta.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.GetFunctionRequest.class, com.google.cloud.functions.v2beta.GetFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
                  * Required. The name of the function which details should be obtained.
                  * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,31 +109,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                  * Required. The name of the function which details should be obtained.
                  * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.GetFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.GetFunctionRequest other = - (com.google.cloud.functions.v2beta.GetFunctionRequest) obj; + com.google.cloud.functions.v2beta.GetFunctionRequest other = (com.google.cloud.functions.v2beta.GetFunctionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,126 +204,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.GetFunctionRequest 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.GetFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.GetFunctionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.GetFunctionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.GetFunctionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.GetFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Request for the `GetFunction` method.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.GetFunctionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.GetFunctionRequest) com.google.cloud.functions.v2beta.GetFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GetFunctionRequest.class, - com.google.cloud.functions.v2beta.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.GetFunctionRequest.class, com.google.cloud.functions.v2beta.GetFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.GetFunctionRequest.newBuilder() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.cloud.functions.v2beta.GetFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.GetFunctionRequest buildPartial() { - com.google.cloud.functions.v2beta.GetFunctionRequest result = - new com.google.cloud.functions.v2beta.GetFunctionRequest(this); + com.google.cloud.functions.v2beta.GetFunctionRequest result = new com.google.cloud.functions.v2beta.GetFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.cloud.functions.v2beta.GetFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.GetFunctionRequest) other); + return mergeFrom((com.google.cloud.functions.v2beta.GetFunctionRequest)other); } else { super.mergeFrom(other); return this; @@ -448,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.GetFunctionRequest other) { - if (other == com.google.cloud.functions.v2beta.GetFunctionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.GetFunctionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -473,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.GetFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.GetFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -486,22 +447,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
                    * Required. The name of the function which details should be obtained.
                    * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -510,23 +467,20 @@ public java.lang.String getName() { } } /** - * - * *
                    * Required. The name of the function which details should be obtained.
                    * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -534,74 +488,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                    * Required. The name of the function which details should be obtained.
                    * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
                    * Required. The name of the function which details should be obtained.
                    * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
                    * Required. The name of the function which details should be obtained.
                    * 
              * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -611,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.GetFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.GetFunctionRequest) private static final com.google.cloud.functions.v2beta.GetFunctionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.GetFunctionRequest(); } @@ -625,16 +566,16 @@ public static com.google.cloud.functions.v2beta.GetFunctionRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.GetFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java new file mode 100644 index 00000000..7d615258 --- /dev/null +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2beta/functions.proto + +package com.google.cloud.functions.v2beta; + +public interface GetFunctionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GetFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
              +   * Required. The name of the function which details should be obtained.
              +   * 
              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
              +   * Required. The name of the function which details should be obtained.
              +   * 
              + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java similarity index 72% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java index f499d9e1..3d6fd00a 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * *
                * Request for the `ListFunctions` method.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.ListFunctionsRequest} */ -public final class ListFunctionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFunctionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.ListFunctionsRequest) ListFunctionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFunctionsRequest.newBuilder() to construct. private ListFunctionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFunctionsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListFunctionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFunctionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFunctionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private ListFunctionsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,33 +99,29 @@ private ListFunctionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListFunctionsRequest.class, - com.google.cloud.functions.v2beta.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v2beta.ListFunctionsRequest.class, com.google.cloud.functions.v2beta.ListFunctionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
                  * Required. The project and location from which the function should be listed,
                  * specified in the format `projects/*/locations/*`
              @@ -156,10 +131,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                  * reachable locations along with the names of any unreachable locations.
                  * 
              * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -168,15 +140,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
                  * Required. The project and location from which the function should be listed,
                  * specified in the format `projects/*/locations/*`
              @@ -186,18 +157,17 @@ public java.lang.String getParent() {
                  * reachable locations along with the names of any unreachable locations.
                  * 
              * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -208,14 +178,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
                  * Maximum number of functions to return per call.
                  * 
              * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -226,8 +193,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
                  * The value returned by the last
                  * `ListFunctionsResponse`; indicates that
              @@ -236,7 +201,6 @@ public int getPageSize() {
                  * 
              * * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -245,15 +209,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
                  * The value returned by the last
                  * `ListFunctionsResponse`; indicates that
              @@ -262,15 +225,16 @@ public java.lang.String getPageToken() {
                  * 
              * * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -281,15 +245,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
                  * The filter for Functions that match the filter expression,
                  * following the syntax outlined in https://google.aip.dev/160.
                  * 
              * * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -298,30 +259,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
                  * The filter for Functions that match the filter expression,
                  * following the syntax outlined in https://google.aip.dev/160.
                  * 
              * * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -332,8 +293,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
                  * The sorting order of the resources returned. Value should be a comma
                  * separated list of fields. The default sorting oder is ascending.
              @@ -341,7 +300,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
                  * 
              * * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -350,15 +308,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
                  * The sorting order of the resources returned. Value should be a comma
                  * separated list of fields. The default sorting oder is ascending.
              @@ -366,15 +323,16 @@ public java.lang.String getOrderBy() {
                  * 
              * * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -383,7 +341,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,7 +352,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -424,7 +382,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -443,19 +402,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.ListFunctionsRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.ListFunctionsRequest other = - (com.google.cloud.functions.v2beta.ListFunctionsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.functions.v2beta.ListFunctionsRequest other = (com.google.cloud.functions.v2beta.ListFunctionsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -483,127 +446,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListFunctionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListFunctionsRequest 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.ListFunctionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2beta.ListFunctionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2beta.ListFunctionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Request for the `ListFunctions` method.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.ListFunctionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.ListFunctionsRequest) com.google.cloud.functions.v2beta.ListFunctionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListFunctionsRequest.class, - com.google.cloud.functions.v2beta.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v2beta.ListFunctionsRequest.class, com.google.cloud.functions.v2beta.ListFunctionsRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.ListFunctionsRequest.newBuilder() @@ -611,15 +564,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -637,9 +591,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; } @java.lang.Override @@ -658,8 +612,7 @@ public com.google.cloud.functions.v2beta.ListFunctionsRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.ListFunctionsRequest buildPartial() { - com.google.cloud.functions.v2beta.ListFunctionsRequest result = - new com.google.cloud.functions.v2beta.ListFunctionsRequest(this); + com.google.cloud.functions.v2beta.ListFunctionsRequest result = new com.google.cloud.functions.v2beta.ListFunctionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -673,39 +626,38 @@ public com.google.cloud.functions.v2beta.ListFunctionsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.ListFunctionsRequest) other); + return mergeFrom((com.google.cloud.functions.v2beta.ListFunctionsRequest)other); } else { super.mergeFrom(other); return this; @@ -713,8 +665,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.ListFunctionsRequest other) { - if (other == com.google.cloud.functions.v2beta.ListFunctionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.ListFunctionsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -753,8 +704,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.ListFunctionsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.ListFunctionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -766,8 +716,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
                    * Required. The project and location from which the function should be listed,
                    * specified in the format `projects/*/locations/*`
              @@ -777,16 +725,14 @@ public Builder mergeFrom(
                    * reachable locations along with the names of any unreachable locations.
                    * 
              * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -795,8 +741,6 @@ public java.lang.String getParent() { } } /** - * - * *
                    * Required. The project and location from which the function should be listed,
                    * specified in the format `projects/*/locations/*`
              @@ -806,17 +750,16 @@ public java.lang.String getParent() {
                    * reachable locations along with the names of any unreachable locations.
                    * 
              * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -824,8 +767,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                    * Required. The project and location from which the function should be listed,
                    * specified in the format `projects/*/locations/*`
              @@ -835,25 +776,21 @@ public com.google.protobuf.ByteString getParentBytes() {
                    * reachable locations along with the names of any unreachable locations.
                    * 
              * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
                    * Required. The project and location from which the function should be listed,
                    * specified in the format `projects/*/locations/*`
              @@ -863,21 +800,16 @@ public Builder setParent(java.lang.String value) {
                    * reachable locations along with the names of any unreachable locations.
                    * 
              * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
                    * Required. The project and location from which the function should be listed,
                    * specified in the format `projects/*/locations/*`
              @@ -887,34 +819,29 @@ public Builder clearParent() {
                    * reachable locations along with the names of any unreachable locations.
                    * 
              * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
                    * Maximum number of functions to return per call.
                    * 
              * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -922,36 +849,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
                    * Maximum number of functions to return per call.
                    * 
              * * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
                    * Maximum number of functions to return per call.
                    * 
              * * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -959,8 +880,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
                    * The value returned by the last
                    * `ListFunctionsResponse`; indicates that
              @@ -969,13 +888,13 @@ public Builder clearPageSize() {
                    * 
              * * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -984,8 +903,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
                    * The value returned by the last
                    * `ListFunctionsResponse`; indicates that
              @@ -994,14 +911,15 @@ public java.lang.String getPageToken() {
                    * 
              * * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1009,8 +927,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
                    * The value returned by the last
                    * `ListFunctionsResponse`; indicates that
              @@ -1019,22 +935,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
                    * 
              * * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
                    * The value returned by the last
                    * `ListFunctionsResponse`; indicates that
              @@ -1043,18 +957,15 @@ public Builder setPageToken(java.lang.String value) {
                    * 
              * * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
                    * The value returned by the last
                    * `ListFunctionsResponse`; indicates that
              @@ -1063,16 +974,16 @@ public Builder clearPageToken() {
                    * 
              * * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1080,21 +991,19 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
                    * The filter for Functions that match the filter expression,
                    * following the syntax outlined in https://google.aip.dev/160.
                    * 
              * * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1103,22 +1012,21 @@ public java.lang.String getFilter() { } } /** - * - * *
                    * The filter for Functions that match the filter expression,
                    * following the syntax outlined in https://google.aip.dev/160.
                    * 
              * * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1126,64 +1034,57 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
                    * The filter for Functions that match the filter expression,
                    * following the syntax outlined in https://google.aip.dev/160.
                    * 
              * * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
                    * The filter for Functions that match the filter expression,
                    * following the syntax outlined in https://google.aip.dev/160.
                    * 
              * * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
                    * The filter for Functions that match the filter expression,
                    * following the syntax outlined in https://google.aip.dev/160.
                    * 
              * * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1191,8 +1092,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
                    * The sorting order of the resources returned. Value should be a comma
                    * separated list of fields. The default sorting oder is ascending.
              @@ -1200,13 +1099,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
                    * 
              * * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1215,8 +1114,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
                    * The sorting order of the resources returned. Value should be a comma
                    * separated list of fields. The default sorting oder is ascending.
              @@ -1224,14 +1121,15 @@ public java.lang.String getOrderBy() {
                    * 
              * * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1239,8 +1137,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
                    * The sorting order of the resources returned. Value should be a comma
                    * separated list of fields. The default sorting oder is ascending.
              @@ -1248,22 +1144,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
                    * 
              * * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
                    * The sorting order of the resources returned. Value should be a comma
                    * separated list of fields. The default sorting oder is ascending.
              @@ -1271,18 +1165,15 @@ public Builder setOrderBy(java.lang.String value) {
                    * 
              * * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
                    * The sorting order of the resources returned. Value should be a comma
                    * separated list of fields. The default sorting oder is ascending.
              @@ -1290,23 +1181,23 @@ public Builder clearOrderBy() {
                    * 
              * * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1316,12 +1207,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.ListFunctionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.ListFunctionsRequest) private static final com.google.cloud.functions.v2beta.ListFunctionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.ListFunctionsRequest(); } @@ -1330,16 +1221,16 @@ public static com.google.cloud.functions.v2beta.ListFunctionsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1354,4 +1245,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.ListFunctionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java index 688096c2..e75229c5 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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 ListFunctionsRequestOrBuilder - extends +public interface ListFunctionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.ListFunctionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * Required. The project and location from which the function should be listed,
                  * specified in the format `projects/*/locations/*`
              @@ -35,16 +17,11 @@ public interface ListFunctionsRequestOrBuilder
                  * reachable locations along with the names of any unreachable locations.
                  * 
              * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
                  * Required. The project and location from which the function should be listed,
                  * specified in the format `projects/*/locations/*`
              @@ -54,30 +31,23 @@ public interface ListFunctionsRequestOrBuilder
                  * reachable locations along with the names of any unreachable locations.
                  * 
              * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
                  * Maximum number of functions to return per call.
                  * 
              * * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
                  * The value returned by the last
                  * `ListFunctionsResponse`; indicates that
              @@ -86,13 +56,10 @@ public interface ListFunctionsRequestOrBuilder
                  * 
              * * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
                  * The value returned by the last
                  * `ListFunctionsResponse`; indicates that
              @@ -101,41 +68,34 @@ public interface ListFunctionsRequestOrBuilder
                  * 
              * * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
                  * The filter for Functions that match the filter expression,
                  * following the syntax outlined in https://google.aip.dev/160.
                  * 
              * * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
                  * The filter for Functions that match the filter expression,
                  * following the syntax outlined in https://google.aip.dev/160.
                  * 
              * * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
                  * The sorting order of the resources returned. Value should be a comma
                  * separated list of fields. The default sorting oder is ascending.
              @@ -143,13 +103,10 @@ public interface ListFunctionsRequestOrBuilder
                  * 
              * * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
                  * The sorting order of the resources returned. Value should be a comma
                  * separated list of fields. The default sorting oder is ascending.
              @@ -157,8 +114,8 @@ public interface ListFunctionsRequestOrBuilder
                  * 
              * * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java similarity index 74% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java index 77841b33..80307c17 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * *
                * Response for the `ListFunctions` method.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.ListFunctionsResponse} */ -public final class ListFunctionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFunctionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.ListFunctionsResponse) ListFunctionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFunctionsResponse.newBuilder() to construct. private ListFunctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFunctionsResponse() { functions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListFunctionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFunctionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFunctionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListFunctionsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - functions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - functions_.add( - input.readMessage( - com.google.cloud.functions.v2beta.Function.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + functions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + functions_.add( + input.readMessage(com.google.cloud.functions.v2beta.Function.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListFunctionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { functions_ = java.util.Collections.unmodifiableList(functions_); @@ -127,27 +107,22 @@ private ListFunctionsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListFunctionsResponse.class, - com.google.cloud.functions.v2beta.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v2beta.ListFunctionsResponse.class, com.google.cloud.functions.v2beta.ListFunctionsResponse.Builder.class); } public static final int FUNCTIONS_FIELD_NUMBER = 1; private java.util.List functions_; /** - * - * *
                  * The functions that match the request.
                  * 
              @@ -159,8 +134,6 @@ public java.util.List getFunctionsLi return functions_; } /** - * - * *
                  * The functions that match the request.
                  * 
              @@ -168,13 +141,11 @@ public java.util.List getFunctionsLi * repeated .google.cloud.functions.v2beta.Function functions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFunctionsOrBuilderList() { return functions_; } /** - * - * *
                  * The functions that match the request.
                  * 
              @@ -186,8 +157,6 @@ public int getFunctionsCount() { return functions_.size(); } /** - * - * *
                  * The functions that match the request.
                  * 
              @@ -199,8 +168,6 @@ public com.google.cloud.functions.v2beta.Function getFunctions(int index) { return functions_.get(index); } /** - * - * *
                  * The functions that match the request.
                  * 
              @@ -208,22 +175,20 @@ public com.google.cloud.functions.v2beta.Function getFunctions(int index) { * repeated .google.cloud.functions.v2beta.Function functions = 1; */ @java.lang.Override - public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder(int index) { + public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder( + int index) { return functions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
                  * A token, which can be sent as `page_token` to retrieve the next page.
                  * If this field is omitted, there are no subsequent pages.
                  * 
              * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -232,30 +197,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
                  * A token, which can be sent as `page_token` to retrieve the next page.
                  * If this field is omitted, there are no subsequent pages.
                  * 
              * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -266,45 +231,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
                  * Locations that could not be reached. The response does not include any
                  * functions from these locations.
                  * 
              * * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
                  * Locations that could not be reached. The response does not include any
                  * functions from these locations.
                  * 
              * * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
                  * Locations that could not be reached. The response does not include any
                  * functions from these locations.
                  * 
              * * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -312,24 +269,21 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
                  * Locations that could not be reached. The response does not include any
                  * functions from these locations.
                  * 
              * * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +295,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < functions_.size(); i++) { output.writeMessage(1, functions_.get(i)); } @@ -361,7 +316,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < functions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, functions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, functions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -382,17 +338,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.ListFunctionsResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.ListFunctionsResponse other = - (com.google.cloud.functions.v2beta.ListFunctionsResponse) obj; + com.google.cloud.functions.v2beta.ListFunctionsResponse other = (com.google.cloud.functions.v2beta.ListFunctionsResponse) obj; - if (!getFunctionsList().equals(other.getFunctionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getFunctionsList() + .equals(other.getFunctionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -420,127 +378,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListFunctionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListFunctionsResponse 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.ListFunctionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2beta.ListFunctionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2beta.ListFunctionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Response for the `ListFunctions` method.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.ListFunctionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.ListFunctionsResponse) com.google.cloud.functions.v2beta.ListFunctionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListFunctionsResponse.class, - com.google.cloud.functions.v2beta.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v2beta.ListFunctionsResponse.class, com.google.cloud.functions.v2beta.ListFunctionsResponse.Builder.class); } // Construct using com.google.cloud.functions.v2beta.ListFunctionsResponse.newBuilder() @@ -548,17 +496,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFunctionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -576,9 +524,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; } @java.lang.Override @@ -597,8 +545,7 @@ public com.google.cloud.functions.v2beta.ListFunctionsResponse build() { @java.lang.Override public com.google.cloud.functions.v2beta.ListFunctionsResponse buildPartial() { - com.google.cloud.functions.v2beta.ListFunctionsResponse result = - new com.google.cloud.functions.v2beta.ListFunctionsResponse(this); + com.google.cloud.functions.v2beta.ListFunctionsResponse result = new com.google.cloud.functions.v2beta.ListFunctionsResponse(this); int from_bitField0_ = bitField0_; if (functionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -623,39 +570,38 @@ public com.google.cloud.functions.v2beta.ListFunctionsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListFunctionsResponse) { - return mergeFrom((com.google.cloud.functions.v2beta.ListFunctionsResponse) other); + return mergeFrom((com.google.cloud.functions.v2beta.ListFunctionsResponse)other); } else { super.mergeFrom(other); return this; @@ -663,8 +609,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.ListFunctionsResponse other) { - if (other == com.google.cloud.functions.v2beta.ListFunctionsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.ListFunctionsResponse.getDefaultInstance()) return this; if (functionsBuilder_ == null) { if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { @@ -683,10 +628,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ListFunctionsResponse functionsBuilder_ = null; functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000001); - functionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFunctionsFieldBuilder() - : null; + functionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFunctionsFieldBuilder() : null; } else { functionsBuilder_.addAllMessages(other.functions_); } @@ -725,8 +669,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.ListFunctionsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.ListFunctionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -735,29 +678,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List functions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFunctionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - functions_ = - new java.util.ArrayList(functions_); + functions_ = new java.util.ArrayList(functions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, - com.google.cloud.functions.v2beta.Function.Builder, - com.google.cloud.functions.v2beta.FunctionOrBuilder> - functionsBuilder_; + com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder> functionsBuilder_; /** - * - * *
                    * The functions that match the request.
                    * 
              @@ -772,8 +707,6 @@ public java.util.List getFunctionsLi } } /** - * - * *
                    * The functions that match the request.
                    * 
              @@ -788,8 +721,6 @@ public int getFunctionsCount() { } } /** - * - * *
                    * The functions that match the request.
                    * 
              @@ -804,15 +735,14 @@ public com.google.cloud.functions.v2beta.Function getFunctions(int index) { } } /** - * - * *
                    * The functions that match the request.
                    * 
              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public Builder setFunctions(int index, com.google.cloud.functions.v2beta.Function value) { + public Builder setFunctions( + int index, com.google.cloud.functions.v2beta.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -826,8 +756,6 @@ public Builder setFunctions(int index, com.google.cloud.functions.v2beta.Functio return this; } /** - * - * *
                    * The functions that match the request.
                    * 
              @@ -846,8 +774,6 @@ public Builder setFunctions( return this; } /** - * - * *
                    * The functions that match the request.
                    * 
              @@ -868,15 +794,14 @@ public Builder addFunctions(com.google.cloud.functions.v2beta.Function value) { return this; } /** - * - * *
                    * The functions that match the request.
                    * 
              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public Builder addFunctions(int index, com.google.cloud.functions.v2beta.Function value) { + public Builder addFunctions( + int index, com.google.cloud.functions.v2beta.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -890,8 +815,6 @@ public Builder addFunctions(int index, com.google.cloud.functions.v2beta.Functio return this; } /** - * - * *
                    * The functions that match the request.
                    * 
              @@ -910,8 +833,6 @@ public Builder addFunctions( return this; } /** - * - * *
                    * The functions that match the request.
                    * 
              @@ -930,8 +851,6 @@ public Builder addFunctions( return this; } /** - * - * *
                    * The functions that match the request.
                    * 
              @@ -942,7 +861,8 @@ public Builder addAllFunctions( java.lang.Iterable values) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, functions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, functions_); onChanged(); } else { functionsBuilder_.addAllMessages(values); @@ -950,8 +870,6 @@ public Builder addAllFunctions( return this; } /** - * - * *
                    * The functions that match the request.
                    * 
              @@ -969,8 +887,6 @@ public Builder clearFunctions() { return this; } /** - * - * *
                    * The functions that match the request.
                    * 
              @@ -988,44 +904,39 @@ public Builder removeFunctions(int index) { return this; } /** - * - * *
                    * The functions that match the request.
                    * 
              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public com.google.cloud.functions.v2beta.Function.Builder getFunctionsBuilder(int index) { + public com.google.cloud.functions.v2beta.Function.Builder getFunctionsBuilder( + int index) { return getFunctionsFieldBuilder().getBuilder(index); } /** - * - * *
                    * The functions that match the request.
                    * 
              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder(int index) { + public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder( + int index) { if (functionsBuilder_ == null) { - return functions_.get(index); - } else { + return functions_.get(index); } else { return functionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                    * The functions that match the request.
                    * 
              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public java.util.List - getFunctionsOrBuilderList() { + public java.util.List + getFunctionsOrBuilderList() { if (functionsBuilder_ != null) { return functionsBuilder_.getMessageOrBuilderList(); } else { @@ -1033,8 +944,6 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder } } /** - * - * *
                    * The functions that match the request.
                    * 
              @@ -1042,48 +951,42 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder * repeated .google.cloud.functions.v2beta.Function functions = 1; */ public com.google.cloud.functions.v2beta.Function.Builder addFunctionsBuilder() { - return getFunctionsFieldBuilder() - .addBuilder(com.google.cloud.functions.v2beta.Function.getDefaultInstance()); + return getFunctionsFieldBuilder().addBuilder( + com.google.cloud.functions.v2beta.Function.getDefaultInstance()); } /** - * - * *
                    * The functions that match the request.
                    * 
              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public com.google.cloud.functions.v2beta.Function.Builder addFunctionsBuilder(int index) { - return getFunctionsFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2beta.Function.getDefaultInstance()); + public com.google.cloud.functions.v2beta.Function.Builder addFunctionsBuilder( + int index) { + return getFunctionsFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2beta.Function.getDefaultInstance()); } /** - * - * *
                    * The functions that match the request.
                    * 
              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public java.util.List - getFunctionsBuilderList() { + public java.util.List + getFunctionsBuilderList() { return getFunctionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, - com.google.cloud.functions.v2beta.Function.Builder, - com.google.cloud.functions.v2beta.FunctionOrBuilder> + com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder> getFunctionsFieldBuilder() { if (functionsBuilder_ == null) { - functionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, - com.google.cloud.functions.v2beta.Function.Builder, - com.google.cloud.functions.v2beta.FunctionOrBuilder>( - functions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + functionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder>( + functions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); functions_ = null; } return functionsBuilder_; @@ -1091,21 +994,19 @@ public com.google.cloud.functions.v2beta.Function.Builder addFunctionsBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
                    * A token, which can be sent as `page_token` to retrieve the next page.
                    * If this field is omitted, there are no subsequent pages.
                    * 
              * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1114,22 +1015,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
                    * A token, which can be sent as `page_token` to retrieve the next page.
                    * If this field is omitted, there are no subsequent pages.
                    * 
              * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1137,118 +1037,101 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
                    * A token, which can be sent as `page_token` to retrieve the next page.
                    * If this field is omitted, there are no subsequent pages.
                    * 
              * * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
                    * A token, which can be sent as `page_token` to retrieve the next page.
                    * If this field is omitted, there are no subsequent pages.
                    * 
              * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
                    * A token, which can be sent as `page_token` to retrieve the next page.
                    * If this field is omitted, there are no subsequent pages.
                    * 
              * * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
                    * Locations that could not be reached. The response does not include any
                    * functions from these locations.
                    * 
              * * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
                    * Locations that could not be reached. The response does not include any
                    * functions from these locations.
                    * 
              * * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
                    * Locations that could not be reached. The response does not include any
                    * functions from these locations.
                    * 
              * * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1256,95 +1139,85 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
                    * Locations that could not be reached. The response does not include any
                    * functions from these locations.
                    * 
              * * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
                    * Locations that could not be reached. The response does not include any
                    * functions from these locations.
                    * 
              * * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
                    * Locations that could not be reached. The response does not include any
                    * functions from these locations.
                    * 
              * * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
                    * Locations that could not be reached. The response does not include any
                    * functions from these locations.
                    * 
              * * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
                    * Locations that could not be reached. The response does not include any
                    * functions from these locations.
                    * 
              * * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1354,31 +1227,29 @@ public Builder clearUnreachable() { return this; } /** - * - * *
                    * Locations that could not be reached. The response does not include any
                    * functions from these locations.
                    * 
              * * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1388,12 +1259,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.ListFunctionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.ListFunctionsResponse) private static final com.google.cloud.functions.v2beta.ListFunctionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.ListFunctionsResponse(); } @@ -1402,16 +1273,16 @@ public static com.google.cloud.functions.v2beta.ListFunctionsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1426,4 +1297,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.ListFunctionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java similarity index 74% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java index 5f7cc8fb..fa75fafb 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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 ListFunctionsResponseOrBuilder - extends +public interface ListFunctionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.ListFunctionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * The functions that match the request.
                  * 
              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - java.util.List getFunctionsList(); + java.util.List + getFunctionsList(); /** - * - * *
                  * The functions that match the request.
                  * 
              @@ -44,8 +25,6 @@ public interface ListFunctionsResponseOrBuilder */ com.google.cloud.functions.v2beta.Function getFunctions(int index); /** - * - * *
                  * The functions that match the request.
                  * 
              @@ -54,106 +33,88 @@ public interface ListFunctionsResponseOrBuilder */ int getFunctionsCount(); /** - * - * *
                  * The functions that match the request.
                  * 
              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - java.util.List + java.util.List getFunctionsOrBuilderList(); /** - * - * *
                  * The functions that match the request.
                  * 
              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder(int index); + com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder( + int index); /** - * - * *
                  * A token, which can be sent as `page_token` to retrieve the next page.
                  * If this field is omitted, there are no subsequent pages.
                  * 
              * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
                  * A token, which can be sent as `page_token` to retrieve the next page.
                  * If this field is omitted, there are no subsequent pages.
                  * 
              * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
                  * Locations that could not be reached. The response does not include any
                  * functions from these locations.
                  * 
              * * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
                  * Locations that could not be reached. The response does not include any
                  * functions from these locations.
                  * 
              * * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
                  * Locations that could not be reached. The response does not include any
                  * functions from these locations.
                  * 
              * * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
                  * Locations that could not be reached. The response does not include any
                  * functions from these locations.
                  * 
              * * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java similarity index 67% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java index 1b6c934f..b2f5c082 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * *
                * Request for the `ListRuntimes` method.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.ListRuntimesRequest} */ -public final class ListRuntimesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRuntimesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.ListRuntimesRequest) ListRuntimesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRuntimesRequest.newBuilder() to construct. private ListRuntimesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRuntimesRequest() { parent_ = ""; filter_ = ""; @@ -44,15 +26,16 @@ private ListRuntimesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRuntimesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListRuntimesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private ListRuntimesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,42 +80,35 @@ private ListRuntimesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListRuntimesRequest.class, - com.google.cloud.functions.v2beta.ListRuntimesRequest.Builder.class); + com.google.cloud.functions.v2beta.ListRuntimesRequest.class, com.google.cloud.functions.v2beta.ListRuntimesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
                  * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -143,32 +117,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
                  * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -179,15 +151,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
                  * The filter for Runtimes that match the filter expression,
                  * following the syntax outlined in https://google.aip.dev/160.
                  * 
              * * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -196,30 +165,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
                  * The filter for Runtimes that match the filter expression,
                  * following the syntax outlined in https://google.aip.dev/160.
                  * 
              * * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -228,7 +197,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +208,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -270,16 +239,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.ListRuntimesRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.ListRuntimesRequest other = - (com.google.cloud.functions.v2beta.ListRuntimesRequest) obj; + com.google.cloud.functions.v2beta.ListRuntimesRequest other = (com.google.cloud.functions.v2beta.ListRuntimesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListRuntimesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListRuntimesRequest 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.ListRuntimesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2beta.ListRuntimesRequest prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2beta.ListRuntimesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Request for the `ListRuntimes` method.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.ListRuntimesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.ListRuntimesRequest) com.google.cloud.functions.v2beta.ListRuntimesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListRuntimesRequest.class, - com.google.cloud.functions.v2beta.ListRuntimesRequest.Builder.class); + com.google.cloud.functions.v2beta.ListRuntimesRequest.class, com.google.cloud.functions.v2beta.ListRuntimesRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.ListRuntimesRequest.newBuilder() @@ -429,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; } @java.lang.Override @@ -470,8 +431,7 @@ public com.google.cloud.functions.v2beta.ListRuntimesRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.ListRuntimesRequest buildPartial() { - com.google.cloud.functions.v2beta.ListRuntimesRequest result = - new com.google.cloud.functions.v2beta.ListRuntimesRequest(this); + com.google.cloud.functions.v2beta.ListRuntimesRequest result = new com.google.cloud.functions.v2beta.ListRuntimesRequest(this); result.parent_ = parent_; result.filter_ = filter_; onBuilt(); @@ -482,39 +442,38 @@ public com.google.cloud.functions.v2beta.ListRuntimesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.ListRuntimesRequest) other); + return mergeFrom((com.google.cloud.functions.v2beta.ListRuntimesRequest)other); } else { super.mergeFrom(other); return this; @@ -522,8 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.ListRuntimesRequest other) { - if (other == com.google.cloud.functions.v2beta.ListRuntimesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.ListRuntimesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -551,8 +509,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.ListRuntimesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.ListRuntimesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,23 +521,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
                    * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -589,24 +542,21 @@ public java.lang.String getParent() { } } /** - * - * *
                    * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -614,70 +564,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                    * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -685,21 +622,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
                    * The filter for Runtimes that match the filter expression,
                    * following the syntax outlined in https://google.aip.dev/160.
                    * 
              * * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -708,22 +643,21 @@ public java.lang.String getFilter() { } } /** - * - * *
                    * The filter for Runtimes that match the filter expression,
                    * following the syntax outlined in https://google.aip.dev/160.
                    * 
              * * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -731,71 +665,64 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
                    * The filter for Runtimes that match the filter expression,
                    * following the syntax outlined in https://google.aip.dev/160.
                    * 
              * * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
                    * The filter for Runtimes that match the filter expression,
                    * following the syntax outlined in https://google.aip.dev/160.
                    * 
              * * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
                    * The filter for Runtimes that match the filter expression,
                    * following the syntax outlined in https://google.aip.dev/160.
                    * 
              * * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -805,12 +732,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.ListRuntimesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.ListRuntimesRequest) private static final com.google.cloud.functions.v2beta.ListRuntimesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.ListRuntimesRequest(); } @@ -819,16 +746,16 @@ public static com.google.cloud.functions.v2beta.ListRuntimesRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRuntimesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRuntimesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,4 +770,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.ListRuntimesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java index 94d1f429..5280f617 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java @@ -1,83 +1,53 @@ -/* - * 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 ListRuntimesRequestOrBuilder - extends +public interface ListRuntimesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.ListRuntimesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
                  * 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) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
                  * The filter for Runtimes that match the filter expression,
                  * following the syntax outlined in https://google.aip.dev/160.
                  * 
              * * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
                  * The filter for Runtimes that match the filter expression,
                  * following the syntax outlined in https://google.aip.dev/160.
                  * 
              * * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java similarity index 71% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java index eb333862..a8ab6b5e 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java @@ -1,57 +1,40 @@ -/* - * 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; /** - * - * *
                * Response for the `ListRuntimes` method.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.ListRuntimesResponse} */ -public final class ListRuntimesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRuntimesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.ListRuntimesResponse) ListRuntimesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRuntimesResponse.newBuilder() to construct. private ListRuntimesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRuntimesResponse() { runtimes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRuntimesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListRuntimesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private ListRuntimesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - runtimes_ = - new java.util.ArrayList< - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime>(); - mutable_bitField0_ |= 0x00000001; - } - runtimes_.add( - input.readMessage( - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + runtimes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + runtimes_.add( + input.readMessage(com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private ListRuntimesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { runtimes_ = java.util.Collections.unmodifiableList(runtimes_); @@ -108,35 +87,29 @@ private ListRuntimesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListRuntimesResponse.class, - com.google.cloud.functions.v2beta.ListRuntimesResponse.Builder.class); + com.google.cloud.functions.v2beta.ListRuntimesResponse.class, com.google.cloud.functions.v2beta.ListRuntimesResponse.Builder.class); } /** - * - * *
                  * The various stages that a runtime can be in.
                  * 
              * * Protobuf enum {@code google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage} */ - public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { + public enum RuntimeStage + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                    * Not specified.
                    * 
              @@ -145,8 +118,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ RUNTIME_STAGE_UNSPECIFIED(0), /** - * - * *
                    * The runtime is in development.
                    * 
              @@ -155,8 +126,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ DEVELOPMENT(1), /** - * - * *
                    * The runtime is in the Alpha stage.
                    * 
              @@ -165,8 +134,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ ALPHA(2), /** - * - * *
                    * The runtime is in the Beta stage.
                    * 
              @@ -175,8 +142,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ BETA(3), /** - * - * *
                    * The runtime is generally available.
                    * 
              @@ -185,8 +150,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ GA(4), /** - * - * *
                    * The runtime is deprecated.
                    * 
              @@ -195,8 +158,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ DEPRECATED(5), /** - * - * *
                    * The runtime is no longer supported.
                    * 
              @@ -208,8 +169,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                    * Not specified.
                    * 
              @@ -218,8 +177,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNTIME_STAGE_UNSPECIFIED_VALUE = 0; /** - * - * *
                    * The runtime is in development.
                    * 
              @@ -228,8 +185,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEVELOPMENT_VALUE = 1; /** - * - * *
                    * The runtime is in the Alpha stage.
                    * 
              @@ -238,8 +193,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALPHA_VALUE = 2; /** - * - * *
                    * The runtime is in the Beta stage.
                    * 
              @@ -248,8 +201,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BETA_VALUE = 3; /** - * - * *
                    * The runtime is generally available.
                    * 
              @@ -258,8 +209,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GA_VALUE = 4; /** - * - * *
                    * The runtime is deprecated.
                    * 
              @@ -268,8 +217,6 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPRECATED_VALUE = 5; /** - * - * *
                    * The runtime is no longer supported.
                    * 
              @@ -278,6 +225,7 @@ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DECOMMISSIONED_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -302,59 +250,53 @@ public static RuntimeStage valueOf(int value) { */ public static RuntimeStage forNumber(int value) { switch (value) { - case 0: - return RUNTIME_STAGE_UNSPECIFIED; - case 1: - return DEVELOPMENT; - case 2: - return ALPHA; - case 3: - return BETA; - case 4: - return GA; - case 5: - return DEPRECATED; - case 6: - return DECOMMISSIONED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return RUNTIME_STAGE_UNSPECIFIED; + case 1: return DEVELOPMENT; + case 2: return ALPHA; + case 3: return BETA; + case 4: return GA; + case 5: return DEPRECATED; + case 6: return DECOMMISSIONED; + default: return null; + } } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RuntimeStage findValueByNumber(int number) { - return RuntimeStage.forNumber(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RuntimeStage> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RuntimeStage findValueByNumber(int number) { + return RuntimeStage.forNumber(number); + } + }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + 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.ListRuntimesResponse.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.ListRuntimesResponse.getDescriptor().getEnumTypes().get(0); } private static final RuntimeStage[] VALUES = values(); - public static RuntimeStage valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RuntimeStage valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -371,165 +313,130 @@ private RuntimeStage(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage) } - public interface RuntimeOrBuilder - extends + public interface RuntimeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) com.google.protobuf.MessageOrBuilder { /** - * - * *
                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                    * 
              * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                    * 
              * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                    * 
              * * string display_name = 5; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                    * 
              * * string display_name = 5; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                    * 
              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return The enum numeric value on the wire for stage. */ int getStageValue(); /** - * - * *
                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                    * 
              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return The stage. */ com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage getStage(); /** - * - * *
                    * Warning messages, e.g., a deprecation warning.
                    * 
              * * repeated string warnings = 3; - * * @return A list containing the warnings. */ - java.util.List getWarningsList(); + java.util.List + getWarningsList(); /** - * - * *
                    * Warning messages, e.g., a deprecation warning.
                    * 
              * * repeated string warnings = 3; - * * @return The count of warnings. */ int getWarningsCount(); /** - * - * *
                    * Warning messages, e.g., a deprecation warning.
                    * 
              * * repeated string warnings = 3; - * * @param index The index of the element to return. * @return The warnings at the given index. */ java.lang.String getWarnings(int index); /** - * - * *
                    * Warning messages, e.g., a deprecation warning.
                    * 
              * * repeated string warnings = 3; - * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - com.google.protobuf.ByteString getWarningsBytes(int index); + com.google.protobuf.ByteString + getWarningsBytes(int index); /** - * - * *
                    * The environment for the runtime.
                    * 
              * * .google.cloud.functions.v2beta.Environment environment = 4; - * * @return The enum numeric value on the wire for environment. */ int getEnvironmentValue(); /** - * - * *
                    * The environment for the runtime.
                    * 
              * * .google.cloud.functions.v2beta.Environment environment = 4; - * * @return The environment. */ com.google.cloud.functions.v2beta.Environment getEnvironment(); } /** - * - * *
                  * Describes a runtime and any special information (e.g., deprecation status)
                  * related to it.
              @@ -537,16 +444,15 @@ public interface RuntimeOrBuilder
                  *
                  * Protobuf type {@code google.cloud.functions.v2beta.ListRuntimesResponse.Runtime}
                  */
              -  public static final class Runtime extends com.google.protobuf.GeneratedMessageV3
              -      implements
              +  public static final class Runtime extends
              +      com.google.protobuf.GeneratedMessageV3 implements
                     // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.ListRuntimesResponse.Runtime)
                     RuntimeOrBuilder {
              -    private static final long serialVersionUID = 0L;
              +  private static final long serialVersionUID = 0L;
                   // Use Runtime.newBuilder() to construct.
                   private Runtime(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                     super(builder);
                   }
              -
                   private Runtime() {
                     name_ = "";
                     displayName_ = "";
              @@ -557,15 +463,16 @@ private Runtime() {
               
                   @java.lang.Override
                   @SuppressWarnings({"unused"})
              -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
              +    protected java.lang.Object newInstance(
              +        UnusedPrivateParameter unused) {
                     return new Runtime();
                   }
               
                   @java.lang.Override
              -    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
              +    public final com.google.protobuf.UnknownFieldSet
              +    getUnknownFields() {
                     return this.unknownFields;
                   }
              -
                   private Runtime(
                       com.google.protobuf.CodedInputStream input,
                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              @@ -585,51 +492,46 @@ private Runtime(
                           case 0:
                             done = true;
                             break;
              -            case 10:
              -              {
              -                java.lang.String s = input.readStringRequireUtf8();
              +            case 10: {
              +              java.lang.String s = input.readStringRequireUtf8();
               
              -                name_ = s;
              -                break;
              -              }
              -            case 16:
              -              {
              -                int rawValue = input.readEnum();
              +              name_ = s;
              +              break;
              +            }
              +            case 16: {
              +              int rawValue = input.readEnum();
               
              -                stage_ = rawValue;
              -                break;
              -              }
              -            case 26:
              -              {
              -                java.lang.String s = input.readStringRequireUtf8();
              -                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              -                  warnings_ = new com.google.protobuf.LazyStringArrayList();
              -                  mutable_bitField0_ |= 0x00000001;
              -                }
              -                warnings_.add(s);
              -                break;
              +              stage_ = rawValue;
              +              break;
              +            }
              +            case 26: {
              +              java.lang.String s = input.readStringRequireUtf8();
              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              +                warnings_ = new com.google.protobuf.LazyStringArrayList();
              +                mutable_bitField0_ |= 0x00000001;
                             }
              -            case 32:
              -              {
              -                int rawValue = input.readEnum();
              +              warnings_.add(s);
              +              break;
              +            }
              +            case 32: {
              +              int rawValue = input.readEnum();
               
              -                environment_ = rawValue;
              -                break;
              -              }
              -            case 42:
              -              {
              -                java.lang.String s = input.readStringRequireUtf8();
              +              environment_ = rawValue;
              +              break;
              +            }
              +            case 42: {
              +              java.lang.String s = input.readStringRequireUtf8();
               
              -                displayName_ = s;
              -                break;
              -              }
              -            default:
              -              {
              -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
              -                  done = true;
              -                }
              -                break;
              +              displayName_ = s;
              +              break;
              +            }
              +            default: {
              +              if (!parseUnknownField(
              +                  input, unknownFields, extensionRegistry, tag)) {
              +                done = true;
                             }
              +              break;
              +            }
                         }
                       }
                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              @@ -637,7 +539,8 @@ private Runtime(
                     } catch (com.google.protobuf.UninitializedMessageException e) {
                       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                     } catch (java.io.IOException e) {
              -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
              +        throw new com.google.protobuf.InvalidProtocolBufferException(
              +            e).setUnfinishedMessage(this);
                     } finally {
                       if (((mutable_bitField0_ & 0x00000001) != 0)) {
                         warnings_ = warnings_.getUnmodifiableView();
              @@ -646,33 +549,27 @@ private Runtime(
                       makeExtensionsImmutable();
                     }
                   }
              -
              -    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;
              +    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;
                   }
               
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
              -              com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.class,
              -              com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder.class);
              +              com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder.class);
                   }
               
                   public static final int NAME_FIELD_NUMBER = 1;
                   private volatile java.lang.Object name_;
                   /**
              -     *
              -     *
                    * 
                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                    * 
              * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -681,29 +578,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                    * 
              * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -714,14 +611,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** - * - * *
                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                    * 
              * * string display_name = 5; - * * @return The displayName. */ @java.lang.Override @@ -730,29 +624,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                    * 
              * * string display_name = 5; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -763,80 +657,61 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int STAGE_FIELD_NUMBER = 2; private int stage_; /** - * - * *
                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                    * 
              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return The enum numeric value on the wire for stage. */ - @java.lang.Override - public int getStageValue() { + @java.lang.Override public int getStageValue() { return stage_; } /** - * - * *
                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                    * 
              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return The stage. */ - @java.lang.Override - public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage getStage() { + @java.lang.Override public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage getStage() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage result = - com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.valueOf(stage_); - return result == null - ? com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED - : result; + com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.valueOf(stage_); + return result == null ? com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; } public static final int WARNINGS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList warnings_; /** - * - * *
                    * Warning messages, e.g., a deprecation warning.
                    * 
              * * repeated string warnings = 3; - * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList getWarningsList() { + public com.google.protobuf.ProtocolStringList + getWarningsList() { return warnings_; } /** - * - * *
                    * Warning messages, e.g., a deprecation warning.
                    * 
              * * repeated string warnings = 3; - * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** - * - * *
                    * Warning messages, e.g., a deprecation warning.
                    * 
              * * repeated string warnings = 3; - * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -844,59 +719,47 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** - * - * *
                    * Warning messages, e.g., a deprecation warning.
                    * 
              * * repeated string warnings = 3; - * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { + public com.google.protobuf.ByteString + getWarningsBytes(int index) { return warnings_.getByteString(index); } public static final int ENVIRONMENT_FIELD_NUMBER = 4; private int environment_; /** - * - * *
                    * The environment for the runtime.
                    * 
              * * .google.cloud.functions.v2beta.Environment environment = 4; - * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override - public int getEnvironmentValue() { + @java.lang.Override public int getEnvironmentValue() { return environment_; } /** - * - * *
                    * The environment for the runtime.
                    * 
              * * .google.cloud.functions.v2beta.Environment environment = 4; - * * @return The environment. */ - @java.lang.Override - public com.google.cloud.functions.v2beta.Environment getEnvironment() { + @java.lang.Override public com.google.cloud.functions.v2beta.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Environment result = - com.google.cloud.functions.v2beta.Environment.valueOf(environment_); + com.google.cloud.functions.v2beta.Environment result = com.google.cloud.functions.v2beta.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2beta.Environment.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -908,21 +771,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (stage_ - != com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage - .RUNTIME_STAGE_UNSPECIFIED - .getNumber()) { + if (stage_ != com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.RUNTIME_STAGE_UNSPECIFIED.getNumber()) { output.writeEnum(2, stage_); } for (int i = 0; i < warnings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warnings_.getRaw(i)); } - if (environment_ - != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (environment_ != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(4, environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { @@ -940,11 +800,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (stage_ - != com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage - .RUNTIME_STAGE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stage_); + if (stage_ != com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.RUNTIME_STAGE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, stage_); } { int dataSize = 0; @@ -954,9 +812,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getWarningsList().size(); } - if (environment_ - != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, environment_); + if (environment_ != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -969,18 +827,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime other = - (com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) obj; + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime other = (com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (stage_ != other.stage_) return false; - if (!getWarningsList().equals(other.getWarningsList())) return false; + if (!getWarningsList() + .equals(other.getWarningsList())) return false; if (environment_ != other.environment_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1011,94 +871,87 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListRuntimesResponse.Runtime parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime 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.ListRuntimesResponse.Runtime parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1108,8 +961,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                    * Describes a runtime and any special information (e.g., deprecation status)
                    * related to it.
              @@ -1117,24 +968,21 @@ protected Builder newBuilderForType(
                    *
                    * Protobuf type {@code google.cloud.functions.v2beta.ListRuntimesResponse.Runtime}
                    */
              -    public static final class Builder
              -        extends com.google.protobuf.GeneratedMessageV3.Builder
              -        implements
              +    public static final class Builder extends
              +        com.google.protobuf.GeneratedMessageV3.Builder implements
                       // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.ListRuntimesResponse.Runtime)
                       com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder {
              -      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;
              +      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;
                     }
               
                     @java.lang.Override
                     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                         internalGetFieldAccessorTable() {
              -        return com.google.cloud.functions.v2beta.FunctionsProto
              -            .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable
              +        return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable
                           .ensureFieldAccessorsInitialized(
              -                com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.class,
              -                com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder.class);
              +                com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder.class);
                     }
               
                     // Construct using com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.newBuilder()
              @@ -1142,15 +990,16 @@ private Builder() {
                       maybeForceBuilderInitialization();
                     }
               
              -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
              +      private Builder(
              +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                       super(parent);
                       maybeForceBuilderInitialization();
                     }
              -
                     private void maybeForceBuilderInitialization() {
              -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
              +        if (com.google.protobuf.GeneratedMessageV3
              +                .alwaysUseFieldBuilders) {
              +        }
                     }
              -
                     @java.lang.Override
                     public Builder clear() {
                       super.clear();
              @@ -1168,14 +1017,13 @@ public Builder clear() {
                     }
               
                     @java.lang.Override
              -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
              -        return com.google.cloud.functions.v2beta.FunctionsProto
              -            .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor;
              +      public com.google.protobuf.Descriptors.Descriptor
              +          getDescriptorForType() {
              +        return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor;
                     }
               
                     @java.lang.Override
              -      public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime
              -          getDefaultInstanceForType() {
              +      public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getDefaultInstanceForType() {
                       return com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance();
                     }
               
              @@ -1190,8 +1038,7 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime build() {
               
                     @java.lang.Override
                     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);
              +        com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime result = new com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime(this);
                       int from_bitField0_ = bitField0_;
                       result.name_ = name_;
                       result.displayName_ = displayName_;
              @@ -1210,52 +1057,46 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime buildParti
                     public Builder clone() {
                       return super.clone();
                     }
              -
                     @java.lang.Override
                     public Builder setField(
              -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
              +          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) {
              +      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) {
              +      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) {
              +          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) {
              +          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) {
              -          return mergeFrom((com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) other);
              +          return mergeFrom((com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime)other);
                       } else {
                         super.mergeFrom(other);
                         return this;
                       }
                     }
               
              -      public Builder mergeFrom(
              -          com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime other) {
              -        if (other
              -            == com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance())
              -          return this;
              +      public Builder mergeFrom(com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime other) {
              +        if (other == com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance()) return this;
                       if (!other.getName().isEmpty()) {
                         name_ = other.name_;
                         onChanged();
              @@ -1299,9 +1140,7 @@ public Builder mergeFrom(
                       try {
                         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              -          parsedMessage =
              -              (com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime)
              -                  e.getUnfinishedMessage();
              +          parsedMessage = (com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) e.getUnfinishedMessage();
                         throw e.unwrapIOException();
                       } finally {
                         if (parsedMessage != null) {
              @@ -1310,25 +1149,22 @@ public Builder mergeFrom(
                       }
                       return this;
                     }
              -
                     private int bitField0_;
               
                     private java.lang.Object name_ = "";
                     /**
              -       *
              -       *
                      * 
                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                      * 
              * * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1337,21 +1173,20 @@ public java.lang.String getName() { } } /** - * - * *
                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                      * 
              * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1359,61 +1194,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                      * 
              * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                      * 
              * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                      * 
              * * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1421,20 +1249,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                      * 
              * * string display_name = 5; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1443,21 +1269,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                      * 
              * * string display_name = 5; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1465,61 +1290,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                      * 
              * * string display_name = 5; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                      * 
              * * string display_name = 5; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                      * 
              * * string display_name = 5; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1527,144 +1345,114 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private int stage_ = 0; /** - * - * *
                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                      * 
              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return The enum numeric value on the wire for stage. */ - @java.lang.Override - public int getStageValue() { + @java.lang.Override public int getStageValue() { return stage_; } /** - * - * *
                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                      * 
              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; - * * @param value The enum numeric value on the wire for stage to set. * @return This builder for chaining. */ public Builder setStageValue(int value) { - + stage_ = value; onChanged(); return this; } /** - * - * *
                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                      * 
              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return The stage. */ @java.lang.Override public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage getStage() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage result = - com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.valueOf(stage_); - return result == null - ? com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED - : result; + com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.valueOf(stage_); + return result == null ? com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; } /** - * - * *
                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                      * 
              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; - * * @param value The stage to set. * @return This builder for chaining. */ - public Builder setStage( - com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage value) { + public Builder setStage(com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage value) { if (value == null) { throw new NullPointerException(); } - + stage_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                      * 
              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; - * * @return This builder for chaining. */ public Builder clearStage() { - + stage_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList warnings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureWarningsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
                      * Warning messages, e.g., a deprecation warning.
                      * 
              * * repeated string warnings = 3; - * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList getWarningsList() { + public com.google.protobuf.ProtocolStringList + getWarningsList() { return warnings_.getUnmodifiableView(); } /** - * - * *
                      * Warning messages, e.g., a deprecation warning.
                      * 
              * * repeated string warnings = 3; - * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** - * - * *
                      * Warning messages, e.g., a deprecation warning.
                      * 
              * * repeated string warnings = 3; - * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -1672,90 +1460,80 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** - * - * *
                      * Warning messages, e.g., a deprecation warning.
                      * 
              * * repeated string warnings = 3; - * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { + public com.google.protobuf.ByteString + getWarningsBytes(int index) { return warnings_.getByteString(index); } /** - * - * *
                      * Warning messages, e.g., a deprecation warning.
                      * 
              * * repeated string warnings = 3; - * * @param index The index to set the value at. * @param value The warnings to set. * @return This builder for chaining. */ - public Builder setWarnings(int index, java.lang.String value) { + public Builder setWarnings( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.set(index, value); onChanged(); return this; } /** - * - * *
                      * Warning messages, e.g., a deprecation warning.
                      * 
              * * repeated string warnings = 3; - * * @param value The warnings to add. * @return This builder for chaining. */ - public Builder addWarnings(java.lang.String value) { + public Builder addWarnings( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.add(value); onChanged(); return this; } /** - * - * *
                      * Warning messages, e.g., a deprecation warning.
                      * 
              * * repeated string warnings = 3; - * * @param values The warnings to add. * @return This builder for chaining. */ - public Builder addAllWarnings(java.lang.Iterable values) { + public Builder addAllWarnings( + java.lang.Iterable values) { ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, warnings_); onChanged(); return this; } /** - * - * *
                      * Warning messages, e.g., a deprecation warning.
                      * 
              * * repeated string warnings = 3; - * * @return This builder for chaining. */ public Builder clearWarnings() { @@ -1765,22 +1543,20 @@ public Builder clearWarnings() { return this; } /** - * - * *
                      * Warning messages, e.g., a deprecation warning.
                      * 
              * * repeated string warnings = 3; - * * @param value The bytes of the warnings to add. * @return This builder for chaining. */ - public Builder addWarningsBytes(com.google.protobuf.ByteString value) { + public Builder addWarningsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.add(value); onChanged(); @@ -1789,65 +1565,51 @@ public Builder addWarningsBytes(com.google.protobuf.ByteString value) { private int environment_ = 0; /** - * - * *
                      * The environment for the runtime.
                      * 
              * * .google.cloud.functions.v2beta.Environment environment = 4; - * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override - public int getEnvironmentValue() { + @java.lang.Override public int getEnvironmentValue() { return environment_; } /** - * - * *
                      * The environment for the runtime.
                      * 
              * * .google.cloud.functions.v2beta.Environment environment = 4; - * * @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; onChanged(); return this; } /** - * - * *
                      * The environment for the runtime.
                      * 
              * * .google.cloud.functions.v2beta.Environment environment = 4; - * * @return The environment. */ @java.lang.Override public com.google.cloud.functions.v2beta.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Environment result = - com.google.cloud.functions.v2beta.Environment.valueOf(environment_); + com.google.cloud.functions.v2beta.Environment result = com.google.cloud.functions.v2beta.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2beta.Environment.UNRECOGNIZED : result; } /** - * - * *
                      * The environment for the runtime.
                      * 
              * * .google.cloud.functions.v2beta.Environment environment = 4; - * * @param value The environment to set. * @return This builder for chaining. */ @@ -1855,29 +1617,25 @@ public Builder setEnvironment(com.google.cloud.functions.v2beta.Environment valu if (value == null) { throw new NullPointerException(); } - + environment_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                      * The environment for the runtime.
                      * 
              * * .google.cloud.functions.v2beta.Environment environment = 4; - * * @return This builder for chaining. */ public Builder clearEnvironment() { - + environment_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1890,32 +1648,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) - private static final com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime - DEFAULT_INSTANCE; - + private static final com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime(); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime - getDefaultInstance() { + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Runtime parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Runtime(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Runtime parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Runtime(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1927,17 +1683,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime - getDefaultInstanceForType() { + public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int RUNTIMES_FIELD_NUMBER = 1; private java.util.List runtimes_; /** - * - * *
                  * The runtimes that match the request.
                  * 
              @@ -1945,13 +1699,10 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override - public java.util.List - getRuntimesList() { + public java.util.List getRuntimesList() { return runtimes_; } /** - * - * *
                  * The runtimes that match the request.
                  * 
              @@ -1959,14 +1710,11 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder> + public java.util.List getRuntimesOrBuilderList() { return runtimes_; } /** - * - * *
                  * The runtimes that match the request.
                  * 
              @@ -1978,8 +1726,6 @@ public int getRuntimesCount() { return runtimes_.size(); } /** - * - * *
                  * The runtimes that match the request.
                  * 
              @@ -1991,8 +1737,6 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getRuntime return runtimes_.get(index); } /** - * - * *
                  * The runtimes that match the request.
                  * 
              @@ -2000,13 +1744,12 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getRuntime * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override - public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder - getRuntimesOrBuilder(int index) { + public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( + int index) { return runtimes_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2018,7 +1761,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < runtimes_.size(); i++) { output.writeMessage(1, runtimes_.get(i)); } @@ -2032,7 +1776,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < runtimes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runtimes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, runtimes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2042,15 +1787,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.ListRuntimesResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.ListRuntimesResponse other = - (com.google.cloud.functions.v2beta.ListRuntimesResponse) obj; + com.google.cloud.functions.v2beta.ListRuntimesResponse other = (com.google.cloud.functions.v2beta.ListRuntimesResponse) obj; - if (!getRuntimesList().equals(other.getRuntimesList())) return false; + if (!getRuntimesList() + .equals(other.getRuntimesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2072,127 +1817,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListRuntimesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse 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.ListRuntimesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2beta.ListRuntimesResponse prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2beta.ListRuntimesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Response for the `ListRuntimes` method.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.ListRuntimesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.ListRuntimesResponse) com.google.cloud.functions.v2beta.ListRuntimesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListRuntimesResponse.class, - com.google.cloud.functions.v2beta.ListRuntimesResponse.Builder.class); + com.google.cloud.functions.v2beta.ListRuntimesResponse.class, com.google.cloud.functions.v2beta.ListRuntimesResponse.Builder.class); } // Construct using com.google.cloud.functions.v2beta.ListRuntimesResponse.newBuilder() @@ -2200,17 +1935,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRuntimesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2224,9 +1959,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; } @java.lang.Override @@ -2245,8 +1980,7 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse build() { @java.lang.Override public com.google.cloud.functions.v2beta.ListRuntimesResponse buildPartial() { - com.google.cloud.functions.v2beta.ListRuntimesResponse result = - new com.google.cloud.functions.v2beta.ListRuntimesResponse(this); + com.google.cloud.functions.v2beta.ListRuntimesResponse result = new com.google.cloud.functions.v2beta.ListRuntimesResponse(this); int from_bitField0_ = bitField0_; if (runtimesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2265,39 +1999,38 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.ListRuntimesResponse) other); + return mergeFrom((com.google.cloud.functions.v2beta.ListRuntimesResponse)other); } else { super.mergeFrom(other); return this; @@ -2305,8 +2038,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.ListRuntimesResponse other) { - if (other == com.google.cloud.functions.v2beta.ListRuntimesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.ListRuntimesResponse.getDefaultInstance()) return this; if (runtimesBuilder_ == null) { if (!other.runtimes_.isEmpty()) { if (runtimes_.isEmpty()) { @@ -2325,10 +2057,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ListRuntimesResponse runtimesBuilder_ = null; runtimes_ = other.runtimes_; bitField0_ = (bitField0_ & ~0x00000001); - runtimesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRuntimesFieldBuilder() - : null; + runtimesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRuntimesFieldBuilder() : null; } else { runtimesBuilder_.addAllMessages(other.runtimes_); } @@ -2353,8 +2084,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.ListRuntimesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.ListRuntimesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2363,39 +2093,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - runtimes_ = java.util.Collections.emptyList(); - + private java.util.List runtimes_ = + java.util.Collections.emptyList(); private void ensureRuntimesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - runtimes_ = - new java.util.ArrayList( - runtimes_); + runtimes_ = new java.util.ArrayList(runtimes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime, - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder, - com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder> - runtimesBuilder_; + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder> runtimesBuilder_; /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ - public java.util.List - getRuntimesList() { + public java.util.List getRuntimesList() { if (runtimesBuilder_ == null) { return java.util.Collections.unmodifiableList(runtimes_); } else { @@ -2403,14 +2122,11 @@ private void ensureRuntimesIsMutable() { } } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ public int getRuntimesCount() { if (runtimesBuilder_ == null) { @@ -2420,14 +2136,11 @@ public int getRuntimesCount() { } } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getRuntimes(int index) { if (runtimesBuilder_ == null) { @@ -2437,14 +2150,11 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getRuntime } } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder setRuntimes( int index, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime value) { @@ -2461,18 +2171,14 @@ public Builder setRuntimes( return this; } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder setRuntimes( - int index, - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder builderForValue) { + int index, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.set(index, builderForValue.build()); @@ -2483,17 +2189,13 @@ public Builder setRuntimes( return this; } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ - public Builder addRuntimes( - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime value) { + public Builder addRuntimes(com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime value) { if (runtimesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2507,14 +2209,11 @@ public Builder addRuntimes( return this; } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addRuntimes( int index, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime value) { @@ -2531,14 +2230,11 @@ public Builder addRuntimes( return this; } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addRuntimes( com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder builderForValue) { @@ -2552,18 +2248,14 @@ public Builder addRuntimes( return this; } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addRuntimes( - int index, - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder builderForValue) { + int index, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.add(index, builderForValue.build()); @@ -2574,21 +2266,18 @@ public Builder addRuntimes( return this; } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addAllRuntimes( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, runtimes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, runtimes_); onChanged(); } else { runtimesBuilder_.addAllMessages(values); @@ -2596,14 +2285,11 @@ public Builder addAllRuntimes( return this; } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder clearRuntimes() { if (runtimesBuilder_ == null) { @@ -2616,14 +2302,11 @@ public Builder clearRuntimes() { return this; } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder removeRuntimes(int index) { if (runtimesBuilder_ == null) { @@ -2636,50 +2319,39 @@ public Builder removeRuntimes(int index) { return this; } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ - public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder - getRuntimesBuilder(int index) { + public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder getRuntimesBuilder( + int index) { return getRuntimesFieldBuilder().getBuilder(index); } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ - public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder - getRuntimesOrBuilder(int index) { + public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( + int index) { if (runtimesBuilder_ == null) { - return runtimes_.get(index); - } else { + return runtimes_.get(index); } else { return runtimesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ - public java.util.List< - ? extends com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder> - getRuntimesOrBuilderList() { + public java.util.List + getRuntimesOrBuilderList() { if (runtimesBuilder_ != null) { return runtimesBuilder_.getMessageOrBuilderList(); } else { @@ -2687,72 +2359,56 @@ public Builder removeRuntimes(int index) { } } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ - public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder - addRuntimesBuilder() { - return getRuntimesFieldBuilder() - .addBuilder( - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance()); + public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder() { + return getRuntimesFieldBuilder().addBuilder( + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance()); } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ - public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder - addRuntimesBuilder(int index) { - return getRuntimesFieldBuilder() - .addBuilder( - index, - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance()); + public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder( + int index) { + return getRuntimesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance()); } /** - * - * *
                    * The runtimes that match the request.
                    * 
              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; - * + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ - public java.util.List - getRuntimesBuilderList() { + public java.util.List + getRuntimesBuilderList() { return getRuntimesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime, - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder, - com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder> + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder> getRuntimesFieldBuilder() { if (runtimesBuilder_ == null) { - runtimesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime, - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder, - com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder>( - runtimes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + runtimesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder>( + runtimes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); runtimes_ = null; } return runtimesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2762,12 +2418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.ListRuntimesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.ListRuntimesResponse) private static final com.google.cloud.functions.v2beta.ListRuntimesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.ListRuntimesResponse(); } @@ -2776,16 +2432,16 @@ public static com.google.cloud.functions.v2beta.ListRuntimesResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRuntimesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRuntimesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2800,4 +2456,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.ListRuntimesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java index 5eca7ed5..6782a008 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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 ListRuntimesResponseOrBuilder - extends +public interface ListRuntimesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.ListRuntimesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * The runtimes that match the request.
                  * 
              * * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ - java.util.List getRuntimesList(); + java.util.List + getRuntimesList(); /** - * - * *
                  * The runtimes that match the request.
                  * 
              @@ -44,8 +25,6 @@ public interface ListRuntimesResponseOrBuilder */ com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getRuntimes(int index); /** - * - * *
                  * The runtimes that match the request.
                  * 
              @@ -54,19 +33,15 @@ public interface ListRuntimesResponseOrBuilder */ int getRuntimesCount(); /** - * - * *
                  * The runtimes that match the request.
                  * 
              * * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ - java.util.List + java.util.List getRuntimesOrBuilderList(); /** - * - * *
                  * The runtimes that match the request.
                  * 
              diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationName.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationName.java similarity index 100% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationName.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationName.java diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java similarity index 74% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java index bd115352..d8f0a5bf 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * *
                * Represents the metadata of the long-running operation.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -47,15 +29,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,102 +58,90 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusDetail_ = s; - break; - } - case 48: - { - cancelRequested_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDetail_ = s; + break; + } + case 48: { + + cancelRequested_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + case 66: { + com.google.protobuf.Any.Builder subBuilder = null; + if (requestResource_ != null) { + subBuilder = requestResource_.toBuilder(); } - case 66: - { - com.google.protobuf.Any.Builder subBuilder = null; - if (requestResource_ != null) { - subBuilder = requestResource_.toBuilder(); - } - requestResource_ = - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestResource_); - requestResource_ = subBuilder.buildPartial(); - } - - break; + requestResource_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestResource_); + requestResource_ = subBuilder.buildPartial(); } - case 74: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stages_.add( - input.readMessage( - com.google.cloud.functions.v2beta.Stage.parser(), extensionRegistry)); - break; + + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + stages_.add( + input.readMessage(com.google.cloud.functions.v2beta.Stage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -178,7 +149,8 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stages_ = java.util.Collections.unmodifiableList(stages_); @@ -187,33 +159,27 @@ private OperationMetadata( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.OperationMetadata.class, - com.google.cloud.functions.v2beta.OperationMetadata.Builder.class); + com.google.cloud.functions.v2beta.OperationMetadata.class, com.google.cloud.functions.v2beta.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
                  * The time the operation was created.
                  * 
              * * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -221,14 +187,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
                  * The time the operation was created.
                  * 
              * * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -236,8 +199,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
                  * The time the operation was created.
                  * 
              @@ -252,14 +213,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
                  * The time the operation finished running.
                  * 
              * * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -267,14 +225,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
                  * The time the operation finished running.
                  * 
              * * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -282,8 +237,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
                  * The time the operation finished running.
                  * 
              @@ -298,14 +251,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
                  * Server-defined resource path for the target of the operation.
                  * 
              * * string target = 3; - * * @return The target. */ @java.lang.Override @@ -314,29 +264,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
                  * Server-defined resource path for the target of the operation.
                  * 
              * * string target = 3; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -347,14 +297,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
                  * Name of the verb executed by the operation.
                  * 
              * * string verb = 4; - * * @return The verb. */ @java.lang.Override @@ -363,29 +310,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
                  * Name of the verb executed by the operation.
                  * 
              * * string verb = 4; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -396,14 +343,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
                  * Human-readable status of the operation, if any.
                  * 
              * * string status_detail = 5; - * * @return The statusDetail. */ @java.lang.Override @@ -412,29 +356,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** - * - * *
                  * Human-readable status of the operation, if any.
                  * 
              * * string status_detail = 5; - * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -445,8 +389,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
                  * Identifies whether the user has requested cancellation
                  * of the operation. Operations that have successfully been cancelled
              @@ -455,7 +397,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() {
                  * 
              * * bool cancel_requested = 6; - * * @return The cancelRequested. */ @java.lang.Override @@ -466,14 +407,11 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
                  * API version used to start the operation.
                  * 
              * * string api_version = 7; - * * @return The apiVersion. */ @java.lang.Override @@ -482,29 +420,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
                  * API version used to start the operation.
                  * 
              * * string api_version = 7; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -515,14 +453,11 @@ public com.google.protobuf.ByteString getApiVersionBytes() { public static final int REQUEST_RESOURCE_FIELD_NUMBER = 8; private com.google.protobuf.Any requestResource_; /** - * - * *
                  * The original request that started the operation.
                  * 
              * * .google.protobuf.Any request_resource = 8; - * * @return Whether the requestResource field is set. */ @java.lang.Override @@ -530,25 +465,18 @@ public boolean hasRequestResource() { return requestResource_ != null; } /** - * - * *
                  * The original request that started the operation.
                  * 
              * * .google.protobuf.Any request_resource = 8; - * * @return The requestResource. */ @java.lang.Override public com.google.protobuf.Any getRequestResource() { - return requestResource_ == null - ? com.google.protobuf.Any.getDefaultInstance() - : requestResource_; + return requestResource_ == null ? com.google.protobuf.Any.getDefaultInstance() : requestResource_; } /** - * - * *
                  * The original request that started the operation.
                  * 
              @@ -563,8 +491,6 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { public static final int STAGES_FIELD_NUMBER = 9; private java.util.List stages_; /** - * - * *
                  * Mechanism for reporting in-progress stages
                  * 
              @@ -576,8 +502,6 @@ public java.util.List getStagesList() { return stages_; } /** - * - * *
                  * Mechanism for reporting in-progress stages
                  * 
              @@ -585,13 +509,11 @@ public java.util.List getStagesList() { * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ @java.lang.Override - public java.util.List + public java.util.List getStagesOrBuilderList() { return stages_; } /** - * - * *
                  * Mechanism for reporting in-progress stages
                  * 
              @@ -603,8 +525,6 @@ public int getStagesCount() { return stages_.size(); } /** - * - * *
                  * Mechanism for reporting in-progress stages
                  * 
              @@ -616,8 +536,6 @@ public com.google.cloud.functions.v2beta.Stage getStages(int index) { return stages_.get(index); } /** - * - * *
                  * Mechanism for reporting in-progress stages
                  * 
              @@ -625,12 +543,12 @@ public com.google.cloud.functions.v2beta.Stage getStages(int index) { * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ @java.lang.Override - public com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder(int index) { + public com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder( + int index) { return stages_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -642,7 +560,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -680,10 +599,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -695,16 +616,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } if (requestResource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRequestResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getRequestResource()); } for (int i = 0; i < stages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, stages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, stages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -714,32 +638,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.OperationMetadata other = - (com.google.cloud.functions.v2beta.OperationMetadata) obj; + com.google.cloud.functions.v2beta.OperationMetadata other = (com.google.cloud.functions.v2beta.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (getCancelRequested() != other.getCancelRequested()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (getCancelRequested() + != other.getCancelRequested()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (hasRequestResource() != other.hasRequestResource()) return false; if (hasRequestResource()) { - if (!getRequestResource().equals(other.getRequestResource())) return false; + if (!getRequestResource() + .equals(other.getRequestResource())) return false; } - if (!getStagesList().equals(other.getStagesList())) return false; + if (!getStagesList() + .equals(other.getStagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -766,7 +698,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); if (hasRequestResource()) { @@ -783,126 +716,117 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.OperationMetadata 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.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Represents the metadata of the long-running operation.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.OperationMetadata) com.google.cloud.functions.v2beta.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.OperationMetadata.class, - com.google.cloud.functions.v2beta.OperationMetadata.Builder.class); + com.google.cloud.functions.v2beta.OperationMetadata.class, com.google.cloud.functions.v2beta.OperationMetadata.Builder.class); } // Construct using com.google.cloud.functions.v2beta.OperationMetadata.newBuilder() @@ -910,17 +834,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -962,9 +886,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; } @java.lang.Override @@ -983,8 +907,7 @@ public com.google.cloud.functions.v2beta.OperationMetadata build() { @java.lang.Override public com.google.cloud.functions.v2beta.OperationMetadata buildPartial() { - com.google.cloud.functions.v2beta.OperationMetadata result = - new com.google.cloud.functions.v2beta.OperationMetadata(this); + com.google.cloud.functions.v2beta.OperationMetadata result = new com.google.cloud.functions.v2beta.OperationMetadata(this); int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -1023,39 +946,38 @@ public com.google.cloud.functions.v2beta.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.OperationMetadata) other); + return mergeFrom((com.google.cloud.functions.v2beta.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -1063,8 +985,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.OperationMetadata other) { - if (other == com.google.cloud.functions.v2beta.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1111,10 +1032,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.OperationMetadata oth stagesBuilder_ = null; stages_ = other.stages_; bitField0_ = (bitField0_ & ~0x00000001); - stagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStagesFieldBuilder() - : null; + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStagesFieldBuilder() : null; } else { stagesBuilder_.addAllMessages(other.stages_); } @@ -1139,8 +1059,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1149,52 +1068,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
                    * The time the operation was created.
                    * 
              * * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
                    * The time the operation was created.
                    * 
              * * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
                    * The time the operation was created.
                    * 
              @@ -1215,15 +1120,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                    * The time the operation was created.
                    * 
              * * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1234,8 +1138,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                    * The time the operation was created.
                    * 
              @@ -1246,7 +1148,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1258,8 +1160,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                    * The time the operation was created.
                    * 
              @@ -1278,8 +1178,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
                    * The time the operation was created.
                    * 
              @@ -1287,13 +1185,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
                    * The time the operation was created.
                    * 
              @@ -1304,14 +1200,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
                    * The time the operation was created.
                    * 
              @@ -1319,17 +1212,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1337,33 +1227,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
                    * The time the operation finished running.
                    * 
              * * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
                    * The time the operation finished running.
                    * 
              * * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1374,8 +1255,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
                    * The time the operation finished running.
                    * 
              @@ -1396,15 +1275,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                    * The time the operation finished running.
                    * 
              * * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1415,8 +1293,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
                    * The time the operation finished running.
                    * 
              @@ -1427,7 +1303,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1439,8 +1315,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                    * The time the operation finished running.
                    * 
              @@ -1459,8 +1333,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
                    * The time the operation finished running.
                    * 
              @@ -1468,13 +1340,11 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
                    * The time the operation finished running.
                    * 
              @@ -1485,12 +1355,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
                    * The time the operation finished running.
                    * 
              @@ -1498,17 +1367,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1516,20 +1382,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
                    * Server-defined resource path for the target of the operation.
                    * 
              * * string target = 3; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1538,21 +1402,20 @@ public java.lang.String getTarget() { } } /** - * - * *
                    * Server-defined resource path for the target of the operation.
                    * 
              * * string target = 3; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1560,61 +1423,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
                    * Server-defined resource path for the target of the operation.
                    * 
              * * string target = 3; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
                    * Server-defined resource path for the target of the operation.
                    * 
              * * string target = 3; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
                    * Server-defined resource path for the target of the operation.
                    * 
              * * string target = 3; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1622,20 +1478,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
                    * Name of the verb executed by the operation.
                    * 
              * * string verb = 4; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1644,21 +1498,20 @@ public java.lang.String getVerb() { } } /** - * - * *
                    * Name of the verb executed by the operation.
                    * 
              * * string verb = 4; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1666,61 +1519,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
                    * Name of the verb executed by the operation.
                    * 
              * * string verb = 4; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
                    * Name of the verb executed by the operation.
                    * 
              * * string verb = 4; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
                    * Name of the verb executed by the operation.
                    * 
              * * string verb = 4; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1728,20 +1574,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
                    * Human-readable status of the operation, if any.
                    * 
              * * string status_detail = 5; - * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1750,21 +1594,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
                    * Human-readable status of the operation, if any.
                    * 
              * * string status_detail = 5; - * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1772,70 +1615,61 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
                    * Human-readable status of the operation, if any.
                    * 
              * * string status_detail = 5; - * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail(java.lang.String value) { + public Builder setStatusDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** - * - * *
                    * Human-readable status of the operation, if any.
                    * 
              * * string status_detail = 5; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
                    * Human-readable status of the operation, if any.
                    * 
              * * string status_detail = 5; - * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_; + private boolean cancelRequested_ ; /** - * - * *
                    * Identifies whether the user has requested cancellation
                    * of the operation. Operations that have successfully been cancelled
              @@ -1844,7 +1678,6 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
                    * 
              * * bool cancel_requested = 6; - * * @return The cancelRequested. */ @java.lang.Override @@ -1852,8 +1685,6 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
                    * Identifies whether the user has requested cancellation
                    * of the operation. Operations that have successfully been cancelled
              @@ -1862,19 +1693,16 @@ public boolean getCancelRequested() {
                    * 
              * * bool cancel_requested = 6; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
                    * Identifies whether the user has requested cancellation
                    * of the operation. Operations that have successfully been cancelled
              @@ -1883,11 +1711,10 @@ public Builder setCancelRequested(boolean value) {
                    * 
              * * bool cancel_requested = 6; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1895,20 +1722,18 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** - * - * *
                    * API version used to start the operation.
                    * 
              * * string api_version = 7; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1917,21 +1742,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
                    * API version used to start the operation.
                    * 
              * * string api_version = 7; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1939,61 +1763,54 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
                    * API version used to start the operation.
                    * 
              * * string api_version = 7; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
                    * API version used to start the operation.
                    * 
              * * string api_version = 7; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
                    * API version used to start the operation.
                    * 
              * * string api_version = 7; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; @@ -2001,47 +1818,34 @@ public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Any requestResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> - requestResourceBuilder_; + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> requestResourceBuilder_; /** - * - * *
                    * The original request that started the operation.
                    * 
              * * .google.protobuf.Any request_resource = 8; - * * @return Whether the requestResource field is set. */ public boolean hasRequestResource() { return requestResourceBuilder_ != null || requestResource_ != null; } /** - * - * *
                    * The original request that started the operation.
                    * 
              * * .google.protobuf.Any request_resource = 8; - * * @return The requestResource. */ public com.google.protobuf.Any getRequestResource() { if (requestResourceBuilder_ == null) { - return requestResource_ == null - ? com.google.protobuf.Any.getDefaultInstance() - : requestResource_; + return requestResource_ == null ? com.google.protobuf.Any.getDefaultInstance() : requestResource_; } else { return requestResourceBuilder_.getMessage(); } } /** - * - * *
                    * The original request that started the operation.
                    * 
              @@ -2062,15 +1866,14 @@ public Builder setRequestResource(com.google.protobuf.Any value) { return this; } /** - * - * *
                    * The original request that started the operation.
                    * 
              * * .google.protobuf.Any request_resource = 8; */ - public Builder setRequestResource(com.google.protobuf.Any.Builder builderForValue) { + public Builder setRequestResource( + com.google.protobuf.Any.Builder builderForValue) { if (requestResourceBuilder_ == null) { requestResource_ = builderForValue.build(); onChanged(); @@ -2081,8 +1884,6 @@ public Builder setRequestResource(com.google.protobuf.Any.Builder builderForValu return this; } /** - * - * *
                    * The original request that started the operation.
                    * 
              @@ -2093,7 +1894,7 @@ public Builder mergeRequestResource(com.google.protobuf.Any value) { if (requestResourceBuilder_ == null) { if (requestResource_ != null) { requestResource_ = - com.google.protobuf.Any.newBuilder(requestResource_).mergeFrom(value).buildPartial(); + com.google.protobuf.Any.newBuilder(requestResource_).mergeFrom(value).buildPartial(); } else { requestResource_ = value; } @@ -2105,8 +1906,6 @@ public Builder mergeRequestResource(com.google.protobuf.Any value) { return this; } /** - * - * *
                    * The original request that started the operation.
                    * 
              @@ -2125,8 +1924,6 @@ public Builder clearRequestResource() { return this; } /** - * - * *
                    * The original request that started the operation.
                    * 
              @@ -2134,13 +1931,11 @@ public Builder clearRequestResource() { * .google.protobuf.Any request_resource = 8; */ public com.google.protobuf.Any.Builder getRequestResourceBuilder() { - + onChanged(); return getRequestResourceFieldBuilder().getBuilder(); } /** - * - * *
                    * The original request that started the operation.
                    * 
              @@ -2151,14 +1946,11 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { if (requestResourceBuilder_ != null) { return requestResourceBuilder_.getMessageOrBuilder(); } else { - return requestResource_ == null - ? com.google.protobuf.Any.getDefaultInstance() - : requestResource_; + return requestResource_ == null ? + com.google.protobuf.Any.getDefaultInstance() : requestResource_; } } /** - * - * *
                    * The original request that started the operation.
                    * 
              @@ -2166,41 +1958,32 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { * .google.protobuf.Any request_resource = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getRequestResourceFieldBuilder() { if (requestResourceBuilder_ == null) { - requestResourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder>( - getRequestResource(), getParentForChildren(), isClean()); + requestResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( + getRequestResource(), + getParentForChildren(), + isClean()); requestResource_ = null; } return requestResourceBuilder_; } private java.util.List stages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stages_ = new java.util.ArrayList(stages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.Stage, - com.google.cloud.functions.v2beta.Stage.Builder, - com.google.cloud.functions.v2beta.StageOrBuilder> - stagesBuilder_; + com.google.cloud.functions.v2beta.Stage, com.google.cloud.functions.v2beta.Stage.Builder, com.google.cloud.functions.v2beta.StageOrBuilder> stagesBuilder_; /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              @@ -2215,8 +1998,6 @@ public java.util.List getStagesList() { } } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              @@ -2231,8 +2012,6 @@ public int getStagesCount() { } } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              @@ -2247,15 +2026,14 @@ public com.google.cloud.functions.v2beta.Stage getStages(int index) { } } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public Builder setStages(int index, com.google.cloud.functions.v2beta.Stage value) { + public Builder setStages( + int index, com.google.cloud.functions.v2beta.Stage value) { if (stagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2269,8 +2047,6 @@ public Builder setStages(int index, com.google.cloud.functions.v2beta.Stage valu return this; } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              @@ -2289,8 +2065,6 @@ public Builder setStages( return this; } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              @@ -2311,15 +2085,14 @@ public Builder addStages(com.google.cloud.functions.v2beta.Stage value) { return this; } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public Builder addStages(int index, com.google.cloud.functions.v2beta.Stage value) { + public Builder addStages( + int index, com.google.cloud.functions.v2beta.Stage value) { if (stagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2333,15 +2106,14 @@ public Builder addStages(int index, com.google.cloud.functions.v2beta.Stage valu return this; } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public Builder addStages(com.google.cloud.functions.v2beta.Stage.Builder builderForValue) { + public Builder addStages( + com.google.cloud.functions.v2beta.Stage.Builder builderForValue) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); stages_.add(builderForValue.build()); @@ -2352,8 +2124,6 @@ public Builder addStages(com.google.cloud.functions.v2beta.Stage.Builder builder return this; } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              @@ -2372,8 +2142,6 @@ public Builder addStages( return this; } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              @@ -2384,7 +2152,8 @@ public Builder addAllStages( java.lang.Iterable values) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stages_); onChanged(); } else { stagesBuilder_.addAllMessages(values); @@ -2392,8 +2161,6 @@ public Builder addAllStages( return this; } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              @@ -2411,8 +2178,6 @@ public Builder clearStages() { return this; } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              @@ -2430,44 +2195,39 @@ public Builder removeStages(int index) { return this; } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public com.google.cloud.functions.v2beta.Stage.Builder getStagesBuilder(int index) { + public com.google.cloud.functions.v2beta.Stage.Builder getStagesBuilder( + int index) { return getStagesFieldBuilder().getBuilder(index); } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder(int index) { + public com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder( + int index) { if (stagesBuilder_ == null) { - return stages_.get(index); - } else { + return stages_.get(index); } else { return stagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public java.util.List - getStagesOrBuilderList() { + public java.util.List + getStagesOrBuilderList() { if (stagesBuilder_ != null) { return stagesBuilder_.getMessageOrBuilderList(); } else { @@ -2475,8 +2235,6 @@ public com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder(int i } } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              @@ -2484,54 +2242,49 @@ public com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder(int i * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ public com.google.cloud.functions.v2beta.Stage.Builder addStagesBuilder() { - return getStagesFieldBuilder() - .addBuilder(com.google.cloud.functions.v2beta.Stage.getDefaultInstance()); + return getStagesFieldBuilder().addBuilder( + com.google.cloud.functions.v2beta.Stage.getDefaultInstance()); } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public com.google.cloud.functions.v2beta.Stage.Builder addStagesBuilder(int index) { - return getStagesFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2beta.Stage.getDefaultInstance()); + public com.google.cloud.functions.v2beta.Stage.Builder addStagesBuilder( + int index) { + return getStagesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2beta.Stage.getDefaultInstance()); } /** - * - * *
                    * Mechanism for reporting in-progress stages
                    * 
              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public java.util.List getStagesBuilderList() { + public java.util.List + getStagesBuilderList() { return getStagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.Stage, - com.google.cloud.functions.v2beta.Stage.Builder, - com.google.cloud.functions.v2beta.StageOrBuilder> + com.google.cloud.functions.v2beta.Stage, com.google.cloud.functions.v2beta.Stage.Builder, com.google.cloud.functions.v2beta.StageOrBuilder> getStagesFieldBuilder() { if (stagesBuilder_ == null) { - stagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.Stage, - com.google.cloud.functions.v2beta.Stage.Builder, - com.google.cloud.functions.v2beta.StageOrBuilder>( - stages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.Stage, com.google.cloud.functions.v2beta.Stage.Builder, com.google.cloud.functions.v2beta.StageOrBuilder>( + stages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); stages_ = null; } return stagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2541,12 +2294,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.OperationMetadata) private static final com.google.cloud.functions.v2beta.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.OperationMetadata(); } @@ -2555,16 +2308,16 @@ public static com.google.cloud.functions.v2beta.OperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2579,4 +2332,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java similarity index 80% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java index 4325905e..5a4e57d4 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * 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 OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * The time the operation was created.
                  * 
              * * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
                  * The time the operation was created.
                  * 
              * * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
                  * The time the operation was created.
                  * 
              @@ -59,32 +35,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
                  * The time the operation finished running.
                  * 
              * * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
                  * The time the operation finished running.
                  * 
              * * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
                  * The time the operation finished running.
                  * 
              @@ -94,83 +62,66 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
                  * Server-defined resource path for the target of the operation.
                  * 
              * * string target = 3; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
                  * Server-defined resource path for the target of the operation.
                  * 
              * * string target = 3; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
                  * Name of the verb executed by the operation.
                  * 
              * * string verb = 4; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
                  * Name of the verb executed by the operation.
                  * 
              * * string verb = 4; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
                  * Human-readable status of the operation, if any.
                  * 
              * * string status_detail = 5; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
                  * Human-readable status of the operation, if any.
                  * 
              * * string status_detail = 5; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
                  * Identifies whether the user has requested cancellation
                  * of the operation. Operations that have successfully been cancelled
              @@ -179,63 +130,49 @@ public interface OperationMetadataOrBuilder
                  * 
              * * bool cancel_requested = 6; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
                  * API version used to start the operation.
                  * 
              * * string api_version = 7; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
                  * API version used to start the operation.
                  * 
              * * string api_version = 7; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); /** - * - * *
                  * The original request that started the operation.
                  * 
              * * .google.protobuf.Any request_resource = 8; - * * @return Whether the requestResource field is set. */ boolean hasRequestResource(); /** - * - * *
                  * The original request that started the operation.
                  * 
              * * .google.protobuf.Any request_resource = 8; - * * @return The requestResource. */ com.google.protobuf.Any getRequestResource(); /** - * - * *
                  * The original request that started the operation.
                  * 
              @@ -245,18 +182,15 @@ public interface OperationMetadataOrBuilder com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder(); /** - * - * *
                  * Mechanism for reporting in-progress stages
                  * 
              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - java.util.List getStagesList(); + java.util.List + getStagesList(); /** - * - * *
                  * Mechanism for reporting in-progress stages
                  * 
              @@ -265,8 +199,6 @@ public interface OperationMetadataOrBuilder */ com.google.cloud.functions.v2beta.Stage getStages(int index); /** - * - * *
                  * Mechanism for reporting in-progress stages
                  * 
              @@ -275,24 +207,21 @@ public interface OperationMetadataOrBuilder */ int getStagesCount(); /** - * - * *
                  * Mechanism for reporting in-progress stages
                  * 
              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - java.util.List + java.util.List getStagesOrBuilderList(); /** - * - * *
                  * Mechanism for reporting in-progress stages
                  * 
              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder(int index); + com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder( + int index); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java similarity index 74% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java index 8071eeaa..cb25708c 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * *
                * Location of the source in a Google Cloud Source Repository.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.RepoSource} */ -public final class RepoSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RepoSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.RepoSource) RepoSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RepoSource.newBuilder() to construct. private RepoSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RepoSource() { projectId_ = ""; repoName_ = ""; @@ -45,15 +27,16 @@ private RepoSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RepoSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RepoSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,60 +55,54 @@ private RepoSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - repoName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 3; - revision_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 4; - revision_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 5; - revision_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + repoName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 3; + revision_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 4; + revision_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 5; + revision_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - dir_ = s; - break; - } - case 56: - { - invertRegex_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + dir_ = s; + break; + } + case 56: { + + invertRegex_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -133,41 +110,36 @@ private RepoSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.RepoSource.class, - com.google.cloud.functions.v2beta.RepoSource.Builder.class); + com.google.cloud.functions.v2beta.RepoSource.class, com.google.cloud.functions.v2beta.RepoSource.Builder.class); } private int revisionCase_ = 0; private java.lang.Object revision_; - public enum RevisionCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BRANCH_NAME(3), TAG_NAME(4), COMMIT_SHA(5), REVISION_NOT_SET(0); private final int value; - private RevisionCase(int value) { this.value = value; } @@ -183,32 +155,26 @@ public static RevisionCase valueOf(int value) { public static RevisionCase forNumber(int value) { switch (value) { - case 3: - return BRANCH_NAME; - case 4: - return TAG_NAME; - case 5: - return COMMIT_SHA; - case 0: - return REVISION_NOT_SET; - default: - return null; + case 3: return BRANCH_NAME; + case 4: return TAG_NAME; + case 5: return COMMIT_SHA; + case 0: return REVISION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RevisionCase getRevisionCase() { - return RevisionCase.forNumber(revisionCase_); + public RevisionCase + getRevisionCase() { + return RevisionCase.forNumber( + revisionCase_); } public static final int BRANCH_NAME_FIELD_NUMBER = 3; /** - * - * *
                  * Regex matching branches to build.
                  * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -216,15 +182,12 @@ public RevisionCase getRevisionCase() {
                  * 
              * * string branch_name = 3; - * * @return Whether the branchName field is set. */ public boolean hasBranchName() { return revisionCase_ == 3; } /** - * - * *
                  * Regex matching branches to build.
                  * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -232,7 +195,6 @@ public boolean hasBranchName() {
                  * 
              * * string branch_name = 3; - * * @return The branchName. */ public java.lang.String getBranchName() { @@ -243,7 +205,8 @@ public java.lang.String getBranchName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 3) { revision_ = s; @@ -252,8 +215,6 @@ public java.lang.String getBranchName() { } } /** - * - * *
                  * Regex matching branches to build.
                  * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -261,17 +222,18 @@ public java.lang.String getBranchName() {
                  * 
              * * string branch_name = 3; - * * @return The bytes for branchName. */ - public com.google.protobuf.ByteString getBranchNameBytes() { + public com.google.protobuf.ByteString + getBranchNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 3) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (revisionCase_ == 3) { revision_ = b; } @@ -283,8 +245,6 @@ public com.google.protobuf.ByteString getBranchNameBytes() { public static final int TAG_NAME_FIELD_NUMBER = 4; /** - * - * *
                  * Regex matching tags to build.
                  * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -292,15 +252,12 @@ public com.google.protobuf.ByteString getBranchNameBytes() {
                  * 
              * * string tag_name = 4; - * * @return Whether the tagName field is set. */ public boolean hasTagName() { return revisionCase_ == 4; } /** - * - * *
                  * Regex matching tags to build.
                  * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -308,7 +265,6 @@ public boolean hasTagName() {
                  * 
              * * string tag_name = 4; - * * @return The tagName. */ public java.lang.String getTagName() { @@ -319,7 +275,8 @@ public java.lang.String getTagName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 4) { revision_ = s; @@ -328,8 +285,6 @@ public java.lang.String getTagName() { } } /** - * - * *
                  * Regex matching tags to build.
                  * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -337,17 +292,18 @@ public java.lang.String getTagName() {
                  * 
              * * string tag_name = 4; - * * @return The bytes for tagName. */ - public com.google.protobuf.ByteString getTagNameBytes() { + public com.google.protobuf.ByteString + getTagNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 4) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (revisionCase_ == 4) { revision_ = b; } @@ -359,28 +315,22 @@ public com.google.protobuf.ByteString getTagNameBytes() { public static final int COMMIT_SHA_FIELD_NUMBER = 5; /** - * - * *
                  * Explicit commit SHA to build.
                  * 
              * * string commit_sha = 5; - * * @return Whether the commitSha field is set. */ public boolean hasCommitSha() { return revisionCase_ == 5; } /** - * - * *
                  * Explicit commit SHA to build.
                  * 
              * * string commit_sha = 5; - * * @return The commitSha. */ public java.lang.String getCommitSha() { @@ -391,7 +341,8 @@ public java.lang.String getCommitSha() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 5) { revision_ = s; @@ -400,24 +351,23 @@ public java.lang.String getCommitSha() { } } /** - * - * *
                  * Explicit commit SHA to build.
                  * 
              * * string commit_sha = 5; - * * @return The bytes for commitSha. */ - public com.google.protobuf.ByteString getCommitShaBytes() { + public com.google.protobuf.ByteString + getCommitShaBytes() { java.lang.Object ref = ""; if (revisionCase_ == 5) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (revisionCase_ == 5) { revision_ = b; } @@ -430,15 +380,12 @@ public com.google.protobuf.ByteString getCommitShaBytes() { public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** - * - * *
                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                  * project ID requesting the build is assumed.
                  * 
              * * string project_id = 1; - * * @return The projectId. */ @java.lang.Override @@ -447,30 +394,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                  * project ID requesting the build is assumed.
                  * 
              * * string project_id = 1; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -481,14 +428,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int REPO_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object repoName_; /** - * - * *
                  * Name of the Cloud Source Repository.
                  * 
              * * string repo_name = 2; - * * @return The repoName. */ @java.lang.Override @@ -497,29 +441,29 @@ public java.lang.String getRepoName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); repoName_ = s; return s; } } /** - * - * *
                  * Name of the Cloud Source Repository.
                  * 
              * * string repo_name = 2; - * * @return The bytes for repoName. */ @java.lang.Override - public com.google.protobuf.ByteString getRepoNameBytes() { + public com.google.protobuf.ByteString + getRepoNameBytes() { java.lang.Object ref = repoName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); repoName_ = b; return b; } else { @@ -530,8 +474,6 @@ public com.google.protobuf.ByteString getRepoNameBytes() { public static final int DIR_FIELD_NUMBER = 6; private volatile java.lang.Object dir_; /** - * - * *
                  * 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
              @@ -540,7 +482,6 @@ public com.google.protobuf.ByteString getRepoNameBytes() {
                  * 
              * * string dir = 6; - * * @return The dir. */ @java.lang.Override @@ -549,15 +490,14 @@ public java.lang.String getDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dir_ = s; return s; } } /** - * - * *
                  * 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
              @@ -566,15 +506,16 @@ public java.lang.String getDir() {
                  * 
              * * string dir = 6; - * * @return The bytes for dir. */ @java.lang.Override - public com.google.protobuf.ByteString getDirBytes() { + public com.google.protobuf.ByteString + getDirBytes() { java.lang.Object ref = dir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dir_ = b; return b; } else { @@ -585,15 +526,12 @@ public com.google.protobuf.ByteString getDirBytes() { public static final int INVERT_REGEX_FIELD_NUMBER = 7; private boolean invertRegex_; /** - * - * *
                  * Only trigger a build if the revision regex does NOT match the revision
                  * regex.
                  * 
              * * bool invert_regex = 7; - * * @return The invertRegex. */ @java.lang.Override @@ -602,7 +540,6 @@ public boolean getInvertRegex() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -614,7 +551,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -664,7 +602,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dir_); } if (invertRegex_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, invertRegex_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, invertRegex_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -674,28 +613,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.RepoSource)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.RepoSource other = - (com.google.cloud.functions.v2beta.RepoSource) obj; + com.google.cloud.functions.v2beta.RepoSource other = (com.google.cloud.functions.v2beta.RepoSource) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRepoName().equals(other.getRepoName())) return false; - if (!getDir().equals(other.getDir())) return false; - if (getInvertRegex() != other.getInvertRegex()) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRepoName() + .equals(other.getRepoName())) return false; + if (!getDir() + .equals(other.getDir())) return false; + if (getInvertRegex() + != other.getInvertRegex()) return false; if (!getRevisionCase().equals(other.getRevisionCase())) return false; switch (revisionCase_) { case 3: - if (!getBranchName().equals(other.getBranchName())) return false; + if (!getBranchName() + .equals(other.getBranchName())) return false; break; case 4: - if (!getTagName().equals(other.getTagName())) return false; + if (!getTagName() + .equals(other.getTagName())) return false; break; case 5: - if (!getCommitSha().equals(other.getCommitSha())) return false; + if (!getCommitSha() + .equals(other.getCommitSha())) return false; break; case 0: default: @@ -718,7 +663,8 @@ public int hashCode() { hash = (37 * hash) + DIR_FIELD_NUMBER; hash = (53 * hash) + getDir().hashCode(); hash = (37 * hash) + INVERT_REGEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInvertRegex()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInvertRegex()); switch (revisionCase_) { case 3: hash = (37 * hash) + BRANCH_NAME_FIELD_NUMBER; @@ -740,127 +686,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.RepoSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.RepoSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.RepoSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.RepoSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.RepoSource 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.RepoSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.RepoSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.RepoSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.RepoSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.RepoSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.RepoSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.RepoSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.RepoSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.RepoSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.RepoSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Location of the source in a Google Cloud Source Repository.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.RepoSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.RepoSource) com.google.cloud.functions.v2beta.RepoSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.RepoSource.class, - com.google.cloud.functions.v2beta.RepoSource.Builder.class); + com.google.cloud.functions.v2beta.RepoSource.class, com.google.cloud.functions.v2beta.RepoSource.Builder.class); } // Construct using com.google.cloud.functions.v2beta.RepoSource.newBuilder() @@ -868,15 +805,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -894,9 +832,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; } @java.lang.Override @@ -915,8 +853,7 @@ public com.google.cloud.functions.v2beta.RepoSource build() { @java.lang.Override public com.google.cloud.functions.v2beta.RepoSource buildPartial() { - com.google.cloud.functions.v2beta.RepoSource result = - new com.google.cloud.functions.v2beta.RepoSource(this); + com.google.cloud.functions.v2beta.RepoSource result = new com.google.cloud.functions.v2beta.RepoSource(this); if (revisionCase_ == 3) { result.revision_ = revision_; } @@ -939,39 +876,38 @@ public com.google.cloud.functions.v2beta.RepoSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.RepoSource) other); + return mergeFrom((com.google.cloud.functions.v2beta.RepoSource)other); } else { super.mergeFrom(other); return this; @@ -996,31 +932,27 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.RepoSource other) { setInvertRegex(other.getInvertRegex()); } switch (other.getRevisionCase()) { - case BRANCH_NAME: - { - revisionCase_ = 3; - revision_ = other.revision_; - onChanged(); - break; - } - case TAG_NAME: - { - revisionCase_ = 4; - revision_ = other.revision_; - onChanged(); - break; - } - case COMMIT_SHA: - { - revisionCase_ = 5; - revision_ = other.revision_; - onChanged(); - break; - } - case REVISION_NOT_SET: - { - break; - } + case BRANCH_NAME: { + revisionCase_ = 3; + revision_ = other.revision_; + onChanged(); + break; + } + case TAG_NAME: { + revisionCase_ = 4; + revision_ = other.revision_; + onChanged(); + break; + } + case COMMIT_SHA: { + revisionCase_ = 5; + revision_ = other.revision_; + onChanged(); + break; + } + case REVISION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1050,12 +982,12 @@ public Builder mergeFrom( } return this; } - private int revisionCase_ = 0; private java.lang.Object revision_; - - public RevisionCase getRevisionCase() { - return RevisionCase.forNumber(revisionCase_); + public RevisionCase + getRevisionCase() { + return RevisionCase.forNumber( + revisionCase_); } public Builder clearRevision() { @@ -1065,9 +997,8 @@ public Builder clearRevision() { return this; } + /** - * - * *
                    * Regex matching branches to build.
                    * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -1075,7 +1006,6 @@ public Builder clearRevision() {
                    * 
              * * string branch_name = 3; - * * @return Whether the branchName field is set. */ @java.lang.Override @@ -1083,8 +1013,6 @@ public boolean hasBranchName() { return revisionCase_ == 3; } /** - * - * *
                    * Regex matching branches to build.
                    * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -1092,7 +1020,6 @@ public boolean hasBranchName() {
                    * 
              * * string branch_name = 3; - * * @return The branchName. */ @java.lang.Override @@ -1102,7 +1029,8 @@ public java.lang.String getBranchName() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 3) { revision_ = s; @@ -1113,8 +1041,6 @@ public java.lang.String getBranchName() { } } /** - * - * *
                    * Regex matching branches to build.
                    * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -1122,18 +1048,19 @@ public java.lang.String getBranchName() {
                    * 
              * * string branch_name = 3; - * * @return The bytes for branchName. */ @java.lang.Override - public com.google.protobuf.ByteString getBranchNameBytes() { + public com.google.protobuf.ByteString + getBranchNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 3) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (revisionCase_ == 3) { revision_ = b; } @@ -1143,8 +1070,6 @@ public com.google.protobuf.ByteString getBranchNameBytes() { } } /** - * - * *
                    * Regex matching branches to build.
                    * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -1152,22 +1077,20 @@ public com.google.protobuf.ByteString getBranchNameBytes() {
                    * 
              * * string branch_name = 3; - * * @param value The branchName to set. * @return This builder for chaining. */ - public Builder setBranchName(java.lang.String value) { + public Builder setBranchName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 3; + throw new NullPointerException(); + } + revisionCase_ = 3; revision_ = value; onChanged(); return this; } /** - * - * *
                    * Regex matching branches to build.
                    * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -1175,7 +1098,6 @@ public Builder setBranchName(java.lang.String value) {
                    * 
              * * string branch_name = 3; - * * @return This builder for chaining. */ public Builder clearBranchName() { @@ -1187,8 +1109,6 @@ public Builder clearBranchName() { return this; } /** - * - * *
                    * Regex matching branches to build.
                    * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -1196,15 +1116,15 @@ public Builder clearBranchName() {
                    * 
              * * string branch_name = 3; - * * @param value The bytes for branchName to set. * @return This builder for chaining. */ - public Builder setBranchNameBytes(com.google.protobuf.ByteString value) { + public Builder setBranchNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 3; revision_ = value; onChanged(); @@ -1212,8 +1132,6 @@ 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
              @@ -1221,7 +1139,6 @@ public Builder setBranchNameBytes(com.google.protobuf.ByteString value) {
                    * 
              * * string tag_name = 4; - * * @return Whether the tagName field is set. */ @java.lang.Override @@ -1229,8 +1146,6 @@ public boolean hasTagName() { return revisionCase_ == 4; } /** - * - * *
                    * Regex matching tags to build.
                    * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -1238,7 +1153,6 @@ public boolean hasTagName() {
                    * 
              * * string tag_name = 4; - * * @return The tagName. */ @java.lang.Override @@ -1248,7 +1162,8 @@ public java.lang.String getTagName() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 4) { revision_ = s; @@ -1259,8 +1174,6 @@ public java.lang.String getTagName() { } } /** - * - * *
                    * Regex matching tags to build.
                    * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -1268,18 +1181,19 @@ public java.lang.String getTagName() {
                    * 
              * * string tag_name = 4; - * * @return The bytes for tagName. */ @java.lang.Override - public com.google.protobuf.ByteString getTagNameBytes() { + public com.google.protobuf.ByteString + getTagNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 4) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (revisionCase_ == 4) { revision_ = b; } @@ -1289,8 +1203,6 @@ public com.google.protobuf.ByteString getTagNameBytes() { } } /** - * - * *
                    * Regex matching tags to build.
                    * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -1298,22 +1210,20 @@ public com.google.protobuf.ByteString getTagNameBytes() {
                    * 
              * * string tag_name = 4; - * * @param value The tagName to set. * @return This builder for chaining. */ - public Builder setTagName(java.lang.String value) { + public Builder setTagName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 4; + throw new NullPointerException(); + } + revisionCase_ = 4; revision_ = value; onChanged(); return this; } /** - * - * *
                    * Regex matching tags to build.
                    * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -1321,7 +1231,6 @@ public Builder setTagName(java.lang.String value) {
                    * 
              * * string tag_name = 4; - * * @return This builder for chaining. */ public Builder clearTagName() { @@ -1333,8 +1242,6 @@ public Builder clearTagName() { return this; } /** - * - * *
                    * Regex matching tags to build.
                    * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -1342,15 +1249,15 @@ public Builder clearTagName() {
                    * 
              * * string tag_name = 4; - * * @param value The bytes for tagName to set. * @return This builder for chaining. */ - public Builder setTagNameBytes(com.google.protobuf.ByteString value) { + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 4; revision_ = value; onChanged(); @@ -1358,14 +1265,11 @@ public Builder setTagNameBytes(com.google.protobuf.ByteString value) { } /** - * - * *
                    * Explicit commit SHA to build.
                    * 
              * * string commit_sha = 5; - * * @return Whether the commitSha field is set. */ @java.lang.Override @@ -1373,14 +1277,11 @@ public boolean hasCommitSha() { return revisionCase_ == 5; } /** - * - * *
                    * Explicit commit SHA to build.
                    * 
              * * string commit_sha = 5; - * * @return The commitSha. */ @java.lang.Override @@ -1390,7 +1291,8 @@ public java.lang.String getCommitSha() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 5) { revision_ = s; @@ -1401,25 +1303,24 @@ public java.lang.String getCommitSha() { } } /** - * - * *
                    * Explicit commit SHA to build.
                    * 
              * * string commit_sha = 5; - * * @return The bytes for commitSha. */ @java.lang.Override - public com.google.protobuf.ByteString getCommitShaBytes() { + public com.google.protobuf.ByteString + getCommitShaBytes() { java.lang.Object ref = ""; if (revisionCase_ == 5) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (revisionCase_ == 5) { revision_ = b; } @@ -1429,35 +1330,30 @@ public com.google.protobuf.ByteString getCommitShaBytes() { } } /** - * - * *
                    * Explicit commit SHA to build.
                    * 
              * * string commit_sha = 5; - * * @param value The commitSha to set. * @return This builder for chaining. */ - public Builder setCommitSha(java.lang.String value) { + public Builder setCommitSha( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 5; + throw new NullPointerException(); + } + revisionCase_ = 5; revision_ = value; onChanged(); return this; } /** - * - * *
                    * Explicit commit SHA to build.
                    * 
              * * string commit_sha = 5; - * * @return This builder for chaining. */ public Builder clearCommitSha() { @@ -1469,22 +1365,20 @@ public Builder clearCommitSha() { return this; } /** - * - * *
                    * Explicit commit SHA to build.
                    * 
              * * string commit_sha = 5; - * * @param value The bytes for commitSha to set. * @return This builder for chaining. */ - public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { + public Builder setCommitShaBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 5; revision_ = value; onChanged(); @@ -1493,21 +1387,19 @@ public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * *
                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                    * project ID requesting the build is assumed.
                    * 
              * * string project_id = 1; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1516,22 +1408,21 @@ public java.lang.String getProjectId() { } } /** - * - * *
                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                    * project ID requesting the build is assumed.
                    * 
              * * string project_id = 1; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1539,64 +1430,57 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                    * project ID requesting the build is assumed.
                    * 
              * * string project_id = 1; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                    * project ID requesting the build is assumed.
                    * 
              * * string project_id = 1; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                    * project ID requesting the build is assumed.
                    * 
              * * string project_id = 1; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1604,20 +1488,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object repoName_ = ""; /** - * - * *
                    * Name of the Cloud Source Repository.
                    * 
              * * string repo_name = 2; - * * @return The repoName. */ public java.lang.String getRepoName() { java.lang.Object ref = repoName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); repoName_ = s; return s; @@ -1626,21 +1508,20 @@ public java.lang.String getRepoName() { } } /** - * - * *
                    * Name of the Cloud Source Repository.
                    * 
              * * string repo_name = 2; - * * @return The bytes for repoName. */ - public com.google.protobuf.ByteString getRepoNameBytes() { + public com.google.protobuf.ByteString + getRepoNameBytes() { java.lang.Object ref = repoName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); repoName_ = b; return b; } else { @@ -1648,61 +1529,54 @@ public com.google.protobuf.ByteString getRepoNameBytes() { } } /** - * - * *
                    * Name of the Cloud Source Repository.
                    * 
              * * string repo_name = 2; - * * @param value The repoName to set. * @return This builder for chaining. */ - public Builder setRepoName(java.lang.String value) { + public Builder setRepoName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + repoName_ = value; onChanged(); return this; } /** - * - * *
                    * Name of the Cloud Source Repository.
                    * 
              * * string repo_name = 2; - * * @return This builder for chaining. */ public Builder clearRepoName() { - + repoName_ = getDefaultInstance().getRepoName(); onChanged(); return this; } /** - * - * *
                    * Name of the Cloud Source Repository.
                    * 
              * * string repo_name = 2; - * * @param value The bytes for repoName to set. * @return This builder for chaining. */ - public Builder setRepoNameBytes(com.google.protobuf.ByteString value) { + public Builder setRepoNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repoName_ = value; onChanged(); return this; @@ -1710,8 +1584,6 @@ public Builder setRepoNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object dir_ = ""; /** - * - * *
                    * 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
              @@ -1720,13 +1592,13 @@ public Builder setRepoNameBytes(com.google.protobuf.ByteString value) {
                    * 
              * * string dir = 6; - * * @return The dir. */ public java.lang.String getDir() { java.lang.Object ref = dir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dir_ = s; return s; @@ -1735,8 +1607,6 @@ 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
              @@ -1745,14 +1615,15 @@ public java.lang.String getDir() {
                    * 
              * * string dir = 6; - * * @return The bytes for dir. */ - public com.google.protobuf.ByteString getDirBytes() { + public com.google.protobuf.ByteString + getDirBytes() { java.lang.Object ref = dir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dir_ = b; return b; } else { @@ -1760,8 +1631,6 @@ 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
              @@ -1770,22 +1639,20 @@ public com.google.protobuf.ByteString getDirBytes() {
                    * 
              * * string dir = 6; - * * @param value The dir to set. * @return This builder for chaining. */ - public Builder setDir(java.lang.String value) { + public Builder setDir( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dir_ = value; onChanged(); return this; } /** - * - * *
                    * 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
              @@ -1794,18 +1661,15 @@ public Builder setDir(java.lang.String value) {
                    * 
              * * string dir = 6; - * * @return This builder for chaining. */ public Builder clearDir() { - + dir_ = getDefaultInstance().getDir(); onChanged(); return this; } /** - * - * *
                    * 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
              @@ -1814,32 +1678,29 @@ public Builder clearDir() {
                    * 
              * * string dir = 6; - * * @param value The bytes for dir to set. * @return This builder for chaining. */ - public Builder setDirBytes(com.google.protobuf.ByteString value) { + public Builder setDirBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dir_ = value; onChanged(); return this; } - private boolean invertRegex_; + private boolean invertRegex_ ; /** - * - * *
                    * Only trigger a build if the revision regex does NOT match the revision
                    * regex.
                    * 
              * * bool invert_regex = 7; - * * @return The invertRegex. */ @java.lang.Override @@ -1847,45 +1708,39 @@ public boolean getInvertRegex() { return invertRegex_; } /** - * - * *
                    * Only trigger a build if the revision regex does NOT match the revision
                    * regex.
                    * 
              * * bool invert_regex = 7; - * * @param value The invertRegex to set. * @return This builder for chaining. */ public Builder setInvertRegex(boolean value) { - + invertRegex_ = value; onChanged(); return this; } /** - * - * *
                    * Only trigger a build if the revision regex does NOT match the revision
                    * regex.
                    * 
              * * bool invert_regex = 7; - * * @return This builder for chaining. */ public Builder clearInvertRegex() { - + invertRegex_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1895,12 +1750,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.RepoSource) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.RepoSource) private static final com.google.cloud.functions.v2beta.RepoSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.RepoSource(); } @@ -1909,16 +1764,16 @@ public static com.google.cloud.functions.v2beta.RepoSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepoSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RepoSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepoSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RepoSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1933,4 +1788,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.RepoSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java similarity index 79% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java index 1b000682..dd3fb54b 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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 RepoSourceOrBuilder - extends +public interface RepoSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.RepoSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * Regex matching branches to build.
                  * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -33,13 +15,10 @@ public interface RepoSourceOrBuilder
                  * 
              * * string branch_name = 3; - * * @return Whether the branchName field is set. */ boolean hasBranchName(); /** - * - * *
                  * Regex matching branches to build.
                  * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -47,13 +26,10 @@ public interface RepoSourceOrBuilder
                  * 
              * * string branch_name = 3; - * * @return The branchName. */ java.lang.String getBranchName(); /** - * - * *
                  * Regex matching branches to build.
                  * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -61,14 +37,12 @@ public interface RepoSourceOrBuilder
                  * 
              * * string branch_name = 3; - * * @return The bytes for branchName. */ - com.google.protobuf.ByteString getBranchNameBytes(); + com.google.protobuf.ByteString + getBranchNameBytes(); /** - * - * *
                  * Regex matching tags to build.
                  * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -76,13 +50,10 @@ public interface RepoSourceOrBuilder
                  * 
              * * string tag_name = 4; - * * @return Whether the tagName field is set. */ boolean hasTagName(); /** - * - * *
                  * Regex matching tags to build.
                  * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -90,13 +61,10 @@ public interface RepoSourceOrBuilder
                  * 
              * * string tag_name = 4; - * * @return The tagName. */ java.lang.String getTagName(); /** - * - * *
                  * Regex matching tags to build.
                  * The syntax of the regular expressions accepted is the syntax accepted by
              @@ -104,103 +72,83 @@ public interface RepoSourceOrBuilder
                  * 
              * * string tag_name = 4; - * * @return The bytes for tagName. */ - com.google.protobuf.ByteString getTagNameBytes(); + com.google.protobuf.ByteString + getTagNameBytes(); /** - * - * *
                  * Explicit commit SHA to build.
                  * 
              * * string commit_sha = 5; - * * @return Whether the commitSha field is set. */ boolean hasCommitSha(); /** - * - * *
                  * Explicit commit SHA to build.
                  * 
              * * string commit_sha = 5; - * * @return The commitSha. */ java.lang.String getCommitSha(); /** - * - * *
                  * Explicit commit SHA to build.
                  * 
              * * string commit_sha = 5; - * * @return The bytes for commitSha. */ - com.google.protobuf.ByteString getCommitShaBytes(); + com.google.protobuf.ByteString + getCommitShaBytes(); /** - * - * *
                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                  * project ID requesting the build is assumed.
                  * 
              * * string project_id = 1; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                  * project ID requesting the build is assumed.
                  * 
              * * string project_id = 1; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
                  * Name of the Cloud Source Repository.
                  * 
              * * string repo_name = 2; - * * @return The repoName. */ java.lang.String getRepoName(); /** - * - * *
                  * Name of the Cloud Source Repository.
                  * 
              * * string repo_name = 2; - * * @return The bytes for repoName. */ - com.google.protobuf.ByteString getRepoNameBytes(); + 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
              @@ -209,13 +157,10 @@ public interface RepoSourceOrBuilder
                  * 
              * * string dir = 6; - * * @return The dir. */ 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
              @@ -224,21 +169,18 @@ public interface RepoSourceOrBuilder
                  * 
              * * string dir = 6; - * * @return The bytes for dir. */ - com.google.protobuf.ByteString getDirBytes(); + com.google.protobuf.ByteString + getDirBytes(); /** - * - * *
                  * Only trigger a build if the revision regex does NOT match the revision
                  * regex.
                  * 
              * * bool invert_regex = 7; - * * @return The invertRegex. */ boolean getInvertRegex(); diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java similarity index 73% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java index 162e600c..4873ee92 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * *
                * Configuration for a secret environment variable. It has the information
                * necessary to fetch the secret value from secret manager and expose it as an
              @@ -29,16 +12,15 @@
                *
                * Protobuf type {@code google.cloud.functions.v2beta.SecretEnvVar}
                */
              -public final class SecretEnvVar extends com.google.protobuf.GeneratedMessageV3
              -    implements
              +public final class SecretEnvVar extends
              +    com.google.protobuf.GeneratedMessageV3 implements
                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.SecretEnvVar)
                   SecretEnvVarOrBuilder {
              -  private static final long serialVersionUID = 0L;
              +private static final long serialVersionUID = 0L;
                 // Use SecretEnvVar.newBuilder() to construct.
                 private SecretEnvVar(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
              -
                 private SecretEnvVar() {
                   key_ = "";
                   projectId_ = "";
              @@ -48,15 +30,16 @@ private SecretEnvVar() {
               
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
              -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
              +  protected java.lang.Object newInstance(
              +      UnusedPrivateParameter unused) {
                   return new SecretEnvVar();
                 }
               
                 @java.lang.Override
              -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
              +  public final com.google.protobuf.UnknownFieldSet
              +  getUnknownFields() {
                   return this.unknownFields;
                 }
              -
                 private SecretEnvVar(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              @@ -75,41 +58,37 @@ private SecretEnvVar(
                         case 0:
                           done = true;
                           break;
              -          case 10:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +          case 10: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              key_ = s;
              -              break;
              -            }
              -          case 18:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            key_ = s;
              +            break;
              +          }
              +          case 18: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              projectId_ = s;
              -              break;
              -            }
              -          case 26:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            projectId_ = s;
              +            break;
              +          }
              +          case 26: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              secret_ = s;
              -              break;
              -            }
              -          case 34:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            secret_ = s;
              +            break;
              +          }
              +          case 34: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              version_ = s;
              -              break;
              -            }
              -          default:
              -            {
              -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
              -                done = true;
              -              }
              -              break;
              +            version_ = s;
              +            break;
              +          }
              +          default: {
              +            if (!parseUnknownField(
              +                input, unknownFields, extensionRegistry, tag)) {
              +              done = true;
                           }
              +            break;
              +          }
                       }
                     }
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              @@ -117,39 +96,34 @@ private SecretEnvVar(
                   } catch (com.google.protobuf.UninitializedMessageException e) {
                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                   } catch (java.io.IOException e) {
              -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
              +      throw new com.google.protobuf.InvalidProtocolBufferException(
              +          e).setUnfinishedMessage(this);
                   } finally {
                     this.unknownFields = unknownFields.build();
                     makeExtensionsImmutable();
                   }
                 }
              -
              -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor;
              +  public static final com.google.protobuf.Descriptors.Descriptor
              +      getDescriptor() {
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor;
                 }
               
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
              -            com.google.cloud.functions.v2beta.SecretEnvVar.class,
              -            com.google.cloud.functions.v2beta.SecretEnvVar.Builder.class);
              +            com.google.cloud.functions.v2beta.SecretEnvVar.class, com.google.cloud.functions.v2beta.SecretEnvVar.Builder.class);
                 }
               
                 public static final int KEY_FIELD_NUMBER = 1;
                 private volatile java.lang.Object key_;
                 /**
              -   *
              -   *
                  * 
                  * Name of the environment variable.
                  * 
              * * string key = 1; - * * @return The key. */ @java.lang.Override @@ -158,29 +132,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
                  * Name of the environment variable.
                  * 
              * * string key = 1; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -191,8 +165,6 @@ public com.google.protobuf.ByteString getKeyBytes() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** - * - * *
                  * Project identifier (preferably project number but can also be the
                  * project ID) of the project that contains the secret. If not set, it is
              @@ -200,7 +172,6 @@ public com.google.protobuf.ByteString getKeyBytes() {
                  * 
              * * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -209,15 +180,14 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
                  * Project identifier (preferably project number but can also be the
                  * project ID) of the project that contains the secret. If not set, it is
              @@ -225,15 +195,16 @@ public java.lang.String getProjectId() {
                  * 
              * * string project_id = 2; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -244,14 +215,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** - * - * *
                  * Name of the secret in secret manager (not the full resource name).
                  * 
              * * string secret = 3; - * * @return The secret. */ @java.lang.Override @@ -260,29 +228,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** - * - * *
                  * Name of the secret in secret manager (not the full resource name).
                  * 
              * * string secret = 3; - * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString getSecretBytes() { + public com.google.protobuf.ByteString + getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secret_ = b; return b; } else { @@ -293,8 +261,6 @@ public com.google.protobuf.ByteString getSecretBytes() { public static final int VERSION_FIELD_NUMBER = 4; private volatile java.lang.Object version_; /** - * - * *
                  * Version of the secret (version number or the string 'latest'). It is
                  * recommended to use a numeric version for secret environment variables as
              @@ -303,7 +269,6 @@ public com.google.protobuf.ByteString getSecretBytes() {
                  * 
              * * string version = 4; - * * @return The version. */ @java.lang.Override @@ -312,15 +277,14 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
                  * Version of the secret (version number or the string 'latest'). It is
                  * recommended to use a numeric version for secret environment variables as
              @@ -329,15 +293,16 @@ public java.lang.String getVersion() {
                  * 
              * * string version = 4; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -346,7 +311,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,7 +322,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -400,18 +365,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.SecretEnvVar)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.SecretEnvVar other = - (com.google.cloud.functions.v2beta.SecretEnvVar) obj; - - if (!getKey().equals(other.getKey())) return false; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getSecret().equals(other.getSecret())) return false; - if (!getVersion().equals(other.getVersion())) return false; + com.google.cloud.functions.v2beta.SecretEnvVar other = (com.google.cloud.functions.v2beta.SecretEnvVar) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getSecret() + .equals(other.getSecret())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -436,104 +404,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SecretEnvVar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.SecretEnvVar 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.SecretEnvVar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.SecretEnvVar parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.SecretEnvVar parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.SecretEnvVar parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.SecretEnvVar prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Configuration for a secret environment variable. It has the information
                  * necessary to fetch the secret value from secret manager and expose it as an
              @@ -542,23 +503,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                  *
                  * Protobuf type {@code google.cloud.functions.v2beta.SecretEnvVar}
                  */
              -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
              -      implements
              +  public static final class Builder extends
              +      com.google.protobuf.GeneratedMessageV3.Builder implements
                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.SecretEnvVar)
                     com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder {
              -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor;
              +    public static final com.google.protobuf.Descriptors.Descriptor
              +        getDescriptor() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor;
                   }
               
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
              -              com.google.cloud.functions.v2beta.SecretEnvVar.class,
              -              com.google.cloud.functions.v2beta.SecretEnvVar.Builder.class);
              +              com.google.cloud.functions.v2beta.SecretEnvVar.class, com.google.cloud.functions.v2beta.SecretEnvVar.Builder.class);
                   }
               
                   // Construct using com.google.cloud.functions.v2beta.SecretEnvVar.newBuilder()
              @@ -566,15 +525,16 @@ private Builder() {
                     maybeForceBuilderInitialization();
                   }
               
              -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
              +    private Builder(
              +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                     super(parent);
                     maybeForceBuilderInitialization();
                   }
              -
                   private void maybeForceBuilderInitialization() {
              -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
              +      if (com.google.protobuf.GeneratedMessageV3
              +              .alwaysUseFieldBuilders) {
              +      }
                   }
              -
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
              @@ -590,9 +550,9 @@ public Builder clear() {
                   }
               
                   @java.lang.Override
              -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor;
              +    public com.google.protobuf.Descriptors.Descriptor
              +        getDescriptorForType() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor;
                   }
               
                   @java.lang.Override
              @@ -611,8 +571,7 @@ public com.google.cloud.functions.v2beta.SecretEnvVar build() {
               
                   @java.lang.Override
                   public com.google.cloud.functions.v2beta.SecretEnvVar buildPartial() {
              -      com.google.cloud.functions.v2beta.SecretEnvVar result =
              -          new com.google.cloud.functions.v2beta.SecretEnvVar(this);
              +      com.google.cloud.functions.v2beta.SecretEnvVar result = new com.google.cloud.functions.v2beta.SecretEnvVar(this);
                     result.key_ = key_;
                     result.projectId_ = projectId_;
                     result.secret_ = secret_;
              @@ -625,39 +584,38 @@ public com.google.cloud.functions.v2beta.SecretEnvVar buildPartial() {
                   public Builder clone() {
                     return super.clone();
                   }
              -
                   @java.lang.Override
                   public Builder setField(
              -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
              +        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) {
              +    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) {
              +    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) {
              +        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) {
              +        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) {
              -        return mergeFrom((com.google.cloud.functions.v2beta.SecretEnvVar) other);
              +        return mergeFrom((com.google.cloud.functions.v2beta.SecretEnvVar)other);
                     } else {
                       super.mergeFrom(other);
                       return this;
              @@ -713,20 +671,18 @@ public Builder mergeFrom(
               
                   private java.lang.Object key_ = "";
                   /**
              -     *
              -     *
                    * 
                    * Name of the environment variable.
                    * 
              * * string key = 1; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -735,21 +691,20 @@ public java.lang.String getKey() { } } /** - * - * *
                    * Name of the environment variable.
                    * 
              * * string key = 1; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -757,61 +712,54 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
                    * Name of the environment variable.
                    * 
              * * string key = 1; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { + public Builder setKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** - * - * *
                    * Name of the environment variable.
                    * 
              * * string key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** - * - * *
                    * Name of the environment variable.
                    * 
              * * string key = 1; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -819,8 +767,6 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * *
                    * Project identifier (preferably project number but can also be the
                    * project ID) of the project that contains the secret. If not set, it is
              @@ -828,13 +774,13 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) {
                    * 
              * * string project_id = 2; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -843,8 +789,6 @@ public java.lang.String getProjectId() { } } /** - * - * *
                    * Project identifier (preferably project number but can also be the
                    * project ID) of the project that contains the secret. If not set, it is
              @@ -852,14 +796,15 @@ public java.lang.String getProjectId() {
                    * 
              * * string project_id = 2; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -867,8 +812,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
                    * Project identifier (preferably project number but can also be the
                    * project ID) of the project that contains the secret. If not set, it is
              @@ -876,22 +819,20 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
                    * 
              * * string project_id = 2; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
                    * Project identifier (preferably project number but can also be the
                    * project ID) of the project that contains the secret. If not set, it is
              @@ -899,18 +840,15 @@ public Builder setProjectId(java.lang.String value) {
                    * 
              * * string project_id = 2; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
                    * Project identifier (preferably project number but can also be the
                    * project ID) of the project that contains the secret. If not set, it is
              @@ -918,16 +856,16 @@ public Builder clearProjectId() {
                    * 
              * * string project_id = 2; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -935,20 +873,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object secret_ = ""; /** - * - * *
                    * Name of the secret in secret manager (not the full resource name).
                    * 
              * * string secret = 3; - * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -957,21 +893,20 @@ public java.lang.String getSecret() { } } /** - * - * *
                    * Name of the secret in secret manager (not the full resource name).
                    * 
              * * string secret = 3; - * * @return The bytes for secret. */ - public com.google.protobuf.ByteString getSecretBytes() { + public com.google.protobuf.ByteString + getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secret_ = b; return b; } else { @@ -979,61 +914,54 @@ public com.google.protobuf.ByteString getSecretBytes() { } } /** - * - * *
                    * Name of the secret in secret manager (not the full resource name).
                    * 
              * * string secret = 3; - * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret(java.lang.String value) { + public Builder setSecret( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** - * - * *
                    * Name of the secret in secret manager (not the full resource name).
                    * 
              * * string secret = 3; - * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** - * - * *
                    * Name of the secret in secret manager (not the full resource name).
                    * 
              * * string secret = 3; - * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes(com.google.protobuf.ByteString value) { + public Builder setSecretBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; @@ -1041,8 +969,6 @@ public Builder setSecretBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
                    * Version of the secret (version number or the string 'latest'). It is
                    * recommended to use a numeric version for secret environment variables as
              @@ -1051,13 +977,13 @@ public Builder setSecretBytes(com.google.protobuf.ByteString value) {
                    * 
              * * string version = 4; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1066,8 +992,6 @@ public java.lang.String getVersion() { } } /** - * - * *
                    * Version of the secret (version number or the string 'latest'). It is
                    * recommended to use a numeric version for secret environment variables as
              @@ -1076,14 +1000,15 @@ public java.lang.String getVersion() {
                    * 
              * * string version = 4; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -1091,8 +1016,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
                    * Version of the secret (version number or the string 'latest'). It is
                    * recommended to use a numeric version for secret environment variables as
              @@ -1101,22 +1024,20 @@ public com.google.protobuf.ByteString getVersionBytes() {
                    * 
              * * string version = 4; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
                    * Version of the secret (version number or the string 'latest'). It is
                    * recommended to use a numeric version for secret environment variables as
              @@ -1125,18 +1046,15 @@ public Builder setVersion(java.lang.String value) {
                    * 
              * * string version = 4; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
                    * Version of the secret (version number or the string 'latest'). It is
                    * recommended to use a numeric version for secret environment variables as
              @@ -1145,23 +1063,23 @@ public Builder clearVersion() {
                    * 
              * * string version = 4; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1171,12 +1089,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.SecretEnvVar) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.SecretEnvVar) private static final com.google.cloud.functions.v2beta.SecretEnvVar DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.SecretEnvVar(); } @@ -1185,16 +1103,16 @@ public static com.google.cloud.functions.v2beta.SecretEnvVar getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretEnvVar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretEnvVar(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretEnvVar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretEnvVar(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1209,4 +1127,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.SecretEnvVar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java similarity index 71% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java index 1bd7bf7b..65dd90a9 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java @@ -1,56 +1,33 @@ -/* - * 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 SecretEnvVarOrBuilder - extends +public interface SecretEnvVarOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.SecretEnvVar) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * Name of the environment variable.
                  * 
              * * string key = 1; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
                  * Name of the environment variable.
                  * 
              * * string key = 1; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** - * - * *
                  * Project identifier (preferably project number but can also be the
                  * project ID) of the project that contains the secret. If not set, it is
              @@ -58,13 +35,10 @@ public interface SecretEnvVarOrBuilder
                  * 
              * * string project_id = 2; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
                  * Project identifier (preferably project number but can also be the
                  * project ID) of the project that contains the secret. If not set, it is
              @@ -72,39 +46,32 @@ public interface SecretEnvVarOrBuilder
                  * 
              * * string project_id = 2; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
                  * Name of the secret in secret manager (not the full resource name).
                  * 
              * * string secret = 3; - * * @return The secret. */ java.lang.String getSecret(); /** - * - * *
                  * Name of the secret in secret manager (not the full resource name).
                  * 
              * * string secret = 3; - * * @return The bytes for secret. */ - com.google.protobuf.ByteString getSecretBytes(); + com.google.protobuf.ByteString + getSecretBytes(); /** - * - * *
                  * Version of the secret (version number or the string 'latest'). It is
                  * recommended to use a numeric version for secret environment variables as
              @@ -113,13 +80,10 @@ public interface SecretEnvVarOrBuilder
                  * 
              * * string version = 4; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
                  * Version of the secret (version number or the string 'latest'). It is
                  * recommended to use a numeric version for secret environment variables as
              @@ -128,8 +92,8 @@ public interface SecretEnvVarOrBuilder
                  * 
              * * string version = 4; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java similarity index 76% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java index 56eef89d..ff52bd97 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * *
                * Configuration for a secret volume. It has the information necessary to fetch
                * the secret value from secret manager and make it available as files mounted
              @@ -29,16 +12,15 @@
                *
                * Protobuf type {@code google.cloud.functions.v2beta.SecretVolume}
                */
              -public final class SecretVolume extends com.google.protobuf.GeneratedMessageV3
              -    implements
              +public final class SecretVolume extends
              +    com.google.protobuf.GeneratedMessageV3 implements
                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.SecretVolume)
                   SecretVolumeOrBuilder {
              -  private static final long serialVersionUID = 0L;
              +private static final long serialVersionUID = 0L;
                 // Use SecretVolume.newBuilder() to construct.
                 private SecretVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
              -
                 private SecretVolume() {
                   mountPath_ = "";
                   projectId_ = "";
              @@ -48,15 +30,16 @@ private SecretVolume() {
               
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
              -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
              +  protected java.lang.Object newInstance(
              +      UnusedPrivateParameter unused) {
                   return new SecretVolume();
                 }
               
                 @java.lang.Override
              -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
              +  public final com.google.protobuf.UnknownFieldSet
              +  getUnknownFields() {
                   return this.unknownFields;
                 }
              -
                 private SecretVolume(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              @@ -76,48 +59,40 @@ private SecretVolume(
                         case 0:
                           done = true;
                           break;
              -          case 10:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +          case 10: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              mountPath_ = s;
              -              break;
              -            }
              -          case 18:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            mountPath_ = s;
              +            break;
              +          }
              +          case 18: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              projectId_ = s;
              -              break;
              -            }
              -          case 26:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            projectId_ = s;
              +            break;
              +          }
              +          case 26: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              secret_ = s;
              -              break;
              -            }
              -          case 34:
              -            {
              -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              -                versions_ =
              -                    new java.util.ArrayList<
              -                        com.google.cloud.functions.v2beta.SecretVolume.SecretVersion>();
              -                mutable_bitField0_ |= 0x00000001;
              -              }
              -              versions_.add(
              -                  input.readMessage(
              -                      com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.parser(),
              -                      extensionRegistry));
              -              break;
              +            secret_ = s;
              +            break;
              +          }
              +          case 34: {
              +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              +              versions_ = new java.util.ArrayList();
              +              mutable_bitField0_ |= 0x00000001;
                           }
              -          default:
              -            {
              -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
              -                done = true;
              -              }
              -              break;
              +            versions_.add(
              +                input.readMessage(com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.parser(), extensionRegistry));
              +            break;
              +          }
              +          default: {
              +            if (!parseUnknownField(
              +                input, unknownFields, extensionRegistry, tag)) {
              +              done = true;
                           }
              +            break;
              +          }
                       }
                     }
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              @@ -125,7 +100,8 @@ private SecretVolume(
                   } catch (com.google.protobuf.UninitializedMessageException e) {
                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                   } catch (java.io.IOException e) {
              -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
              +      throw new com.google.protobuf.InvalidProtocolBufferException(
              +          e).setUnfinishedMessage(this);
                   } finally {
                     if (((mutable_bitField0_ & 0x00000001) != 0)) {
                       versions_ = java.util.Collections.unmodifiableList(versions_);
              @@ -134,30 +110,24 @@ private SecretVolume(
                     makeExtensionsImmutable();
                   }
                 }
              -
              -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor;
              +  public static final com.google.protobuf.Descriptors.Descriptor
              +      getDescriptor() {
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor;
                 }
               
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
              -            com.google.cloud.functions.v2beta.SecretVolume.class,
              -            com.google.cloud.functions.v2beta.SecretVolume.Builder.class);
              +            com.google.cloud.functions.v2beta.SecretVolume.class, com.google.cloud.functions.v2beta.SecretVolume.Builder.class);
                 }
               
              -  public interface SecretVersionOrBuilder
              -      extends
              +  public interface SecretVersionOrBuilder extends
                     // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.SecretVolume.SecretVersion)
                     com.google.protobuf.MessageOrBuilder {
               
                   /**
              -     *
              -     *
                    * 
                    * Version of the secret (version number or the string 'latest'). It is
                    * preferable to use `latest` version with secret volumes as secret value
              @@ -165,13 +135,10 @@ public interface SecretVersionOrBuilder
                    * 
              * * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
                    * Version of the secret (version number or the string 'latest'). It is
                    * preferable to use `latest` version with secret volumes as secret value
              @@ -179,14 +146,12 @@ public interface SecretVersionOrBuilder
                    * 
              * * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
                    * Relative path of the file under the mount path where the secret value for
                    * this version will be fetched and made available. For example, setting the
              @@ -195,13 +160,10 @@ public interface SecretVersionOrBuilder
                    * 
              * * string path = 2; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
                    * Relative path of the file under the mount path where the secret value for
                    * this version will be fetched and made available. For example, setting the
              @@ -210,30 +172,27 @@ public interface SecretVersionOrBuilder
                    * 
              * * string path = 2; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); } /** - * - * *
                  * Configuration for a single version.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.SecretVolume.SecretVersion} */ - public static final class SecretVersion extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SecretVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.SecretVolume.SecretVersion) SecretVersionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SecretVersion.newBuilder() to construct. private SecretVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SecretVersion() { version_ = ""; path_ = ""; @@ -241,15 +200,16 @@ private SecretVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SecretVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SecretVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -268,27 +228,25 @@ private SecretVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + version_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - path_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + path_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -296,33 +254,29 @@ private SecretVersion( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.class, - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.class, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
                    * Version of the secret (version number or the string 'latest'). It is
                    * preferable to use `latest` version with secret volumes as secret value
              @@ -330,7 +284,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                    * 
              * * string version = 1; - * * @return The version. */ @java.lang.Override @@ -339,15 +292,14 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
                    * Version of the secret (version number or the string 'latest'). It is
                    * preferable to use `latest` version with secret volumes as secret value
              @@ -355,15 +307,16 @@ public java.lang.String getVersion() {
                    * 
              * * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -374,8 +327,6 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** - * - * *
                    * Relative path of the file under the mount path where the secret value for
                    * this version will be fetched and made available. For example, setting the
              @@ -384,7 +335,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
                    * 
              * * string path = 2; - * * @return The path. */ @java.lang.Override @@ -393,15 +343,14 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** - * - * *
                    * Relative path of the file under the mount path where the secret value for
                    * this version will be fetched and made available. For example, setting the
              @@ -410,15 +359,16 @@ public java.lang.String getPath() {
                    * 
              * * string path = 2; - * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -427,7 +377,6 @@ public com.google.protobuf.ByteString getPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,7 +388,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } @@ -469,16 +419,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.SecretVolume.SecretVersion)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion other = - (com.google.cloud.functions.v2beta.SecretVolume.SecretVersion) obj; + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion other = (com.google.cloud.functions.v2beta.SecretVolume.SecretVersion) obj; - if (!getVersion().equals(other.getVersion())) return false; - if (!getPath().equals(other.getPath())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getPath() + .equals(other.getPath())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -500,94 +451,87 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SecretVolume.SecretVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion 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.SecretVolume.SecretVersion parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion prototype) { + public static Builder newBuilder(com.google.cloud.functions.v2beta.SecretVolume.SecretVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -597,32 +541,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                    * Configuration for a single version.
                    * 
              * * Protobuf type {@code google.cloud.functions.v2beta.SecretVolume.SecretVersion} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.SecretVolume.SecretVersion) com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder { - 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; + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.class, - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.class, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder.class); } // Construct using com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.newBuilder() @@ -630,15 +569,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -650,14 +590,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion - getDefaultInstanceForType() { + public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion getDefaultInstanceForType() { return com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance(); } @@ -672,8 +611,7 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion build() { @java.lang.Override public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion buildPartial() { - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion result = - new com.google.cloud.functions.v2beta.SecretVolume.SecretVersion(this); + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion result = new com.google.cloud.functions.v2beta.SecretVolume.SecretVersion(this); result.version_ = version_; result.path_ = path_; onBuilt(); @@ -684,41 +622,38 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.SecretVolume.SecretVersion) other); + return mergeFrom((com.google.cloud.functions.v2beta.SecretVolume.SecretVersion)other); } else { super.mergeFrom(other); return this; @@ -726,9 +661,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.SecretVolume.SecretVersion other) { - if (other - == com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -756,9 +689,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.SecretVolume.SecretVersion) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.SecretVolume.SecretVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -770,8 +701,6 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** - * - * *
                      * Version of the secret (version number or the string 'latest'). It is
                      * preferable to use `latest` version with secret volumes as secret value
              @@ -779,13 +708,13 @@ public Builder mergeFrom(
                      * 
              * * string version = 1; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -794,8 +723,6 @@ public java.lang.String getVersion() { } } /** - * - * *
                      * Version of the secret (version number or the string 'latest'). It is
                      * preferable to use `latest` version with secret volumes as secret value
              @@ -803,14 +730,15 @@ public java.lang.String getVersion() {
                      * 
              * * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -818,8 +746,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
                      * Version of the secret (version number or the string 'latest'). It is
                      * preferable to use `latest` version with secret volumes as secret value
              @@ -827,22 +753,20 @@ public com.google.protobuf.ByteString getVersionBytes() {
                      * 
              * * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
                      * Version of the secret (version number or the string 'latest'). It is
                      * preferable to use `latest` version with secret volumes as secret value
              @@ -850,18 +774,15 @@ public Builder setVersion(java.lang.String value) {
                      * 
              * * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
                      * Version of the secret (version number or the string 'latest'). It is
                      * preferable to use `latest` version with secret volumes as secret value
              @@ -869,16 +790,16 @@ public Builder clearVersion() {
                      * 
              * * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -886,8 +807,6 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object path_ = ""; /** - * - * *
                      * Relative path of the file under the mount path where the secret value for
                      * this version will be fetched and made available. For example, setting the
              @@ -896,13 +815,13 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
                      * 
              * * string path = 2; - * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -911,8 +830,6 @@ public java.lang.String getPath() { } } /** - * - * *
                      * Relative path of the file under the mount path where the secret value for
                      * this version will be fetched and made available. For example, setting the
              @@ -921,14 +838,15 @@ public java.lang.String getPath() {
                      * 
              * * string path = 2; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -936,8 +854,6 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
                      * Relative path of the file under the mount path where the secret value for
                      * this version will be fetched and made available. For example, setting the
              @@ -946,22 +862,20 @@ public com.google.protobuf.ByteString getPathBytes() {
                      * 
              * * string path = 2; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { + public Builder setPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** - * - * *
                      * Relative path of the file under the mount path where the secret value for
                      * this version will be fetched and made available. For example, setting the
              @@ -970,18 +884,15 @@ public Builder setPath(java.lang.String value) {
                      * 
              * * string path = 2; - * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** - * - * *
                      * Relative path of the file under the mount path where the secret value for
                      * this version will be fetched and made available. For example, setting the
              @@ -990,21 +901,20 @@ public Builder clearPath() {
                      * 
              * * string path = 2; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { + public Builder setPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1017,32 +927,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.SecretVolume.SecretVersion) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.SecretVolume.SecretVersion) - private static final com.google.cloud.functions.v2beta.SecretVolume.SecretVersion - DEFAULT_INSTANCE; - + private static final com.google.cloud.functions.v2beta.SecretVolume.SecretVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.SecretVolume.SecretVersion(); } - public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion - getDefaultInstance() { + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1054,17 +962,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion - getDefaultInstanceForType() { + public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int MOUNT_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object mountPath_; /** - * - * *
                  * The path within the container to mount the secret volume. For example,
                  * setting the mount_path as `/etc/secrets` would mount the secret value files
              @@ -1074,7 +980,6 @@ public com.google.protobuf.Parser getParserForType() {
                  * 
              * * string mount_path = 1; - * * @return The mountPath. */ @java.lang.Override @@ -1083,15 +988,14 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** - * - * *
                  * The path within the container to mount the secret volume. For example,
                  * setting the mount_path as `/etc/secrets` would mount the secret value files
              @@ -1101,15 +1005,16 @@ public java.lang.String getMountPath() {
                  * 
              * * string mount_path = 1; - * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1120,8 +1025,6 @@ public com.google.protobuf.ByteString getMountPathBytes() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** - * - * *
                  * Project identifier (preferably project number but can also be the project
                  * ID) of the project that contains the secret. If not set, it is
              @@ -1129,7 +1032,6 @@ public com.google.protobuf.ByteString getMountPathBytes() {
                  * 
              * * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -1138,15 +1040,14 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
                  * Project identifier (preferably project number but can also be the project
                  * ID) of the project that contains the secret. If not set, it is
              @@ -1154,15 +1055,16 @@ public java.lang.String getProjectId() {
                  * 
              * * string project_id = 2; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1173,14 +1075,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** - * - * *
                  * Name of the secret in secret manager (not the full resource name).
                  * 
              * * string secret = 3; - * * @return The secret. */ @java.lang.Override @@ -1189,29 +1088,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** - * - * *
                  * Name of the secret in secret manager (not the full resource name).
                  * 
              * * string secret = 3; - * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString getSecretBytes() { + public com.google.protobuf.ByteString + getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secret_ = b; return b; } else { @@ -1222,8 +1121,6 @@ public com.google.protobuf.ByteString getSecretBytes() { public static final int VERSIONS_FIELD_NUMBER = 4; private java.util.List versions_; /** - * - * *
                  * List of secret versions to mount for this secret. If empty, the `latest`
                  * version of the secret will be made available in a file named after the
              @@ -1233,13 +1130,10 @@ public com.google.protobuf.ByteString getSecretBytes() {
                  * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                  */
                 @java.lang.Override
              -  public java.util.List
              -      getVersionsList() {
              +  public java.util.List getVersionsList() {
                   return versions_;
                 }
                 /**
              -   *
              -   *
                  * 
                  * List of secret versions to mount for this secret. If empty, the `latest`
                  * version of the secret will be made available in a file named after the
              @@ -1249,14 +1143,11 @@ public com.google.protobuf.ByteString getSecretBytes() {
                  * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                  */
                 @java.lang.Override
              -  public java.util.List<
              -          ? extends com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder>
              +  public java.util.List 
                     getVersionsOrBuilderList() {
                   return versions_;
                 }
                 /**
              -   *
              -   *
                  * 
                  * List of secret versions to mount for this secret. If empty, the `latest`
                  * version of the secret will be made available in a file named after the
              @@ -1270,8 +1161,6 @@ public int getVersionsCount() {
                   return versions_.size();
                 }
                 /**
              -   *
              -   *
                  * 
                  * List of secret versions to mount for this secret. If empty, the `latest`
                  * version of the secret will be made available in a file named after the
              @@ -1285,8 +1174,6 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion getVersions(
                   return versions_.get(index);
                 }
                 /**
              -   *
              -   *
                  * 
                  * List of secret versions to mount for this secret. If empty, the `latest`
                  * version of the secret will be made available in a file named after the
              @@ -1302,7 +1189,6 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder get
                 }
               
                 private byte memoizedIsInitialized = -1;
              -
                 @java.lang.Override
                 public final boolean isInitialized() {
                   byte isInitialized = memoizedIsInitialized;
              @@ -1314,7 +1200,8 @@ public final boolean isInitialized() {
                 }
               
                 @java.lang.Override
              -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
              +  public void writeTo(com.google.protobuf.CodedOutputStream output)
              +                      throws java.io.IOException {
                   if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) {
                     com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_);
                   }
              @@ -1346,7 +1233,8 @@ public int getSerializedSize() {
                     size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secret_);
                   }
                   for (int i = 0; i < versions_.size(); i++) {
              -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, versions_.get(i));
              +      size += com.google.protobuf.CodedOutputStream
              +        .computeMessageSize(4, versions_.get(i));
                   }
                   size += unknownFields.getSerializedSize();
                   memoizedSize = size;
              @@ -1356,18 +1244,21 @@ public int getSerializedSize() {
                 @java.lang.Override
                 public boolean equals(final java.lang.Object obj) {
                   if (obj == this) {
              -      return true;
              +     return true;
                   }
                   if (!(obj instanceof com.google.cloud.functions.v2beta.SecretVolume)) {
                     return super.equals(obj);
                   }
              -    com.google.cloud.functions.v2beta.SecretVolume other =
              -        (com.google.cloud.functions.v2beta.SecretVolume) obj;
              +    com.google.cloud.functions.v2beta.SecretVolume other = (com.google.cloud.functions.v2beta.SecretVolume) obj;
               
              -    if (!getMountPath().equals(other.getMountPath())) return false;
              -    if (!getProjectId().equals(other.getProjectId())) return false;
              -    if (!getSecret().equals(other.getSecret())) return false;
              -    if (!getVersionsList().equals(other.getVersionsList())) return false;
              +    if (!getMountPath()
              +        .equals(other.getMountPath())) return false;
              +    if (!getProjectId()
              +        .equals(other.getProjectId())) return false;
              +    if (!getSecret()
              +        .equals(other.getSecret())) return false;
              +    if (!getVersionsList()
              +        .equals(other.getVersionsList())) return false;
                   if (!unknownFields.equals(other.unknownFields)) return false;
                   return true;
                 }
              @@ -1394,104 +1285,97 @@ public int hashCode() {
                   return hash;
                 }
               
              -  public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(java.nio.ByteBuffer data)
              +  public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(
              +      java.nio.ByteBuffer data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(
              -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      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.SecretVolume parseFrom(
                     com.google.protobuf.ByteString data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SecretVolume 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.SecretVolume parseFrom(byte[] data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(
              -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      byte[] data,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data, extensionRegistry);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(java.io.InputStream input)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(
              -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      java.io.InputStream input,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input, extensionRegistry);
                 }
              -
              -  public static com.google.cloud.functions.v2beta.SecretVolume parseDelimitedFrom(
              -      java.io.InputStream input) throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
              +  public static com.google.cloud.functions.v2beta.SecretVolume parseDelimitedFrom(java.io.InputStream input)
              +      throws java.io.IOException {
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseDelimitedWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SecretVolume parseDelimitedFrom(
              -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      java.io.InputStream input,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(
              -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
              +      com.google.protobuf.CodedInputStream input)
              +      throws java.io.IOException {
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input, extensionRegistry);
                 }
               
                 @java.lang.Override
              -  public Builder newBuilderForType() {
              -    return newBuilder();
              -  }
              -
              +  public Builder newBuilderForType() { return newBuilder(); }
                 public static Builder newBuilder() {
                   return DEFAULT_INSTANCE.toBuilder();
                 }
              -
                 public static Builder newBuilder(com.google.cloud.functions.v2beta.SecretVolume prototype) {
                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                 }
              -
                 @java.lang.Override
                 public Builder toBuilder() {
              -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
              +    return this == DEFAULT_INSTANCE
              +        ? new Builder() : new Builder().mergeFrom(this);
                 }
               
                 @java.lang.Override
              -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
              +  protected Builder newBuilderForType(
              +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   Builder builder = new Builder(parent);
                   return builder;
                 }
                 /**
              -   *
              -   *
                  * 
                  * Configuration for a secret volume. It has the information necessary to fetch
                  * the secret value from secret manager and make it available as files mounted
              @@ -1500,23 +1384,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                  *
                  * Protobuf type {@code google.cloud.functions.v2beta.SecretVolume}
                  */
              -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
              -      implements
              +  public static final class Builder extends
              +      com.google.protobuf.GeneratedMessageV3.Builder implements
                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.SecretVolume)
                     com.google.cloud.functions.v2beta.SecretVolumeOrBuilder {
              -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor;
              +    public static final com.google.protobuf.Descriptors.Descriptor
              +        getDescriptor() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor;
                   }
               
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
              -              com.google.cloud.functions.v2beta.SecretVolume.class,
              -              com.google.cloud.functions.v2beta.SecretVolume.Builder.class);
              +              com.google.cloud.functions.v2beta.SecretVolume.class, com.google.cloud.functions.v2beta.SecretVolume.Builder.class);
                   }
               
                   // Construct using com.google.cloud.functions.v2beta.SecretVolume.newBuilder()
              @@ -1524,17 +1406,17 @@ private Builder() {
                     maybeForceBuilderInitialization();
                   }
               
              -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
              +    private Builder(
              +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                     super(parent);
                     maybeForceBuilderInitialization();
                   }
              -
                   private void maybeForceBuilderInitialization() {
              -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
              +      if (com.google.protobuf.GeneratedMessageV3
              +              .alwaysUseFieldBuilders) {
                       getVersionsFieldBuilder();
                     }
                   }
              -
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
              @@ -1554,9 +1436,9 @@ public Builder clear() {
                   }
               
                   @java.lang.Override
              -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor;
              +    public com.google.protobuf.Descriptors.Descriptor
              +        getDescriptorForType() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor;
                   }
               
                   @java.lang.Override
              @@ -1575,8 +1457,7 @@ public com.google.cloud.functions.v2beta.SecretVolume build() {
               
                   @java.lang.Override
                   public com.google.cloud.functions.v2beta.SecretVolume buildPartial() {
              -      com.google.cloud.functions.v2beta.SecretVolume result =
              -          new com.google.cloud.functions.v2beta.SecretVolume(this);
              +      com.google.cloud.functions.v2beta.SecretVolume result = new com.google.cloud.functions.v2beta.SecretVolume(this);
                     int from_bitField0_ = bitField0_;
                     result.mountPath_ = mountPath_;
                     result.projectId_ = projectId_;
              @@ -1598,39 +1479,38 @@ public com.google.cloud.functions.v2beta.SecretVolume buildPartial() {
                   public Builder clone() {
                     return super.clone();
                   }
              -
                   @java.lang.Override
                   public Builder setField(
              -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
              +        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) {
              +    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) {
              +    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) {
              +        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) {
              +        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) {
              -        return mergeFrom((com.google.cloud.functions.v2beta.SecretVolume) other);
              +        return mergeFrom((com.google.cloud.functions.v2beta.SecretVolume)other);
                     } else {
                       super.mergeFrom(other);
                       return this;
              @@ -1669,10 +1549,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.SecretVolume other) {
                           versionsBuilder_ = null;
                           versions_ = other.versions_;
                           bitField0_ = (bitField0_ & ~0x00000001);
              -            versionsBuilder_ =
              -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
              -                    ? getVersionsFieldBuilder()
              -                    : null;
              +            versionsBuilder_ = 
              +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
              +                 getVersionsFieldBuilder() : null;
                         } else {
                           versionsBuilder_.addAllMessages(other.versions_);
                         }
              @@ -1706,13 +1585,10 @@ public Builder mergeFrom(
                     }
                     return this;
                   }
              -
                   private int bitField0_;
               
                   private java.lang.Object mountPath_ = "";
                   /**
              -     *
              -     *
                    * 
                    * The path within the container to mount the secret volume. For example,
                    * setting the mount_path as `/etc/secrets` would mount the secret value files
              @@ -1722,13 +1598,13 @@ public Builder mergeFrom(
                    * 
              * * string mount_path = 1; - * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -1737,8 +1613,6 @@ public java.lang.String getMountPath() { } } /** - * - * *
                    * The path within the container to mount the secret volume. For example,
                    * setting the mount_path as `/etc/secrets` would mount the secret value files
              @@ -1748,14 +1622,15 @@ public java.lang.String getMountPath() {
                    * 
              * * string mount_path = 1; - * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1763,8 +1638,6 @@ public com.google.protobuf.ByteString getMountPathBytes() { } } /** - * - * *
                    * The path within the container to mount the secret volume. For example,
                    * setting the mount_path as `/etc/secrets` would mount the secret value files
              @@ -1774,22 +1647,20 @@ public com.google.protobuf.ByteString getMountPathBytes() {
                    * 
              * * string mount_path = 1; - * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath(java.lang.String value) { + public Builder setMountPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mountPath_ = value; onChanged(); return this; } /** - * - * *
                    * The path within the container to mount the secret volume. For example,
                    * setting the mount_path as `/etc/secrets` would mount the secret value files
              @@ -1799,18 +1670,15 @@ public Builder setMountPath(java.lang.String value) {
                    * 
              * * string mount_path = 1; - * * @return This builder for chaining. */ public Builder clearMountPath() { - + mountPath_ = getDefaultInstance().getMountPath(); onChanged(); return this; } /** - * - * *
                    * The path within the container to mount the secret volume. For example,
                    * setting the mount_path as `/etc/secrets` would mount the secret value files
              @@ -1820,16 +1688,16 @@ public Builder clearMountPath() {
                    * 
              * * string mount_path = 1; - * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes(com.google.protobuf.ByteString value) { + public Builder setMountPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mountPath_ = value; onChanged(); return this; @@ -1837,8 +1705,6 @@ public Builder setMountPathBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * *
                    * Project identifier (preferably project number but can also be the project
                    * ID) of the project that contains the secret. If not set, it is
              @@ -1846,13 +1712,13 @@ public Builder setMountPathBytes(com.google.protobuf.ByteString value) {
                    * 
              * * string project_id = 2; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1861,8 +1727,6 @@ public java.lang.String getProjectId() { } } /** - * - * *
                    * Project identifier (preferably project number but can also be the project
                    * ID) of the project that contains the secret. If not set, it is
              @@ -1870,14 +1734,15 @@ public java.lang.String getProjectId() {
                    * 
              * * string project_id = 2; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -1885,8 +1750,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
                    * Project identifier (preferably project number but can also be the project
                    * ID) of the project that contains the secret. If not set, it is
              @@ -1894,22 +1757,20 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
                    * 
              * * string project_id = 2; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
                    * Project identifier (preferably project number but can also be the project
                    * ID) of the project that contains the secret. If not set, it is
              @@ -1917,18 +1778,15 @@ public Builder setProjectId(java.lang.String value) {
                    * 
              * * string project_id = 2; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
                    * Project identifier (preferably project number but can also be the project
                    * ID) of the project that contains the secret. If not set, it is
              @@ -1936,16 +1794,16 @@ public Builder clearProjectId() {
                    * 
              * * string project_id = 2; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1953,20 +1811,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object secret_ = ""; /** - * - * *
                    * Name of the secret in secret manager (not the full resource name).
                    * 
              * * string secret = 3; - * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -1975,21 +1831,20 @@ public java.lang.String getSecret() { } } /** - * - * *
                    * Name of the secret in secret manager (not the full resource name).
                    * 
              * * string secret = 3; - * * @return The bytes for secret. */ - public com.google.protobuf.ByteString getSecretBytes() { + public com.google.protobuf.ByteString + getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secret_ = b; return b; } else { @@ -1997,87 +1852,72 @@ public com.google.protobuf.ByteString getSecretBytes() { } } /** - * - * *
                    * Name of the secret in secret manager (not the full resource name).
                    * 
              * * string secret = 3; - * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret(java.lang.String value) { + public Builder setSecret( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** - * - * *
                    * Name of the secret in secret manager (not the full resource name).
                    * 
              * * string secret = 3; - * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** - * - * *
                    * Name of the secret in secret manager (not the full resource name).
                    * 
              * * string secret = 3; - * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes(com.google.protobuf.ByteString value) { + public Builder setSecretBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; } private java.util.List versions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - versions_ = - new java.util.ArrayList( - versions_); + versions_ = new java.util.ArrayList(versions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion, - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder, - com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder> - versionsBuilder_; + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder> versionsBuilder_; /** - * - * *
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2086,8 +1926,7 @@ private void ensureVersionsIsMutable() {
                    *
                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                    */
              -    public java.util.List
              -        getVersionsList() {
              +    public java.util.List getVersionsList() {
                     if (versionsBuilder_ == null) {
                       return java.util.Collections.unmodifiableList(versions_);
                     } else {
              @@ -2095,8 +1934,6 @@ private void ensureVersionsIsMutable() {
                     }
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2113,8 +1950,6 @@ public int getVersionsCount() {
                     }
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2131,8 +1966,6 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion getVersions(
                     }
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2156,8 +1989,6 @@ public Builder setVersions(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2167,8 +1998,7 @@ public Builder setVersions(
                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                    */
                   public Builder setVersions(
              -        int index,
              -        com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder builderForValue) {
              +        int index, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder builderForValue) {
                     if (versionsBuilder_ == null) {
                       ensureVersionsIsMutable();
                       versions_.set(index, builderForValue.build());
              @@ -2179,8 +2009,6 @@ public Builder setVersions(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2203,8 +2031,6 @@ public Builder addVersions(com.google.cloud.functions.v2beta.SecretVolume.Secret
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2228,8 +2054,6 @@ public Builder addVersions(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2250,8 +2074,6 @@ public Builder addVersions(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2261,8 +2083,7 @@ public Builder addVersions(
                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                    */
                   public Builder addVersions(
              -        int index,
              -        com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder builderForValue) {
              +        int index, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder builderForValue) {
                     if (versionsBuilder_ == null) {
                       ensureVersionsIsMutable();
                       versions_.add(index, builderForValue.build());
              @@ -2273,8 +2094,6 @@ public Builder addVersions(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2284,11 +2103,11 @@ public Builder addVersions(
                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                    */
                   public Builder addAllVersions(
              -        java.lang.Iterable
              -            values) {
              +        java.lang.Iterable values) {
                     if (versionsBuilder_ == null) {
                       ensureVersionsIsMutable();
              -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versions_);
              +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
              +            values, versions_);
                       onChanged();
                     } else {
                       versionsBuilder_.addAllMessages(values);
              @@ -2296,8 +2115,6 @@ public Builder addAllVersions(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2317,8 +2134,6 @@ public Builder clearVersions() {
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2338,8 +2153,6 @@ public Builder removeVersions(int index) {
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2353,8 +2166,6 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder getV
                     return getVersionsFieldBuilder().getBuilder(index);
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2363,17 +2174,14 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder getV
                    *
                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                    */
              -    public com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder
              -        getVersionsOrBuilder(int index) {
              +    public com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(
              +        int index) {
                     if (versionsBuilder_ == null) {
              -        return versions_.get(index);
              -      } else {
              +        return versions_.get(index);  } else {
                       return versionsBuilder_.getMessageOrBuilder(index);
                     }
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2382,9 +2190,8 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder getV
                    *
                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                    */
              -    public java.util.List<
              -            ? extends com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder>
              -        getVersionsOrBuilderList() {
              +    public java.util.List 
              +         getVersionsOrBuilderList() {
                     if (versionsBuilder_ != null) {
                       return versionsBuilder_.getMessageOrBuilderList();
                     } else {
              @@ -2392,8 +2199,6 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder getV
                     }
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2402,15 +2207,11 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder getV
                    *
                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                    */
              -    public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder
              -        addVersionsBuilder() {
              -      return getVersionsFieldBuilder()
              -          .addBuilder(
              -              com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance());
              +    public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder addVersionsBuilder() {
              +      return getVersionsFieldBuilder().addBuilder(
              +          com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance());
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2421,14 +2222,10 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder getV
                    */
                   public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder addVersionsBuilder(
                       int index) {
              -      return getVersionsFieldBuilder()
              -          .addBuilder(
              -              index,
              -              com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance());
              +      return getVersionsFieldBuilder().addBuilder(
              +          index, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance());
                   }
                   /**
              -     *
              -     *
                    * 
                    * List of secret versions to mount for this secret. If empty, the `latest`
                    * version of the secret will be made available in a file named after the
              @@ -2437,30 +2234,27 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder addV
                    *
                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                    */
              -    public java.util.List
              -        getVersionsBuilderList() {
              +    public java.util.List 
              +         getVersionsBuilderList() {
                     return getVersionsFieldBuilder().getBuilderList();
                   }
              -
                   private com.google.protobuf.RepeatedFieldBuilderV3<
              -            com.google.cloud.functions.v2beta.SecretVolume.SecretVersion,
              -            com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder,
              -            com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder>
              +        com.google.cloud.functions.v2beta.SecretVolume.SecretVersion, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder> 
                       getVersionsFieldBuilder() {
                     if (versionsBuilder_ == null) {
              -        versionsBuilder_ =
              -            new com.google.protobuf.RepeatedFieldBuilderV3<
              -                com.google.cloud.functions.v2beta.SecretVolume.SecretVersion,
              -                com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder,
              -                com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder>(
              -                versions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
              +        versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              +            com.google.cloud.functions.v2beta.SecretVolume.SecretVersion, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder>(
              +                versions_,
              +                ((bitField0_ & 0x00000001) != 0),
              +                getParentForChildren(),
              +                isClean());
                       versions_ = null;
                     }
                     return versionsBuilder_;
                   }
              -
                   @java.lang.Override
              -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
              +    public final Builder setUnknownFields(
              +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                     return super.setUnknownFields(unknownFields);
                   }
               
              @@ -2470,12 +2264,12 @@ public final Builder mergeUnknownFields(
                     return super.mergeUnknownFields(unknownFields);
                   }
               
              +
                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.SecretVolume)
                 }
               
                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.SecretVolume)
                 private static final com.google.cloud.functions.v2beta.SecretVolume DEFAULT_INSTANCE;
              -
                 static {
                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.SecretVolume();
                 }
              @@ -2484,16 +2278,16 @@ public static com.google.cloud.functions.v2beta.SecretVolume getDefaultInstance(
                   return DEFAULT_INSTANCE;
                 }
               
              -  private static final com.google.protobuf.Parser PARSER =
              -      new com.google.protobuf.AbstractParser() {
              -        @java.lang.Override
              -        public SecretVolume parsePartialFrom(
              -            com.google.protobuf.CodedInputStream input,
              -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              -            throws com.google.protobuf.InvalidProtocolBufferException {
              -          return new SecretVolume(input, extensionRegistry);
              -        }
              -      };
              +  private static final com.google.protobuf.Parser
              +      PARSER = new com.google.protobuf.AbstractParser() {
              +    @java.lang.Override
              +    public SecretVolume parsePartialFrom(
              +        com.google.protobuf.CodedInputStream input,
              +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +        throws com.google.protobuf.InvalidProtocolBufferException {
              +      return new SecretVolume(input, extensionRegistry);
              +    }
              +  };
               
                 public static com.google.protobuf.Parser parser() {
                   return PARSER;
              @@ -2508,4 +2302,6 @@ public com.google.protobuf.Parser getParserForType() {
                 public com.google.cloud.functions.v2beta.SecretVolume getDefaultInstanceForType() {
                   return DEFAULT_INSTANCE;
                 }
              +
               }
              +
              diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java
              similarity index 81%
              rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java
              rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java
              index 6497730d..10e040c1 100644
              --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java
              +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java
              @@ -1,31 +1,13 @@
              -/*
              - * 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 SecretVolumeOrBuilder
              -    extends
              +public interface SecretVolumeOrBuilder extends
                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.SecretVolume)
                   com.google.protobuf.MessageOrBuilder {
               
                 /**
              -   *
              -   *
                  * 
                  * The path within the container to mount the secret volume. For example,
                  * setting the mount_path as `/etc/secrets` would mount the secret value files
              @@ -35,13 +17,10 @@ public interface SecretVolumeOrBuilder
                  * 
              * * string mount_path = 1; - * * @return The mountPath. */ java.lang.String getMountPath(); /** - * - * *
                  * The path within the container to mount the secret volume. For example,
                  * setting the mount_path as `/etc/secrets` would mount the secret value files
              @@ -51,14 +30,12 @@ public interface SecretVolumeOrBuilder
                  * 
              * * string mount_path = 1; - * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString getMountPathBytes(); + com.google.protobuf.ByteString + getMountPathBytes(); /** - * - * *
                  * Project identifier (preferably project number but can also be the project
                  * ID) of the project that contains the secret. If not set, it is
              @@ -66,13 +43,10 @@ public interface SecretVolumeOrBuilder
                  * 
              * * string project_id = 2; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
                  * Project identifier (preferably project number but can also be the project
                  * ID) of the project that contains the secret. If not set, it is
              @@ -80,39 +54,32 @@ public interface SecretVolumeOrBuilder
                  * 
              * * string project_id = 2; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
                  * Name of the secret in secret manager (not the full resource name).
                  * 
              * * string secret = 3; - * * @return The secret. */ java.lang.String getSecret(); /** - * - * *
                  * Name of the secret in secret manager (not the full resource name).
                  * 
              * * string secret = 3; - * * @return The bytes for secret. */ - com.google.protobuf.ByteString getSecretBytes(); + com.google.protobuf.ByteString + getSecretBytes(); /** - * - * *
                  * List of secret versions to mount for this secret. If empty, the `latest`
                  * version of the secret will be made available in a file named after the
              @@ -121,10 +88,9 @@ public interface SecretVolumeOrBuilder
                  *
                  * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                  */
              -  java.util.List getVersionsList();
              +  java.util.List 
              +      getVersionsList();
                 /**
              -   *
              -   *
                  * 
                  * List of secret versions to mount for this secret. If empty, the `latest`
                  * version of the secret will be made available in a file named after the
              @@ -135,8 +101,6 @@ public interface SecretVolumeOrBuilder
                  */
                 com.google.cloud.functions.v2beta.SecretVolume.SecretVersion getVersions(int index);
                 /**
              -   *
              -   *
                  * 
                  * List of secret versions to mount for this secret. If empty, the `latest`
                  * version of the secret will be made available in a file named after the
              @@ -147,8 +111,6 @@ public interface SecretVolumeOrBuilder
                  */
                 int getVersionsCount();
                 /**
              -   *
              -   *
                  * 
                  * List of secret versions to mount for this secret. If empty, the `latest`
                  * version of the secret will be made available in a file named after the
              @@ -157,11 +119,9 @@ public interface SecretVolumeOrBuilder
                  *
                  * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                  */
              -  java.util.List
              +  java.util.List 
                     getVersionsOrBuilderList();
                 /**
              -   *
              -   *
                  * 
                  * List of secret versions to mount for this secret. If empty, the `latest`
                  * version of the secret will be made available in a file named after the
              diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java
              similarity index 74%
              rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java
              rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java
              index e0d6a335..62b004a4 100644
              --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java
              +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java
              @@ -1,26 +1,9 @@
              -/*
              - * 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;
               
               /**
              - *
              - *
                * 
                * Describes the Service being deployed.
                * Currently Supported : Cloud Run (fully managed).
              @@ -28,16 +11,15 @@
                *
                * Protobuf type {@code google.cloud.functions.v2beta.ServiceConfig}
                */
              -public final class ServiceConfig extends com.google.protobuf.GeneratedMessageV3
              -    implements
              +public final class ServiceConfig extends
              +    com.google.protobuf.GeneratedMessageV3 implements
                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.ServiceConfig)
                   ServiceConfigOrBuilder {
              -  private static final long serialVersionUID = 0L;
              +private static final long serialVersionUID = 0L;
                 // Use ServiceConfig.newBuilder() to construct.
                 private ServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
              -
                 private ServiceConfig() {
                   service_ = "";
                   availableMemory_ = "";
              @@ -53,15 +35,16 @@ private ServiceConfig() {
               
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
              -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
              +  protected java.lang.Object newInstance(
              +      UnusedPrivateParameter unused) {
                   return new ServiceConfig();
                 }
               
                 @java.lang.Override
              -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
              +  public final com.google.protobuf.UnknownFieldSet
              +  getUnknownFields() {
                   return this.unknownFields;
                 }
              -
                 private ServiceConfig(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              @@ -81,131 +64,112 @@ private ServiceConfig(
                         case 0:
                           done = true;
                           break;
              -          case 10:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +          case 10: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              service_ = s;
              -              break;
              -            }
              -          case 16:
              -            {
              -              timeoutSeconds_ = input.readInt32();
              -              break;
              -            }
              -          case 34:
              -            {
              -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              -                environmentVariables_ =
              -                    com.google.protobuf.MapField.newMapField(
              -                        EnvironmentVariablesDefaultEntryHolder.defaultEntry);
              -                mutable_bitField0_ |= 0x00000001;
              -              }
              -              com.google.protobuf.MapEntry
              -                  environmentVariables__ =
              -                      input.readMessage(
              -                          EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
              -                          extensionRegistry);
              -              environmentVariables_
              -                  .getMutableMap()
              -                  .put(environmentVariables__.getKey(), environmentVariables__.getValue());
              -              break;
              -            }
              -          case 40:
              -            {
              -              maxInstanceCount_ = input.readInt32();
              -              break;
              -            }
              -          case 50:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            service_ = s;
              +            break;
              +          }
              +          case 16: {
               
              -              vpcConnector_ = s;
              -              break;
              +            timeoutSeconds_ = input.readInt32();
              +            break;
              +          }
              +          case 34: {
              +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              +              environmentVariables_ = com.google.protobuf.MapField.newMapField(
              +                  EnvironmentVariablesDefaultEntryHolder.defaultEntry);
              +              mutable_bitField0_ |= 0x00000001;
                           }
              -          case 56:
              -            {
              -              int rawValue = input.readEnum();
              +            com.google.protobuf.MapEntry
              +            environmentVariables__ = input.readMessage(
              +                EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              +            environmentVariables_.getMutableMap().put(
              +                environmentVariables__.getKey(), environmentVariables__.getValue());
              +            break;
              +          }
              +          case 40: {
               
              -              vpcConnectorEgressSettings_ = rawValue;
              -              break;
              -            }
              -          case 64:
              -            {
              -              int rawValue = input.readEnum();
              +            maxInstanceCount_ = input.readInt32();
              +            break;
              +          }
              +          case 50: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              ingressSettings_ = rawValue;
              -              break;
              -            }
              -          case 74:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            vpcConnector_ = s;
              +            break;
              +          }
              +          case 56: {
              +            int rawValue = input.readEnum();
               
              -              uri_ = s;
              -              break;
              -            }
              -          case 82:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            vpcConnectorEgressSettings_ = rawValue;
              +            break;
              +          }
              +          case 64: {
              +            int rawValue = input.readEnum();
               
              -              serviceAccountEmail_ = s;
              -              break;
              -            }
              -          case 96:
              -            {
              -              minInstanceCount_ = input.readInt32();
              -              break;
              -            }
              -          case 106:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            ingressSettings_ = rawValue;
              +            break;
              +          }
              +          case 74: {
              +            java.lang.String s = input.readStringRequireUtf8();
               
              -              availableMemory_ = s;
              -              break;
              -            }
              -          case 128:
              -            {
              -              allTrafficOnLatestRevision_ = input.readBool();
              -              break;
              -            }
              -          case 138:
              -            {
              -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              -                secretEnvironmentVariables_ =
              -                    new java.util.ArrayList();
              -                mutable_bitField0_ |= 0x00000002;
              -              }
              -              secretEnvironmentVariables_.add(
              -                  input.readMessage(
              -                      com.google.cloud.functions.v2beta.SecretEnvVar.parser(), extensionRegistry));
              -              break;
              -            }
              -          case 146:
              -            {
              -              java.lang.String s = input.readStringRequireUtf8();
              +            uri_ = s;
              +            break;
              +          }
              +          case 82: {
              +            java.lang.String s = input.readStringRequireUtf8();
              +
              +            serviceAccountEmail_ = s;
              +            break;
              +          }
              +          case 96: {
              +
              +            minInstanceCount_ = input.readInt32();
              +            break;
              +          }
              +          case 106: {
              +            java.lang.String s = input.readStringRequireUtf8();
              +
              +            availableMemory_ = s;
              +            break;
              +          }
              +          case 128: {
               
              -              revision_ = s;
              -              break;
              +            allTrafficOnLatestRevision_ = input.readBool();
              +            break;
              +          }
              +          case 138: {
              +            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              +              secretEnvironmentVariables_ = new java.util.ArrayList();
              +              mutable_bitField0_ |= 0x00000002;
                           }
              -          case 154:
              -            {
              -              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              -                secretVolumes_ =
              -                    new java.util.ArrayList();
              -                mutable_bitField0_ |= 0x00000004;
              -              }
              -              secretVolumes_.add(
              -                  input.readMessage(
              -                      com.google.cloud.functions.v2beta.SecretVolume.parser(), extensionRegistry));
              -              break;
              +            secretEnvironmentVariables_.add(
              +                input.readMessage(com.google.cloud.functions.v2beta.SecretEnvVar.parser(), extensionRegistry));
              +            break;
              +          }
              +          case 146: {
              +            java.lang.String s = input.readStringRequireUtf8();
              +
              +            revision_ = s;
              +            break;
              +          }
              +          case 154: {
              +            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              +              secretVolumes_ = new java.util.ArrayList();
              +              mutable_bitField0_ |= 0x00000004;
                           }
              -          default:
              -            {
              -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
              -                done = true;
              -              }
              -              break;
              +            secretVolumes_.add(
              +                input.readMessage(com.google.cloud.functions.v2beta.SecretVolume.parser(), extensionRegistry));
              +            break;
              +          }
              +          default: {
              +            if (!parseUnknownField(
              +                input, unknownFields, extensionRegistry, tag)) {
              +              done = true;
                           }
              +            break;
              +          }
                       }
                     }
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              @@ -213,11 +177,11 @@ private ServiceConfig(
                   } catch (com.google.protobuf.UninitializedMessageException e) {
                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                   } catch (java.io.IOException e) {
              -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
              +      throw new com.google.protobuf.InvalidProtocolBufferException(
              +          e).setUnfinishedMessage(this);
                   } finally {
                     if (((mutable_bitField0_ & 0x00000002) != 0)) {
              -        secretEnvironmentVariables_ =
              -            java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
              +        secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                     }
                     if (((mutable_bitField0_ & 0x00000004) != 0)) {
                       secretVolumes_ = java.util.Collections.unmodifiableList(secretVolumes_);
              @@ -226,36 +190,32 @@ private ServiceConfig(
                     makeExtensionsImmutable();
                   }
                 }
              -
              -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor;
              +  public static final com.google.protobuf.Descriptors.Descriptor
              +      getDescriptor() {
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor;
                 }
               
                 @SuppressWarnings({"rawtypes"})
                 @java.lang.Override
              -  protected com.google.protobuf.MapField internalGetMapField(int number) {
              +  protected com.google.protobuf.MapField internalGetMapField(
              +      int number) {
                   switch (number) {
                     case 4:
                       return internalGetEnvironmentVariables();
                     default:
              -        throw new RuntimeException("Invalid map field number: " + number);
              +        throw new RuntimeException(
              +            "Invalid map field number: " + number);
                   }
                 }
              -
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
              -            com.google.cloud.functions.v2beta.ServiceConfig.class,
              -            com.google.cloud.functions.v2beta.ServiceConfig.Builder.class);
              +            com.google.cloud.functions.v2beta.ServiceConfig.class, com.google.cloud.functions.v2beta.ServiceConfig.Builder.class);
                 }
               
                 /**
              -   *
              -   *
                  * 
                  * Available egress settings.
                  * This controls what traffic is diverted through the VPC Access Connector
              @@ -264,10 +224,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
                  *
                  * Protobuf enum {@code google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings}
                  */
              -  public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMessageEnum {
              +  public enum VpcConnectorEgressSettings
              +      implements com.google.protobuf.ProtocolMessageEnum {
                   /**
              -     *
              -     *
                    * 
                    * Unspecified.
                    * 
              @@ -276,8 +235,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe */ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED(0), /** - * - * *
                    * Use the VPC Access Connector only for private IP space from RFC1918.
                    * 
              @@ -286,8 +243,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe */ PRIVATE_RANGES_ONLY(1), /** - * - * *
                    * Force the use of VPC Access Connector for all egress traffic from the
                    * function.
              @@ -300,8 +255,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe
                   ;
               
                   /**
              -     *
              -     *
                    * 
                    * Unspecified.
                    * 
              @@ -310,8 +263,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe */ public static final int VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** - * - * *
                    * Use the VPC Access Connector only for private IP space from RFC1918.
                    * 
              @@ -320,8 +271,6 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe */ public static final int PRIVATE_RANGES_ONLY_VALUE = 1; /** - * - * *
                    * Force the use of VPC Access Connector for all egress traffic from the
                    * function.
              @@ -331,6 +280,7 @@ public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMe
                    */
                   public static final int ALL_TRAFFIC_VALUE = 2;
               
              +
                   public final int getNumber() {
                     if (this == UNRECOGNIZED) {
                       throw new java.lang.IllegalArgumentException(
              @@ -355,14 +305,10 @@ public static VpcConnectorEgressSettings valueOf(int value) {
                    */
                   public static VpcConnectorEgressSettings forNumber(int value) {
                     switch (value) {
              -        case 0:
              -          return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
              -        case 1:
              -          return PRIVATE_RANGES_ONLY;
              -        case 2:
              -          return ALL_TRAFFIC;
              -        default:
              -          return null;
              +        case 0: return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
              +        case 1: return PRIVATE_RANGES_ONLY;
              +        case 2: return ALL_TRAFFIC;
              +        default: return null;
                     }
                   }
               
              @@ -370,28 +316,28 @@ public static VpcConnectorEgressSettings forNumber(int value) {
                       internalGetValueMap() {
                     return internalValueMap;
                   }
              +    private static final com.google.protobuf.Internal.EnumLiteMap<
              +        VpcConnectorEgressSettings> internalValueMap =
              +          new com.google.protobuf.Internal.EnumLiteMap() {
              +            public VpcConnectorEgressSettings findValueByNumber(int number) {
              +              return VpcConnectorEgressSettings.forNumber(number);
              +            }
              +          };
               
              -    private static final com.google.protobuf.Internal.EnumLiteMap
              -        internalValueMap =
              -            new com.google.protobuf.Internal.EnumLiteMap() {
              -              public VpcConnectorEgressSettings findValueByNumber(int number) {
              -                return VpcConnectorEgressSettings.forNumber(number);
              -              }
              -            };
              -
              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
              +    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() {
              +    public final com.google.protobuf.Descriptors.EnumDescriptor
              +        getDescriptorForType() {
                     return getDescriptor();
                   }
              -
              -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
              +    public static final com.google.protobuf.Descriptors.EnumDescriptor
              +        getDescriptor() {
                     return com.google.cloud.functions.v2beta.ServiceConfig.getDescriptor().getEnumTypes().get(0);
                   }
               
              @@ -400,7 +346,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
                   public static VpcConnectorEgressSettings valueOf(
                       com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                     if (desc.getType() != getDescriptor()) {
              -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
              +        throw new java.lang.IllegalArgumentException(
              +          "EnumValueDescriptor is not for this type.");
                     }
                     if (desc.getIndex() == -1) {
                       return UNRECOGNIZED;
              @@ -418,8 +365,6 @@ private VpcConnectorEgressSettings(int value) {
                 }
               
                 /**
              -   *
              -   *
                  * 
                  * Available ingress settings.
                  * This controls what traffic can reach the function.
              @@ -428,10 +373,9 @@ private VpcConnectorEgressSettings(int value) {
                  *
                  * Protobuf enum {@code google.cloud.functions.v2beta.ServiceConfig.IngressSettings}
                  */
              -  public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum {
              +  public enum IngressSettings
              +      implements com.google.protobuf.ProtocolMessageEnum {
                   /**
              -     *
              -     *
                    * 
                    * Unspecified.
                    * 
              @@ -440,8 +384,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ INGRESS_SETTINGS_UNSPECIFIED(0), /** - * - * *
                    * Allow HTTP traffic from public and private sources.
                    * 
              @@ -450,8 +392,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ ALLOW_ALL(1), /** - * - * *
                    * Allow HTTP traffic from only private VPC sources.
                    * 
              @@ -460,8 +400,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ ALLOW_INTERNAL_ONLY(2), /** - * - * *
                    * Allow HTTP traffic from private VPC sources and through GCLB.
                    * 
              @@ -473,8 +411,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                    * Unspecified.
                    * 
              @@ -483,8 +419,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** - * - * *
                    * Allow HTTP traffic from public and private sources.
                    * 
              @@ -493,8 +427,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALLOW_ALL_VALUE = 1; /** - * - * *
                    * Allow HTTP traffic from only private VPC sources.
                    * 
              @@ -503,8 +435,6 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALLOW_INTERNAL_ONLY_VALUE = 2; /** - * - * *
                    * Allow HTTP traffic from private VPC sources and through GCLB.
                    * 
              @@ -513,6 +443,7 @@ public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALLOW_INTERNAL_AND_GCLB_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -537,44 +468,40 @@ public static IngressSettings valueOf(int value) { */ public static IngressSettings forNumber(int value) { switch (value) { - case 0: - return INGRESS_SETTINGS_UNSPECIFIED; - case 1: - return ALLOW_ALL; - case 2: - return ALLOW_INTERNAL_ONLY; - case 3: - return ALLOW_INTERNAL_AND_GCLB; - default: - return null; + case 0: return INGRESS_SETTINGS_UNSPECIFIED; + case 1: return ALLOW_ALL; + case 2: return ALLOW_INTERNAL_ONLY; + case 3: return ALLOW_INTERNAL_AND_GCLB; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + IngressSettings> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IngressSettings findValueByNumber(int number) { + return IngressSettings.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IngressSettings findValueByNumber(int number) { - return IngressSettings.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.functions.v2beta.ServiceConfig.getDescriptor().getEnumTypes().get(1); } @@ -583,7 +510,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static IngressSettings valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -603,18 +531,13 @@ private IngressSettings(int value) { public static final int SERVICE_FIELD_NUMBER = 1; private volatile java.lang.Object service_; /** - * - * *
                  * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The service. */ @java.lang.Override @@ -623,33 +546,31 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** - * - * *
                  * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -660,8 +581,6 @@ public com.google.protobuf.ByteString getServiceBytes() { public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 2; private int timeoutSeconds_; /** - * - * *
                  * The function execution timeout. Execution is considered failed and
                  * can be terminated if the function is not completed at the end of the
              @@ -669,7 +588,6 @@ public com.google.protobuf.ByteString getServiceBytes() {
                  * 
              * * int32 timeout_seconds = 2; - * * @return The timeoutSeconds. */ @java.lang.Override @@ -680,8 +598,6 @@ public int getTimeoutSeconds() { public static final int AVAILABLE_MEMORY_FIELD_NUMBER = 13; private volatile java.lang.Object availableMemory_; /** - * - * *
                  * The amount of memory available for a function.
                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
              @@ -692,7 +608,6 @@ public int getTimeoutSeconds() {
                  * 
              * * string available_memory = 13; - * * @return The availableMemory. */ @java.lang.Override @@ -701,15 +616,14 @@ public java.lang.String getAvailableMemory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availableMemory_ = s; return s; } } /** - * - * *
                  * The amount of memory available for a function.
                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
              @@ -720,15 +634,16 @@ public java.lang.String getAvailableMemory() {
                  * 
              * * string available_memory = 13; - * * @return The bytes for availableMemory. */ @java.lang.Override - public com.google.protobuf.ByteString getAvailableMemoryBytes() { + public com.google.protobuf.ByteString + getAvailableMemoryBytes() { java.lang.Object ref = availableMemory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); availableMemory_ = b; return b; } else { @@ -737,22 +652,21 @@ public com.google.protobuf.ByteString getAvailableMemoryBytes() { } public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 4; - private static final class EnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField environmentVariables_; - + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -764,30 +678,28 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** - * - * *
                  * Environment variables that shall be available during function execution.
                  * 
              * * map<string, string> environment_variables = 4; */ + @java.lang.Override - public boolean containsEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** - * - * *
                  * Environment variables that shall be available during function execution.
                  * 
              @@ -795,12 +707,11 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override + public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** - * - * *
                  * Environment variables that shall be available during function execution.
                  * 
              @@ -808,18 +719,16 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override + public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
                  * Environment variables that shall be available during function execution.
                  * 
              @@ -827,10 +736,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -842,8 +751,6 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { public static final int MAX_INSTANCE_COUNT_FIELD_NUMBER = 5; private int maxInstanceCount_; /** - * - * *
                  * The limit on the maximum number of function instances that may coexist at a
                  * given time.
              @@ -858,7 +765,6 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) {
                  * 
              * * int32 max_instance_count = 5; - * * @return The maxInstanceCount. */ @java.lang.Override @@ -869,8 +775,6 @@ public int getMaxInstanceCount() { public static final int MIN_INSTANCE_COUNT_FIELD_NUMBER = 12; private int minInstanceCount_; /** - * - * *
                  * The limit on the minimum number of function instances that may coexist at a
                  * given time.
              @@ -883,7 +787,6 @@ public int getMaxInstanceCount() {
                  * 
              * * int32 min_instance_count = 12; - * * @return The minInstanceCount. */ @java.lang.Override @@ -894,15 +797,12 @@ public int getMinInstanceCount() { public static final int VPC_CONNECTOR_FIELD_NUMBER = 6; private volatile java.lang.Object vpcConnector_; /** - * - * *
                  * 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) = { ... } - * * @return The vpcConnector. */ @java.lang.Override @@ -911,30 +811,30 @@ public java.lang.String getVpcConnector() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; } } /** - * - * *
                  * 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) = { ... } - * * @return The bytes for vpcConnector. */ @java.lang.Override - public com.google.protobuf.ByteString getVpcConnectorBytes() { + public com.google.protobuf.ByteString + getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -945,100 +845,69 @@ public com.google.protobuf.ByteString getVpcConnectorBytes() { public static final int VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER = 7; private int vpcConnectorEgressSettings_; /** - * - * *
                  * The egress settings for the connector, controlling what traffic is diverted
                  * through it.
                  * 
              * - * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override - public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** - * - * *
                  * The egress settings for the connector, controlling what traffic is diverted
                  * through it.
                  * 
              * - * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return The vpcConnectorEgressSettings. */ - @java.lang.Override - public com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings - getVpcConnectorEgressSettings() { + @java.lang.Override public com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings result = - com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.valueOf( - vpcConnectorEgressSettings_); - return result == null - ? com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED - : result; + com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings result = com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); + return result == null ? com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED : result; } public static final int INGRESS_SETTINGS_FIELD_NUMBER = 8; private int ingressSettings_; /** - * - * *
                  * The ingress settings for the function, controlling what traffic can reach
                  * it.
                  * 
              * * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; - * * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override - public int getIngressSettingsValue() { + @java.lang.Override public int getIngressSettingsValue() { return ingressSettings_; } /** - * - * *
                  * The ingress settings for the function, controlling what traffic can reach
                  * it.
                  * 
              * * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; - * * @return The ingressSettings. */ - @java.lang.Override - public com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings getIngressSettings() { + @java.lang.Override public com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings result = - com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.valueOf(ingressSettings_); - return result == null - ? com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.UNRECOGNIZED - : result; + com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings result = com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.valueOf(ingressSettings_); + return result == null ? com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.UNRECOGNIZED : result; } public static final int URI_FIELD_NUMBER = 9; private volatile java.lang.Object uri_; /** - * - * *
                  * Output only. URI of the Service deployed.
                  * 
              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ @java.lang.Override @@ -1047,29 +916,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
                  * Output only. URI of the Service deployed.
                  * 
              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -1080,15 +949,12 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 10; private volatile java.lang.Object serviceAccountEmail_; /** - * - * *
                  * The email of the service's service account. If empty, defaults to
                  * `{project_number}-compute@developer.gserviceaccount.com`.
                  * 
              * * string service_account_email = 10; - * * @return The serviceAccountEmail. */ @java.lang.Override @@ -1097,30 +963,30 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** - * - * *
                  * The email of the service's service account. If empty, defaults to
                  * `{project_number}-compute@developer.gserviceaccount.com`.
                  * 
              * * string service_account_email = 10; - * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -1131,8 +997,6 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { public static final int ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER = 16; private boolean allTrafficOnLatestRevision_; /** - * - * *
                  * Whether 100% of traffic is routed to the latest revision.
                  * On CreateFunction and UpdateFunction, when set to true, the revision being
              @@ -1142,7 +1006,6 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() {
                  * 
              * * bool all_traffic_on_latest_revision = 16; - * * @return The allTrafficOnLatestRevision. */ @java.lang.Override @@ -1151,87 +1014,68 @@ public boolean getAllTrafficOnLatestRevision() { } public static final int SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER = 17; - private java.util.List - secretEnvironmentVariables_; + private java.util.List secretEnvironmentVariables_; /** - * - * *
                  * Secret environment variables configuration.
                  * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ @java.lang.Override - public java.util.List - getSecretEnvironmentVariablesList() { + public java.util.List getSecretEnvironmentVariablesList() { return secretEnvironmentVariables_; } /** - * - * *
                  * Secret environment variables configuration.
                  * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ @java.lang.Override - public java.util.List + public java.util.List getSecretEnvironmentVariablesOrBuilderList() { return secretEnvironmentVariables_; } /** - * - * *
                  * Secret environment variables configuration.
                  * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ @java.lang.Override public int getSecretEnvironmentVariablesCount() { return secretEnvironmentVariables_.size(); } /** - * - * *
                  * Secret environment variables configuration.
                  * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ @java.lang.Override public com.google.cloud.functions.v2beta.SecretEnvVar getSecretEnvironmentVariables(int index) { return secretEnvironmentVariables_.get(index); } /** - * - * *
                  * Secret environment variables configuration.
                  * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ @java.lang.Override - public com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder - getSecretEnvironmentVariablesOrBuilder(int index) { + public com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( + int index) { return secretEnvironmentVariables_.get(index); } public static final int SECRET_VOLUMES_FIELD_NUMBER = 19; private java.util.List secretVolumes_; /** - * - * *
                  * Secret volumes configuration.
                  * 
              @@ -1243,8 +1087,6 @@ public java.util.List getSecretV return secretVolumes_; } /** - * - * *
                  * Secret volumes configuration.
                  * 
              @@ -1252,13 +1094,11 @@ public java.util.List getSecretV * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ @java.lang.Override - public java.util.List + public java.util.List getSecretVolumesOrBuilderList() { return secretVolumes_; } /** - * - * *
                  * Secret volumes configuration.
                  * 
              @@ -1270,8 +1110,6 @@ public int getSecretVolumesCount() { return secretVolumes_.size(); } /** - * - * *
                  * Secret volumes configuration.
                  * 
              @@ -1283,8 +1121,6 @@ public com.google.cloud.functions.v2beta.SecretVolume getSecretVolumes(int index return secretVolumes_.get(index); } /** - * - * *
                  * Secret volumes configuration.
                  * 
              @@ -1300,14 +1136,11 @@ public com.google.cloud.functions.v2beta.SecretVolumeOrBuilder getSecretVolumesO public static final int REVISION_FIELD_NUMBER = 18; private volatile java.lang.Object revision_; /** - * - * *
                  * Output only. The name of service revision.
                  * 
              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revision. */ @java.lang.Override @@ -1316,29 +1149,29 @@ public java.lang.String getRevision() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; } } /** - * - * *
                  * Output only. The name of service revision.
                  * 
              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revision. */ @java.lang.Override - public com.google.protobuf.ByteString getRevisionBytes() { + public com.google.protobuf.ByteString + getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); revision_ = b; return b; } else { @@ -1347,7 +1180,6 @@ public com.google.protobuf.ByteString getRevisionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1359,14 +1191,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } if (timeoutSeconds_ != 0) { output.writeInt32(2, timeoutSeconds_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -1377,16 +1211,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vpcConnector_); } - if (vpcConnectorEgressSettings_ - != com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings - .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED - .getNumber()) { + if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { output.writeEnum(7, vpcConnectorEgressSettings_); } - if (ingressSettings_ - != com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings - .INGRESS_SETTINGS_UNSPECIFIED - .getNumber()) { + if (ingressSettings_ != com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { output.writeEnum(8, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { @@ -1426,35 +1254,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } if (timeoutSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, timeoutSeconds_); - } - for (java.util.Map.Entry entry : - internalGetEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry environmentVariables__ = - EnvironmentVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, environmentVariables__); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, timeoutSeconds_); + } + for (java.util.Map.Entry entry + : internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, environmentVariables__); } if (maxInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxInstanceCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, maxInstanceCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vpcConnector_); } - if (vpcConnectorEgressSettings_ - != com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings - .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, vpcConnectorEgressSettings_); + if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, vpcConnectorEgressSettings_); } - if (ingressSettings_ - != com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings - .INGRESS_SETTINGS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, ingressSettings_); + if (ingressSettings_ != com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, uri_); @@ -1463,25 +1289,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, serviceAccountEmail_); } if (minInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, minInstanceCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(12, minInstanceCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableMemory_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, availableMemory_); } if (allTrafficOnLatestRevision_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(16, allTrafficOnLatestRevision_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(16, allTrafficOnLatestRevision_); } for (int i = 0; i < secretEnvironmentVariables_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 17, secretEnvironmentVariables_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, secretEnvironmentVariables_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, revision_); } for (int i = 0; i < secretVolumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, secretVolumes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, secretVolumes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1491,31 +1318,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.ServiceConfig)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.ServiceConfig other = - (com.google.cloud.functions.v2beta.ServiceConfig) obj; - - if (!getService().equals(other.getService())) return false; - if (getTimeoutSeconds() != other.getTimeoutSeconds()) return false; - if (!getAvailableMemory().equals(other.getAvailableMemory())) return false; - if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) - return false; - if (getMaxInstanceCount() != other.getMaxInstanceCount()) return false; - if (getMinInstanceCount() != other.getMinInstanceCount()) return false; - if (!getVpcConnector().equals(other.getVpcConnector())) return false; + com.google.cloud.functions.v2beta.ServiceConfig other = (com.google.cloud.functions.v2beta.ServiceConfig) obj; + + if (!getService() + .equals(other.getService())) return false; + if (getTimeoutSeconds() + != other.getTimeoutSeconds()) return false; + if (!getAvailableMemory() + .equals(other.getAvailableMemory())) return false; + if (!internalGetEnvironmentVariables().equals( + other.internalGetEnvironmentVariables())) return false; + if (getMaxInstanceCount() + != other.getMaxInstanceCount()) return false; + if (getMinInstanceCount() + != other.getMinInstanceCount()) return false; + if (!getVpcConnector() + .equals(other.getVpcConnector())) return false; if (vpcConnectorEgressSettings_ != other.vpcConnectorEgressSettings_) return false; if (ingressSettings_ != other.ingressSettings_) return false; - if (!getUri().equals(other.getUri())) return false; - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; - if (getAllTrafficOnLatestRevision() != other.getAllTrafficOnLatestRevision()) return false; - if (!getSecretEnvironmentVariablesList().equals(other.getSecretEnvironmentVariablesList())) - return false; - if (!getSecretVolumesList().equals(other.getSecretVolumesList())) return false; - if (!getRevision().equals(other.getRevision())) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; + if (getAllTrafficOnLatestRevision() + != other.getAllTrafficOnLatestRevision()) return false; + if (!getSecretEnvironmentVariablesList() + .equals(other.getSecretEnvironmentVariablesList())) return false; + if (!getSecretVolumesList() + .equals(other.getSecretVolumesList())) return false; + if (!getRevision() + .equals(other.getRevision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1552,7 +1389,8 @@ public int hashCode() { hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountEmail().hashCode(); hash = (37 * hash) + ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllTrafficOnLatestRevision()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllTrafficOnLatestRevision()); if (getSecretEnvironmentVariablesCount() > 0) { hash = (37 * hash) + SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + getSecretEnvironmentVariablesList().hashCode(); @@ -1568,104 +1406,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ServiceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ServiceConfig 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.ServiceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.ServiceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.ServiceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ServiceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.ServiceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Describes the Service being deployed.
                  * Currently Supported : Cloud Run (fully managed).
              @@ -1673,43 +1504,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                  *
                  * Protobuf type {@code google.cloud.functions.v2beta.ServiceConfig}
                  */
              -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
              -      implements
              +  public static final class Builder extends
              +      com.google.protobuf.GeneratedMessageV3.Builder implements
                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.ServiceConfig)
                     com.google.cloud.functions.v2beta.ServiceConfigOrBuilder {
              -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor;
              +    public static final com.google.protobuf.Descriptors.Descriptor
              +        getDescriptor() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor;
                   }
               
                   @SuppressWarnings({"rawtypes"})
              -    protected com.google.protobuf.MapField internalGetMapField(int number) {
              +    protected com.google.protobuf.MapField internalGetMapField(
              +        int number) {
                     switch (number) {
                       case 4:
                         return internalGetEnvironmentVariables();
                       default:
              -          throw new RuntimeException("Invalid map field number: " + number);
              +          throw new RuntimeException(
              +              "Invalid map field number: " + number);
                     }
                   }
              -
                   @SuppressWarnings({"rawtypes"})
              -    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
              +    protected com.google.protobuf.MapField internalGetMutableMapField(
              +        int number) {
                     switch (number) {
                       case 4:
                         return internalGetMutableEnvironmentVariables();
                       default:
              -          throw new RuntimeException("Invalid map field number: " + number);
              +          throw new RuntimeException(
              +              "Invalid map field number: " + number);
                     }
                   }
              -
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
              -              com.google.cloud.functions.v2beta.ServiceConfig.class,
              -              com.google.cloud.functions.v2beta.ServiceConfig.Builder.class);
              +              com.google.cloud.functions.v2beta.ServiceConfig.class, com.google.cloud.functions.v2beta.ServiceConfig.Builder.class);
                   }
               
                   // Construct using com.google.cloud.functions.v2beta.ServiceConfig.newBuilder()
              @@ -1717,18 +1548,18 @@ private Builder() {
                     maybeForceBuilderInitialization();
                   }
               
              -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
              +    private Builder(
              +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                     super(parent);
                     maybeForceBuilderInitialization();
                   }
              -
                   private void maybeForceBuilderInitialization() {
              -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
              +      if (com.google.protobuf.GeneratedMessageV3
              +              .alwaysUseFieldBuilders) {
                       getSecretEnvironmentVariablesFieldBuilder();
                       getSecretVolumesFieldBuilder();
                     }
                   }
              -
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
              @@ -1773,9 +1604,9 @@ public Builder clear() {
                   }
               
                   @java.lang.Override
              -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor;
              +    public com.google.protobuf.Descriptors.Descriptor
              +        getDescriptorForType() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor;
                   }
               
                   @java.lang.Override
              @@ -1794,8 +1625,7 @@ public com.google.cloud.functions.v2beta.ServiceConfig build() {
               
                   @java.lang.Override
                   public com.google.cloud.functions.v2beta.ServiceConfig buildPartial() {
              -      com.google.cloud.functions.v2beta.ServiceConfig result =
              -          new com.google.cloud.functions.v2beta.ServiceConfig(this);
              +      com.google.cloud.functions.v2beta.ServiceConfig result = new com.google.cloud.functions.v2beta.ServiceConfig(this);
                     int from_bitField0_ = bitField0_;
                     result.service_ = service_;
                     result.timeoutSeconds_ = timeoutSeconds_;
              @@ -1812,8 +1642,7 @@ public com.google.cloud.functions.v2beta.ServiceConfig buildPartial() {
                     result.allTrafficOnLatestRevision_ = allTrafficOnLatestRevision_;
                     if (secretEnvironmentVariablesBuilder_ == null) {
                       if (((bitField0_ & 0x00000002) != 0)) {
              -          secretEnvironmentVariables_ =
              -              java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
              +          secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                         bitField0_ = (bitField0_ & ~0x00000002);
                       }
                       result.secretEnvironmentVariables_ = secretEnvironmentVariables_;
              @@ -1838,39 +1667,38 @@ public com.google.cloud.functions.v2beta.ServiceConfig buildPartial() {
                   public Builder clone() {
                     return super.clone();
                   }
              -
                   @java.lang.Override
                   public Builder setField(
              -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
              +        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) {
              +    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) {
              +    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) {
              +        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) {
              +        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.ServiceConfig) {
              -        return mergeFrom((com.google.cloud.functions.v2beta.ServiceConfig) other);
              +        return mergeFrom((com.google.cloud.functions.v2beta.ServiceConfig)other);
                     } else {
                       super.mergeFrom(other);
                       return this;
              @@ -1878,8 +1706,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                   }
               
                   public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other) {
              -      if (other == com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance())
              -        return this;
              +      if (other == com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance()) return this;
                     if (!other.getService().isEmpty()) {
                       service_ = other.service_;
                       onChanged();
              @@ -1891,7 +1718,8 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other)
                       availableMemory_ = other.availableMemory_;
                       onChanged();
                     }
              -      internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables());
              +      internalGetMutableEnvironmentVariables().mergeFrom(
              +          other.internalGetEnvironmentVariables());
                     if (other.getMaxInstanceCount() != 0) {
                       setMaxInstanceCount(other.getMaxInstanceCount());
                     }
              @@ -1937,10 +1765,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other)
                           secretEnvironmentVariablesBuilder_ = null;
                           secretEnvironmentVariables_ = other.secretEnvironmentVariables_;
                           bitField0_ = (bitField0_ & ~0x00000002);
              -            secretEnvironmentVariablesBuilder_ =
              -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
              -                    ? getSecretEnvironmentVariablesFieldBuilder()
              -                    : null;
              +            secretEnvironmentVariablesBuilder_ = 
              +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
              +                 getSecretEnvironmentVariablesFieldBuilder() : null;
                         } else {
                           secretEnvironmentVariablesBuilder_.addAllMessages(other.secretEnvironmentVariables_);
                         }
              @@ -1964,10 +1791,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other)
                           secretVolumesBuilder_ = null;
                           secretVolumes_ = other.secretVolumes_;
                           bitField0_ = (bitField0_ & ~0x00000004);
              -            secretVolumesBuilder_ =
              -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
              -                    ? getSecretVolumesFieldBuilder()
              -                    : null;
              +            secretVolumesBuilder_ = 
              +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
              +                 getSecretVolumesFieldBuilder() : null;
                         } else {
                           secretVolumesBuilder_.addAllMessages(other.secretVolumes_);
                         }
              @@ -2005,29 +1831,24 @@ public Builder mergeFrom(
                     }
                     return this;
                   }
              -
                   private int bitField0_;
               
                   private java.lang.Object service_ = "";
                   /**
              -     *
              -     *
                    * 
                    * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -2036,25 +1857,22 @@ public java.lang.String getService() { } } /** - * - * *
                    * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for service. */ - public com.google.protobuf.ByteString getServiceBytes() { + public com.google.protobuf.ByteString + getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); service_ = b; return b; } else { @@ -2062,82 +1880,67 @@ public com.google.protobuf.ByteString getServiceBytes() { } } /** - * - * *
                    * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The service to set. * @return This builder for chaining. */ - public Builder setService(java.lang.String value) { + public Builder setService( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + service_ = value; onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearService() { - + service_ = getDefaultInstance().getService(); onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes(com.google.protobuf.ByteString value) { + public Builder setServiceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; onChanged(); return this; } - private int timeoutSeconds_; + private int timeoutSeconds_ ; /** - * - * *
                    * The function execution timeout. Execution is considered failed and
                    * can be terminated if the function is not completed at the end of the
              @@ -2145,7 +1948,6 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) {
                    * 
              * * int32 timeout_seconds = 2; - * * @return The timeoutSeconds. */ @java.lang.Override @@ -2153,8 +1955,6 @@ public int getTimeoutSeconds() { return timeoutSeconds_; } /** - * - * *
                    * The function execution timeout. Execution is considered failed and
                    * can be terminated if the function is not completed at the end of the
              @@ -2162,19 +1962,16 @@ public int getTimeoutSeconds() {
                    * 
              * * int32 timeout_seconds = 2; - * * @param value The timeoutSeconds to set. * @return This builder for chaining. */ public Builder setTimeoutSeconds(int value) { - + timeoutSeconds_ = value; onChanged(); return this; } /** - * - * *
                    * The function execution timeout. Execution is considered failed and
                    * can be terminated if the function is not completed at the end of the
              @@ -2182,11 +1979,10 @@ public Builder setTimeoutSeconds(int value) {
                    * 
              * * int32 timeout_seconds = 2; - * * @return This builder for chaining. */ public Builder clearTimeoutSeconds() { - + timeoutSeconds_ = 0; onChanged(); return this; @@ -2194,8 +1990,6 @@ public Builder clearTimeoutSeconds() { private java.lang.Object availableMemory_ = ""; /** - * - * *
                    * The amount of memory available for a function.
                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
              @@ -2206,13 +2000,13 @@ public Builder clearTimeoutSeconds() {
                    * 
              * * string available_memory = 13; - * * @return The availableMemory. */ public java.lang.String getAvailableMemory() { java.lang.Object ref = availableMemory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availableMemory_ = s; return s; @@ -2221,8 +2015,6 @@ public java.lang.String getAvailableMemory() { } } /** - * - * *
                    * The amount of memory available for a function.
                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
              @@ -2233,14 +2025,15 @@ public java.lang.String getAvailableMemory() {
                    * 
              * * string available_memory = 13; - * * @return The bytes for availableMemory. */ - public com.google.protobuf.ByteString getAvailableMemoryBytes() { + public com.google.protobuf.ByteString + getAvailableMemoryBytes() { java.lang.Object ref = availableMemory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); availableMemory_ = b; return b; } else { @@ -2248,8 +2041,6 @@ public com.google.protobuf.ByteString getAvailableMemoryBytes() { } } /** - * - * *
                    * The amount of memory available for a function.
                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
              @@ -2260,22 +2051,20 @@ public com.google.protobuf.ByteString getAvailableMemoryBytes() {
                    * 
              * * string available_memory = 13; - * * @param value The availableMemory to set. * @return This builder for chaining. */ - public Builder setAvailableMemory(java.lang.String value) { + public Builder setAvailableMemory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + availableMemory_ = value; onChanged(); return this; } /** - * - * *
                    * The amount of memory available for a function.
                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
              @@ -2286,18 +2075,15 @@ public Builder setAvailableMemory(java.lang.String value) {
                    * 
              * * string available_memory = 13; - * * @return This builder for chaining. */ public Builder clearAvailableMemory() { - + availableMemory_ = getDefaultInstance().getAvailableMemory(); onChanged(); return this; } /** - * - * *
                    * The amount of memory available for a function.
                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
              @@ -2308,40 +2094,37 @@ public Builder clearAvailableMemory() {
                    * 
              * * string available_memory = 13; - * * @param value The bytes for availableMemory to set. * @return This builder for chaining. */ - public Builder setAvailableMemoryBytes(com.google.protobuf.ByteString value) { + public Builder setAvailableMemoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + availableMemory_ = value; onChanged(); return this; } - private com.google.protobuf.MapField environmentVariables_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } - private com.google.protobuf.MapField - internalGetMutableEnvironmentVariables() { - onChanged(); - ; + internalGetMutableEnvironmentVariables() { + onChanged();; if (environmentVariables_ == null) { - environmentVariables_ = - com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); + environmentVariables_ = com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); @@ -2353,30 +2136,28 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** - * - * *
                    * Environment variables that shall be available during function execution.
                    * 
              * * map<string, string> environment_variables = 4; */ + @java.lang.Override - public boolean containsEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** - * - * *
                    * Environment variables that shall be available during function execution.
                    * 
              @@ -2384,12 +2165,11 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override + public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** - * - * *
                    * Environment variables that shall be available during function execution.
                    * 
              @@ -2397,18 +2177,16 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override + public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
                    * Environment variables that shall be available during function execution.
                    * 
              @@ -2416,10 +2194,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -2429,69 +2207,69 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { } public Builder clearEnvironmentVariables() { - internalGetMutableEnvironmentVariables().getMutableMap().clear(); + internalGetMutableEnvironmentVariables().getMutableMap() + .clear(); return this; } /** - * - * *
                    * Environment variables that shall be available during function execution.
                    * 
              * * map<string, string> environment_variables = 4; */ - public Builder removeEnvironmentVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableEnvironmentVariables().getMutableMap().remove(key); + + public Builder removeEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableEnvironmentVariables().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableEnvironmentVariables() { + public java.util.Map + getMutableEnvironmentVariables() { return internalGetMutableEnvironmentVariables().getMutableMap(); } /** - * - * *
                    * Environment variables that shall be available during function execution.
                    * 
              * * map<string, string> environment_variables = 4; */ - public Builder putEnvironmentVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putEnvironmentVariables( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableEnvironmentVariables().getMutableMap().put(key, value); + internalGetMutableEnvironmentVariables().getMutableMap() + .put(key, value); return this; } /** - * - * *
                    * Environment variables that shall be available during function execution.
                    * 
              * * map<string, string> environment_variables = 4; */ + public Builder putAllEnvironmentVariables( java.util.Map values) { - internalGetMutableEnvironmentVariables().getMutableMap().putAll(values); + internalGetMutableEnvironmentVariables().getMutableMap() + .putAll(values); return this; } - private int maxInstanceCount_; + private int maxInstanceCount_ ; /** - * - * *
                    * The limit on the maximum number of function instances that may coexist at a
                    * given time.
              @@ -2506,7 +2284,6 @@ public Builder putAllEnvironmentVariables(
                    * 
              * * int32 max_instance_count = 5; - * * @return The maxInstanceCount. */ @java.lang.Override @@ -2514,8 +2291,6 @@ public int getMaxInstanceCount() { return maxInstanceCount_; } /** - * - * *
                    * The limit on the maximum number of function instances that may coexist at a
                    * given time.
              @@ -2530,19 +2305,16 @@ public int getMaxInstanceCount() {
                    * 
              * * int32 max_instance_count = 5; - * * @param value The maxInstanceCount to set. * @return This builder for chaining. */ public Builder setMaxInstanceCount(int value) { - + maxInstanceCount_ = value; onChanged(); return this; } /** - * - * *
                    * The limit on the maximum number of function instances that may coexist at a
                    * given time.
              @@ -2557,20 +2329,17 @@ public Builder setMaxInstanceCount(int value) {
                    * 
              * * int32 max_instance_count = 5; - * * @return This builder for chaining. */ public Builder clearMaxInstanceCount() { - + maxInstanceCount_ = 0; onChanged(); return this; } - private int minInstanceCount_; + private int minInstanceCount_ ; /** - * - * *
                    * The limit on the minimum number of function instances that may coexist at a
                    * given time.
              @@ -2583,7 +2352,6 @@ public Builder clearMaxInstanceCount() {
                    * 
              * * int32 min_instance_count = 12; - * * @return The minInstanceCount. */ @java.lang.Override @@ -2591,8 +2359,6 @@ public int getMinInstanceCount() { return minInstanceCount_; } /** - * - * *
                    * The limit on the minimum number of function instances that may coexist at a
                    * given time.
              @@ -2605,19 +2371,16 @@ public int getMinInstanceCount() {
                    * 
              * * int32 min_instance_count = 12; - * * @param value The minInstanceCount to set. * @return This builder for chaining. */ public Builder setMinInstanceCount(int value) { - + minInstanceCount_ = value; onChanged(); return this; } /** - * - * *
                    * The limit on the minimum number of function instances that may coexist at a
                    * given time.
              @@ -2630,11 +2393,10 @@ public Builder setMinInstanceCount(int value) {
                    * 
              * * int32 min_instance_count = 12; - * * @return This builder for chaining. */ public Builder clearMinInstanceCount() { - + minInstanceCount_ = 0; onChanged(); return this; @@ -2642,21 +2404,19 @@ public Builder clearMinInstanceCount() { private java.lang.Object vpcConnector_ = ""; /** - * - * *
                    * 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) = { ... } - * * @return The vpcConnector. */ public java.lang.String getVpcConnector() { java.lang.Object ref = vpcConnector_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; @@ -2665,22 +2425,21 @@ public java.lang.String getVpcConnector() { } } /** - * - * *
                    * 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) = { ... } - * * @return The bytes for vpcConnector. */ - public com.google.protobuf.ByteString getVpcConnectorBytes() { + public com.google.protobuf.ByteString + getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -2688,64 +2447,57 @@ public com.google.protobuf.ByteString getVpcConnectorBytes() { } } /** - * - * *
                    * 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) = { ... } - * * @param value The vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnector(java.lang.String value) { + public Builder setVpcConnector( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vpcConnector_ = value; onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * * @return This builder for chaining. */ public Builder clearVpcConnector() { - + vpcConnector_ = getDefaultInstance().getVpcConnector(); onChanged(); return this; } /** - * - * *
                    * 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) = { ... } - * * @param value The bytes for vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnectorBytes(com.google.protobuf.ByteString value) { + public Builder setVpcConnectorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcConnector_ = value; onChanged(); return this; @@ -2753,110 +2505,78 @@ public Builder setVpcConnectorBytes(com.google.protobuf.ByteString value) { private int vpcConnectorEgressSettings_ = 0; /** - * - * *
                    * The egress settings for the connector, controlling what traffic is diverted
                    * through it.
                    * 
              * - * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override - public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** - * - * *
                    * The egress settings for the connector, controlling what traffic is diverted
                    * through it.
                    * 
              * - * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @param value The enum numeric value on the wire for vpcConnectorEgressSettings to set. * @return This builder for chaining. */ public Builder setVpcConnectorEgressSettingsValue(int value) { - + vpcConnectorEgressSettings_ = value; onChanged(); return this; } /** - * - * *
                    * The egress settings for the connector, controlling what traffic is diverted
                    * through it.
                    * 
              * - * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return The vpcConnectorEgressSettings. */ @java.lang.Override - public com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings - getVpcConnectorEgressSettings() { + public com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings result = - com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.valueOf( - vpcConnectorEgressSettings_); - return result == null - ? com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED - : result; + com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings result = com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); + return result == null ? com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED : result; } /** - * - * *
                    * The egress settings for the connector, controlling what traffic is diverted
                    * through it.
                    * 
              * - * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @param value The vpcConnectorEgressSettings to set. * @return This builder for chaining. */ - public Builder setVpcConnectorEgressSettings( - com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings value) { + public Builder setVpcConnectorEgressSettings(com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings value) { if (value == null) { throw new NullPointerException(); } - + vpcConnectorEgressSettings_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                    * The egress settings for the connector, controlling what traffic is diverted
                    * through it.
                    * 
              * - * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return This builder for chaining. */ public Builder clearVpcConnectorEgressSettings() { - + vpcConnectorEgressSettings_ = 0; onChanged(); return this; @@ -2864,103 +2584,78 @@ public Builder clearVpcConnectorEgressSettings() { private int ingressSettings_ = 0; /** - * - * *
                    * The ingress settings for the function, controlling what traffic can reach
                    * it.
                    * 
              * - * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override - public int getIngressSettingsValue() { + @java.lang.Override public int getIngressSettingsValue() { return ingressSettings_; } /** - * - * *
                    * The ingress settings for the function, controlling what traffic can reach
                    * it.
                    * 
              * - * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; * @param value The enum numeric value on the wire for ingressSettings to set. * @return This builder for chaining. */ public Builder setIngressSettingsValue(int value) { - + ingressSettings_ = value; onChanged(); return this; } /** - * - * *
                    * The ingress settings for the function, controlling what traffic can reach
                    * it.
                    * 
              * - * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; * @return The ingressSettings. */ @java.lang.Override public com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings result = - com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.valueOf(ingressSettings_); - return result == null - ? com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.UNRECOGNIZED - : result; + com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings result = com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.valueOf(ingressSettings_); + return result == null ? com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.UNRECOGNIZED : result; } /** - * - * *
                    * The ingress settings for the function, controlling what traffic can reach
                    * it.
                    * 
              * - * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; * @param value The ingressSettings to set. * @return This builder for chaining. */ - public Builder setIngressSettings( - com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings value) { + public Builder setIngressSettings(com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings value) { if (value == null) { throw new NullPointerException(); } - + ingressSettings_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                    * The ingress settings for the function, controlling what traffic can reach
                    * it.
                    * 
              * - * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; * @return This builder for chaining. */ public Builder clearIngressSettings() { - + ingressSettings_ = 0; onChanged(); return this; @@ -2968,20 +2663,18 @@ public Builder clearIngressSettings() { private java.lang.Object uri_ = ""; /** - * - * *
                    * Output only. URI of the Service deployed.
                    * 
              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -2990,21 +2683,20 @@ public java.lang.String getUri() { } } /** - * - * *
                    * Output only. URI of the Service deployed.
                    * 
              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -3012,61 +2704,54 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
                    * Output only. URI of the Service deployed.
                    * 
              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
                    * Output only. URI of the Service deployed.
                    * 
              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
                    * Output only. URI of the Service deployed.
                    * 
              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; @@ -3074,21 +2759,19 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
                    * The email of the service's service account. If empty, defaults to
                    * `{project_number}-compute@developer.gserviceaccount.com`.
                    * 
              * * string service_account_email = 10; - * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -3097,22 +2780,21 @@ public java.lang.String getServiceAccountEmail() { } } /** - * - * *
                    * The email of the service's service account. If empty, defaults to
                    * `{project_number}-compute@developer.gserviceaccount.com`.
                    * 
              * * string service_account_email = 10; - * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -3120,73 +2802,64 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } } /** - * - * *
                    * The email of the service's service account. If empty, defaults to
                    * `{project_number}-compute@developer.gserviceaccount.com`.
                    * 
              * * string service_account_email = 10; - * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail(java.lang.String value) { + public Builder setServiceAccountEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** - * - * *
                    * The email of the service's service account. If empty, defaults to
                    * `{project_number}-compute@developer.gserviceaccount.com`.
                    * 
              * * string service_account_email = 10; - * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** - * - * *
                    * The email of the service's service account. If empty, defaults to
                    * `{project_number}-compute@developer.gserviceaccount.com`.
                    * 
              * * string service_account_email = 10; - * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; } - private boolean allTrafficOnLatestRevision_; + private boolean allTrafficOnLatestRevision_ ; /** - * - * *
                    * Whether 100% of traffic is routed to the latest revision.
                    * On CreateFunction and UpdateFunction, when set to true, the revision being
              @@ -3196,7 +2869,6 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
                    * 
              * * bool all_traffic_on_latest_revision = 16; - * * @return The allTrafficOnLatestRevision. */ @java.lang.Override @@ -3204,8 +2876,6 @@ public boolean getAllTrafficOnLatestRevision() { return allTrafficOnLatestRevision_; } /** - * - * *
                    * Whether 100% of traffic is routed to the latest revision.
                    * On CreateFunction and UpdateFunction, when set to true, the revision being
              @@ -3215,19 +2885,16 @@ public boolean getAllTrafficOnLatestRevision() {
                    * 
              * * bool all_traffic_on_latest_revision = 16; - * * @param value The allTrafficOnLatestRevision to set. * @return This builder for chaining. */ public Builder setAllTrafficOnLatestRevision(boolean value) { - + allTrafficOnLatestRevision_ = value; onChanged(); return this; } /** - * - * *
                    * Whether 100% of traffic is routed to the latest revision.
                    * On CreateFunction and UpdateFunction, when set to true, the revision being
              @@ -3237,46 +2904,35 @@ public Builder setAllTrafficOnLatestRevision(boolean value) {
                    * 
              * * bool all_traffic_on_latest_revision = 16; - * * @return This builder for chaining. */ public Builder clearAllTrafficOnLatestRevision() { - + allTrafficOnLatestRevision_ = false; onChanged(); return this; } - private java.util.List - secretEnvironmentVariables_ = java.util.Collections.emptyList(); - + private java.util.List secretEnvironmentVariables_ = + java.util.Collections.emptyList(); private void ensureSecretEnvironmentVariablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - secretEnvironmentVariables_ = - new java.util.ArrayList( - secretEnvironmentVariables_); + secretEnvironmentVariables_ = new java.util.ArrayList(secretEnvironmentVariables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretEnvVar, - com.google.cloud.functions.v2beta.SecretEnvVar.Builder, - com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder> - secretEnvironmentVariablesBuilder_; + com.google.cloud.functions.v2beta.SecretEnvVar, com.google.cloud.functions.v2beta.SecretEnvVar.Builder, com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder> secretEnvironmentVariablesBuilder_; /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ - public java.util.List - getSecretEnvironmentVariablesList() { + public java.util.List getSecretEnvironmentVariablesList() { if (secretEnvironmentVariablesBuilder_ == null) { return java.util.Collections.unmodifiableList(secretEnvironmentVariables_); } else { @@ -3284,14 +2940,11 @@ private void ensureSecretEnvironmentVariablesIsMutable() { } } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ public int getSecretEnvironmentVariablesCount() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3301,14 +2954,11 @@ public int getSecretEnvironmentVariablesCount() { } } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ public com.google.cloud.functions.v2beta.SecretEnvVar getSecretEnvironmentVariables(int index) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3318,14 +2968,11 @@ public com.google.cloud.functions.v2beta.SecretEnvVar getSecretEnvironmentVariab } } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v2beta.SecretEnvVar value) { @@ -3342,14 +2989,11 @@ public Builder setSecretEnvironmentVariables( return this; } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v2beta.SecretEnvVar.Builder builderForValue) { @@ -3363,17 +3007,13 @@ public Builder setSecretEnvironmentVariables( return this; } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ - public Builder addSecretEnvironmentVariables( - com.google.cloud.functions.v2beta.SecretEnvVar value) { + public Builder addSecretEnvironmentVariables(com.google.cloud.functions.v2beta.SecretEnvVar value) { if (secretEnvironmentVariablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3387,14 +3027,11 @@ public Builder addSecretEnvironmentVariables( return this; } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v2beta.SecretEnvVar value) { @@ -3411,14 +3048,11 @@ public Builder addSecretEnvironmentVariables( return this; } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ public Builder addSecretEnvironmentVariables( com.google.cloud.functions.v2beta.SecretEnvVar.Builder builderForValue) { @@ -3432,14 +3066,11 @@ public Builder addSecretEnvironmentVariables( return this; } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v2beta.SecretEnvVar.Builder builderForValue) { @@ -3453,20 +3084,18 @@ public Builder addSecretEnvironmentVariables( return this; } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ public Builder addAllSecretEnvironmentVariables( java.lang.Iterable values) { if (secretEnvironmentVariablesBuilder_ == null) { ensureSecretEnvironmentVariablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretEnvironmentVariables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secretEnvironmentVariables_); onChanged(); } else { secretEnvironmentVariablesBuilder_.addAllMessages(values); @@ -3474,14 +3103,11 @@ public Builder addAllSecretEnvironmentVariables( return this; } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ public Builder clearSecretEnvironmentVariables() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3494,14 +3120,11 @@ public Builder clearSecretEnvironmentVariables() { return this; } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ public Builder removeSecretEnvironmentVariables(int index) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3514,49 +3137,39 @@ public Builder removeSecretEnvironmentVariables(int index) { return this; } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ - public com.google.cloud.functions.v2beta.SecretEnvVar.Builder - getSecretEnvironmentVariablesBuilder(int index) { + public com.google.cloud.functions.v2beta.SecretEnvVar.Builder getSecretEnvironmentVariablesBuilder( + int index) { return getSecretEnvironmentVariablesFieldBuilder().getBuilder(index); } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ - public com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder - getSecretEnvironmentVariablesOrBuilder(int index) { + public com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( + int index) { if (secretEnvironmentVariablesBuilder_ == null) { - return secretEnvironmentVariables_.get(index); - } else { + return secretEnvironmentVariables_.get(index); } else { return secretEnvironmentVariablesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ - public java.util.List - getSecretEnvironmentVariablesOrBuilderList() { + public java.util.List + getSecretEnvironmentVariablesOrBuilderList() { if (secretEnvironmentVariablesBuilder_ != null) { return secretEnvironmentVariablesBuilder_.getMessageOrBuilderList(); } else { @@ -3564,61 +3177,45 @@ public Builder removeSecretEnvironmentVariables(int index) { } } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ - public com.google.cloud.functions.v2beta.SecretEnvVar.Builder - addSecretEnvironmentVariablesBuilder() { - return getSecretEnvironmentVariablesFieldBuilder() - .addBuilder(com.google.cloud.functions.v2beta.SecretEnvVar.getDefaultInstance()); + public com.google.cloud.functions.v2beta.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder() { + return getSecretEnvironmentVariablesFieldBuilder().addBuilder( + com.google.cloud.functions.v2beta.SecretEnvVar.getDefaultInstance()); } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ - public com.google.cloud.functions.v2beta.SecretEnvVar.Builder - addSecretEnvironmentVariablesBuilder(int index) { - return getSecretEnvironmentVariablesFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2beta.SecretEnvVar.getDefaultInstance()); + public com.google.cloud.functions.v2beta.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder( + int index) { + return getSecretEnvironmentVariablesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2beta.SecretEnvVar.getDefaultInstance()); } /** - * - * *
                    * Secret environment variables configuration.
                    * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ - public java.util.List - getSecretEnvironmentVariablesBuilderList() { + public java.util.List + getSecretEnvironmentVariablesBuilderList() { return getSecretEnvironmentVariablesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretEnvVar, - com.google.cloud.functions.v2beta.SecretEnvVar.Builder, - com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder> + com.google.cloud.functions.v2beta.SecretEnvVar, com.google.cloud.functions.v2beta.SecretEnvVar.Builder, com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder> getSecretEnvironmentVariablesFieldBuilder() { if (secretEnvironmentVariablesBuilder_ == null) { - secretEnvironmentVariablesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretEnvVar, - com.google.cloud.functions.v2beta.SecretEnvVar.Builder, - com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder>( + secretEnvironmentVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.SecretEnvVar, com.google.cloud.functions.v2beta.SecretEnvVar.Builder, com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder>( secretEnvironmentVariables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3629,25 +3226,18 @@ public Builder removeSecretEnvironmentVariables(int index) { } private java.util.List secretVolumes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSecretVolumesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - secretVolumes_ = - new java.util.ArrayList(secretVolumes_); + secretVolumes_ = new java.util.ArrayList(secretVolumes_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretVolume, - com.google.cloud.functions.v2beta.SecretVolume.Builder, - com.google.cloud.functions.v2beta.SecretVolumeOrBuilder> - secretVolumesBuilder_; + com.google.cloud.functions.v2beta.SecretVolume, com.google.cloud.functions.v2beta.SecretVolume.Builder, com.google.cloud.functions.v2beta.SecretVolumeOrBuilder> secretVolumesBuilder_; /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3662,8 +3252,6 @@ public java.util.List getSecretV } } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3678,8 +3266,6 @@ public int getSecretVolumesCount() { } } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3694,8 +3280,6 @@ public com.google.cloud.functions.v2beta.SecretVolume getSecretVolumes(int index } } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3717,8 +3301,6 @@ public Builder setSecretVolumes( return this; } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3737,8 +3319,6 @@ public Builder setSecretVolumes( return this; } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3759,8 +3339,6 @@ public Builder addSecretVolumes(com.google.cloud.functions.v2beta.SecretVolume v return this; } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3782,8 +3360,6 @@ public Builder addSecretVolumes( return this; } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3802,8 +3378,6 @@ public Builder addSecretVolumes( return this; } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3822,8 +3396,6 @@ public Builder addSecretVolumes( return this; } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3834,7 +3406,8 @@ public Builder addAllSecretVolumes( java.lang.Iterable values) { if (secretVolumesBuilder_ == null) { ensureSecretVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretVolumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secretVolumes_); onChanged(); } else { secretVolumesBuilder_.addAllMessages(values); @@ -3842,8 +3415,6 @@ public Builder addAllSecretVolumes( return this; } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3861,8 +3432,6 @@ public Builder clearSecretVolumes() { return this; } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3880,8 +3449,6 @@ public Builder removeSecretVolumes(int index) { return this; } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3893,8 +3460,6 @@ public com.google.cloud.functions.v2beta.SecretVolume.Builder getSecretVolumesBu return getSecretVolumesFieldBuilder().getBuilder(index); } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3904,22 +3469,19 @@ public com.google.cloud.functions.v2beta.SecretVolume.Builder getSecretVolumesBu public com.google.cloud.functions.v2beta.SecretVolumeOrBuilder getSecretVolumesOrBuilder( int index) { if (secretVolumesBuilder_ == null) { - return secretVolumes_.get(index); - } else { + return secretVolumes_.get(index); } else { return secretVolumesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                    * Secret volumes configuration.
                    * 
              * * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ - public java.util.List - getSecretVolumesOrBuilderList() { + public java.util.List + getSecretVolumesOrBuilderList() { if (secretVolumesBuilder_ != null) { return secretVolumesBuilder_.getMessageOrBuilderList(); } else { @@ -3927,8 +3489,6 @@ public com.google.cloud.functions.v2beta.SecretVolumeOrBuilder getSecretVolumesO } } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3936,12 +3496,10 @@ public com.google.cloud.functions.v2beta.SecretVolumeOrBuilder getSecretVolumesO * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ public com.google.cloud.functions.v2beta.SecretVolume.Builder addSecretVolumesBuilder() { - return getSecretVolumesFieldBuilder() - .addBuilder(com.google.cloud.functions.v2beta.SecretVolume.getDefaultInstance()); + return getSecretVolumesFieldBuilder().addBuilder( + com.google.cloud.functions.v2beta.SecretVolume.getDefaultInstance()); } /** - * - * *
                    * Secret volumes configuration.
                    * 
              @@ -3950,34 +3508,26 @@ public com.google.cloud.functions.v2beta.SecretVolume.Builder addSecretVolumesBu */ public com.google.cloud.functions.v2beta.SecretVolume.Builder addSecretVolumesBuilder( int index) { - return getSecretVolumesFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2beta.SecretVolume.getDefaultInstance()); + return getSecretVolumesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2beta.SecretVolume.getDefaultInstance()); } /** - * - * *
                    * Secret volumes configuration.
                    * 
              * * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ - public java.util.List - getSecretVolumesBuilderList() { + public java.util.List + getSecretVolumesBuilderList() { return getSecretVolumesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretVolume, - com.google.cloud.functions.v2beta.SecretVolume.Builder, - com.google.cloud.functions.v2beta.SecretVolumeOrBuilder> + com.google.cloud.functions.v2beta.SecretVolume, com.google.cloud.functions.v2beta.SecretVolume.Builder, com.google.cloud.functions.v2beta.SecretVolumeOrBuilder> getSecretVolumesFieldBuilder() { if (secretVolumesBuilder_ == null) { - secretVolumesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretVolume, - com.google.cloud.functions.v2beta.SecretVolume.Builder, - com.google.cloud.functions.v2beta.SecretVolumeOrBuilder>( + secretVolumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.SecretVolume, com.google.cloud.functions.v2beta.SecretVolume.Builder, com.google.cloud.functions.v2beta.SecretVolumeOrBuilder>( secretVolumes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3989,20 +3539,18 @@ public com.google.cloud.functions.v2beta.SecretVolume.Builder addSecretVolumesBu private java.lang.Object revision_ = ""; /** - * - * *
                    * Output only. The name of service revision.
                    * 
              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revision. */ public java.lang.String getRevision() { java.lang.Object ref = revision_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; @@ -4011,21 +3559,20 @@ public java.lang.String getRevision() { } } /** - * - * *
                    * Output only. The name of service revision.
                    * 
              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revision. */ - public com.google.protobuf.ByteString getRevisionBytes() { + public com.google.protobuf.ByteString + getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); revision_ = b; return b; } else { @@ -4033,68 +3580,61 @@ public com.google.protobuf.ByteString getRevisionBytes() { } } /** - * - * *
                    * Output only. The name of service revision.
                    * 
              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The revision to set. * @return This builder for chaining. */ - public Builder setRevision(java.lang.String value) { + public Builder setRevision( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + revision_ = value; onChanged(); return this; } /** - * - * *
                    * Output only. The name of service revision.
                    * 
              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRevision() { - + revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** - * - * *
                    * Output only. The name of service revision.
                    * 
              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for revision to set. * @return This builder for chaining. */ - public Builder setRevisionBytes(com.google.protobuf.ByteString value) { + public Builder setRevisionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revision_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4104,12 +3644,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.ServiceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.ServiceConfig) private static final com.google.cloud.functions.v2beta.ServiceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.ServiceConfig(); } @@ -4118,16 +3658,16 @@ public static com.google.cloud.functions.v2beta.ServiceConfig getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServiceConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServiceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4142,4 +3682,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.ServiceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java similarity index 79% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java index 11e65fc9..702f6502 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java @@ -1,64 +1,37 @@ -/* - * 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 ServiceConfigOrBuilder - extends +public interface ServiceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.ServiceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The service. */ java.lang.String getService(); /** - * - * *
                  * 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) = { ... } - * - * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for service. */ - com.google.protobuf.ByteString getServiceBytes(); + com.google.protobuf.ByteString + getServiceBytes(); /** - * - * *
                  * The function execution timeout. Execution is considered failed and
                  * can be terminated if the function is not completed at the end of the
              @@ -66,14 +39,11 @@ public interface ServiceConfigOrBuilder
                  * 
              * * int32 timeout_seconds = 2; - * * @return The timeoutSeconds. */ int getTimeoutSeconds(); /** - * - * *
                  * The amount of memory available for a function.
                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
              @@ -84,13 +54,10 @@ public interface ServiceConfigOrBuilder
                  * 
              * * string available_memory = 13; - * * @return The availableMemory. */ java.lang.String getAvailableMemory(); /** - * - * *
                  * The amount of memory available for a function.
                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
              @@ -101,14 +68,12 @@ public interface ServiceConfigOrBuilder
                  * 
              * * string available_memory = 13; - * * @return The bytes for availableMemory. */ - com.google.protobuf.ByteString getAvailableMemoryBytes(); + com.google.protobuf.ByteString + getAvailableMemoryBytes(); /** - * - * *
                  * Environment variables that shall be available during function execution.
                  * 
              @@ -117,31 +82,30 @@ public interface ServiceConfigOrBuilder */ int getEnvironmentVariablesCount(); /** - * - * *
                  * Environment variables that shall be available during function execution.
                  * 
              * * map<string, string> environment_variables = 4; */ - boolean containsEnvironmentVariables(java.lang.String key); - /** Use {@link #getEnvironmentVariablesMap()} instead. */ + boolean containsEnvironmentVariables( + java.lang.String key); + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getEnvironmentVariables(); + java.util.Map + getEnvironmentVariables(); /** - * - * *
                  * Environment variables that shall be available during function execution.
                  * 
              * * map<string, string> environment_variables = 4; */ - java.util.Map getEnvironmentVariablesMap(); + java.util.Map + getEnvironmentVariablesMap(); /** - * - * *
                  * Environment variables that shall be available during function execution.
                  * 
              @@ -150,24 +114,22 @@ public interface ServiceConfigOrBuilder */ /* nullable */ - java.lang.String getEnvironmentVariablesOrDefault( +java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
                  * Environment variables that shall be available during function execution.
                  * 
              * * map<string, string> environment_variables = 4; */ - java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key); + + java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key); /** - * - * *
                  * The limit on the maximum number of function instances that may coexist at a
                  * given time.
              @@ -182,14 +144,11 @@ java.lang.String getEnvironmentVariablesOrDefault(
                  * 
              * * int32 max_instance_count = 5; - * * @return The maxInstanceCount. */ int getMaxInstanceCount(); /** - * - * *
                  * The limit on the minimum number of function instances that may coexist at a
                  * given time.
              @@ -202,152 +161,117 @@ java.lang.String getEnvironmentVariablesOrDefault(
                  * 
              * * int32 min_instance_count = 12; - * * @return The minInstanceCount. */ int getMinInstanceCount(); /** - * - * *
                  * 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) = { ... } - * * @return The vpcConnector. */ java.lang.String getVpcConnector(); /** - * - * *
                  * 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) = { ... } - * * @return The bytes for vpcConnector. */ - com.google.protobuf.ByteString getVpcConnectorBytes(); + com.google.protobuf.ByteString + getVpcConnectorBytes(); /** - * - * *
                  * The egress settings for the connector, controlling what traffic is diverted
                  * through it.
                  * 
              * - * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ int getVpcConnectorEgressSettingsValue(); /** - * - * *
                  * The egress settings for the connector, controlling what traffic is diverted
                  * through it.
                  * 
              * - * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; - * - * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; * @return The vpcConnectorEgressSettings. */ - com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings - getVpcConnectorEgressSettings(); + com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings(); /** - * - * *
                  * The ingress settings for the function, controlling what traffic can reach
                  * it.
                  * 
              * * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; - * * @return The enum numeric value on the wire for ingressSettings. */ int getIngressSettingsValue(); /** - * - * *
                  * The ingress settings for the function, controlling what traffic can reach
                  * it.
                  * 
              * * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; - * * @return The ingressSettings. */ com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings getIngressSettings(); /** - * - * *
                  * Output only. URI of the Service deployed.
                  * 
              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
                  * Output only. URI of the Service deployed.
                  * 
              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
                  * The email of the service's service account. If empty, defaults to
                  * `{project_number}-compute@developer.gserviceaccount.com`.
                  * 
              * * string service_account_email = 10; - * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** - * - * *
                  * The email of the service's service account. If empty, defaults to
                  * `{project_number}-compute@developer.gserviceaccount.com`.
                  * 
              * * string service_account_email = 10; - * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getServiceAccountEmailBytes(); /** - * - * *
                  * Whether 100% of traffic is routed to the latest revision.
                  * On CreateFunction and UpdateFunction, when set to true, the revision being
              @@ -357,83 +281,64 @@ java.lang.String getEnvironmentVariablesOrDefault(
                  * 
              * * bool all_traffic_on_latest_revision = 16; - * * @return The allTrafficOnLatestRevision. */ boolean getAllTrafficOnLatestRevision(); /** - * - * *
                  * Secret environment variables configuration.
                  * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ - java.util.List + java.util.List getSecretEnvironmentVariablesList(); /** - * - * *
                  * Secret environment variables configuration.
                  * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ com.google.cloud.functions.v2beta.SecretEnvVar getSecretEnvironmentVariables(int index); /** - * - * *
                  * Secret environment variables configuration.
                  * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ int getSecretEnvironmentVariablesCount(); /** - * - * *
                  * Secret environment variables configuration.
                  * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ - java.util.List + java.util.List getSecretEnvironmentVariablesOrBuilderList(); /** - * - * *
                  * Secret environment variables configuration.
                  * 
              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; - * + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; */ com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( int index); /** - * - * *
                  * Secret volumes configuration.
                  * 
              * * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ - java.util.List getSecretVolumesList(); + java.util.List + getSecretVolumesList(); /** - * - * *
                  * Secret volumes configuration.
                  * 
              @@ -442,8 +347,6 @@ com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder getSecretEnvironmentVari */ com.google.cloud.functions.v2beta.SecretVolume getSecretVolumes(int index); /** - * - * *
                  * Secret volumes configuration.
                  * 
              @@ -452,49 +355,41 @@ com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder getSecretEnvironmentVari */ int getSecretVolumesCount(); /** - * - * *
                  * Secret volumes configuration.
                  * 
              * * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ - java.util.List + java.util.List getSecretVolumesOrBuilderList(); /** - * - * *
                  * Secret volumes configuration.
                  * 
              * * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ - com.google.cloud.functions.v2beta.SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index); + com.google.cloud.functions.v2beta.SecretVolumeOrBuilder getSecretVolumesOrBuilder( + int index); /** - * - * *
                  * Output only. The name of service revision.
                  * 
              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revision. */ java.lang.String getRevision(); /** - * - * *
                  * Output only. The name of service revision.
                  * 
              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revision. */ - com.google.protobuf.ByteString getRevisionBytes(); + com.google.protobuf.ByteString + getRevisionBytes(); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java similarity index 71% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java index 920a9f77..a52cdc13 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java @@ -1,55 +1,39 @@ -/* - * 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; /** - * - * *
                * The location of the function source code.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.Source} */ -public final class Source extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Source extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.Source) SourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Source.newBuilder() to construct. private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Source() {} + private Source() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Source(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Source( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,46 +52,41 @@ private Source( case 0: done = true; break; - case 10: - { - com.google.cloud.functions.v2beta.StorageSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = - ((com.google.cloud.functions.v2beta.StorageSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.functions.v2beta.StorageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.functions.v2beta.StorageSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.functions.v2beta.StorageSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.functions.v2beta.StorageSource) source_).toBuilder(); } - case 18: - { - com.google.cloud.functions.v2beta.RepoSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.functions.v2beta.RepoSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.functions.v2beta.RepoSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.functions.v2beta.RepoSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 2; - break; + source_ = + input.readMessage(com.google.cloud.functions.v2beta.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.functions.v2beta.StorageSource) source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sourceCase_ = 1; + break; + } + case 18: { + com.google.cloud.functions.v2beta.RepoSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.functions.v2beta.RepoSource) source_).toBuilder(); + } + source_ = + input.readMessage(com.google.cloud.functions.v2beta.RepoSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.functions.v2beta.RepoSource) source_); + source_ = subBuilder.buildPartial(); } + sourceCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,40 +94,35 @@ private Source( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_Source_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.Source.class, - com.google.cloud.functions.v2beta.Source.Builder.class); + com.google.cloud.functions.v2beta.Source.class, com.google.cloud.functions.v2beta.Source.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STORAGE_SOURCE(1), REPO_SOURCE(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -164,36 +138,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return STORAGE_SOURCE; - case 2: - return REPO_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return STORAGE_SOURCE; + case 2: return REPO_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int STORAGE_SOURCE_FIELD_NUMBER = 1; /** - * - * *
                  * If provided, get the source from this location in Google Cloud Storage.
                  * 
              * * .google.cloud.functions.v2beta.StorageSource storage_source = 1; - * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -201,26 +169,21 @@ public boolean hasStorageSource() { return sourceCase_ == 1; } /** - * - * *
                  * If provided, get the source from this location in Google Cloud Storage.
                  * 
              * * .google.cloud.functions.v2beta.StorageSource storage_source = 1; - * * @return The storageSource. */ @java.lang.Override public com.google.cloud.functions.v2beta.StorageSource getStorageSource() { if (sourceCase_ == 1) { - return (com.google.cloud.functions.v2beta.StorageSource) source_; + return (com.google.cloud.functions.v2beta.StorageSource) source_; } return com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance(); } /** - * - * *
                  * If provided, get the source from this location in Google Cloud Storage.
                  * 
              @@ -230,22 +193,19 @@ public com.google.cloud.functions.v2beta.StorageSource getStorageSource() { @java.lang.Override public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSourceOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.functions.v2beta.StorageSource) source_; + return (com.google.cloud.functions.v2beta.StorageSource) source_; } return com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance(); } public static final int REPO_SOURCE_FIELD_NUMBER = 2; /** - * - * *
                  * If provided, get the source from this location in a Cloud Source
                  * Repository.
                  * 
              * * .google.cloud.functions.v2beta.RepoSource repo_source = 2; - * * @return Whether the repoSource field is set. */ @java.lang.Override @@ -253,27 +213,22 @@ public boolean hasRepoSource() { return sourceCase_ == 2; } /** - * - * *
                  * If provided, get the source from this location in a Cloud Source
                  * Repository.
                  * 
              * * .google.cloud.functions.v2beta.RepoSource repo_source = 2; - * * @return The repoSource. */ @java.lang.Override public com.google.cloud.functions.v2beta.RepoSource getRepoSource() { if (sourceCase_ == 2) { - return (com.google.cloud.functions.v2beta.RepoSource) source_; + return (com.google.cloud.functions.v2beta.RepoSource) source_; } return com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance(); } /** - * - * *
                  * If provided, get the source from this location in a Cloud Source
                  * Repository.
              @@ -284,13 +239,12 @@ public com.google.cloud.functions.v2beta.RepoSource getRepoSource() {
                 @java.lang.Override
                 public com.google.cloud.functions.v2beta.RepoSourceOrBuilder getRepoSourceOrBuilder() {
                   if (sourceCase_ == 2) {
              -      return (com.google.cloud.functions.v2beta.RepoSource) source_;
              +       return (com.google.cloud.functions.v2beta.RepoSource) source_;
                   }
                   return com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance();
                 }
               
                 private byte memoizedIsInitialized = -1;
              -
                 @java.lang.Override
                 public final boolean isInitialized() {
                   byte isInitialized = memoizedIsInitialized;
              @@ -302,7 +256,8 @@ public final boolean isInitialized() {
                 }
               
                 @java.lang.Override
              -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
              +  public void writeTo(com.google.protobuf.CodedOutputStream output)
              +                      throws java.io.IOException {
                   if (sourceCase_ == 1) {
                     output.writeMessage(1, (com.google.cloud.functions.v2beta.StorageSource) source_);
                   }
              @@ -319,14 +274,12 @@ public int getSerializedSize() {
               
                   size = 0;
                   if (sourceCase_ == 1) {
              -      size +=
              -          com.google.protobuf.CodedOutputStream.computeMessageSize(
              -              1, (com.google.cloud.functions.v2beta.StorageSource) source_);
              +      size += com.google.protobuf.CodedOutputStream
              +        .computeMessageSize(1, (com.google.cloud.functions.v2beta.StorageSource) source_);
                   }
                   if (sourceCase_ == 2) {
              -      size +=
              -          com.google.protobuf.CodedOutputStream.computeMessageSize(
              -              2, (com.google.cloud.functions.v2beta.RepoSource) source_);
              +      size += com.google.protobuf.CodedOutputStream
              +        .computeMessageSize(2, (com.google.cloud.functions.v2beta.RepoSource) source_);
                   }
                   size += unknownFields.getSerializedSize();
                   memoizedSize = size;
              @@ -336,7 +289,7 @@ public int getSerializedSize() {
                 @java.lang.Override
                 public boolean equals(final java.lang.Object obj) {
                   if (obj == this) {
              -      return true;
              +     return true;
                   }
                   if (!(obj instanceof com.google.cloud.functions.v2beta.Source)) {
                     return super.equals(obj);
              @@ -346,10 +299,12 @@ public boolean equals(final java.lang.Object obj) {
                   if (!getSourceCase().equals(other.getSourceCase())) return false;
                   switch (sourceCase_) {
                     case 1:
              -        if (!getStorageSource().equals(other.getStorageSource())) return false;
              +        if (!getStorageSource()
              +            .equals(other.getStorageSource())) return false;
                       break;
                     case 2:
              -        if (!getRepoSource().equals(other.getRepoSource())) return false;
              +        if (!getRepoSource()
              +            .equals(other.getRepoSource())) return false;
                       break;
                     case 0:
                     default:
              @@ -382,127 +337,118 @@ public int hashCode() {
                   return hash;
                 }
               
              -  public static com.google.cloud.functions.v2beta.Source parseFrom(java.nio.ByteBuffer data)
              +  public static com.google.cloud.functions.v2beta.Source parseFrom(
              +      java.nio.ByteBuffer data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.Source parseFrom(
              -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      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.Source parseFrom(
                     com.google.protobuf.ByteString data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.Source 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.Source parseFrom(byte[] data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.Source parseFrom(
              -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      byte[] data,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data, extensionRegistry);
                 }
              -
                 public static com.google.cloud.functions.v2beta.Source parseFrom(java.io.InputStream input)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.Source parseFrom(
              -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      java.io.InputStream input,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input, extensionRegistry);
                 }
              -
              -  public static com.google.cloud.functions.v2beta.Source parseDelimitedFrom(
              -      java.io.InputStream input) throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
              +  public static com.google.cloud.functions.v2beta.Source parseDelimitedFrom(java.io.InputStream input)
              +      throws java.io.IOException {
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseDelimitedWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.Source parseDelimitedFrom(
              -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      java.io.InputStream input,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                 }
              -
                 public static com.google.cloud.functions.v2beta.Source parseFrom(
              -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
              +      com.google.protobuf.CodedInputStream input)
              +      throws java.io.IOException {
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.Source parseFrom(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input, extensionRegistry);
                 }
               
                 @java.lang.Override
              -  public Builder newBuilderForType() {
              -    return newBuilder();
              -  }
              -
              +  public Builder newBuilderForType() { return newBuilder(); }
                 public static Builder newBuilder() {
                   return DEFAULT_INSTANCE.toBuilder();
                 }
              -
                 public static Builder newBuilder(com.google.cloud.functions.v2beta.Source prototype) {
                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                 }
              -
                 @java.lang.Override
                 public Builder toBuilder() {
              -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
              +    return this == DEFAULT_INSTANCE
              +        ? new Builder() : new Builder().mergeFrom(this);
                 }
               
                 @java.lang.Override
              -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
              +  protected Builder newBuilderForType(
              +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   Builder builder = new Builder(parent);
                   return builder;
                 }
                 /**
              -   *
              -   *
                  * 
                  * The location of the function source code.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.Source} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.Source) com.google.cloud.functions.v2beta.SourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_Source_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.Source.class, - com.google.cloud.functions.v2beta.Source.Builder.class); + com.google.cloud.functions.v2beta.Source.class, com.google.cloud.functions.v2beta.Source.Builder.class); } // Construct using com.google.cloud.functions.v2beta.Source.newBuilder() @@ -510,15 +456,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -528,9 +475,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_Source_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Source_descriptor; } @java.lang.Override @@ -549,8 +496,7 @@ public com.google.cloud.functions.v2beta.Source build() { @java.lang.Override public com.google.cloud.functions.v2beta.Source buildPartial() { - com.google.cloud.functions.v2beta.Source result = - new com.google.cloud.functions.v2beta.Source(this); + com.google.cloud.functions.v2beta.Source result = new com.google.cloud.functions.v2beta.Source(this); if (sourceCase_ == 1) { if (storageSourceBuilder_ == null) { result.source_ = source_; @@ -574,39 +520,38 @@ public com.google.cloud.functions.v2beta.Source buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.Source) other); + return mergeFrom((com.google.cloud.functions.v2beta.Source)other); } else { super.mergeFrom(other); return this; @@ -616,20 +561,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.functions.v2beta.Source other) { if (other == com.google.cloud.functions.v2beta.Source.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case STORAGE_SOURCE: - { - mergeStorageSource(other.getStorageSource()); - break; - } - case REPO_SOURCE: - { - mergeRepoSource(other.getRepoSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case STORAGE_SOURCE: { + mergeStorageSource(other.getStorageSource()); + break; + } + case REPO_SOURCE: { + mergeRepoSource(other.getRepoSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -659,12 +601,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -674,20 +616,15 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.StorageSource, - com.google.cloud.functions.v2beta.StorageSource.Builder, - com.google.cloud.functions.v2beta.StorageSourceOrBuilder> - storageSourceBuilder_; + com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder> storageSourceBuilder_; /** - * - * *
                    * If provided, get the source from this location in Google Cloud Storage.
                    * 
              * * .google.cloud.functions.v2beta.StorageSource storage_source = 1; - * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -695,14 +632,11 @@ public boolean hasStorageSource() { return sourceCase_ == 1; } /** - * - * *
                    * If provided, get the source from this location in Google Cloud Storage.
                    * 
              * * .google.cloud.functions.v2beta.StorageSource storage_source = 1; - * * @return The storageSource. */ @java.lang.Override @@ -720,8 +654,6 @@ public com.google.cloud.functions.v2beta.StorageSource getStorageSource() { } } /** - * - * *
                    * If provided, get the source from this location in Google Cloud Storage.
                    * 
              @@ -742,8 +674,6 @@ public Builder setStorageSource(com.google.cloud.functions.v2beta.StorageSource return this; } /** - * - * *
                    * If provided, get the source from this location in Google Cloud Storage.
                    * 
              @@ -762,8 +692,6 @@ public Builder setStorageSource( return this; } /** - * - * *
                    * If provided, get the source from this location in Google Cloud Storage.
                    * 
              @@ -772,13 +700,10 @@ public Builder setStorageSource( */ public Builder mergeStorageSource(com.google.cloud.functions.v2beta.StorageSource value) { if (storageSourceBuilder_ == null) { - if (sourceCase_ == 1 - && source_ != com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance()) { - source_ = - com.google.cloud.functions.v2beta.StorageSource.newBuilder( - (com.google.cloud.functions.v2beta.StorageSource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 1 && + source_ != com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance()) { + source_ = com.google.cloud.functions.v2beta.StorageSource.newBuilder((com.google.cloud.functions.v2beta.StorageSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -794,8 +719,6 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2beta.StorageSourc return this; } /** - * - * *
                    * If provided, get the source from this location in Google Cloud Storage.
                    * 
              @@ -819,8 +742,6 @@ public Builder clearStorageSource() { return this; } /** - * - * *
                    * If provided, get the source from this location in Google Cloud Storage.
                    * 
              @@ -831,8 +752,6 @@ public com.google.cloud.functions.v2beta.StorageSource.Builder getStorageSourceB return getStorageSourceFieldBuilder().getBuilder(); } /** - * - * *
                    * If provided, get the source from this location in Google Cloud Storage.
                    * 
              @@ -851,8 +770,6 @@ public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSource } } /** - * - * *
                    * If provided, get the source from this location in Google Cloud Storage.
                    * 
              @@ -860,45 +777,33 @@ public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSource * .google.cloud.functions.v2beta.StorageSource storage_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.StorageSource, - com.google.cloud.functions.v2beta.StorageSource.Builder, - com.google.cloud.functions.v2beta.StorageSourceOrBuilder> + com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder> getStorageSourceFieldBuilder() { if (storageSourceBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance(); } - storageSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.StorageSource, - com.google.cloud.functions.v2beta.StorageSource.Builder, - com.google.cloud.functions.v2beta.StorageSourceOrBuilder>( + storageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder>( (com.google.cloud.functions.v2beta.StorageSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 1; - onChanged(); - ; + onChanged();; return storageSourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.RepoSource, - com.google.cloud.functions.v2beta.RepoSource.Builder, - com.google.cloud.functions.v2beta.RepoSourceOrBuilder> - repoSourceBuilder_; + com.google.cloud.functions.v2beta.RepoSource, com.google.cloud.functions.v2beta.RepoSource.Builder, com.google.cloud.functions.v2beta.RepoSourceOrBuilder> repoSourceBuilder_; /** - * - * *
                    * If provided, get the source from this location in a Cloud Source
                    * Repository.
                    * 
              * * .google.cloud.functions.v2beta.RepoSource repo_source = 2; - * * @return Whether the repoSource field is set. */ @java.lang.Override @@ -906,15 +811,12 @@ public boolean hasRepoSource() { return sourceCase_ == 2; } /** - * - * *
                    * If provided, get the source from this location in a Cloud Source
                    * Repository.
                    * 
              * * .google.cloud.functions.v2beta.RepoSource repo_source = 2; - * * @return The repoSource. */ @java.lang.Override @@ -932,8 +834,6 @@ public com.google.cloud.functions.v2beta.RepoSource getRepoSource() { } } /** - * - * *
                    * If provided, get the source from this location in a Cloud Source
                    * Repository.
              @@ -955,8 +855,6 @@ public Builder setRepoSource(com.google.cloud.functions.v2beta.RepoSource value)
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * If provided, get the source from this location in a Cloud Source
                    * Repository.
              @@ -976,8 +874,6 @@ public Builder setRepoSource(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * If provided, get the source from this location in a Cloud Source
                    * Repository.
              @@ -987,13 +883,10 @@ public Builder setRepoSource(
                    */
                   public Builder mergeRepoSource(com.google.cloud.functions.v2beta.RepoSource value) {
                     if (repoSourceBuilder_ == null) {
              -        if (sourceCase_ == 2
              -            && source_ != com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance()) {
              -          source_ =
              -              com.google.cloud.functions.v2beta.RepoSource.newBuilder(
              -                      (com.google.cloud.functions.v2beta.RepoSource) source_)
              -                  .mergeFrom(value)
              -                  .buildPartial();
              +        if (sourceCase_ == 2 &&
              +            source_ != com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance()) {
              +          source_ = com.google.cloud.functions.v2beta.RepoSource.newBuilder((com.google.cloud.functions.v2beta.RepoSource) source_)
              +              .mergeFrom(value).buildPartial();
                       } else {
                         source_ = value;
                       }
              @@ -1009,8 +902,6 @@ public Builder mergeRepoSource(com.google.cloud.functions.v2beta.RepoSource valu
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * If provided, get the source from this location in a Cloud Source
                    * Repository.
              @@ -1035,8 +926,6 @@ public Builder clearRepoSource() {
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * If provided, get the source from this location in a Cloud Source
                    * Repository.
              @@ -1048,8 +937,6 @@ public com.google.cloud.functions.v2beta.RepoSource.Builder getRepoSourceBuilder
                     return getRepoSourceFieldBuilder().getBuilder();
                   }
                   /**
              -     *
              -     *
                    * 
                    * If provided, get the source from this location in a Cloud Source
                    * Repository.
              @@ -1069,8 +956,6 @@ public com.google.cloud.functions.v2beta.RepoSourceOrBuilder getRepoSourceOrBuil
                     }
                   }
                   /**
              -     *
              -     *
                    * 
                    * If provided, get the source from this location in a Cloud Source
                    * Repository.
              @@ -1079,32 +964,26 @@ public com.google.cloud.functions.v2beta.RepoSourceOrBuilder getRepoSourceOrBuil
                    * .google.cloud.functions.v2beta.RepoSource repo_source = 2;
                    */
                   private com.google.protobuf.SingleFieldBuilderV3<
              -            com.google.cloud.functions.v2beta.RepoSource,
              -            com.google.cloud.functions.v2beta.RepoSource.Builder,
              -            com.google.cloud.functions.v2beta.RepoSourceOrBuilder>
              +        com.google.cloud.functions.v2beta.RepoSource, com.google.cloud.functions.v2beta.RepoSource.Builder, com.google.cloud.functions.v2beta.RepoSourceOrBuilder> 
                       getRepoSourceFieldBuilder() {
                     if (repoSourceBuilder_ == null) {
                       if (!(sourceCase_ == 2)) {
                         source_ = com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance();
                       }
              -        repoSourceBuilder_ =
              -            new com.google.protobuf.SingleFieldBuilderV3<
              -                com.google.cloud.functions.v2beta.RepoSource,
              -                com.google.cloud.functions.v2beta.RepoSource.Builder,
              -                com.google.cloud.functions.v2beta.RepoSourceOrBuilder>(
              +        repoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              +            com.google.cloud.functions.v2beta.RepoSource, com.google.cloud.functions.v2beta.RepoSource.Builder, com.google.cloud.functions.v2beta.RepoSourceOrBuilder>(
                               (com.google.cloud.functions.v2beta.RepoSource) source_,
                               getParentForChildren(),
                               isClean());
                       source_ = null;
                     }
                     sourceCase_ = 2;
              -      onChanged();
              -      ;
              +      onChanged();;
                     return repoSourceBuilder_;
                   }
              -
                   @java.lang.Override
              -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
              +    public final Builder setUnknownFields(
              +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                     return super.setUnknownFields(unknownFields);
                   }
               
              @@ -1114,12 +993,12 @@ public final Builder mergeUnknownFields(
                     return super.mergeUnknownFields(unknownFields);
                   }
               
              +
                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.Source)
                 }
               
                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.Source)
                 private static final com.google.cloud.functions.v2beta.Source DEFAULT_INSTANCE;
              -
                 static {
                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.Source();
                 }
              @@ -1128,16 +1007,16 @@ public static com.google.cloud.functions.v2beta.Source getDefaultInstance() {
                   return DEFAULT_INSTANCE;
                 }
               
              -  private static final com.google.protobuf.Parser PARSER =
              -      new com.google.protobuf.AbstractParser() {
              -        @java.lang.Override
              -        public Source parsePartialFrom(
              -            com.google.protobuf.CodedInputStream input,
              -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              -            throws com.google.protobuf.InvalidProtocolBufferException {
              -          return new Source(input, extensionRegistry);
              -        }
              -      };
              +  private static final com.google.protobuf.Parser
              +      PARSER = new com.google.protobuf.AbstractParser() {
              +    @java.lang.Override
              +    public Source parsePartialFrom(
              +        com.google.protobuf.CodedInputStream input,
              +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +        throws com.google.protobuf.InvalidProtocolBufferException {
              +      return new Source(input, extensionRegistry);
              +    }
              +  };
               
                 public static com.google.protobuf.Parser parser() {
                   return PARSER;
              @@ -1152,4 +1031,6 @@ public com.google.protobuf.Parser getParserForType() {
                 public com.google.cloud.functions.v2beta.Source getDefaultInstanceForType() {
                   return DEFAULT_INSTANCE;
                 }
              +
               }
              +
              diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java
              similarity index 74%
              rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java
              rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java
              index bf023325..3b518b94 100644
              --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java
              +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java
              @@ -1,55 +1,31 @@
              -/*
              - * 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 SourceOrBuilder
              -    extends
              +public interface SourceOrBuilder extends
                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.Source)
                   com.google.protobuf.MessageOrBuilder {
               
                 /**
              -   *
              -   *
                  * 
                  * If provided, get the source from this location in Google Cloud Storage.
                  * 
              * * .google.cloud.functions.v2beta.StorageSource storage_source = 1; - * * @return Whether the storageSource field is set. */ boolean hasStorageSource(); /** - * - * *
                  * If provided, get the source from this location in Google Cloud Storage.
                  * 
              * * .google.cloud.functions.v2beta.StorageSource storage_source = 1; - * * @return The storageSource. */ com.google.cloud.functions.v2beta.StorageSource getStorageSource(); /** - * - * *
                  * If provided, get the source from this location in Google Cloud Storage.
                  * 
              @@ -59,34 +35,26 @@ public interface SourceOrBuilder com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSourceOrBuilder(); /** - * - * *
                  * If provided, get the source from this location in a Cloud Source
                  * Repository.
                  * 
              * * .google.cloud.functions.v2beta.RepoSource repo_source = 2; - * * @return Whether the repoSource field is set. */ boolean hasRepoSource(); /** - * - * *
                  * If provided, get the source from this location in a Cloud Source
                  * Repository.
                  * 
              * * .google.cloud.functions.v2beta.RepoSource repo_source = 2; - * * @return The repoSource. */ com.google.cloud.functions.v2beta.RepoSource getRepoSource(); /** - * - * *
                  * If provided, get the source from this location in a Cloud Source
                  * Repository.
              diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java
              similarity index 70%
              rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java
              rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java
              index 03846b0b..37e8fa67 100644
              --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java
              +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java
              @@ -1,26 +1,9 @@
              -/*
              - * 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;
               
               /**
              - *
              - *
                * 
                * Provenance of the source. Ways to find the original source, or verify that
                * some source was used for this build.
              @@ -28,29 +11,30 @@
                *
                * Protobuf type {@code google.cloud.functions.v2beta.SourceProvenance}
                */
              -public final class SourceProvenance extends com.google.protobuf.GeneratedMessageV3
              -    implements
              +public final class SourceProvenance extends
              +    com.google.protobuf.GeneratedMessageV3 implements
                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.SourceProvenance)
                   SourceProvenanceOrBuilder {
              -  private static final long serialVersionUID = 0L;
              +private static final long serialVersionUID = 0L;
                 // Use SourceProvenance.newBuilder() to construct.
                 private SourceProvenance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
              -
              -  private SourceProvenance() {}
              +  private SourceProvenance() {
              +  }
               
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
              -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
              +  protected java.lang.Object newInstance(
              +      UnusedPrivateParameter unused) {
                   return new SourceProvenance();
                 }
               
                 @java.lang.Override
              -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
              +  public final com.google.protobuf.UnknownFieldSet
              +  getUnknownFields() {
                   return this.unknownFields;
                 }
              -
                 private SourceProvenance(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              @@ -69,45 +53,39 @@ private SourceProvenance(
                         case 0:
                           done = true;
                           break;
              -          case 10:
              -            {
              -              com.google.cloud.functions.v2beta.StorageSource.Builder subBuilder = null;
              -              if (resolvedStorageSource_ != null) {
              -                subBuilder = resolvedStorageSource_.toBuilder();
              -              }
              -              resolvedStorageSource_ =
              -                  input.readMessage(
              -                      com.google.cloud.functions.v2beta.StorageSource.parser(), extensionRegistry);
              -              if (subBuilder != null) {
              -                subBuilder.mergeFrom(resolvedStorageSource_);
              -                resolvedStorageSource_ = subBuilder.buildPartial();
              -              }
              -
              -              break;
              +          case 10: {
              +            com.google.cloud.functions.v2beta.StorageSource.Builder subBuilder = null;
              +            if (resolvedStorageSource_ != null) {
              +              subBuilder = resolvedStorageSource_.toBuilder();
              +            }
              +            resolvedStorageSource_ = input.readMessage(com.google.cloud.functions.v2beta.StorageSource.parser(), extensionRegistry);
              +            if (subBuilder != null) {
              +              subBuilder.mergeFrom(resolvedStorageSource_);
              +              resolvedStorageSource_ = subBuilder.buildPartial();
                           }
              -          case 18:
              -            {
              -              com.google.cloud.functions.v2beta.RepoSource.Builder subBuilder = null;
              -              if (resolvedRepoSource_ != null) {
              -                subBuilder = resolvedRepoSource_.toBuilder();
              -              }
              -              resolvedRepoSource_ =
              -                  input.readMessage(
              -                      com.google.cloud.functions.v2beta.RepoSource.parser(), extensionRegistry);
              -              if (subBuilder != null) {
              -                subBuilder.mergeFrom(resolvedRepoSource_);
              -                resolvedRepoSource_ = subBuilder.buildPartial();
              -              }
               
              -              break;
              +            break;
              +          }
              +          case 18: {
              +            com.google.cloud.functions.v2beta.RepoSource.Builder subBuilder = null;
              +            if (resolvedRepoSource_ != null) {
              +              subBuilder = resolvedRepoSource_.toBuilder();
                           }
              -          default:
              -            {
              -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
              -                done = true;
              -              }
              -              break;
              +            resolvedRepoSource_ = input.readMessage(com.google.cloud.functions.v2beta.RepoSource.parser(), extensionRegistry);
              +            if (subBuilder != null) {
              +              subBuilder.mergeFrom(resolvedRepoSource_);
              +              resolvedRepoSource_ = subBuilder.buildPartial();
                           }
              +
              +            break;
              +          }
              +          default: {
              +            if (!parseUnknownField(
              +                input, unknownFields, extensionRegistry, tag)) {
              +              done = true;
              +            }
              +            break;
              +          }
                       }
                     }
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              @@ -115,40 +93,35 @@ private SourceProvenance(
                   } catch (com.google.protobuf.UninitializedMessageException e) {
                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                   } catch (java.io.IOException e) {
              -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
              +      throw new com.google.protobuf.InvalidProtocolBufferException(
              +          e).setUnfinishedMessage(this);
                   } finally {
                     this.unknownFields = unknownFields.build();
                     makeExtensionsImmutable();
                   }
                 }
              -
              -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor;
              +  public static final com.google.protobuf.Descriptors.Descriptor
              +      getDescriptor() {
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor;
                 }
               
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
              -    return com.google.cloud.functions.v2beta.FunctionsProto
              -        .internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable
              +    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
              -            com.google.cloud.functions.v2beta.SourceProvenance.class,
              -            com.google.cloud.functions.v2beta.SourceProvenance.Builder.class);
              +            com.google.cloud.functions.v2beta.SourceProvenance.class, com.google.cloud.functions.v2beta.SourceProvenance.Builder.class);
                 }
               
                 public static final int RESOLVED_STORAGE_SOURCE_FIELD_NUMBER = 1;
                 private com.google.cloud.functions.v2beta.StorageSource resolvedStorageSource_;
                 /**
              -   *
              -   *
                  * 
                  * A copy of the build's `source.storage_source`, if exists, with any
                  * generations resolved.
                  * 
              * * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1; - * * @return Whether the resolvedStorageSource field is set. */ @java.lang.Override @@ -156,26 +129,19 @@ public boolean hasResolvedStorageSource() { return resolvedStorageSource_ != null; } /** - * - * *
                  * A copy of the build's `source.storage_source`, if exists, with any
                  * generations resolved.
                  * 
              * * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1; - * * @return The resolvedStorageSource. */ @java.lang.Override public com.google.cloud.functions.v2beta.StorageSource getResolvedStorageSource() { - return resolvedStorageSource_ == null - ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() - : resolvedStorageSource_; + return resolvedStorageSource_ == null ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() : resolvedStorageSource_; } /** - * - * *
                  * A copy of the build's `source.storage_source`, if exists, with any
                  * generations resolved.
              @@ -184,23 +150,19 @@ public com.google.cloud.functions.v2beta.StorageSource getResolvedStorageSource(
                  * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1;
                  */
                 @java.lang.Override
              -  public com.google.cloud.functions.v2beta.StorageSourceOrBuilder
              -      getResolvedStorageSourceOrBuilder() {
              +  public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder() {
                   return getResolvedStorageSource();
                 }
               
                 public static final int RESOLVED_REPO_SOURCE_FIELD_NUMBER = 2;
                 private com.google.cloud.functions.v2beta.RepoSource resolvedRepoSource_;
                 /**
              -   *
              -   *
                  * 
                  * A copy of the build's `source.repo_source`, if exists, with any
                  * revisions resolved.
                  * 
              * * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2; - * * @return Whether the resolvedRepoSource field is set. */ @java.lang.Override @@ -208,26 +170,19 @@ public boolean hasResolvedRepoSource() { return resolvedRepoSource_ != null; } /** - * - * *
                  * A copy of the build's `source.repo_source`, if exists, with any
                  * revisions resolved.
                  * 
              * * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2; - * * @return The resolvedRepoSource. */ @java.lang.Override public com.google.cloud.functions.v2beta.RepoSource getResolvedRepoSource() { - return resolvedRepoSource_ == null - ? com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance() - : resolvedRepoSource_; + return resolvedRepoSource_ == null ? com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance() : resolvedRepoSource_; } /** - * - * *
                  * A copy of the build's `source.repo_source`, if exists, with any
                  * revisions resolved.
              @@ -241,7 +196,6 @@ public com.google.cloud.functions.v2beta.RepoSourceOrBuilder getResolvedRepoSour
                 }
               
                 private byte memoizedIsInitialized = -1;
              -
                 @java.lang.Override
                 public final boolean isInitialized() {
                   byte isInitialized = memoizedIsInitialized;
              @@ -253,7 +207,8 @@ public final boolean isInitialized() {
                 }
               
                 @java.lang.Override
              -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
              +  public void writeTo(com.google.protobuf.CodedOutputStream output)
              +                      throws java.io.IOException {
                   if (resolvedStorageSource_ != null) {
                     output.writeMessage(1, getResolvedStorageSource());
                   }
              @@ -270,11 +225,12 @@ public int getSerializedSize() {
               
                   size = 0;
                   if (resolvedStorageSource_ != null) {
              -      size +=
              -          com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResolvedStorageSource());
              +      size += com.google.protobuf.CodedOutputStream
              +        .computeMessageSize(1, getResolvedStorageSource());
                   }
                   if (resolvedRepoSource_ != null) {
              -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResolvedRepoSource());
              +      size += com.google.protobuf.CodedOutputStream
              +        .computeMessageSize(2, getResolvedRepoSource());
                   }
                   size += unknownFields.getSerializedSize();
                   memoizedSize = size;
              @@ -284,21 +240,22 @@ public int getSerializedSize() {
                 @java.lang.Override
                 public boolean equals(final java.lang.Object obj) {
                   if (obj == this) {
              -      return true;
              +     return true;
                   }
                   if (!(obj instanceof com.google.cloud.functions.v2beta.SourceProvenance)) {
                     return super.equals(obj);
                   }
              -    com.google.cloud.functions.v2beta.SourceProvenance other =
              -        (com.google.cloud.functions.v2beta.SourceProvenance) obj;
              +    com.google.cloud.functions.v2beta.SourceProvenance other = (com.google.cloud.functions.v2beta.SourceProvenance) obj;
               
                   if (hasResolvedStorageSource() != other.hasResolvedStorageSource()) return false;
                   if (hasResolvedStorageSource()) {
              -      if (!getResolvedStorageSource().equals(other.getResolvedStorageSource())) return false;
              +      if (!getResolvedStorageSource()
              +          .equals(other.getResolvedStorageSource())) return false;
                   }
                   if (hasResolvedRepoSource() != other.hasResolvedRepoSource()) return false;
                   if (hasResolvedRepoSource()) {
              -      if (!getResolvedRepoSource().equals(other.getResolvedRepoSource())) return false;
              +      if (!getResolvedRepoSource()
              +          .equals(other.getResolvedRepoSource())) return false;
                   }
                   if (!unknownFields.equals(other.unknownFields)) return false;
                   return true;
              @@ -325,103 +282,96 @@ public int hashCode() {
                 }
               
                 public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
              -      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
              +      java.nio.ByteBuffer data)
              +      throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
              -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      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.SourceProvenance parseFrom(
                     com.google.protobuf.ByteString data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SourceProvenance 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.SourceProvenance parseFrom(byte[] data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
              -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      byte[] data,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data, extensionRegistry);
                 }
              -
              -  public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
              -      java.io.InputStream input) throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
              +  public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(java.io.InputStream input)
              +      throws java.io.IOException {
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
              -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      java.io.InputStream input,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input, extensionRegistry);
                 }
              -
              -  public static com.google.cloud.functions.v2beta.SourceProvenance parseDelimitedFrom(
              -      java.io.InputStream input) throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
              +  public static com.google.cloud.functions.v2beta.SourceProvenance parseDelimitedFrom(java.io.InputStream input)
              +      throws java.io.IOException {
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseDelimitedWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SourceProvenance parseDelimitedFrom(
              -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      java.io.InputStream input,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
              -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
              +      com.google.protobuf.CodedInputStream input)
              +      throws java.io.IOException {
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input, extensionRegistry);
                 }
               
                 @java.lang.Override
              -  public Builder newBuilderForType() {
              -    return newBuilder();
              -  }
              -
              +  public Builder newBuilderForType() { return newBuilder(); }
                 public static Builder newBuilder() {
                   return DEFAULT_INSTANCE.toBuilder();
                 }
              -
                 public static Builder newBuilder(com.google.cloud.functions.v2beta.SourceProvenance prototype) {
                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                 }
              -
                 @java.lang.Override
                 public Builder toBuilder() {
              -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
              +    return this == DEFAULT_INSTANCE
              +        ? new Builder() : new Builder().mergeFrom(this);
                 }
               
                 @java.lang.Override
              -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
              +  protected Builder newBuilderForType(
              +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   Builder builder = new Builder(parent);
                   return builder;
                 }
                 /**
              -   *
              -   *
                  * 
                  * Provenance of the source. Ways to find the original source, or verify that
                  * some source was used for this build.
              @@ -429,23 +379,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                  *
                  * Protobuf type {@code google.cloud.functions.v2beta.SourceProvenance}
                  */
              -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
              -      implements
              +  public static final class Builder extends
              +      com.google.protobuf.GeneratedMessageV3.Builder implements
                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.SourceProvenance)
                     com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder {
              -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor;
              +    public static final com.google.protobuf.Descriptors.Descriptor
              +        getDescriptor() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor;
                   }
               
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
              -              com.google.cloud.functions.v2beta.SourceProvenance.class,
              -              com.google.cloud.functions.v2beta.SourceProvenance.Builder.class);
              +              com.google.cloud.functions.v2beta.SourceProvenance.class, com.google.cloud.functions.v2beta.SourceProvenance.Builder.class);
                   }
               
                   // Construct using com.google.cloud.functions.v2beta.SourceProvenance.newBuilder()
              @@ -453,15 +401,16 @@ private Builder() {
                     maybeForceBuilderInitialization();
                   }
               
              -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
              +    private Builder(
              +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                     super(parent);
                     maybeForceBuilderInitialization();
                   }
              -
                   private void maybeForceBuilderInitialization() {
              -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
              +      if (com.google.protobuf.GeneratedMessageV3
              +              .alwaysUseFieldBuilders) {
              +      }
                   }
              -
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
              @@ -481,9 +430,9 @@ public Builder clear() {
                   }
               
                   @java.lang.Override
              -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
              -      return com.google.cloud.functions.v2beta.FunctionsProto
              -          .internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor;
              +    public com.google.protobuf.Descriptors.Descriptor
              +        getDescriptorForType() {
              +      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor;
                   }
               
                   @java.lang.Override
              @@ -502,8 +451,7 @@ public com.google.cloud.functions.v2beta.SourceProvenance build() {
               
                   @java.lang.Override
                   public com.google.cloud.functions.v2beta.SourceProvenance buildPartial() {
              -      com.google.cloud.functions.v2beta.SourceProvenance result =
              -          new com.google.cloud.functions.v2beta.SourceProvenance(this);
              +      com.google.cloud.functions.v2beta.SourceProvenance result = new com.google.cloud.functions.v2beta.SourceProvenance(this);
                     if (resolvedStorageSourceBuilder_ == null) {
                       result.resolvedStorageSource_ = resolvedStorageSource_;
                     } else {
              @@ -522,39 +470,38 @@ public com.google.cloud.functions.v2beta.SourceProvenance buildPartial() {
                   public Builder clone() {
                     return super.clone();
                   }
              -
                   @java.lang.Override
                   public Builder setField(
              -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
              +        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) {
              +    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) {
              +    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) {
              +        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) {
              +        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) {
              -        return mergeFrom((com.google.cloud.functions.v2beta.SourceProvenance) other);
              +        return mergeFrom((com.google.cloud.functions.v2beta.SourceProvenance)other);
                     } else {
                       super.mergeFrom(other);
                       return this;
              @@ -562,8 +509,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                   }
               
                   public Builder mergeFrom(com.google.cloud.functions.v2beta.SourceProvenance other) {
              -      if (other == com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance())
              -        return this;
              +      if (other == com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance()) return this;
                     if (other.hasResolvedStorageSource()) {
                       mergeResolvedStorageSource(other.getResolvedStorageSource());
                     }
              @@ -589,8 +535,7 @@ public Builder mergeFrom(
                     try {
                       parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              -        parsedMessage =
              -            (com.google.cloud.functions.v2beta.SourceProvenance) e.getUnfinishedMessage();
              +        parsedMessage = (com.google.cloud.functions.v2beta.SourceProvenance) e.getUnfinishedMessage();
                       throw e.unwrapIOException();
                     } finally {
                       if (parsedMessage != null) {
              @@ -602,49 +547,36 @@ public Builder mergeFrom(
               
                   private com.google.cloud.functions.v2beta.StorageSource resolvedStorageSource_;
                   private com.google.protobuf.SingleFieldBuilderV3<
              -            com.google.cloud.functions.v2beta.StorageSource,
              -            com.google.cloud.functions.v2beta.StorageSource.Builder,
              -            com.google.cloud.functions.v2beta.StorageSourceOrBuilder>
              -        resolvedStorageSourceBuilder_;
              +        com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder> resolvedStorageSourceBuilder_;
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.storage_source`, if exists, with any
                    * generations resolved.
                    * 
              * * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1; - * * @return Whether the resolvedStorageSource field is set. */ public boolean hasResolvedStorageSource() { return resolvedStorageSourceBuilder_ != null || resolvedStorageSource_ != null; } /** - * - * *
                    * A copy of the build's `source.storage_source`, if exists, with any
                    * generations resolved.
                    * 
              * * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1; - * * @return The resolvedStorageSource. */ public com.google.cloud.functions.v2beta.StorageSource getResolvedStorageSource() { if (resolvedStorageSourceBuilder_ == null) { - return resolvedStorageSource_ == null - ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() - : resolvedStorageSource_; + return resolvedStorageSource_ == null ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() : resolvedStorageSource_; } else { return resolvedStorageSourceBuilder_.getMessage(); } } /** - * - * *
                    * A copy of the build's `source.storage_source`, if exists, with any
                    * generations resolved.
              @@ -666,8 +598,6 @@ public Builder setResolvedStorageSource(com.google.cloud.functions.v2beta.Storag
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.storage_source`, if exists, with any
                    * generations resolved.
              @@ -687,8 +617,6 @@ public Builder setResolvedStorageSource(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.storage_source`, if exists, with any
                    * generations resolved.
              @@ -696,14 +624,11 @@ public Builder setResolvedStorageSource(
                    *
                    * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1;
                    */
              -    public Builder mergeResolvedStorageSource(
              -        com.google.cloud.functions.v2beta.StorageSource value) {
              +    public Builder mergeResolvedStorageSource(com.google.cloud.functions.v2beta.StorageSource value) {
                     if (resolvedStorageSourceBuilder_ == null) {
                       if (resolvedStorageSource_ != null) {
                         resolvedStorageSource_ =
              -              com.google.cloud.functions.v2beta.StorageSource.newBuilder(resolvedStorageSource_)
              -                  .mergeFrom(value)
              -                  .buildPartial();
              +            com.google.cloud.functions.v2beta.StorageSource.newBuilder(resolvedStorageSource_).mergeFrom(value).buildPartial();
                       } else {
                         resolvedStorageSource_ = value;
                       }
              @@ -715,8 +640,6 @@ public Builder mergeResolvedStorageSource(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.storage_source`, if exists, with any
                    * generations resolved.
              @@ -736,8 +659,6 @@ public Builder clearResolvedStorageSource() {
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.storage_source`, if exists, with any
                    * generations resolved.
              @@ -745,15 +666,12 @@ public Builder clearResolvedStorageSource() {
                    *
                    * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1;
                    */
              -    public com.google.cloud.functions.v2beta.StorageSource.Builder
              -        getResolvedStorageSourceBuilder() {
              -
              +    public com.google.cloud.functions.v2beta.StorageSource.Builder getResolvedStorageSourceBuilder() {
              +      
                     onChanged();
                     return getResolvedStorageSourceFieldBuilder().getBuilder();
                   }
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.storage_source`, if exists, with any
                    * generations resolved.
              @@ -761,19 +679,15 @@ public Builder clearResolvedStorageSource() {
                    *
                    * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1;
                    */
              -    public com.google.cloud.functions.v2beta.StorageSourceOrBuilder
              -        getResolvedStorageSourceOrBuilder() {
              +    public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder() {
                     if (resolvedStorageSourceBuilder_ != null) {
                       return resolvedStorageSourceBuilder_.getMessageOrBuilder();
                     } else {
              -        return resolvedStorageSource_ == null
              -            ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance()
              -            : resolvedStorageSource_;
              +        return resolvedStorageSource_ == null ?
              +            com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() : resolvedStorageSource_;
                     }
                   }
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.storage_source`, if exists, with any
                    * generations resolved.
              @@ -782,17 +696,14 @@ public Builder clearResolvedStorageSource() {
                    * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1;
                    */
                   private com.google.protobuf.SingleFieldBuilderV3<
              -            com.google.cloud.functions.v2beta.StorageSource,
              -            com.google.cloud.functions.v2beta.StorageSource.Builder,
              -            com.google.cloud.functions.v2beta.StorageSourceOrBuilder>
              +        com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder> 
                       getResolvedStorageSourceFieldBuilder() {
                     if (resolvedStorageSourceBuilder_ == null) {
              -        resolvedStorageSourceBuilder_ =
              -            new com.google.protobuf.SingleFieldBuilderV3<
              -                com.google.cloud.functions.v2beta.StorageSource,
              -                com.google.cloud.functions.v2beta.StorageSource.Builder,
              -                com.google.cloud.functions.v2beta.StorageSourceOrBuilder>(
              -                getResolvedStorageSource(), getParentForChildren(), isClean());
              +        resolvedStorageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              +            com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder>(
              +                getResolvedStorageSource(),
              +                getParentForChildren(),
              +                isClean());
                       resolvedStorageSource_ = null;
                     }
                     return resolvedStorageSourceBuilder_;
              @@ -800,49 +711,36 @@ public Builder clearResolvedStorageSource() {
               
                   private com.google.cloud.functions.v2beta.RepoSource resolvedRepoSource_;
                   private com.google.protobuf.SingleFieldBuilderV3<
              -            com.google.cloud.functions.v2beta.RepoSource,
              -            com.google.cloud.functions.v2beta.RepoSource.Builder,
              -            com.google.cloud.functions.v2beta.RepoSourceOrBuilder>
              -        resolvedRepoSourceBuilder_;
              +        com.google.cloud.functions.v2beta.RepoSource, com.google.cloud.functions.v2beta.RepoSource.Builder, com.google.cloud.functions.v2beta.RepoSourceOrBuilder> resolvedRepoSourceBuilder_;
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.repo_source`, if exists, with any
                    * revisions resolved.
                    * 
              * * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2; - * * @return Whether the resolvedRepoSource field is set. */ public boolean hasResolvedRepoSource() { return resolvedRepoSourceBuilder_ != null || resolvedRepoSource_ != null; } /** - * - * *
                    * A copy of the build's `source.repo_source`, if exists, with any
                    * revisions resolved.
                    * 
              * * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2; - * * @return The resolvedRepoSource. */ public com.google.cloud.functions.v2beta.RepoSource getResolvedRepoSource() { if (resolvedRepoSourceBuilder_ == null) { - return resolvedRepoSource_ == null - ? com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance() - : resolvedRepoSource_; + return resolvedRepoSource_ == null ? com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance() : resolvedRepoSource_; } else { return resolvedRepoSourceBuilder_.getMessage(); } } /** - * - * *
                    * A copy of the build's `source.repo_source`, if exists, with any
                    * revisions resolved.
              @@ -864,8 +762,6 @@ public Builder setResolvedRepoSource(com.google.cloud.functions.v2beta.RepoSourc
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.repo_source`, if exists, with any
                    * revisions resolved.
              @@ -885,8 +781,6 @@ public Builder setResolvedRepoSource(
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.repo_source`, if exists, with any
                    * revisions resolved.
              @@ -898,9 +792,7 @@ public Builder mergeResolvedRepoSource(com.google.cloud.functions.v2beta.RepoSou
                     if (resolvedRepoSourceBuilder_ == null) {
                       if (resolvedRepoSource_ != null) {
                         resolvedRepoSource_ =
              -              com.google.cloud.functions.v2beta.RepoSource.newBuilder(resolvedRepoSource_)
              -                  .mergeFrom(value)
              -                  .buildPartial();
              +            com.google.cloud.functions.v2beta.RepoSource.newBuilder(resolvedRepoSource_).mergeFrom(value).buildPartial();
                       } else {
                         resolvedRepoSource_ = value;
                       }
              @@ -912,8 +804,6 @@ public Builder mergeResolvedRepoSource(com.google.cloud.functions.v2beta.RepoSou
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.repo_source`, if exists, with any
                    * revisions resolved.
              @@ -933,8 +823,6 @@ public Builder clearResolvedRepoSource() {
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.repo_source`, if exists, with any
                    * revisions resolved.
              @@ -943,13 +831,11 @@ public Builder clearResolvedRepoSource() {
                    * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2;
                    */
                   public com.google.cloud.functions.v2beta.RepoSource.Builder getResolvedRepoSourceBuilder() {
              -
              +      
                     onChanged();
                     return getResolvedRepoSourceFieldBuilder().getBuilder();
                   }
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.repo_source`, if exists, with any
                    * revisions resolved.
              @@ -961,14 +847,11 @@ public com.google.cloud.functions.v2beta.RepoSourceOrBuilder getResolvedRepoSour
                     if (resolvedRepoSourceBuilder_ != null) {
                       return resolvedRepoSourceBuilder_.getMessageOrBuilder();
                     } else {
              -        return resolvedRepoSource_ == null
              -            ? com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance()
              -            : resolvedRepoSource_;
              +        return resolvedRepoSource_ == null ?
              +            com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance() : resolvedRepoSource_;
                     }
                   }
                   /**
              -     *
              -     *
                    * 
                    * A copy of the build's `source.repo_source`, if exists, with any
                    * revisions resolved.
              @@ -977,24 +860,21 @@ public com.google.cloud.functions.v2beta.RepoSourceOrBuilder getResolvedRepoSour
                    * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2;
                    */
                   private com.google.protobuf.SingleFieldBuilderV3<
              -            com.google.cloud.functions.v2beta.RepoSource,
              -            com.google.cloud.functions.v2beta.RepoSource.Builder,
              -            com.google.cloud.functions.v2beta.RepoSourceOrBuilder>
              +        com.google.cloud.functions.v2beta.RepoSource, com.google.cloud.functions.v2beta.RepoSource.Builder, com.google.cloud.functions.v2beta.RepoSourceOrBuilder> 
                       getResolvedRepoSourceFieldBuilder() {
                     if (resolvedRepoSourceBuilder_ == null) {
              -        resolvedRepoSourceBuilder_ =
              -            new com.google.protobuf.SingleFieldBuilderV3<
              -                com.google.cloud.functions.v2beta.RepoSource,
              -                com.google.cloud.functions.v2beta.RepoSource.Builder,
              -                com.google.cloud.functions.v2beta.RepoSourceOrBuilder>(
              -                getResolvedRepoSource(), getParentForChildren(), isClean());
              +        resolvedRepoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              +            com.google.cloud.functions.v2beta.RepoSource, com.google.cloud.functions.v2beta.RepoSource.Builder, com.google.cloud.functions.v2beta.RepoSourceOrBuilder>(
              +                getResolvedRepoSource(),
              +                getParentForChildren(),
              +                isClean());
                       resolvedRepoSource_ = null;
                     }
                     return resolvedRepoSourceBuilder_;
                   }
              -
                   @java.lang.Override
              -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
              +    public final Builder setUnknownFields(
              +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                     return super.setUnknownFields(unknownFields);
                   }
               
              @@ -1004,12 +884,12 @@ public final Builder mergeUnknownFields(
                     return super.mergeUnknownFields(unknownFields);
                   }
               
              +
                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.SourceProvenance)
                 }
               
                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.SourceProvenance)
                 private static final com.google.cloud.functions.v2beta.SourceProvenance DEFAULT_INSTANCE;
              -
                 static {
                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.SourceProvenance();
                 }
              @@ -1018,16 +898,16 @@ public static com.google.cloud.functions.v2beta.SourceProvenance getDefaultInsta
                   return DEFAULT_INSTANCE;
                 }
               
              -  private static final com.google.protobuf.Parser PARSER =
              -      new com.google.protobuf.AbstractParser() {
              -        @java.lang.Override
              -        public SourceProvenance parsePartialFrom(
              -            com.google.protobuf.CodedInputStream input,
              -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              -            throws com.google.protobuf.InvalidProtocolBufferException {
              -          return new SourceProvenance(input, extensionRegistry);
              -        }
              -      };
              +  private static final com.google.protobuf.Parser
              +      PARSER = new com.google.protobuf.AbstractParser() {
              +    @java.lang.Override
              +    public SourceProvenance parsePartialFrom(
              +        com.google.protobuf.CodedInputStream input,
              +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +        throws com.google.protobuf.InvalidProtocolBufferException {
              +      return new SourceProvenance(input, extensionRegistry);
              +    }
              +  };
               
                 public static com.google.protobuf.Parser parser() {
                   return PARSER;
              @@ -1042,4 +922,6 @@ public com.google.protobuf.Parser getParserForType() {
                 public com.google.cloud.functions.v2beta.SourceProvenance getDefaultInstanceForType() {
                   return DEFAULT_INSTANCE;
                 }
              +
               }
              +
              diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java
              similarity index 75%
              rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java
              rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java
              index 6be823a6..d6bf610e 100644
              --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java
              +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java
              @@ -1,57 +1,33 @@
              -/*
              - * 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 SourceProvenanceOrBuilder
              -    extends
              +public interface SourceProvenanceOrBuilder extends
                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.SourceProvenance)
                   com.google.protobuf.MessageOrBuilder {
               
                 /**
              -   *
              -   *
                  * 
                  * A copy of the build's `source.storage_source`, if exists, with any
                  * generations resolved.
                  * 
              * * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1; - * * @return Whether the resolvedStorageSource field is set. */ boolean hasResolvedStorageSource(); /** - * - * *
                  * A copy of the build's `source.storage_source`, if exists, with any
                  * generations resolved.
                  * 
              * * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1; - * * @return The resolvedStorageSource. */ com.google.cloud.functions.v2beta.StorageSource getResolvedStorageSource(); /** - * - * *
                  * A copy of the build's `source.storage_source`, if exists, with any
                  * generations resolved.
              @@ -62,34 +38,26 @@ public interface SourceProvenanceOrBuilder
                 com.google.cloud.functions.v2beta.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder();
               
                 /**
              -   *
              -   *
                  * 
                  * A copy of the build's `source.repo_source`, if exists, with any
                  * revisions resolved.
                  * 
              * * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2; - * * @return Whether the resolvedRepoSource field is set. */ boolean hasResolvedRepoSource(); /** - * - * *
                  * A copy of the build's `source.repo_source`, if exists, with any
                  * revisions resolved.
                  * 
              * * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2; - * * @return The resolvedRepoSource. */ com.google.cloud.functions.v2beta.RepoSource getResolvedRepoSource(); /** - * - * *
                  * A copy of the build's `source.repo_source`, if exists, with any
                  * revisions resolved.
              diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java
              similarity index 75%
              rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java
              rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java
              index cd13ddb0..ca4452b4 100644
              --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java
              +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java
              @@ -1,42 +1,24 @@
              -/*
              - * 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;
               
               /**
              - *
              - *
                * 
                * Each Stage of the deployment process
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.Stage} */ -public final class Stage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Stage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.Stage) StageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Stage.newBuilder() to construct. private Stage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Stage() { name_ = 0; message_ = ""; @@ -48,15 +30,16 @@ private Stage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Stage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Stage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,60 +59,52 @@ private Stage( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - name_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + message_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - resource_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + resource_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - resourceUri_ = s; - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stateMessages_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stateMessages_.add( - input.readMessage( - com.google.cloud.functions.v2beta.StateMessage.parser(), extensionRegistry)); - break; + resourceUri_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stateMessages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + stateMessages_.add( + input.readMessage(com.google.cloud.functions.v2beta.StateMessage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -137,7 +112,8 @@ private Stage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_); @@ -146,35 +122,29 @@ private Stage( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_Stage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Stage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.Stage.class, - com.google.cloud.functions.v2beta.Stage.Builder.class); + com.google.cloud.functions.v2beta.Stage.class, com.google.cloud.functions.v2beta.Stage.Builder.class); } /** - * - * *
                  * Possible names for a Stage
                  * 
              * * Protobuf enum {@code google.cloud.functions.v2beta.Stage.Name} */ - public enum Name implements com.google.protobuf.ProtocolMessageEnum { + public enum Name + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                    * Not specified. Invalid name.
                    * 
              @@ -183,8 +153,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ NAME_UNSPECIFIED(0), /** - * - * *
                    * Artifact Regsitry Stage
                    * 
              @@ -193,8 +161,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ ARTIFACT_REGISTRY(1), /** - * - * *
                    * Build Stage
                    * 
              @@ -203,8 +169,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ BUILD(2), /** - * - * *
                    * Service Stage
                    * 
              @@ -213,8 +177,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ SERVICE(3), /** - * - * *
                    * Trigger Stage
                    * 
              @@ -223,8 +185,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ TRIGGER(4), /** - * - * *
                    * Service Rollback Stage
                    * 
              @@ -233,8 +193,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ SERVICE_ROLLBACK(5), /** - * - * *
                    * Trigger Rollback Stage
                    * 
              @@ -246,8 +204,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                    * Not specified. Invalid name.
                    * 
              @@ -256,8 +212,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NAME_UNSPECIFIED_VALUE = 0; /** - * - * *
                    * Artifact Regsitry Stage
                    * 
              @@ -266,8 +220,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ARTIFACT_REGISTRY_VALUE = 1; /** - * - * *
                    * Build Stage
                    * 
              @@ -276,8 +228,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BUILD_VALUE = 2; /** - * - * *
                    * Service Stage
                    * 
              @@ -286,8 +236,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SERVICE_VALUE = 3; /** - * - * *
                    * Trigger Stage
                    * 
              @@ -296,8 +244,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRIGGER_VALUE = 4; /** - * - * *
                    * Service Rollback Stage
                    * 
              @@ -306,8 +252,6 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SERVICE_ROLLBACK_VALUE = 5; /** - * - * *
                    * Trigger Rollback Stage
                    * 
              @@ -316,6 +260,7 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRIGGER_ROLLBACK_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -340,57 +285,53 @@ public static Name valueOf(int value) { */ public static Name forNumber(int value) { switch (value) { - case 0: - return NAME_UNSPECIFIED; - case 1: - return ARTIFACT_REGISTRY; - case 2: - return BUILD; - case 3: - return SERVICE; - case 4: - return TRIGGER; - case 5: - return SERVICE_ROLLBACK; - case 6: - return TRIGGER_ROLLBACK; - default: - return null; + case 0: return NAME_UNSPECIFIED; + case 1: return ARTIFACT_REGISTRY; + case 2: return BUILD; + case 3: return SERVICE; + case 4: return TRIGGER; + case 5: return SERVICE_ROLLBACK; + case 6: return TRIGGER_ROLLBACK; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Name> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Name findValueByNumber(int number) { + return Name.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Name findValueByNumber(int number) { - return Name.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.functions.v2beta.Stage.getDescriptor().getEnumTypes().get(0); } private static final Name[] VALUES = values(); - public static Name valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Name valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -408,18 +349,15 @@ private Name(int value) { } /** - * - * *
                  * Possible states for a Stage
                  * 
              * * Protobuf enum {@code google.cloud.functions.v2beta.Stage.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                    * Not specified. Invalid state.
                    * 
              @@ -428,8 +366,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
                    * Stage has not started.
                    * 
              @@ -438,8 +374,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ NOT_STARTED(1), /** - * - * *
                    * Stage is in progress.
                    * 
              @@ -448,8 +382,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ IN_PROGRESS(2), /** - * - * *
                    * Stage has completed.
                    * 
              @@ -461,8 +393,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                    * Not specified. Invalid state.
                    * 
              @@ -471,8 +401,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
                    * Stage has not started.
                    * 
              @@ -481,8 +409,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_STARTED_VALUE = 1; /** - * - * *
                    * Stage is in progress.
                    * 
              @@ -491,8 +417,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IN_PROGRESS_VALUE = 2; /** - * - * *
                    * Stage has completed.
                    * 
              @@ -501,6 +425,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPLETE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -525,51 +450,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return NOT_STARTED; - case 2: - return IN_PROGRESS; - case 3: - return COMPLETE; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return NOT_STARTED; + case 2: return IN_PROGRESS; + case 3: return COMPLETE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.functions.v2beta.Stage.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -589,50 +513,38 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private int name_; /** - * - * *
                  * Name of the Stage. This will be unique for each Stage.
                  * 
              * * .google.cloud.functions.v2beta.Stage.Name name = 1; - * * @return The enum numeric value on the wire for name. */ - @java.lang.Override - public int getNameValue() { + @java.lang.Override public int getNameValue() { return name_; } /** - * - * *
                  * Name of the Stage. This will be unique for each Stage.
                  * 
              * * .google.cloud.functions.v2beta.Stage.Name name = 1; - * * @return The name. */ - @java.lang.Override - public com.google.cloud.functions.v2beta.Stage.Name getName() { + @java.lang.Override public com.google.cloud.functions.v2beta.Stage.Name getName() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Stage.Name result = - com.google.cloud.functions.v2beta.Stage.Name.valueOf(name_); + com.google.cloud.functions.v2beta.Stage.Name result = com.google.cloud.functions.v2beta.Stage.Name.valueOf(name_); return result == null ? com.google.cloud.functions.v2beta.Stage.Name.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** - * - * *
                  * Message describing the Stage
                  * 
              * * string message = 2; - * * @return The message. */ @java.lang.Override @@ -641,29 +553,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** - * - * *
                  * Message describing the Stage
                  * 
              * * string message = 2; - * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -674,50 +586,38 @@ public com.google.protobuf.ByteString getMessageBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
                  * Current state of the Stage
                  * 
              * * .google.cloud.functions.v2beta.Stage.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
                  * Current state of the Stage
                  * 
              * * .google.cloud.functions.v2beta.Stage.State state = 3; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.functions.v2beta.Stage.State getState() { + @java.lang.Override public com.google.cloud.functions.v2beta.Stage.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Stage.State result = - com.google.cloud.functions.v2beta.Stage.State.valueOf(state_); + com.google.cloud.functions.v2beta.Stage.State result = com.google.cloud.functions.v2beta.Stage.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2beta.Stage.State.UNRECOGNIZED : result; } public static final int RESOURCE_FIELD_NUMBER = 4; private volatile java.lang.Object resource_; /** - * - * *
                  * Resource of the Stage
                  * 
              * * string resource = 4; - * * @return The resource. */ @java.lang.Override @@ -726,29 +626,29 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
                  * Resource of the Stage
                  * 
              * * string resource = 4; - * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -759,14 +659,11 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int RESOURCE_URI_FIELD_NUMBER = 5; private volatile java.lang.Object resourceUri_; /** - * - * *
                  * Link to the current Stage resource
                  * 
              * * string resource_uri = 5; - * * @return The resourceUri. */ @java.lang.Override @@ -775,29 +672,29 @@ public java.lang.String getResourceUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUri_ = s; return s; } } /** - * - * *
                  * Link to the current Stage resource
                  * 
              * * string resource_uri = 5; - * * @return The bytes for resourceUri. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceUriBytes() { + public com.google.protobuf.ByteString + getResourceUriBytes() { java.lang.Object ref = resourceUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUri_ = b; return b; } else { @@ -808,8 +705,6 @@ public com.google.protobuf.ByteString getResourceUriBytes() { public static final int STATE_MESSAGES_FIELD_NUMBER = 6; private java.util.List stateMessages_; /** - * - * *
                  * State messages from the current Stage.
                  * 
              @@ -821,8 +716,6 @@ public java.util.List getStateMe return stateMessages_; } /** - * - * *
                  * State messages from the current Stage.
                  * 
              @@ -830,13 +723,11 @@ public java.util.List getStateMe * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ @java.lang.Override - public java.util.List + public java.util.List getStateMessagesOrBuilderList() { return stateMessages_; } /** - * - * *
                  * State messages from the current Stage.
                  * 
              @@ -848,8 +739,6 @@ public int getStateMessagesCount() { return stateMessages_.size(); } /** - * - * *
                  * State messages from the current Stage.
                  * 
              @@ -861,8 +750,6 @@ public com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index return stateMessages_.get(index); } /** - * - * *
                  * State messages from the current Stage.
                  * 
              @@ -876,7 +763,6 @@ public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -888,7 +774,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (name_ != com.google.cloud.functions.v2beta.Stage.Name.NAME_UNSPECIFIED.getNumber()) { output.writeEnum(1, name_); } @@ -917,13 +804,15 @@ public int getSerializedSize() { size = 0; if (name_ != com.google.cloud.functions.v2beta.Stage.Name.NAME_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, name_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } if (state_ != com.google.cloud.functions.v2beta.Stage.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); @@ -932,7 +821,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, resourceUri_); } for (int i = 0; i < stateMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, stateMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, stateMessages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -942,7 +832,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.Stage)) { return super.equals(obj); @@ -950,11 +840,15 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.functions.v2beta.Stage other = (com.google.cloud.functions.v2beta.Stage) obj; if (name_ != other.name_) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (state_ != other.state_) return false; - if (!getResource().equals(other.getResource())) return false; - if (!getResourceUri().equals(other.getResourceUri())) return false; - if (!getStateMessagesList().equals(other.getStateMessagesList())) return false; + if (!getResource() + .equals(other.getResource())) return false; + if (!getResourceUri() + .equals(other.getResourceUri())) return false; + if (!getStateMessagesList() + .equals(other.getStateMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -985,127 +879,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.Stage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.Stage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.Stage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Stage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.Stage 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.Stage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.Stage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.Stage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.Stage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.Stage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.Stage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.Stage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.Stage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.Stage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.Stage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Each Stage of the deployment process
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.Stage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.Stage) com.google.cloud.functions.v2beta.StageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_Stage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Stage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.Stage.class, - com.google.cloud.functions.v2beta.Stage.Builder.class); + com.google.cloud.functions.v2beta.Stage.class, com.google.cloud.functions.v2beta.Stage.Builder.class); } // Construct using com.google.cloud.functions.v2beta.Stage.newBuilder() @@ -1113,17 +998,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStateMessagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1147,9 +1032,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_Stage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Stage_descriptor; } @java.lang.Override @@ -1168,8 +1053,7 @@ public com.google.cloud.functions.v2beta.Stage build() { @java.lang.Override public com.google.cloud.functions.v2beta.Stage buildPartial() { - com.google.cloud.functions.v2beta.Stage result = - new com.google.cloud.functions.v2beta.Stage(this); + com.google.cloud.functions.v2beta.Stage result = new com.google.cloud.functions.v2beta.Stage(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.message_ = message_; @@ -1193,39 +1077,38 @@ public com.google.cloud.functions.v2beta.Stage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.Stage) other); + return mergeFrom((com.google.cloud.functions.v2beta.Stage)other); } else { super.mergeFrom(other); return this; @@ -1270,10 +1153,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.Stage other) { stateMessagesBuilder_ = null; stateMessages_ = other.stateMessages_; bitField0_ = (bitField0_ & ~0x00000001); - stateMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStateMessagesFieldBuilder() - : null; + stateMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStateMessagesFieldBuilder() : null; } else { stateMessagesBuilder_.addAllMessages(other.stateMessages_); } @@ -1307,70 +1189,55 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private int name_ = 0; /** - * - * *
                    * Name of the Stage. This will be unique for each Stage.
                    * 
              * * .google.cloud.functions.v2beta.Stage.Name name = 1; - * * @return The enum numeric value on the wire for name. */ - @java.lang.Override - public int getNameValue() { + @java.lang.Override public int getNameValue() { return name_; } /** - * - * *
                    * Name of the Stage. This will be unique for each Stage.
                    * 
              * * .google.cloud.functions.v2beta.Stage.Name name = 1; - * * @param value The enum numeric value on the wire for name to set. * @return This builder for chaining. */ public Builder setNameValue(int value) { - + name_ = value; onChanged(); return this; } /** - * - * *
                    * Name of the Stage. This will be unique for each Stage.
                    * 
              * * .google.cloud.functions.v2beta.Stage.Name name = 1; - * * @return The name. */ @java.lang.Override public com.google.cloud.functions.v2beta.Stage.Name getName() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Stage.Name result = - com.google.cloud.functions.v2beta.Stage.Name.valueOf(name_); + com.google.cloud.functions.v2beta.Stage.Name result = com.google.cloud.functions.v2beta.Stage.Name.valueOf(name_); return result == null ? com.google.cloud.functions.v2beta.Stage.Name.UNRECOGNIZED : result; } /** - * - * *
                    * Name of the Stage. This will be unique for each Stage.
                    * 
              * * .google.cloud.functions.v2beta.Stage.Name name = 1; - * * @param value The name to set. * @return This builder for chaining. */ @@ -1378,24 +1245,21 @@ public Builder setName(com.google.cloud.functions.v2beta.Stage.Name value) { if (value == null) { throw new NullPointerException(); } - + name_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                    * Name of the Stage. This will be unique for each Stage.
                    * 
              * * .google.cloud.functions.v2beta.Stage.Name name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = 0; onChanged(); return this; @@ -1403,20 +1267,18 @@ public Builder clearName() { private java.lang.Object message_ = ""; /** - * - * *
                    * Message describing the Stage
                    * 
              * * string message = 2; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -1425,21 +1287,20 @@ public java.lang.String getMessage() { } } /** - * - * *
                    * Message describing the Stage
                    * 
              * * string message = 2; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -1447,61 +1308,54 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
                    * Message describing the Stage
                    * 
              * * string message = 2; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { + public Builder setMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** - * - * *
                    * Message describing the Stage
                    * 
              * * string message = 2; - * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** - * - * *
                    * Message describing the Stage
                    * 
              * * string message = 2; - * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; @@ -1509,65 +1363,51 @@ public Builder setMessageBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
                    * Current state of the Stage
                    * 
              * * .google.cloud.functions.v2beta.Stage.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
                    * Current state of the Stage
                    * 
              * * .google.cloud.functions.v2beta.Stage.State state = 3; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
                    * Current state of the Stage
                    * 
              * * .google.cloud.functions.v2beta.Stage.State state = 3; - * * @return The state. */ @java.lang.Override public com.google.cloud.functions.v2beta.Stage.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Stage.State result = - com.google.cloud.functions.v2beta.Stage.State.valueOf(state_); + com.google.cloud.functions.v2beta.Stage.State result = com.google.cloud.functions.v2beta.Stage.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2beta.Stage.State.UNRECOGNIZED : result; } /** - * - * *
                    * Current state of the Stage
                    * 
              * * .google.cloud.functions.v2beta.Stage.State state = 3; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1575,24 +1415,21 @@ public Builder setState(com.google.cloud.functions.v2beta.Stage.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                    * Current state of the Stage
                    * 
              * * .google.cloud.functions.v2beta.Stage.State state = 3; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1600,20 +1437,18 @@ public Builder clearState() { private java.lang.Object resource_ = ""; /** - * - * *
                    * Resource of the Stage
                    * 
              * * string resource = 4; - * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -1622,21 +1457,20 @@ public java.lang.String getResource() { } } /** - * - * *
                    * Resource of the Stage
                    * 
              * * string resource = 4; - * * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -1644,61 +1478,54 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
                    * Resource of the Stage
                    * 
              * * string resource = 4; - * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { + public Builder setResource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** - * - * *
                    * Resource of the Stage
                    * 
              * * string resource = 4; - * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** - * - * *
                    * Resource of the Stage
                    * 
              * * string resource = 4; - * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -1706,20 +1533,18 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceUri_ = ""; /** - * - * *
                    * Link to the current Stage resource
                    * 
              * * string resource_uri = 5; - * * @return The resourceUri. */ public java.lang.String getResourceUri() { java.lang.Object ref = resourceUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUri_ = s; return s; @@ -1728,21 +1553,20 @@ public java.lang.String getResourceUri() { } } /** - * - * *
                    * Link to the current Stage resource
                    * 
              * * string resource_uri = 5; - * * @return The bytes for resourceUri. */ - public com.google.protobuf.ByteString getResourceUriBytes() { + public com.google.protobuf.ByteString + getResourceUriBytes() { java.lang.Object ref = resourceUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUri_ = b; return b; } else { @@ -1750,86 +1574,72 @@ public com.google.protobuf.ByteString getResourceUriBytes() { } } /** - * - * *
                    * Link to the current Stage resource
                    * 
              * * string resource_uri = 5; - * * @param value The resourceUri to set. * @return This builder for chaining. */ - public Builder setResourceUri(java.lang.String value) { + public Builder setResourceUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUri_ = value; onChanged(); return this; } /** - * - * *
                    * Link to the current Stage resource
                    * 
              * * string resource_uri = 5; - * * @return This builder for chaining. */ public Builder clearResourceUri() { - + resourceUri_ = getDefaultInstance().getResourceUri(); onChanged(); return this; } /** - * - * *
                    * Link to the current Stage resource
                    * 
              * * string resource_uri = 5; - * * @param value The bytes for resourceUri to set. * @return This builder for chaining. */ - public Builder setResourceUriBytes(com.google.protobuf.ByteString value) { + public Builder setResourceUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUri_ = value; onChanged(); return this; } private java.util.List stateMessages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStateMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - stateMessages_ = - new java.util.ArrayList(stateMessages_); + stateMessages_ = new java.util.ArrayList(stateMessages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.StateMessage, - com.google.cloud.functions.v2beta.StateMessage.Builder, - com.google.cloud.functions.v2beta.StateMessageOrBuilder> - stateMessagesBuilder_; + com.google.cloud.functions.v2beta.StateMessage, com.google.cloud.functions.v2beta.StateMessage.Builder, com.google.cloud.functions.v2beta.StateMessageOrBuilder> stateMessagesBuilder_; /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -1844,8 +1654,6 @@ public java.util.List getStateMe } } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -1860,8 +1668,6 @@ public int getStateMessagesCount() { } } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -1876,8 +1682,6 @@ public com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index } } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -1899,8 +1703,6 @@ public Builder setStateMessages( return this; } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -1919,8 +1721,6 @@ public Builder setStateMessages( return this; } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -1941,8 +1741,6 @@ public Builder addStateMessages(com.google.cloud.functions.v2beta.StateMessage v return this; } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -1964,8 +1762,6 @@ public Builder addStateMessages( return this; } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -1984,8 +1780,6 @@ public Builder addStateMessages( return this; } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -2004,8 +1798,6 @@ public Builder addStateMessages( return this; } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -2016,7 +1808,8 @@ public Builder addAllStateMessages( java.lang.Iterable values) { if (stateMessagesBuilder_ == null) { ensureStateMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stateMessages_); onChanged(); } else { stateMessagesBuilder_.addAllMessages(values); @@ -2024,8 +1817,6 @@ public Builder addAllStateMessages( return this; } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -2043,8 +1834,6 @@ public Builder clearStateMessages() { return this; } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -2062,8 +1851,6 @@ public Builder removeStateMessages(int index) { return this; } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -2075,8 +1862,6 @@ public com.google.cloud.functions.v2beta.StateMessage.Builder getStateMessagesBu return getStateMessagesFieldBuilder().getBuilder(index); } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -2086,22 +1871,19 @@ public com.google.cloud.functions.v2beta.StateMessage.Builder getStateMessagesBu public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder( int index) { if (stateMessagesBuilder_ == null) { - return stateMessages_.get(index); - } else { + return stateMessages_.get(index); } else { return stateMessagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                    * State messages from the current Stage.
                    * 
              * * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ - public java.util.List - getStateMessagesOrBuilderList() { + public java.util.List + getStateMessagesOrBuilderList() { if (stateMessagesBuilder_ != null) { return stateMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -2109,8 +1891,6 @@ public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesO } } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -2118,12 +1898,10 @@ public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesO * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBuilder() { - return getStateMessagesFieldBuilder() - .addBuilder(com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder().addBuilder( + com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); } /** - * - * *
                    * State messages from the current Stage.
                    * 
              @@ -2132,34 +1910,26 @@ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBu */ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBuilder( int index) { - return getStateMessagesFieldBuilder() - .addBuilder(index, com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder().addBuilder( + index, com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); } /** - * - * *
                    * State messages from the current Stage.
                    * 
              * * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ - public java.util.List - getStateMessagesBuilderList() { + public java.util.List + getStateMessagesBuilderList() { return getStateMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.StateMessage, - com.google.cloud.functions.v2beta.StateMessage.Builder, - com.google.cloud.functions.v2beta.StateMessageOrBuilder> + com.google.cloud.functions.v2beta.StateMessage, com.google.cloud.functions.v2beta.StateMessage.Builder, com.google.cloud.functions.v2beta.StateMessageOrBuilder> getStateMessagesFieldBuilder() { if (stateMessagesBuilder_ == null) { - stateMessagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.StateMessage, - com.google.cloud.functions.v2beta.StateMessage.Builder, - com.google.cloud.functions.v2beta.StateMessageOrBuilder>( + stateMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.StateMessage, com.google.cloud.functions.v2beta.StateMessage.Builder, com.google.cloud.functions.v2beta.StateMessageOrBuilder>( stateMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2168,9 +1938,9 @@ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBu } return stateMessagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2180,12 +1950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.Stage) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.Stage) private static final com.google.cloud.functions.v2beta.Stage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.Stage(); } @@ -2194,16 +1964,16 @@ public static com.google.cloud.functions.v2beta.Stage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Stage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Stage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Stage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2218,4 +1988,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.Stage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java similarity index 76% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java index f445c5be..6064c0f9 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java @@ -1,166 +1,120 @@ -/* - * 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 StageOrBuilder - extends +public interface StageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.Stage) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * Name of the Stage. This will be unique for each Stage.
                  * 
              * * .google.cloud.functions.v2beta.Stage.Name name = 1; - * * @return The enum numeric value on the wire for name. */ int getNameValue(); /** - * - * *
                  * Name of the Stage. This will be unique for each Stage.
                  * 
              * * .google.cloud.functions.v2beta.Stage.Name name = 1; - * * @return The name. */ com.google.cloud.functions.v2beta.Stage.Name getName(); /** - * - * *
                  * Message describing the Stage
                  * 
              * * string message = 2; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
                  * Message describing the Stage
                  * 
              * * string message = 2; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); /** - * - * *
                  * Current state of the Stage
                  * 
              * * .google.cloud.functions.v2beta.Stage.State state = 3; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
                  * Current state of the Stage
                  * 
              * * .google.cloud.functions.v2beta.Stage.State state = 3; - * * @return The state. */ com.google.cloud.functions.v2beta.Stage.State getState(); /** - * - * *
                  * Resource of the Stage
                  * 
              * * string resource = 4; - * * @return The resource. */ java.lang.String getResource(); /** - * - * *
                  * Resource of the Stage
                  * 
              * * string resource = 4; - * * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
                  * Link to the current Stage resource
                  * 
              * * string resource_uri = 5; - * * @return The resourceUri. */ java.lang.String getResourceUri(); /** - * - * *
                  * Link to the current Stage resource
                  * 
              * * string resource_uri = 5; - * * @return The bytes for resourceUri. */ - com.google.protobuf.ByteString getResourceUriBytes(); + com.google.protobuf.ByteString + getResourceUriBytes(); /** - * - * *
                  * State messages from the current Stage.
                  * 
              * * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ - java.util.List getStateMessagesList(); + java.util.List + getStateMessagesList(); /** - * - * *
                  * State messages from the current Stage.
                  * 
              @@ -169,8 +123,6 @@ public interface StageOrBuilder */ com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index); /** - * - * *
                  * State messages from the current Stage.
                  * 
              @@ -179,24 +131,21 @@ public interface StageOrBuilder */ int getStateMessagesCount(); /** - * - * *
                  * State messages from the current Stage.
                  * 
              * * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ - java.util.List + java.util.List getStateMessagesOrBuilderList(); /** - * - * *
                  * State messages from the current Stage.
                  * 
              * * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ - com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder(int index); + com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder( + int index); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java similarity index 70% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java index 4ec960aa..505e4ebc 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * *
                * Informational messages about the state of the Cloud Function or Operation.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.StateMessage} */ -public final class StateMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StateMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.StateMessage) StateMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StateMessage.newBuilder() to construct. private StateMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StateMessage() { severity_ = 0; type_ = ""; @@ -45,15 +27,16 @@ private StateMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StateMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StateMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,31 @@ private StateMessage( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - severity_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + severity_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + type_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + message_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,41 +87,36 @@ private StateMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.StateMessage.class, - com.google.cloud.functions.v2beta.StateMessage.Builder.class); + com.google.cloud.functions.v2beta.StateMessage.class, com.google.cloud.functions.v2beta.StateMessage.Builder.class); } /** - * - * *
                  * Severity of the state message.
                  * 
              * * Protobuf enum {@code google.cloud.functions.v2beta.StateMessage.Severity} */ - public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                    * Not specified. Invalid severity.
                    * 
              @@ -150,8 +125,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ SEVERITY_UNSPECIFIED(0), /** - * - * *
                    * ERROR-level severity.
                    * 
              @@ -160,8 +133,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(1), /** - * - * *
                    * WARNING-level severity.
                    * 
              @@ -170,8 +141,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ WARNING(2), /** - * - * *
                    * INFO-level severity.
                    * 
              @@ -183,8 +152,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
                    * Not specified. Invalid severity.
                    * 
              @@ -193,8 +160,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** - * - * *
                    * ERROR-level severity.
                    * 
              @@ -203,8 +168,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 1; /** - * - * *
                    * WARNING-level severity.
                    * 
              @@ -213,8 +176,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WARNING_VALUE = 2; /** - * - * *
                    * INFO-level severity.
                    * 
              @@ -223,6 +184,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INFO_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -247,51 +209,50 @@ public static Severity valueOf(int value) { */ public static Severity forNumber(int value) { switch (value) { - case 0: - return SEVERITY_UNSPECIFIED; - case 1: - return ERROR; - case 2: - return WARNING; - case 3: - return INFO; - default: - return null; + case 0: return SEVERITY_UNSPECIFIED; + case 1: return ERROR; + case 2: return WARNING; + case 3: return INFO; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Severity> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.functions.v2beta.StateMessage.getDescriptor().getEnumTypes().get(0); } private static final Severity[] VALUES = values(); - public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Severity valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -311,52 +272,38 @@ private Severity(int value) { public static final int SEVERITY_FIELD_NUMBER = 1; private int severity_; /** - * - * *
                  * Severity of the state message.
                  * 
              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; - * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
                  * Severity of the state message.
                  * 
              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; - * * @return The severity. */ - @java.lang.Override - public com.google.cloud.functions.v2beta.StateMessage.Severity getSeverity() { + @java.lang.Override public com.google.cloud.functions.v2beta.StateMessage.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.StateMessage.Severity result = - com.google.cloud.functions.v2beta.StateMessage.Severity.valueOf(severity_); - return result == null - ? com.google.cloud.functions.v2beta.StateMessage.Severity.UNRECOGNIZED - : result; + com.google.cloud.functions.v2beta.StateMessage.Severity result = com.google.cloud.functions.v2beta.StateMessage.Severity.valueOf(severity_); + return result == null ? com.google.cloud.functions.v2beta.StateMessage.Severity.UNRECOGNIZED : result; } public static final int TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object type_; /** - * - * *
                  * One-word CamelCase type of the state message.
                  * 
              * * string type = 2; - * * @return The type. */ @java.lang.Override @@ -365,29 +312,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * *
                  * One-word CamelCase type of the state message.
                  * 
              * * string type = 2; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -398,14 +345,11 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object message_; /** - * - * *
                  * The message.
                  * 
              * * string message = 3; - * * @return The message. */ @java.lang.Override @@ -414,29 +358,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** - * - * *
                  * The message.
                  * 
              * * string message = 3; - * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -445,7 +389,6 @@ public com.google.protobuf.ByteString getMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -457,10 +400,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (severity_ - != com.google.cloud.functions.v2beta.StateMessage.Severity.SEVERITY_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (severity_ != com.google.cloud.functions.v2beta.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { output.writeEnum(1, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { @@ -478,10 +420,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (severity_ - != com.google.cloud.functions.v2beta.StateMessage.Severity.SEVERITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, severity_); + if (severity_ != com.google.cloud.functions.v2beta.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); @@ -497,17 +438,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.StateMessage)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.StateMessage other = - (com.google.cloud.functions.v2beta.StateMessage) obj; + com.google.cloud.functions.v2beta.StateMessage other = (com.google.cloud.functions.v2beta.StateMessage) obj; if (severity_ != other.severity_) return false; - if (!getType().equals(other.getType())) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getType() + .equals(other.getType())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -530,127 +472,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.StateMessage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.StateMessage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.StateMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StateMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.StateMessage 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.StateMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.StateMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.StateMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.StateMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.StateMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.StateMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.StateMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.StateMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.StateMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.StateMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Informational messages about the state of the Cloud Function or Operation.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.StateMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.StateMessage) com.google.cloud.functions.v2beta.StateMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.StateMessage.class, - com.google.cloud.functions.v2beta.StateMessage.Builder.class); + com.google.cloud.functions.v2beta.StateMessage.class, com.google.cloud.functions.v2beta.StateMessage.Builder.class); } // Construct using com.google.cloud.functions.v2beta.StateMessage.newBuilder() @@ -658,15 +591,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -680,9 +614,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; } @java.lang.Override @@ -701,8 +635,7 @@ public com.google.cloud.functions.v2beta.StateMessage build() { @java.lang.Override public com.google.cloud.functions.v2beta.StateMessage buildPartial() { - com.google.cloud.functions.v2beta.StateMessage result = - new com.google.cloud.functions.v2beta.StateMessage(this); + com.google.cloud.functions.v2beta.StateMessage result = new com.google.cloud.functions.v2beta.StateMessage(this); result.severity_ = severity_; result.type_ = type_; result.message_ = message_; @@ -714,39 +647,38 @@ public com.google.cloud.functions.v2beta.StateMessage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.StateMessage) other); + return mergeFrom((com.google.cloud.functions.v2beta.StateMessage)other); } else { super.mergeFrom(other); return this; @@ -797,67 +729,51 @@ public Builder mergeFrom( private int severity_ = 0; /** - * - * *
                    * Severity of the state message.
                    * 
              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; - * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
                    * Severity of the state message.
                    * 
              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; - * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** - * - * *
                    * Severity of the state message.
                    * 
              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; - * * @return The severity. */ @java.lang.Override public com.google.cloud.functions.v2beta.StateMessage.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.StateMessage.Severity result = - com.google.cloud.functions.v2beta.StateMessage.Severity.valueOf(severity_); - return result == null - ? com.google.cloud.functions.v2beta.StateMessage.Severity.UNRECOGNIZED - : result; + com.google.cloud.functions.v2beta.StateMessage.Severity result = com.google.cloud.functions.v2beta.StateMessage.Severity.valueOf(severity_); + return result == null ? com.google.cloud.functions.v2beta.StateMessage.Severity.UNRECOGNIZED : result; } /** - * - * *
                    * Severity of the state message.
                    * 
              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; - * * @param value The severity to set. * @return This builder for chaining. */ @@ -865,24 +781,21 @@ public Builder setSeverity(com.google.cloud.functions.v2beta.StateMessage.Severi if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** - * - * *
                    * Severity of the state message.
                    * 
              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; - * * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -890,20 +803,18 @@ public Builder clearSeverity() { private java.lang.Object type_ = ""; /** - * - * *
                    * One-word CamelCase type of the state message.
                    * 
              * * string type = 2; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -912,21 +823,20 @@ public java.lang.String getType() { } } /** - * - * *
                    * One-word CamelCase type of the state message.
                    * 
              * * string type = 2; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -934,61 +844,54 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
                    * One-word CamelCase type of the state message.
                    * 
              * * string type = 2; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { + public Builder setType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** - * - * *
                    * One-word CamelCase type of the state message.
                    * 
              * * string type = 2; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** - * - * *
                    * One-word CamelCase type of the state message.
                    * 
              * * string type = 2; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -996,20 +899,18 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object message_ = ""; /** - * - * *
                    * The message.
                    * 
              * * string message = 3; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -1018,21 +919,20 @@ public java.lang.String getMessage() { } } /** - * - * *
                    * The message.
                    * 
              * * string message = 3; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -1040,68 +940,61 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
                    * The message.
                    * 
              * * string message = 3; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { + public Builder setMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** - * - * *
                    * The message.
                    * 
              * * string message = 3; - * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** - * - * *
                    * The message.
                    * 
              * * string message = 3; - * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1111,12 +1004,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.StateMessage) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.StateMessage) private static final com.google.cloud.functions.v2beta.StateMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.StateMessage(); } @@ -1125,16 +1018,16 @@ public static com.google.cloud.functions.v2beta.StateMessage getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StateMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,4 +1042,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.StateMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java similarity index 63% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java index a5e2eef9..020ee039 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java @@ -1,100 +1,68 @@ -/* - * 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 StateMessageOrBuilder - extends +public interface StateMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.StateMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * Severity of the state message.
                  * 
              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; - * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** - * - * *
                  * Severity of the state message.
                  * 
              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; - * * @return The severity. */ com.google.cloud.functions.v2beta.StateMessage.Severity getSeverity(); /** - * - * *
                  * One-word CamelCase type of the state message.
                  * 
              * * string type = 2; - * * @return The type. */ java.lang.String getType(); /** - * - * *
                  * One-word CamelCase type of the state message.
                  * 
              * * string type = 2; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
                  * The message.
                  * 
              * * string message = 3; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
                  * The message.
                  * 
              * * string message = 3; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java similarity index 72% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java index f99dec2b..a49bf80f 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java @@ -1,42 +1,24 @@ -/* - * 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; /** - * - * *
                * Location of the source in an archive file in Google Cloud Storage.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.StorageSource} */ -public final class StorageSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StorageSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.StorageSource) StorageSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StorageSource.newBuilder() to construct. private StorageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StorageSource() { bucket_ = ""; object_ = ""; @@ -44,15 +26,16 @@ private StorageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StorageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StorageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private StorageSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - bucket_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + bucket_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - object_ = s; - break; - } - case 24: - { - generation_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + object_ = s; + break; + } + case 24: { + + generation_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,33 +85,29 @@ private StorageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.StorageSource.class, - com.google.cloud.functions.v2beta.StorageSource.Builder.class); + com.google.cloud.functions.v2beta.StorageSource.class, com.google.cloud.functions.v2beta.StorageSource.Builder.class); } public static final int BUCKET_FIELD_NUMBER = 1; private volatile java.lang.Object bucket_; /** - * - * *
                  * Google Cloud Storage bucket containing the source (see
                  * [Bucket Name
              @@ -138,7 +115,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                  * 
              * * string bucket = 1; - * * @return The bucket. */ @java.lang.Override @@ -147,15 +123,14 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** - * - * *
                  * Google Cloud Storage bucket containing the source (see
                  * [Bucket Name
              @@ -163,15 +138,16 @@ public java.lang.String getBucket() {
                  * 
              * * string bucket = 1; - * * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -182,8 +158,6 @@ public com.google.protobuf.ByteString getBucketBytes() { public static final int OBJECT_FIELD_NUMBER = 2; private volatile java.lang.Object object_; /** - * - * *
                  * Google Cloud Storage object containing the source.
                  * This object must be a gzipped archive file (`.tar.gz`) containing source to
              @@ -191,7 +165,6 @@ public com.google.protobuf.ByteString getBucketBytes() {
                  * 
              * * string object = 2; - * * @return The object. */ @java.lang.Override @@ -200,15 +173,14 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** - * - * *
                  * Google Cloud Storage object containing the source.
                  * This object must be a gzipped archive file (`.tar.gz`) containing source to
              @@ -216,15 +188,16 @@ public java.lang.String getObject() {
                  * 
              * * string object = 2; - * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -235,15 +208,12 @@ public com.google.protobuf.ByteString getObjectBytes() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_; /** - * - * *
                  * Google Cloud Storage generation for the object. If the generation is
                  * omitted, the latest generation will be used.
                  * 
              * * int64 generation = 3; - * * @return The generation. */ @java.lang.Override @@ -252,7 +222,6 @@ public long getGeneration() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -290,7 +260,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, generation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -300,17 +271,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.StorageSource)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.StorageSource other = - (com.google.cloud.functions.v2beta.StorageSource) obj; + com.google.cloud.functions.v2beta.StorageSource other = (com.google.cloud.functions.v2beta.StorageSource) obj; - if (!getBucket().equals(other.getBucket())) return false; - if (!getObject().equals(other.getObject())) return false; - if (getGeneration() != other.getGeneration()) return false; + if (!getBucket() + .equals(other.getBucket())) return false; + if (!getObject() + .equals(other.getObject())) return false; + if (getGeneration() + != other.getGeneration()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,133 +300,125 @@ public int hashCode() { hash = (37 * hash) + OBJECT_FIELD_NUMBER; hash = (53 * hash) + getObject().hashCode(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGeneration()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.functions.v2beta.StorageSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.StorageSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.StorageSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StorageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.StorageSource 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.StorageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.functions.v2beta.StorageSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.StorageSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.StorageSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.functions.v2beta.StorageSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.functions.v2beta.StorageSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.StorageSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.StorageSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2beta.StorageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.StorageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                  * Location of the source in an archive file in Google Cloud Storage.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.StorageSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.StorageSource) com.google.cloud.functions.v2beta.StorageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.StorageSource.class, - com.google.cloud.functions.v2beta.StorageSource.Builder.class); + com.google.cloud.functions.v2beta.StorageSource.class, com.google.cloud.functions.v2beta.StorageSource.Builder.class); } // Construct using com.google.cloud.functions.v2beta.StorageSource.newBuilder() @@ -461,15 +426,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; } @java.lang.Override @@ -504,8 +470,7 @@ public com.google.cloud.functions.v2beta.StorageSource build() { @java.lang.Override public com.google.cloud.functions.v2beta.StorageSource buildPartial() { - com.google.cloud.functions.v2beta.StorageSource result = - new com.google.cloud.functions.v2beta.StorageSource(this); + com.google.cloud.functions.v2beta.StorageSource result = new com.google.cloud.functions.v2beta.StorageSource(this); result.bucket_ = bucket_; result.object_ = object_; result.generation_ = generation_; @@ -517,39 +482,38 @@ public com.google.cloud.functions.v2beta.StorageSource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.StorageSource) other); + return mergeFrom((com.google.cloud.functions.v2beta.StorageSource)other); } else { super.mergeFrom(other); return this; @@ -557,8 +521,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.StorageSource other) { - if (other == com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance()) return this; if (!other.getBucket().isEmpty()) { bucket_ = other.bucket_; onChanged(); @@ -601,8 +564,6 @@ public Builder mergeFrom( private java.lang.Object bucket_ = ""; /** - * - * *
                    * Google Cloud Storage bucket containing the source (see
                    * [Bucket Name
              @@ -610,13 +571,13 @@ public Builder mergeFrom(
                    * 
              * * string bucket = 1; - * * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; @@ -625,8 +586,6 @@ public java.lang.String getBucket() { } } /** - * - * *
                    * Google Cloud Storage bucket containing the source (see
                    * [Bucket Name
              @@ -634,14 +593,15 @@ public java.lang.String getBucket() {
                    * 
              * * string bucket = 1; - * * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -649,8 +609,6 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
                    * Google Cloud Storage bucket containing the source (see
                    * [Bucket Name
              @@ -658,22 +616,20 @@ public com.google.protobuf.ByteString getBucketBytes() {
                    * 
              * * string bucket = 1; - * * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { + public Builder setBucket( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bucket_ = value; onChanged(); return this; } /** - * - * *
                    * Google Cloud Storage bucket containing the source (see
                    * [Bucket Name
              @@ -681,18 +637,15 @@ public Builder setBucket(java.lang.String value) {
                    * 
              * * string bucket = 1; - * * @return This builder for chaining. */ public Builder clearBucket() { - + bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } /** - * - * *
                    * Google Cloud Storage bucket containing the source (see
                    * [Bucket Name
              @@ -700,16 +653,16 @@ public Builder clearBucket() {
                    * 
              * * string bucket = 1; - * * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; onChanged(); return this; @@ -717,8 +670,6 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object object_ = ""; /** - * - * *
                    * Google Cloud Storage object containing the source.
                    * This object must be a gzipped archive file (`.tar.gz`) containing source to
              @@ -726,13 +677,13 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) {
                    * 
              * * string object = 2; - * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -741,8 +692,6 @@ 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
              @@ -750,14 +699,15 @@ public java.lang.String getObject() {
                    * 
              * * string object = 2; - * * @return The bytes for object. */ - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -765,8 +715,6 @@ 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
              @@ -774,22 +722,20 @@ public com.google.protobuf.ByteString getObjectBytes() {
                    * 
              * * string object = 2; - * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject(java.lang.String value) { + public Builder setObject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + object_ = value; onChanged(); return this; } /** - * - * *
                    * Google Cloud Storage object containing the source.
                    * This object must be a gzipped archive file (`.tar.gz`) containing source to
              @@ -797,18 +743,15 @@ public Builder setObject(java.lang.String value) {
                    * 
              * * string object = 2; - * * @return This builder for chaining. */ public Builder clearObject() { - + object_ = getDefaultInstance().getObject(); onChanged(); return this; } /** - * - * *
                    * Google Cloud Storage object containing the source.
                    * This object must be a gzipped archive file (`.tar.gz`) containing source to
              @@ -816,32 +759,29 @@ public Builder clearObject() {
                    * 
              * * string object = 2; - * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes(com.google.protobuf.ByteString value) { + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + object_ = value; onChanged(); return this; } - private long generation_; + private long generation_ ; /** - * - * *
                    * Google Cloud Storage generation for the object. If the generation is
                    * omitted, the latest generation will be used.
                    * 
              * * int64 generation = 3; - * * @return The generation. */ @java.lang.Override @@ -849,45 +789,39 @@ public long getGeneration() { return generation_; } /** - * - * *
                    * Google Cloud Storage generation for the object. If the generation is
                    * omitted, the latest generation will be used.
                    * 
              * * int64 generation = 3; - * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { - + generation_ = value; onChanged(); return this; } /** - * - * *
                    * Google Cloud Storage generation for the object. If the generation is
                    * omitted, the latest generation will be used.
                    * 
              * * int64 generation = 3; - * * @return This builder for chaining. */ public Builder clearGeneration() { - + generation_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -897,12 +831,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.StorageSource) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.StorageSource) private static final com.google.cloud.functions.v2beta.StorageSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.StorageSource(); } @@ -911,16 +845,16 @@ public static com.google.cloud.functions.v2beta.StorageSource getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StorageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -935,4 +869,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.StorageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java similarity index 67% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java index cc284c24..7900527c 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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 StorageSourceOrBuilder - extends +public interface StorageSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.StorageSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * Google Cloud Storage bucket containing the source (see
                  * [Bucket Name
              @@ -33,13 +15,10 @@ public interface StorageSourceOrBuilder
                  * 
              * * string bucket = 1; - * * @return The bucket. */ java.lang.String getBucket(); /** - * - * *
                  * Google Cloud Storage bucket containing the source (see
                  * [Bucket Name
              @@ -47,14 +26,12 @@ public interface StorageSourceOrBuilder
                  * 
              * * string bucket = 1; - * * @return The bytes for bucket. */ - com.google.protobuf.ByteString getBucketBytes(); + 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
              @@ -62,13 +39,10 @@ public interface StorageSourceOrBuilder
                  * 
              * * string object = 2; - * * @return The object. */ java.lang.String getObject(); /** - * - * *
                  * Google Cloud Storage object containing the source.
                  * This object must be a gzipped archive file (`.tar.gz`) containing source to
              @@ -76,21 +50,18 @@ public interface StorageSourceOrBuilder
                  * 
              * * string object = 2; - * * @return The bytes for object. */ - com.google.protobuf.ByteString getObjectBytes(); + com.google.protobuf.ByteString + getObjectBytes(); /** - * - * *
                  * Google Cloud Storage generation for the object. If the generation is
                  * omitted, the latest generation will be used.
                  * 
              * * int64 generation = 3; - * * @return The generation. */ long getGeneration(); diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java similarity index 65% rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java index 3c236b7e..07a2f014 100644 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java @@ -1,55 +1,39 @@ -/* - * 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; /** - * - * *
                * Request for the `UpdateFunction` method.
                * 
              * * Protobuf type {@code google.cloud.functions.v2beta.UpdateFunctionRequest} */ -public final class UpdateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateFunctionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.UpdateFunctionRequest) UpdateFunctionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateFunctionRequest.newBuilder() to construct. private UpdateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateFunctionRequest() {} + private UpdateFunctionRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateFunctionRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.functions.v2beta.Function.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); - } - function_ = - input.readMessage( - com.google.cloud.functions.v2beta.Function.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.functions.v2beta.Function.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); + } + function_ = input.readMessage(com.google.cloud.functions.v2beta.Function.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,41 +92,34 @@ private UpdateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.UpdateFunctionRequest.class, - com.google.cloud.functions.v2beta.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.UpdateFunctionRequest.class, com.google.cloud.functions.v2beta.UpdateFunctionRequest.Builder.class); } public static final int FUNCTION_FIELD_NUMBER = 1; private com.google.cloud.functions.v2beta.Function function_; /** - * - * *
                  * Required. New version of the function.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ @java.lang.Override @@ -155,34 +127,23 @@ public boolean hasFunction() { return function_ != null; } /** - * - * *
                  * Required. New version of the function.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ @java.lang.Override public com.google.cloud.functions.v2beta.Function getFunction() { - return function_ == null - ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() - : function_; + return function_ == null ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() : function_; } /** - * - * *
                  * Required. New version of the function.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder() { @@ -192,8 +153,6 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder( public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
                  * The list of fields to be updated.
                  * If no field mask is provided, all provided fields in the request will be
              @@ -201,7 +160,6 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder(
                  * 
              * * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -209,8 +167,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
                  * The list of fields to be updated.
                  * If no field mask is provided, all provided fields in the request will be
              @@ -218,7 +174,6 @@ public boolean hasUpdateMask() {
                  * 
              * * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -226,8 +181,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
                  * The list of fields to be updated.
                  * If no field mask is provided, all provided fields in the request will be
              @@ -242,7 +195,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                 }
               
                 private byte memoizedIsInitialized = -1;
              -
                 @java.lang.Override
                 public final boolean isInitialized() {
                   byte isInitialized = memoizedIsInitialized;
              @@ -254,7 +206,8 @@ public final boolean isInitialized() {
                 }
               
                 @java.lang.Override
              -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
              +  public void writeTo(com.google.protobuf.CodedOutputStream output)
              +                      throws java.io.IOException {
                   if (function_ != null) {
                     output.writeMessage(1, getFunction());
                   }
              @@ -271,10 +224,12 @@ public int getSerializedSize() {
               
                   size = 0;
                   if (function_ != null) {
              -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunction());
              +      size += com.google.protobuf.CodedOutputStream
              +        .computeMessageSize(1, getFunction());
                   }
                   if (updateMask_ != null) {
              -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
              +      size += com.google.protobuf.CodedOutputStream
              +        .computeMessageSize(2, getUpdateMask());
                   }
                   size += unknownFields.getSerializedSize();
                   memoizedSize = size;
              @@ -284,21 +239,22 @@ public int getSerializedSize() {
                 @java.lang.Override
                 public boolean equals(final java.lang.Object obj) {
                   if (obj == this) {
              -      return true;
              +     return true;
                   }
                   if (!(obj instanceof com.google.cloud.functions.v2beta.UpdateFunctionRequest)) {
                     return super.equals(obj);
                   }
              -    com.google.cloud.functions.v2beta.UpdateFunctionRequest other =
              -        (com.google.cloud.functions.v2beta.UpdateFunctionRequest) obj;
              +    com.google.cloud.functions.v2beta.UpdateFunctionRequest other = (com.google.cloud.functions.v2beta.UpdateFunctionRequest) obj;
               
                   if (hasFunction() != other.hasFunction()) return false;
                   if (hasFunction()) {
              -      if (!getFunction().equals(other.getFunction())) return false;
              +      if (!getFunction()
              +          .equals(other.getFunction())) return false;
                   }
                   if (hasUpdateMask() != other.hasUpdateMask()) return false;
                   if (hasUpdateMask()) {
              -      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
              +      if (!getUpdateMask()
              +          .equals(other.getUpdateMask())) return false;
                   }
                   if (!unknownFields.equals(other.unknownFields)) return false;
                   return true;
              @@ -325,127 +281,117 @@ public int hashCode() {
                 }
               
                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
              -      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
              +      java.nio.ByteBuffer data)
              +      throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
              -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      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.UpdateFunctionRequest parseFrom(
                     com.google.protobuf.ByteString data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest 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.UpdateFunctionRequest parseFrom(byte[] data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
              -
                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
              -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      byte[] data,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data, extensionRegistry);
                 }
              -
              -  public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
              -      java.io.InputStream input) throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
              +  public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(java.io.InputStream input)
              +      throws java.io.IOException {
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
              -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      java.io.InputStream input,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input, extensionRegistry);
                 }
              -
              -  public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseDelimitedFrom(
              -      java.io.InputStream input) throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
              +  public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseDelimitedFrom(java.io.InputStream input)
              +      throws java.io.IOException {
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseDelimitedWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseDelimitedFrom(
              -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +      java.io.InputStream input,
              +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                 }
              -
                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
              -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
              +      com.google.protobuf.CodedInputStream input)
              +      throws java.io.IOException {
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input);
                 }
              -
                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
              -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
              -        PARSER, input, extensionRegistry);
              +    return com.google.protobuf.GeneratedMessageV3
              +        .parseWithIOException(PARSER, input, extensionRegistry);
                 }
               
                 @java.lang.Override
              -  public Builder newBuilderForType() {
              -    return newBuilder();
              -  }
              -
              +  public Builder newBuilderForType() { return newBuilder(); }
                 public static Builder newBuilder() {
                   return DEFAULT_INSTANCE.toBuilder();
                 }
              -
              -  public static Builder newBuilder(
              -      com.google.cloud.functions.v2beta.UpdateFunctionRequest prototype) {
              +  public static Builder newBuilder(com.google.cloud.functions.v2beta.UpdateFunctionRequest prototype) {
                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                 }
              -
                 @java.lang.Override
                 public Builder toBuilder() {
              -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
              +    return this == DEFAULT_INSTANCE
              +        ? new Builder() : new Builder().mergeFrom(this);
                 }
               
                 @java.lang.Override
              -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
              +  protected Builder newBuilderForType(
              +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   Builder builder = new Builder(parent);
                   return builder;
                 }
                 /**
              -   *
              -   *
                  * 
                  * Request for the `UpdateFunction` method.
                  * 
              * * Protobuf type {@code google.cloud.functions.v2beta.UpdateFunctionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.UpdateFunctionRequest) com.google.cloud.functions.v2beta.UpdateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.UpdateFunctionRequest.class, - com.google.cloud.functions.v2beta.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.UpdateFunctionRequest.class, com.google.cloud.functions.v2beta.UpdateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.UpdateFunctionRequest.newBuilder() @@ -453,15 +399,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto - .internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; } @java.lang.Override @@ -502,8 +449,7 @@ public com.google.cloud.functions.v2beta.UpdateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.UpdateFunctionRequest buildPartial() { - com.google.cloud.functions.v2beta.UpdateFunctionRequest result = - new com.google.cloud.functions.v2beta.UpdateFunctionRequest(this); + com.google.cloud.functions.v2beta.UpdateFunctionRequest result = new com.google.cloud.functions.v2beta.UpdateFunctionRequest(this); if (functionBuilder_ == null) { result.function_ = function_; } else { @@ -522,39 +468,38 @@ public com.google.cloud.functions.v2beta.UpdateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.UpdateFunctionRequest) other); + return mergeFrom((com.google.cloud.functions.v2beta.UpdateFunctionRequest)other); } else { super.mergeFrom(other); return this; @@ -562,8 +507,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.UpdateFunctionRequest other) { - if (other == com.google.cloud.functions.v2beta.UpdateFunctionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.functions.v2beta.UpdateFunctionRequest.getDefaultInstance()) return this; if (other.hasFunction()) { mergeFunction(other.getFunction()); } @@ -589,8 +533,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.functions.v2beta.UpdateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.functions.v2beta.UpdateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -602,58 +545,39 @@ public Builder mergeFrom( private com.google.cloud.functions.v2beta.Function function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, - com.google.cloud.functions.v2beta.Function.Builder, - com.google.cloud.functions.v2beta.FunctionOrBuilder> - functionBuilder_; + com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder> functionBuilder_; /** - * - * *
                    * Required. New version of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** - * - * *
                    * Required. New version of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ public com.google.cloud.functions.v2beta.Function getFunction() { if (functionBuilder_ == null) { - return function_ == null - ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() - : function_; + return function_ == null ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() : function_; } else { return functionBuilder_.getMessage(); } } /** - * - * *
                    * Required. New version of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFunction(com.google.cloud.functions.v2beta.Function value) { if (functionBuilder_ == null) { @@ -669,17 +593,14 @@ public Builder setFunction(com.google.cloud.functions.v2beta.Function value) { return this; } /** - * - * *
                    * Required. New version of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setFunction(com.google.cloud.functions.v2beta.Function.Builder builderForValue) { + public Builder setFunction( + com.google.cloud.functions.v2beta.Function.Builder builderForValue) { if (functionBuilder_ == null) { function_ = builderForValue.build(); onChanged(); @@ -690,23 +611,17 @@ public Builder setFunction(com.google.cloud.functions.v2beta.Function.Builder bu return this; } /** - * - * *
                    * Required. New version of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFunction(com.google.cloud.functions.v2beta.Function value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v2beta.Function.newBuilder(function_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.functions.v2beta.Function.newBuilder(function_).mergeFrom(value).buildPartial(); } else { function_ = value; } @@ -718,15 +633,11 @@ public Builder mergeFunction(com.google.cloud.functions.v2beta.Function value) { return this; } /** - * - * *
                    * Required. New version of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -740,64 +651,48 @@ public Builder clearFunction() { return this; } /** - * - * *
                    * Required. New version of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.functions.v2beta.Function.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** - * - * *
                    * Required. New version of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null - ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() - : function_; + return function_ == null ? + com.google.cloud.functions.v2beta.Function.getDefaultInstance() : function_; } } /** - * - * *
                    * Required. New version of the function.
                    * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, - com.google.cloud.functions.v2beta.Function.Builder, - com.google.cloud.functions.v2beta.FunctionOrBuilder> + com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, - com.google.cloud.functions.v2beta.Function.Builder, - com.google.cloud.functions.v2beta.FunctionOrBuilder>( - getFunction(), getParentForChildren(), isClean()); + functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder>( + getFunction(), + getParentForChildren(), + isClean()); function_ = null; } return functionBuilder_; @@ -805,13 +700,8 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
                    * The list of fields to be updated.
                    * If no field mask is provided, all provided fields in the request will be
              @@ -819,15 +709,12 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder(
                    * 
              * * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
                    * The list of fields to be updated.
                    * If no field mask is provided, all provided fields in the request will be
              @@ -835,21 +722,16 @@ public boolean hasUpdateMask() {
                    * 
              * * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
                    * The list of fields to be updated.
                    * If no field mask is provided, all provided fields in the request will be
              @@ -872,8 +754,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * The list of fields to be updated.
                    * If no field mask is provided, all provided fields in the request will be
              @@ -882,7 +762,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                    *
                    * .google.protobuf.FieldMask update_mask = 2;
                    */
              -    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
              +    public Builder setUpdateMask(
              +        com.google.protobuf.FieldMask.Builder builderForValue) {
                     if (updateMaskBuilder_ == null) {
                       updateMask_ = builderForValue.build();
                       onChanged();
              @@ -893,8 +774,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * The list of fields to be updated.
                    * If no field mask is provided, all provided fields in the request will be
              @@ -907,7 +786,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                     if (updateMaskBuilder_ == null) {
                       if (updateMask_ != null) {
                         updateMask_ =
              -              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
              +            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
                       } else {
                         updateMask_ = value;
                       }
              @@ -919,8 +798,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * The list of fields to be updated.
                    * If no field mask is provided, all provided fields in the request will be
              @@ -941,8 +818,6 @@ public Builder clearUpdateMask() {
                     return this;
                   }
                   /**
              -     *
              -     *
                    * 
                    * The list of fields to be updated.
                    * If no field mask is provided, all provided fields in the request will be
              @@ -952,13 +827,11 @@ public Builder clearUpdateMask() {
                    * .google.protobuf.FieldMask update_mask = 2;
                    */
                   public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
              -
              +      
                     onChanged();
                     return getUpdateMaskFieldBuilder().getBuilder();
                   }
                   /**
              -     *
              -     *
                    * 
                    * The list of fields to be updated.
                    * If no field mask is provided, all provided fields in the request will be
              @@ -971,14 +844,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                     if (updateMaskBuilder_ != null) {
                       return updateMaskBuilder_.getMessageOrBuilder();
                     } else {
              -        return updateMask_ == null
              -            ? com.google.protobuf.FieldMask.getDefaultInstance()
              -            : updateMask_;
              +        return updateMask_ == null ?
              +            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
                     }
                   }
                   /**
              -     *
              -     *
                    * 
                    * The list of fields to be updated.
                    * If no field mask is provided, all provided fields in the request will be
              @@ -988,24 +858,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                    * .google.protobuf.FieldMask update_mask = 2;
                    */
                   private com.google.protobuf.SingleFieldBuilderV3<
              -            com.google.protobuf.FieldMask,
              -            com.google.protobuf.FieldMask.Builder,
              -            com.google.protobuf.FieldMaskOrBuilder>
              +        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
                       getUpdateMaskFieldBuilder() {
                     if (updateMaskBuilder_ == null) {
              -        updateMaskBuilder_ =
              -            new com.google.protobuf.SingleFieldBuilderV3<
              -                com.google.protobuf.FieldMask,
              -                com.google.protobuf.FieldMask.Builder,
              -                com.google.protobuf.FieldMaskOrBuilder>(
              -                getUpdateMask(), getParentForChildren(), isClean());
              +        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              +            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
              +                getUpdateMask(),
              +                getParentForChildren(),
              +                isClean());
                       updateMask_ = null;
                     }
                     return updateMaskBuilder_;
                   }
              -
                   @java.lang.Override
              -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
              +    public final Builder setUnknownFields(
              +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                     return super.setUnknownFields(unknownFields);
                   }
               
              @@ -1015,12 +882,12 @@ public final Builder mergeUnknownFields(
                     return super.mergeUnknownFields(unknownFields);
                   }
               
              +
                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.UpdateFunctionRequest)
                 }
               
                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.UpdateFunctionRequest)
                 private static final com.google.cloud.functions.v2beta.UpdateFunctionRequest DEFAULT_INSTANCE;
              -
                 static {
                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.UpdateFunctionRequest();
                 }
              @@ -1029,16 +896,16 @@ public static com.google.cloud.functions.v2beta.UpdateFunctionRequest getDefault
                   return DEFAULT_INSTANCE;
                 }
               
              -  private static final com.google.protobuf.Parser PARSER =
              -      new com.google.protobuf.AbstractParser() {
              -        @java.lang.Override
              -        public UpdateFunctionRequest parsePartialFrom(
              -            com.google.protobuf.CodedInputStream input,
              -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              -            throws com.google.protobuf.InvalidProtocolBufferException {
              -          return new UpdateFunctionRequest(input, extensionRegistry);
              -        }
              -      };
              +  private static final com.google.protobuf.Parser
              +      PARSER = new com.google.protobuf.AbstractParser() {
              +    @java.lang.Override
              +    public UpdateFunctionRequest parsePartialFrom(
              +        com.google.protobuf.CodedInputStream input,
              +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              +        throws com.google.protobuf.InvalidProtocolBufferException {
              +      return new UpdateFunctionRequest(input, extensionRegistry);
              +    }
              +  };
               
                 public static com.google.protobuf.Parser parser() {
                   return PARSER;
              @@ -1053,4 +920,6 @@ public com.google.protobuf.Parser getParserForType() {
                 public com.google.cloud.functions.v2beta.UpdateFunctionRequest getDefaultInstanceForType() {
                   return DEFAULT_INSTANCE;
                 }
              +
               }
              +
              diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java
              similarity index 60%
              rename from proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java
              rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java
              index e8f2bac4..5b23cdc4 100644
              --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java
              +++ b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java
              @@ -1,72 +1,40 @@
              -/*
              - * 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 UpdateFunctionRequestOrBuilder
              -    extends
              +public interface UpdateFunctionRequestOrBuilder extends
                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.UpdateFunctionRequest)
                   com.google.protobuf.MessageOrBuilder {
               
                 /**
              -   *
              -   *
                  * 
                  * Required. New version of the function.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the function field is set. */ boolean hasFunction(); /** - * - * *
                  * Required. New version of the function.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The function. */ com.google.cloud.functions.v2beta.Function getFunction(); /** - * - * *
                  * Required. New version of the function.
                  * 
              * - * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder(); /** - * - * *
                  * The list of fields to be updated.
                  * If no field mask is provided, all provided fields in the request will be
              @@ -74,13 +42,10 @@ public interface UpdateFunctionRequestOrBuilder
                  * 
              * * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
                  * The list of fields to be updated.
                  * If no field mask is provided, all provided fields in the request will be
              @@ -88,13 +53,10 @@ public interface UpdateFunctionRequestOrBuilder
                  * 
              * * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
                  * The list of fields to be updated.
                  * If no field mask is provided, all provided fields in the request will be
              diff --git a/proto-google-cloud-functions-v2beta/src/main/proto/google/cloud/functions/v2beta/functions.proto b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/proto/google/cloud/functions/v2beta/functions.proto
              similarity index 100%
              rename from proto-google-cloud-functions-v2beta/src/main/proto/google/cloud/functions/v2beta/functions.proto
              rename to owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/proto/google/cloud/functions/v2beta/functions.proto
              diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java
              deleted file mode 100644
              index 4a6b73f2..00000000
              --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java
              +++ /dev/null
              @@ -1,79 +0,0 @@
              -/*
              - * 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/v1/functions.proto
              -
              -package com.google.cloud.functions.v1;
              -
              -public interface CallFunctionRequestOrBuilder
              -    extends
              -    // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.CallFunctionRequest)
              -    com.google.protobuf.MessageOrBuilder {
              -
              -  /**
              -   *
              -   *
              -   * 
              -   * Required. The name of the function to be called.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
              -   * Required. The name of the function to be called.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
              -   * Required. Input to be passed to the function.
              -   * 
              - * - * string data = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The data. - */ - java.lang.String getData(); - /** - * - * - *
              -   * Required. Input to be passed to the function.
              -   * 
              - * - * string data = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for data. - */ - com.google.protobuf.ByteString getDataBytes(); -} diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java deleted file mode 100644 index af0e14ef..00000000 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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/v1/functions.proto - -package com.google.cloud.functions.v1; - -public interface CreateFunctionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.CreateFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
              -   * Required. The project and location in which the function should be created, specified
              -   * in the format `projects/*/locations/*`
              -   * 
              - * - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
              -   * Required. The project and location in which the function should be created, specified
              -   * in the format `projects/*/locations/*`
              -   * 
              - * - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); - - /** - * - * - *
              -   * Required. Function to be created.
              -   * 
              - * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the function field is set. - */ - boolean hasFunction(); - /** - * - * - *
              -   * Required. Function to be created.
              -   * 
              - * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The function. - */ - com.google.cloud.functions.v1.CloudFunction getFunction(); - /** - * - * - *
              -   * Required. Function to be created.
              -   * 
              - * - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder(); -} diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java deleted file mode 100644 index fe29335b..00000000 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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/v1/functions.proto - -package com.google.cloud.functions.v1; - -public interface DeleteFunctionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.DeleteFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
              -   * Required. The name of the function which should be deleted.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
              -   * Required. The name of the function which should be deleted.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java deleted file mode 100644 index 4606d134..00000000 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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/v1/operations.proto - -package com.google.cloud.functions.v1; - -public final class FunctionsOperationsProto { - private FunctionsOperationsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n*google/cloud/functions/v1/operations.p" - + "roto\022\031google.cloud.functions.v1\032\031google/" - + "protobuf/any.proto\032\037google/protobuf/time" - + "stamp.proto\"\205\002\n\023OperationMetadataV1\022\016\n\006t" - + "arget\030\001 \001(\t\0226\n\004type\030\002 \001(\0162(.google.cloud" - + ".functions.v1.OperationType\022%\n\007request\030\003" - + " \001(\0132\024.google.protobuf.Any\022\022\n\nversion_id" - + "\030\004 \001(\003\022/\n\013update_time\030\005 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022\020\n\010build_id\030\006 \001(\t\022\024\n\014sou" - + "rce_token\030\007 \001(\t\022\022\n\nbuild_name\030\010 \001(\t*i\n\rO" - + "perationType\022\031\n\025OPERATION_UNSPECIFIED\020\000\022" - + "\023\n\017CREATE_FUNCTION\020\001\022\023\n\017UPDATE_FUNCTION\020" - + "\002\022\023\n\017DELETE_FUNCTION\020\003B\177\n\035com.google.clo" - + "ud.functions.v1B\030FunctionsOperationsProt" - + "oP\001ZBgoogle.golang.org/genproto/googleap" - + "is/cloud/functions/v1;functionsb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor, - new java.lang.String[] { - "Target", - "Type", - "Request", - "VersionId", - "UpdateTime", - "BuildId", - "SourceToken", - "BuildName", - }); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java deleted file mode 100644 index e299f42c..00000000 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java +++ /dev/null @@ -1,585 +0,0 @@ -/* - * 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/v1/functions.proto - -package com.google.cloud.functions.v1; - -public final class FunctionsProto { - private FunctionsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CloudFunction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_SourceRepository_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_EventTrigger_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_FailurePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_SecretVolume_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/functions/v1/functions.pr" - + "oto\022\031google.cloud.functions.v1\032\034google/a" - + "pi/annotations.proto\032\027google/api/client." - + "proto\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032\036google/iam/v1" - + "/iam_policy.proto\032\032google/iam/v1/policy." - + "proto\032#google/longrunning/operations.pro" - + "to\032\036google/protobuf/duration.proto\032 goog" - + "le/protobuf/field_mask.proto\032\037google/pro" - + "tobuf/timestamp.proto\"\347\021\n\rCloudFunction\022" - + "\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\034\n\022so" - + "urce_archive_url\030\003 \001(\tH\000\022H\n\021source_repos" - + "itory\030\004 \001(\0132+.google.cloud.functions.v1." - + "SourceRepositoryH\000\022\033\n\021source_upload_url\030" - + "\020 \001(\tH\000\022@\n\rhttps_trigger\030\005 \001(\0132\'.google." - + "cloud.functions.v1.HttpsTriggerH\001\022@\n\reve" - + "nt_trigger\030\006 \001(\0132\'.google.cloud.function" - + "s.v1.EventTriggerH\001\022C\n\006status\030\007 \001(\0162..go" - + "ogle.cloud.functions.v1.CloudFunctionSta" - + "tusB\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.protobu" - + "f.Duration\022\033\n\023available_memory_mb\030\n \001(\005\022" - + "\035\n\025service_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.CloudF" - + "unction.LabelsEntry\022a\n\025environment_varia" - + "bles\030\021 \003(\0132B.google.cloud.functions.v1.C" - + "loudFunction.EnvironmentVariablesEntry\022l" - + "\n\033build_environment_variables\030\034 \003(\0132G.go" - + "ogle.cloud.functions.v1.CloudFunction.Bu" - + "ildEnvironmentVariablesEntry\022\017\n\007network\030" - + "\022 \001(\t\022\025\n\rmax_instances\030\024 \001(\005\022\025\n\rmin_inst" - + "ances\030 \001(\005\022\025\n\rvpc_connector\030\026 \001(\t\022j\n\035vp" - + "c_connector_egress_settings\030\027 \001(\0162C.goog" - + "le.cloud.functions.v1.CloudFunction.VpcC" - + "onnectorEgressSettings\022R\n\020ingress_settin" - + "gs\030\030 \001(\01628.google.cloud.functions.v1.Clo" - + "udFunction.IngressSettings\022<\n\014kms_key_na" - + "me\030\031 \001(\tB&\372A#\n!cloudkms.googleapis.com/C" - + "ryptoKey\022\031\n\021build_worker_pool\030\032 \001(\t\022\025\n\010b" - + "uild_id\030\033 \001(\tB\003\340A\003\022\027\n\nbuild_name\030! \001(\tB\003" - + "\340A\003\022M\n\034secret_environment_variables\030\035 \003(" - + "\0132\'.google.cloud.functions.v1.SecretEnvV" - + "ar\022?\n\016secret_volumes\030\036 \003(\0132\'.google.clou" - + "d.functions.v1.SecretVolume\022\031\n\014source_to" - + "ken\030\037 \001(\tB\003\340A\004\022J\n\021docker_repository\030\" \001(" - + "\tB/\372A,\n*artifactregistry.googleapis.com/" - + "Repository\022P\n\017docker_registry\030# \001(\01627.go" - + "ogle.cloud.functions.v1.CloudFunction.Do" - + "ckerRegistry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001\032;\n\031EnvironmentVariab" - + "lesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\032@\n\036BuildEnvironmentVariablesEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\032VpcConnect" - + "orEgressSettings\022-\n)VPC_CONNECTOR_EGRESS" - + "_SETTINGS_UNSPECIFIED\020\000\022\027\n\023PRIVATE_RANGE" - + "S_ONLY\020\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n\017IngressSett" - + "ings\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\016DockerReg" - + "istry\022\037\n\033DOCKER_REGISTRY_UNSPECIFIED\020\000\022\026" - + "\n\022CONTAINER_REGISTRY\020\001\022\025\n\021ARTIFACT_REGIS" - + "TRY\020\002:n\352Ak\n+cloudfunctions.googleapis.co" - + "m/CloudFunction\022\n\032GenerateD" - + "ownloadUrlRequest\022\014\n\004name\030\001 \001(\t\022\022\n\nversi" - + "on_id\030\002 \001(\004\"3\n\033GenerateDownloadUrlRespon" - + "se\022\024\n\014download_url\030\001 \001(\t*\222\001\n\023CloudFuncti" - + "onStatus\022%\n!CLOUD_FUNCTION_STATUS_UNSPEC" - + "IFIED\020\000\022\n\n\006ACTIVE\020\001\022\013\n\007OFFLINE\020\002\022\026\n\022DEPL" - + "OY_IN_PROGRESS\020\003\022\026\n\022DELETE_IN_PROGRESS\020\004" - + "\022\013\n\007UNKNOWN\020\0052\227\021\n\025CloudFunctionsService\022" - + "\251\001\n\rListFunctions\022/.google.cloud.functio" - + "ns.v1.ListFunctionsRequest\0320.google.clou" - + "d.functions.v1.ListFunctionsResponse\"5\202\323" - + "\344\223\002/\022-/v1/{parent=projects/*/locations/*" - + "}/functions\022\244\001\n\013GetFunction\022-.google.clo" - + "ud.functions.v1.GetFunctionRequest\032(.goo" - + "gle.cloud.functions.v1.CloudFunction\"<\202\323" - + "\344\223\002/\022-/v1/{name=projects/*/locations/*/f" - + "unctions/*}\332A\004name\022\337\001\n\016CreateFunction\0220." - + "google.cloud.functions.v1.CreateFunction" - + "Request\032\035.google.longrunning.Operation\"|" - + "\202\323\344\223\002;\"//v1/{location=projects/*/locatio" - + "ns/*}/functions:\010function\332A\021location,fun" - + "ction\312A$\n\rCloudFunction\022\023OperationMetada" - + "taV1\022\335\001\n\016UpdateFunction\0220.google.cloud.f" - + "unctions.v1.UpdateFunctionRequest\032\035.goog" - + "le.longrunning.Operation\"z\202\323\344\223\002B26/v1/{f" - + "unction.name=projects/*/locations/*/func" - + "tions/*}:\010function\332A\010function\312A$\n\rCloudF" - + "unction\022\023OperationMetadataV1\022\316\001\n\016DeleteF" - + "unction\0220.google.cloud.functions.v1.Dele" - + "teFunctionRequest\032\035.google.longrunning.O" - + "peration\"k\202\323\344\223\002/*-/v1/{name=projects/*/l" - + "ocations/*/functions/*}\332A\004name\312A,\n\025googl" - + "e.protobuf.Empty\022\023OperationMetadataV1\022\272\001" - + "\n\014CallFunction\022..google.cloud.functions." - + "v1.CallFunctionRequest\032/.google.cloud.fu" - + "nctions.v1.CallFunctionResponse\"I\202\323\344\223\0027\"" - + "2/v1/{name=projects/*/locations/*/functi" - + "ons/*}:call:\001*\332A\tname,data\022\312\001\n\021GenerateU" - + "ploadUrl\0223.google.cloud.functions.v1.Gen" - + "erateUploadUrlRequest\0324.google.cloud.fun" - + "ctions.v1.GenerateUploadUrlResponse\"J\202\323\344" - + "\223\002D\"?/v1/{parent=projects/*/locations/*}" - + "/functions:generateUploadUrl:\001*\022\322\001\n\023Gene" - + "rateDownloadUrl\0225.google.cloud.functions" - + ".v1.GenerateDownloadUrlRequest\0326.google." - + "cloud.functions.v1.GenerateDownloadUrlRe" - + "sponse\"L\202\323\344\223\002F\"A/v1/{name=projects/*/loc" - + "ations/*/functions/*}:generateDownloadUr" - + "l:\001*\022\224\001\n\014SetIamPolicy\022\".google.iam.v1.Se" - + "tIamPolicyRequest\032\025.google.iam.v1.Policy" - + "\"I\202\323\344\223\002C\">/v1/{resource=projects/*/locat" - + "ions/*/functions/*}:setIamPolicy:\001*\022\221\001\n\014" - + "GetIamPolicy\022\".google.iam.v1.GetIamPolic" - + "yRequest\032\025.google.iam.v1.Policy\"F\202\323\344\223\002@\022" - + ">/v1/{resource=projects/*/locations/*/fu" - + "nctions/*}:getIamPolicy\022\272\001\n\022TestIamPermi" - + "ssions\022(.google.iam.v1.TestIamPermission" - + "sRequest\032).google.iam.v1.TestIamPermissi" - + "onsResponse\"O\202\323\344\223\002I\"D/v1/{resource=proje" - + "cts/*/locations/*/functions/*}:testIamPe" - + "rmissions:\001*\032Q\312A\035cloudfunctions.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\350\002\n\035com.google.cloud.fun" - + "ctions.v1B\016FunctionsProtoP\001ZBgoogle.gola" - + "ng.org/genproto/googleapis/cloud/functio" - + "ns/v1;functions\242\002\003GCF\352Ao\n*artifactregist" - + "ry.googleapis.com/Repository\022Aprojects/{" - + "project}/locations/{location}/repositori" - + "es/{repository}\352Ax\n!cloudkms.googleapis." - + "com/CryptoKey\022Sprojects/{project}/locati" - + "ons/{location}/keyRings/{key_ring}/crypt" - + "oKeys/{crypto_key}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_functions_v1_CloudFunction_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CloudFunction_descriptor, - new java.lang.String[] { - "Name", - "Description", - "SourceArchiveUrl", - "SourceRepository", - "SourceUploadUrl", - "HttpsTrigger", - "EventTrigger", - "Status", - "EntryPoint", - "Runtime", - "Timeout", - "AvailableMemoryMb", - "ServiceAccountEmail", - "UpdateTime", - "VersionId", - "Labels", - "EnvironmentVariables", - "BuildEnvironmentVariables", - "Network", - "MaxInstances", - "MinInstances", - "VpcConnector", - "VpcConnectorEgressSettings", - "IngressSettings", - "KmsKeyName", - "BuildWorkerPool", - "BuildId", - "BuildName", - "SecretEnvironmentVariables", - "SecretVolumes", - "SourceToken", - "DockerRepository", - "DockerRegistry", - "SourceCode", - "Trigger", - }); - internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor = - internal_static_google_cloud_functions_v1_CloudFunction_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v1_CloudFunction_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v1_CloudFunction_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_functions_v1_SourceRepository_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_SourceRepository_descriptor, - new java.lang.String[] { - "Url", "DeployedUrl", - }); - internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor, - new java.lang.String[] { - "Url", "SecurityLevel", - }); - internal_static_google_cloud_functions_v1_EventTrigger_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_EventTrigger_descriptor, - new java.lang.String[] { - "EventType", "Resource", "Service", "FailurePolicy", - }); - internal_static_google_cloud_functions_v1_FailurePolicy_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_FailurePolicy_descriptor, - new java.lang.String[] { - "Retry", "Action", - }); - internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor = - internal_static_google_cloud_functions_v1_FailurePolicy_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor, - new java.lang.String[] { - "Key", "ProjectId", "Secret", "Version", - }); - internal_static_google_cloud_functions_v1_SecretVolume_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_SecretVolume_descriptor, - new java.lang.String[] { - "MountPath", "ProjectId", "Secret", "Versions", - }); - internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor = - internal_static_google_cloud_functions_v1_SecretVolume_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor, - new java.lang.String[] { - "Version", "Path", - }); - internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor, - new java.lang.String[] { - "Location", "Function", - }); - internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor, - new java.lang.String[] { - "Function", "UpdateMask", - }); - internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor, - new java.lang.String[] { - "Functions", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor, - new java.lang.String[] { - "Name", "Data", - }); - internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor, - new java.lang.String[] { - "ExecutionId", "Result", "Error", - }); - internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor, - new java.lang.String[] { - "Parent", "KmsKeyName", - }); - internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor, - new java.lang.String[] { - "UploadUrl", - }); - internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor, - new java.lang.String[] { - "Name", "VersionId", - }); - internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor, - new java.lang.String[] { - "DownloadUrl", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java deleted file mode 100644 index 8993bd6e..00000000 --- a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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/v1/functions.proto - -package com.google.cloud.functions.v1; - -public interface GetFunctionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.GetFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
              -   * Required. The name of the function which details should be obtained.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
              -   * Required. The name of the function which details should be obtained.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java deleted file mode 100644 index 34b9ca93..00000000 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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/v2alpha/functions.proto - -package com.google.cloud.functions.v2alpha; - -public interface DeleteFunctionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.DeleteFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
              -   * Required. The name of the function which should be deleted.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
              -   * Required. The name of the function which should be deleted.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java deleted file mode 100644 index 0cb12249..00000000 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java +++ /dev/null @@ -1,758 +0,0 @@ -/* - * 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/v2alpha/functions.proto - -package com.google.cloud.functions.v2alpha; - -public final class FunctionsProto { - private FunctionsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_Function_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_Source_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_Stage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n.google/cloud/functions/v2alpha/functio" - + "ns.proto\022\036google.cloud.functions.v2alpha" - + "\032\034google/api/annotations.proto\032\027google/a" - + "pi/client.proto\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\032#goo" - + "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" - + "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" - + "nctions.v2alpha.BuildConfig\022E\n\016service_c" - + "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" - + "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\204\007\n\"com.google.cloud.functi" - + "ons.v2alphaB\016FunctionsProtoP\001ZGgoogle.go" - + "lang.org/genproto/googleapis/cloud/funct" - + "ions/v2alpha;functions\242\002\003GCF\352Ao\n*artifac" - + "tregistry.googleapis.com/Repository\022Apro" - + "jects/{project}/locations/{location}/rep" - + "ositories/{repository}\352AY\n\037cloudbuild.go" - + "ogleapis.com/Build\0226projects/{project}/l" - + "ocations/{location}/builds/{build}\352Ai\n$c" - + "loudbuild.googleapis.com/WorkerPool\022Apro" - + "jects/{project}/locations/{location}/wor" - + "kerPools/{worker_pool}\352AX\n\032run.googleapi" - + "s.com/Service\022:projects/{project}/locati" - + "ons/{location}/services/{service}\352Ad\n\"vp" - + "caccess.googleapis.com/Connector\022>projec" - + "ts/{project}/locations/{location}/connec" - + "tors/{connector}\352A]\n\037eventarc.googleapis" - + ".com/Trigger\022:projects/{project}/locatio" - + "ns/{location}/triggers/{trigger}\352A]\n\037eve" - + "ntarc.googleapis.com/Channel\022:projects/{" - + "project}/locations/{location}/channels/{" - + "channel}\352A@\n\033pubsub.googleapis.com/Topic" - + "\022!projects/{project}/topics/{topic}b\006pro" - + "to3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_functions_v2alpha_Function_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_Function_descriptor, - new java.lang.String[] { - "Name", - "Environment", - "Description", - "BuildConfig", - "ServiceConfig", - "EventTrigger", - "State", - "UpdateTime", - "Labels", - "StateMessages", - }); - internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor = - internal_static_google_cloud_functions_v2alpha_Function_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor, - new java.lang.String[] { - "Severity", "Type", "Message", - }); - internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor, - new java.lang.String[] { - "Bucket", "Object", "Generation", - }); - internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor, - new java.lang.String[] { - "BranchName", - "TagName", - "CommitSha", - "ProjectId", - "RepoName", - "Dir", - "InvertRegex", - "Revision", - }); - internal_static_google_cloud_functions_v2alpha_Source_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_Source_descriptor, - new java.lang.String[] { - "StorageSource", "RepoSource", "Source", - }); - internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor, - new java.lang.String[] { - "ResolvedStorageSource", "ResolvedRepoSource", - }); - internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor, - new java.lang.String[] { - "Build", - "Runtime", - "EntryPoint", - "Source", - "SourceProvenance", - "WorkerPool", - "EnvironmentVariables", - "DockerRepository", - }); - internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor, - new java.lang.String[] { - "Service", - "TimeoutSeconds", - "AvailableMemory", - "EnvironmentVariables", - "MaxInstanceCount", - "MinInstanceCount", - "VpcConnector", - "VpcConnectorEgressSettings", - "IngressSettings", - "Uri", - "ServiceAccountEmail", - "AllTrafficOnLatestRevision", - "SecretEnvironmentVariables", - "SecretVolumes", - "Revision", - }); - internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor, - new java.lang.String[] { - "Key", "ProjectId", "Secret", "Version", - }); - internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor, - new java.lang.String[] { - "MountPath", "ProjectId", "Secret", "Versions", - }); - internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor = - internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor, - new java.lang.String[] { - "Version", "Path", - }); - internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor, - new java.lang.String[] { - "Trigger", - "TriggerRegion", - "EventType", - "EventFilters", - "PubsubTopic", - "ServiceAccountEmail", - "RetryPolicy", - "Channel", - }); - internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor, - new java.lang.String[] { - "Attribute", "Value", "Operator", - }); - internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor, - new java.lang.String[] { - "Functions", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor, - new java.lang.String[] { - "Parent", "Function", "FunctionId", - }); - internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor, - new java.lang.String[] { - "Function", "UpdateMask", - }); - internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor, - new java.lang.String[] { - "Parent", - }); - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor, - new java.lang.String[] { - "UploadUrl", "StorageSource", - }); - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor, - new java.lang.String[] { - "DownloadUrl", - }); - internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", - }); - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor, - new java.lang.String[] { - "Runtimes", - }); - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor = - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "Stage", "Warnings", "Environment", - }); - internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusDetail", - "CancelRequested", - "ApiVersion", - "RequestResource", - "Stages", - }); - internal_static_google_cloud_functions_v2alpha_Stage_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_Stage_descriptor, - new java.lang.String[] { - "Name", "Message", "State", "Resource", "ResourceUri", "StateMessages", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java deleted file mode 100644 index 0b401260..00000000 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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/v2alpha/functions.proto - -package com.google.cloud.functions.v2alpha; - -public interface GenerateDownloadUrlRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
              -   * 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) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
              -   * 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) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java deleted file mode 100644 index 987f404b..00000000 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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/v2alpha/functions.proto - -package com.google.cloud.functions.v2alpha; - -public interface GenerateUploadUrlRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GenerateUploadUrlRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
              -   * 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) = { ... } - * - * - * @return The parent. - */ - 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/*`.
              -   * 
              - * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java deleted file mode 100644 index e12f66d5..00000000 --- a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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/v2alpha/functions.proto - -package com.google.cloud.functions.v2alpha; - -public interface GetFunctionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GetFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
              -   * Required. The name of the function which details should be obtained.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
              -   * Required. The name of the function which details should be obtained.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java deleted file mode 100644 index 1c465e85..00000000 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 DeleteFunctionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.DeleteFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
              -   * Required. The name of the function which should be deleted.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
              -   * Required. The name of the function which should be deleted.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java deleted file mode 100644 index c6097d91..00000000 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java +++ /dev/null @@ -1,756 +0,0 @@ -/* - * 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 final class FunctionsProto { - private FunctionsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_Function_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_Source_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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_Stage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n-google/cloud/functions/v2beta/function" - + "s.proto\022\035google.cloud.functions.v2beta\032\034" - + "google/api/annotations.proto\032\027google/api" - + "/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\202\007\n!com.g" - + "oogle.cloud.functions.v2betaB\016FunctionsP" - + "rotoP\001ZFgoogle.golang.org/genproto/googl" - + "eapis/cloud/functions/v2beta;functions\242\002" - + "\003GCF\352Ao\n*artifactregistry.googleapis.com" - + "/Repository\022Aprojects/{project}/location" - + "s/{location}/repositories/{repository}\352A" - + "Y\n\037cloudbuild.googleapis.com/Build\0226proj" - + "ects/{project}/locations/{location}/buil" - + "ds/{build}\352Ai\n$cloudbuild.googleapis.com" - + "/WorkerPool\022Aprojects/{project}/location" - + "s/{location}/workerPools/{worker_pool}\352A" - + "X\n\032run.googleapis.com/Service\022:projects/" - + "{project}/locations/{location}/services/" - + "{service}\352Ad\n\"vpcaccess.googleapis.com/C" - + "onnector\022>projects/{project}/locations/{" - + "location}/connectors/{connector}\352A]\n\037eve" - + "ntarc.googleapis.com/Trigger\022:projects/{" - + "project}/locations/{location}/triggers/{" - + "trigger}\352A]\n\037eventarc.googleapis.com/Cha" - + "nnel\022:projects/{project}/locations/{loca" - + "tion}/channels/{channel}\352A@\n\033pubsub.goog" - + "leapis.com/Topic\022!projects/{project}/top" - + "ics/{topic}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_functions_v2beta_Function_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_Function_descriptor, - new java.lang.String[] { - "Name", - "Environment", - "Description", - "BuildConfig", - "ServiceConfig", - "EventTrigger", - "State", - "UpdateTime", - "Labels", - "StateMessages", - }); - internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor = - internal_static_google_cloud_functions_v2beta_Function_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_functions_v2beta_StateMessage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_StateMessage_descriptor, - new java.lang.String[] { - "Severity", "Type", "Message", - }); - internal_static_google_cloud_functions_v2beta_StorageSource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_StorageSource_descriptor, - new java.lang.String[] { - "Bucket", "Object", "Generation", - }); - internal_static_google_cloud_functions_v2beta_RepoSource_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_RepoSource_descriptor, - new java.lang.String[] { - "BranchName", - "TagName", - "CommitSha", - "ProjectId", - "RepoName", - "Dir", - "InvertRegex", - "Revision", - }); - internal_static_google_cloud_functions_v2beta_Source_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_Source_descriptor, - new java.lang.String[] { - "StorageSource", "RepoSource", "Source", - }); - internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor, - new java.lang.String[] { - "ResolvedStorageSource", "ResolvedRepoSource", - }); - internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor, - new java.lang.String[] { - "Build", - "Runtime", - "EntryPoint", - "Source", - "SourceProvenance", - "WorkerPool", - "EnvironmentVariables", - "DockerRepository", - }); - internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor, - new java.lang.String[] { - "Service", - "TimeoutSeconds", - "AvailableMemory", - "EnvironmentVariables", - "MaxInstanceCount", - "MinInstanceCount", - "VpcConnector", - "VpcConnectorEgressSettings", - "IngressSettings", - "Uri", - "ServiceAccountEmail", - "AllTrafficOnLatestRevision", - "SecretEnvironmentVariables", - "SecretVolumes", - "Revision", - }); - internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor, - new java.lang.String[] { - "Key", "ProjectId", "Secret", "Version", - }); - internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor, - new java.lang.String[] { - "MountPath", "ProjectId", "Secret", "Versions", - }); - internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor = - internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor, - new java.lang.String[] { - "Version", "Path", - }); - internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor, - new java.lang.String[] { - "Trigger", - "TriggerRegion", - "EventType", - "EventFilters", - "PubsubTopic", - "ServiceAccountEmail", - "RetryPolicy", - "Channel", - }); - internal_static_google_cloud_functions_v2beta_EventFilter_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_EventFilter_descriptor, - new java.lang.String[] { - "Attribute", "Value", "Operator", - }); - internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor, - new java.lang.String[] { - "Functions", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor, - new java.lang.String[] { - "Parent", "Function", "FunctionId", - }); - internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor, - new java.lang.String[] { - "Function", "UpdateMask", - }); - internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor, - new java.lang.String[] { - "Parent", - }); - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor, - new java.lang.String[] { - "UploadUrl", "StorageSource", - }); - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor, - new java.lang.String[] { - "DownloadUrl", - }); - internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", - }); - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor, - new java.lang.String[] { - "Runtimes", - }); - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor = - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "Stage", "Warnings", "Environment", - }); - internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_functions_v2beta_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusDetail", - "CancelRequested", - "ApiVersion", - "RequestResource", - "Stages", - }); - internal_static_google_cloud_functions_v2beta_Stage_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_Stage_descriptor, - new java.lang.String[] { - "Name", "Message", "State", "Resource", "ResourceUri", "StateMessages", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java deleted file mode 100644 index cc4f6c5c..00000000 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 GenerateDownloadUrlRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GenerateDownloadUrlRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
              -   * 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) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
              -   * 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) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java deleted file mode 100644 index f113fe3c..00000000 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 GenerateUploadUrlRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GenerateUploadUrlRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
              -   * 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) = { ... } - * - * - * @return The parent. - */ - 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/*`.
              -   * 
              - * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java deleted file mode 100644 index 62e422a4..00000000 --- a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 GetFunctionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GetFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
              -   * Required. The name of the function which details should be obtained.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
              -   * Required. The name of the function which details should be obtained.
              -   * 
              - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} From 67ed2d24291b160b1e8212c475953650d7be019f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 18 Jul 2022 18:41:23 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- google-cloud-functions-bom/pom.xml | 10 + google-cloud-functions/pom.xml | 9 + .../v1/CloudFunctionsServiceClient.java | 40 +- .../v1/CloudFunctionsServiceSettings.java | 7 +- .../cloud/functions/v1/gapic_metadata.json | 0 .../cloud/functions/v1/package-info.java | 0 .../v1/stub/CloudFunctionsServiceStub.java | 0 .../CloudFunctionsServiceStubSettings.java | 6 +- ...cCloudFunctionsServiceCallableFactory.java | 0 .../stub/GrpcCloudFunctionsServiceStub.java | 1 - ...nCloudFunctionsServiceCallableFactory.java | 0 .../HttpJsonCloudFunctionsServiceStub.java | 1 - .../functions/v2/FunctionServiceClient.java | 42 +- .../functions/v2/FunctionServiceSettings.java | 7 +- .../cloud/functions/v2/gapic_metadata.json | 0 .../cloud/functions/v2/package-info.java | 0 .../v2/stub/FunctionServiceStub.java | 0 .../v2/stub/FunctionServiceStubSettings.java | 6 +- .../GrpcFunctionServiceCallableFactory.java | 0 .../v2/stub/GrpcFunctionServiceStub.java | 1 - ...ttpJsonFunctionServiceCallableFactory.java | 0 .../v2/stub/HttpJsonFunctionServiceStub.java | 1 - .../v2alpha/FunctionServiceClient.java | 42 +- .../v2alpha/FunctionServiceSettings.java | 7 +- .../functions/v2alpha/gapic_metadata.json | 0 .../cloud/functions/v2alpha/package-info.java | 0 .../v2alpha/stub/FunctionServiceStub.java | 0 .../stub/FunctionServiceStubSettings.java | 6 +- .../GrpcFunctionServiceCallableFactory.java | 0 .../v2alpha/stub/GrpcFunctionServiceStub.java | 1 - ...ttpJsonFunctionServiceCallableFactory.java | 0 .../stub/HttpJsonFunctionServiceStub.java | 1 - .../v2beta/FunctionServiceClient.java | 42 +- .../v2beta/FunctionServiceSettings.java | 7 +- .../functions/v2beta/gapic_metadata.json | 0 .../cloud/functions/v2beta/package-info.java | 0 .../v2beta/stub/FunctionServiceStub.java | 0 .../stub/FunctionServiceStubSettings.java | 6 +- .../GrpcFunctionServiceCallableFactory.java | 0 .../v2beta/stub/GrpcFunctionServiceStub.java | 1 - ...ttpJsonFunctionServiceCallableFactory.java | 0 .../stub/HttpJsonFunctionServiceStub.java | 1 - ...oudFunctionsServiceClientHttpJsonTest.java | 0 .../v1/CloudFunctionsServiceClientTest.java | 0 .../v1/MockCloudFunctionsService.java | 0 .../v1/MockCloudFunctionsServiceImpl.java | 0 .../v2/FunctionServiceClientHttpJsonTest.java | 0 .../v2/FunctionServiceClientTest.java | 0 .../functions/v2/MockFunctionService.java | 0 .../functions/v2/MockFunctionServiceImpl.java | 0 .../cloud/functions/v2/MockIAMPolicy.java | 0 .../cloud/functions/v2/MockIAMPolicyImpl.java | 0 .../cloud/functions/v2/MockLocations.java | 0 .../cloud/functions/v2/MockLocationsImpl.java | 0 .../FunctionServiceClientHttpJsonTest.java | 0 .../v2alpha/FunctionServiceClientTest.java | 0 .../v2alpha/MockFunctionService.java | 0 .../v2alpha/MockFunctionServiceImpl.java | 0 .../functions/v2alpha/MockIAMPolicy.java | 0 .../functions/v2alpha/MockIAMPolicyImpl.java | 0 .../functions/v2alpha/MockLocations.java | 0 .../functions/v2alpha/MockLocationsImpl.java | 0 .../FunctionServiceClientHttpJsonTest.java | 0 .../v2beta/FunctionServiceClientTest.java | 0 .../functions/v2beta/MockFunctionService.java | 0 .../v2beta/MockFunctionServiceImpl.java | 0 .../cloud/functions/v2beta/MockIAMPolicy.java | 0 .../functions/v2beta/MockIAMPolicyImpl.java | 0 .../cloud/functions/v2beta/MockLocations.java | 0 .../functions/v2beta/MockLocationsImpl.java | 0 .../v1/CloudFunctionsServiceGrpc.java | 1170 +++-- grpc-google-cloud-functions-v2/pom.xml | 69 + .../functions/v2/FunctionServiceGrpc.java | 1296 ++++++ .../v2alpha/FunctionServiceGrpc.java | 1309 ++++++ .../functions/v2beta/FunctionServiceGrpc.java | 1302 ++++++ .../v1/CallFunctionRequestOrBuilder.java | 49 - .../v1/CreateFunctionRequestOrBuilder.java | 58 - .../v1/DeleteFunctionRequestOrBuilder.java | 29 - .../v1/FunctionsOperationsProto.java | 65 - .../cloud/functions/v1/FunctionsProto.java | 515 --- .../v1/GetFunctionRequestOrBuilder.java | 29 - .../functions/v2/FunctionServiceGrpc.java | 1021 ----- .../v2/DeleteFunctionRequestOrBuilder.java | 29 - .../cloud/functions/v2/FunctionsProto.java | 648 --- .../GenerateDownloadUrlRequestOrBuilder.java | 31 - .../v2/GenerateUploadUrlRequestOrBuilder.java | 31 - .../v2/GetFunctionRequestOrBuilder.java | 29 - .../v2alpha/FunctionServiceGrpc.java | 1021 ----- .../DeleteFunctionRequestOrBuilder.java | 29 - .../functions/v2alpha/FunctionsProto.java | 653 --- .../GenerateDownloadUrlRequestOrBuilder.java | 31 - .../GenerateUploadUrlRequestOrBuilder.java | 31 - .../v2alpha/GetFunctionRequestOrBuilder.java | 29 - .../functions/v2beta/FunctionServiceGrpc.java | 1021 ----- .../DeleteFunctionRequestOrBuilder.java | 29 - .../functions/v2beta/FunctionsProto.java | 651 --- .../GenerateDownloadUrlRequestOrBuilder.java | 31 - .../GenerateUploadUrlRequestOrBuilder.java | 31 - .../v2beta/GetFunctionRequestOrBuilder.java | 29 - pom.xml | 12 + .../functions/v1/CallFunctionRequest.java | 418 +- .../v1/CallFunctionRequestOrBuilder.java | 79 + .../functions/v1/CallFunctionResponse.java | 469 +- .../v1/CallFunctionResponseOrBuilder.java | 45 +- .../cloud/functions/v1/CloudFunction.java | 3830 ++++++++++------- .../cloud/functions/v1/CloudFunctionName.java | 0 .../functions/v1/CloudFunctionOrBuilder.java | 404 +- .../functions/v1/CloudFunctionStatus.java | 98 +- .../functions/v1/CreateFunctionRequest.java | 485 ++- .../v1/CreateFunctionRequestOrBuilder.java | 97 + .../cloud/functions/v1/CryptoKeyName.java | 0 .../functions/v1/DeleteFunctionRequest.java | 339 +- .../v1/DeleteFunctionRequestOrBuilder.java | 54 + .../cloud/functions/v1/EventTrigger.java | 557 ++- .../functions/v1/EventTriggerOrBuilder.java | 53 +- .../cloud/functions/v1/FailurePolicy.java | 591 +-- .../functions/v1/FailurePolicyOrBuilder.java | 26 +- .../v1/FunctionsOperationsProto.java | 87 + .../cloud/functions/v1/FunctionsProto.java | 585 +++ .../v1/GenerateDownloadUrlRequest.java | 351 +- .../GenerateDownloadUrlRequestOrBuilder.java | 30 +- .../v1/GenerateDownloadUrlResponse.java | 314 +- .../GenerateDownloadUrlResponseOrBuilder.java | 27 +- .../v1/GenerateUploadUrlRequest.java | 393 +- .../v1/GenerateUploadUrlRequestOrBuilder.java | 36 +- .../v1/GenerateUploadUrlResponse.java | 314 +- .../GenerateUploadUrlResponseOrBuilder.java | 27 +- .../functions/v1/GetFunctionRequest.java | 336 +- .../v1/GetFunctionRequestOrBuilder.java | 54 + .../cloud/functions/v1/HttpsTrigger.java | 440 +- .../functions/v1/HttpsTriggerOrBuilder.java | 33 +- .../functions/v1/ListFunctionsRequest.java | 424 +- .../v1/ListFunctionsRequestOrBuilder.java | 39 +- .../functions/v1/ListFunctionsResponse.java | 570 ++- .../v1/ListFunctionsResponseOrBuilder.java | 63 +- .../cloud/functions/v1/LocationName.java | 0 .../functions/v1/OperationMetadataV1.java | 824 ++-- .../v1/OperationMetadataV1OrBuilder.java | 79 +- .../cloud/functions/v1/OperationType.java | 93 +- .../cloud/functions/v1/SecretEnvVar.java | 540 ++- .../functions/v1/SecretEnvVarOrBuilder.java | 54 +- .../cloud/functions/v1/SecretVolume.java | 1005 +++-- .../functions/v1/SecretVolumeOrBuilder.java | 63 +- .../cloud/functions/v1/SourceRepository.java | 380 +- .../v1/SourceRepositoryOrBuilder.java | 36 +- .../functions/v1/UpdateFunctionRequest.java | 477 +- .../v1/UpdateFunctionRequestOrBuilder.java | 46 +- .../google/cloud/functions/v1/functions.proto | 0 .../cloud/functions/v1/operations.proto | 0 .../clirr-ignored-differences.xml | 19 + proto-google-cloud-functions-v2/pom.xml | 46 + .../cloud/functions/v2/BuildConfig.java | 1159 +++-- .../functions/v2/BuildConfigOrBuilder.java | 138 +- .../functions/v2/CreateFunctionRequest.java | 567 ++- .../v2/CreateFunctionRequestOrBuilder.java | 64 +- .../functions/v2/DeleteFunctionRequest.java | 339 +- .../v2/DeleteFunctionRequestOrBuilder.java | 54 + .../cloud/functions/v2/Environment.java | 82 +- .../cloud/functions/v2/EventFilter.java | 459 +- .../functions/v2/EventFilterOrBuilder.java | 45 +- .../cloud/functions/v2/EventTrigger.java | 1096 +++-- .../functions/v2/EventTriggerOrBuilder.java | 128 +- .../google/cloud/functions/v2/Function.java | 1538 ++++--- .../cloud/functions/v2/FunctionName.java | 0 .../cloud/functions/v2/FunctionOrBuilder.java | 166 +- .../cloud/functions/v2/FunctionsProto.java | 747 ++++ .../v2/GenerateDownloadUrlRequest.java | 342 +- .../GenerateDownloadUrlRequestOrBuilder.java | 56 + .../v2/GenerateDownloadUrlResponse.java | 314 +- .../GenerateDownloadUrlResponseOrBuilder.java | 27 +- .../v2/GenerateUploadUrlRequest.java | 342 +- .../v2/GenerateUploadUrlRequestOrBuilder.java | 56 + .../v2/GenerateUploadUrlResponse.java | 412 +- .../GenerateUploadUrlResponseOrBuilder.java | 35 +- .../functions/v2/GetFunctionRequest.java | 336 +- .../v2/GetFunctionRequestOrBuilder.java | 54 + .../functions/v2/ListFunctionsRequest.java | 612 +-- .../v2/ListFunctionsRequestOrBuilder.java | 65 +- .../functions/v2/ListFunctionsResponse.java | 570 ++- .../v2/ListFunctionsResponseOrBuilder.java | 63 +- .../functions/v2/ListRuntimesRequest.java | 418 +- .../v2/ListRuntimesRequestOrBuilder.java | 44 +- .../functions/v2/ListRuntimesResponse.java | 1169 +++-- .../v2/ListRuntimesResponseOrBuilder.java | 33 +- .../cloud/functions/v2/LocationName.java | 0 .../cloud/functions/v2/OperationMetadata.java | 1010 +++-- .../v2/OperationMetadataOrBuilder.java | 100 +- .../google/cloud/functions/v2/RepoSource.java | 824 ++-- .../functions/v2/RepoSourceOrBuilder.java | 84 +- .../cloud/functions/v2/SecretEnvVar.java | 540 ++- .../functions/v2/SecretEnvVarOrBuilder.java | 54 +- .../cloud/functions/v2/SecretVolume.java | 1005 +++-- .../functions/v2/SecretVolumeOrBuilder.java | 63 +- .../cloud/functions/v2/ServiceConfig.java | 1787 +++++--- .../functions/v2/ServiceConfigOrBuilder.java | 194 +- .../com/google/cloud/functions/v2/Source.java | 475 +- .../cloud/functions/v2/SourceOrBuilder.java | 34 +- .../cloud/functions/v2/SourceProvenance.java | 427 +- .../v2/SourceProvenanceOrBuilder.java | 34 +- .../com/google/cloud/functions/v2/Stage.java | 869 ++-- .../cloud/functions/v2/StageOrBuilder.java | 75 +- .../cloud/functions/v2/StateMessage.java | 521 ++- .../functions/v2/StateMessageOrBuilder.java | 42 +- .../cloud/functions/v2/StorageSource.java | 417 +- .../functions/v2/StorageSourceOrBuilder.java | 39 +- .../functions/v2/UpdateFunctionRequest.java | 480 ++- .../v2/UpdateFunctionRequestOrBuilder.java | 46 +- .../google/cloud/functions/v2/functions.proto | 0 .../cloud/functions/v2alpha/BuildConfig.java | 1176 +++-- .../v2alpha/BuildConfigOrBuilder.java | 138 +- .../v2alpha/CreateFunctionRequest.java | 567 ++- .../CreateFunctionRequestOrBuilder.java | 64 +- .../v2alpha/DeleteFunctionRequest.java | 342 +- .../DeleteFunctionRequestOrBuilder.java | 54 + .../cloud/functions/v2alpha/Environment.java | 82 +- .../cloud/functions/v2alpha/EventFilter.java | 459 +- .../v2alpha/EventFilterOrBuilder.java | 45 +- .../cloud/functions/v2alpha/EventTrigger.java | 1084 +++-- .../v2alpha/EventTriggerOrBuilder.java | 128 +- .../cloud/functions/v2alpha/Function.java | 1535 ++++--- .../cloud/functions/v2alpha/FunctionName.java | 0 .../functions/v2alpha/FunctionOrBuilder.java | 166 +- .../functions/v2alpha/FunctionsProto.java | 758 ++++ .../v2alpha/GenerateDownloadUrlRequest.java | 350 +- .../GenerateDownloadUrlRequestOrBuilder.java | 56 + .../v2alpha/GenerateDownloadUrlResponse.java | 332 +- .../GenerateDownloadUrlResponseOrBuilder.java | 27 +- .../v2alpha/GenerateUploadUrlRequest.java | 342 +- .../GenerateUploadUrlRequestOrBuilder.java | 56 + .../v2alpha/GenerateUploadUrlResponse.java | 419 +- .../GenerateUploadUrlResponseOrBuilder.java | 35 +- .../functions/v2alpha/GetFunctionRequest.java | 342 +- .../v2alpha/GetFunctionRequestOrBuilder.java | 54 + .../v2alpha/ListFunctionsRequest.java | 615 +-- .../ListFunctionsRequestOrBuilder.java | 65 +- .../v2alpha/ListFunctionsResponse.java | 573 ++- .../ListFunctionsResponseOrBuilder.java | 63 +- .../v2alpha/ListRuntimesRequest.java | 421 +- .../v2alpha/ListRuntimesRequestOrBuilder.java | 44 +- .../v2alpha/ListRuntimesResponse.java | 1292 ++++-- .../ListRuntimesResponseOrBuilder.java | 48 +- .../cloud/functions/v2alpha/LocationName.java | 0 .../functions/v2alpha/OperationMetadata.java | 1017 +++-- .../v2alpha/OperationMetadataOrBuilder.java | 99 +- .../cloud/functions/v2alpha/RepoSource.java | 827 ++-- .../v2alpha/RepoSourceOrBuilder.java | 84 +- .../cloud/functions/v2alpha/SecretEnvVar.java | 543 ++- .../v2alpha/SecretEnvVarOrBuilder.java | 54 +- .../cloud/functions/v2alpha/SecretVolume.java | 1101 +++-- .../v2alpha/SecretVolumeOrBuilder.java | 60 +- .../functions/v2alpha/ServiceConfig.java | 1845 +++++--- .../v2alpha/ServiceConfigOrBuilder.java | 199 +- .../cloud/functions/v2alpha/Source.java | 480 ++- .../functions/v2alpha/SourceOrBuilder.java | 34 +- .../functions/v2alpha/SourceProvenance.java | 449 +- .../v2alpha/SourceProvenanceOrBuilder.java | 34 +- .../google/cloud/functions/v2alpha/Stage.java | 859 ++-- .../functions/v2alpha/StageOrBuilder.java | 75 +- .../cloud/functions/v2alpha/StateMessage.java | 526 ++- .../v2alpha/StateMessageOrBuilder.java | 42 +- .../functions/v2alpha/StorageSource.java | 424 +- .../v2alpha/StorageSourceOrBuilder.java | 39 +- .../v2alpha/UpdateFunctionRequest.java | 480 ++- .../UpdateFunctionRequestOrBuilder.java | 46 +- .../cloud/functions/v2alpha/functions.proto | 0 .../cloud/functions/v2beta/BuildConfig.java | 1170 +++-- .../v2beta/BuildConfigOrBuilder.java | 138 +- .../v2beta/CreateFunctionRequest.java | 570 ++- .../CreateFunctionRequestOrBuilder.java | 64 +- .../v2beta/DeleteFunctionRequest.java | 342 +- .../DeleteFunctionRequestOrBuilder.java | 54 + .../cloud/functions/v2beta/Environment.java | 82 +- .../cloud/functions/v2beta/EventFilter.java | 459 +- .../v2beta/EventFilterOrBuilder.java | 45 +- .../cloud/functions/v2beta/EventTrigger.java | 1093 +++-- .../v2beta/EventTriggerOrBuilder.java | 128 +- .../cloud/functions/v2beta/Function.java | 1534 ++++--- .../cloud/functions/v2beta/FunctionName.java | 0 .../functions/v2beta/FunctionOrBuilder.java | 166 +- .../functions/v2beta/FunctionsProto.java | 756 ++++ .../v2beta/GenerateDownloadUrlRequest.java | 349 +- .../GenerateDownloadUrlRequestOrBuilder.java | 56 + .../v2beta/GenerateDownloadUrlResponse.java | 322 +- .../GenerateDownloadUrlResponseOrBuilder.java | 27 +- .../v2beta/GenerateUploadUrlRequest.java | 342 +- .../GenerateUploadUrlRequestOrBuilder.java | 56 + .../v2beta/GenerateUploadUrlResponse.java | 412 +- .../GenerateUploadUrlResponseOrBuilder.java | 35 +- .../functions/v2beta/GetFunctionRequest.java | 339 +- .../v2beta/GetFunctionRequestOrBuilder.java | 54 + .../v2beta/ListFunctionsRequest.java | 615 +-- .../v2beta/ListFunctionsRequestOrBuilder.java | 65 +- .../v2beta/ListFunctionsResponse.java | 573 ++- .../ListFunctionsResponseOrBuilder.java | 63 +- .../functions/v2beta/ListRuntimesRequest.java | 421 +- .../v2beta/ListRuntimesRequestOrBuilder.java | 44 +- .../v2beta/ListRuntimesResponse.java | 1264 ++++-- .../v2beta/ListRuntimesResponseOrBuilder.java | 33 +- .../cloud/functions/v2beta/LocationName.java | 0 .../functions/v2beta/OperationMetadata.java | 1017 +++-- .../v2beta/OperationMetadataOrBuilder.java | 99 +- .../cloud/functions/v2beta/RepoSource.java | 827 ++-- .../functions/v2beta/RepoSourceOrBuilder.java | 84 +- .../cloud/functions/v2beta/SecretEnvVar.java | 540 ++- .../v2beta/SecretEnvVarOrBuilder.java | 54 +- .../cloud/functions/v2beta/SecretVolume.java | 1032 +++-- .../v2beta/SecretVolumeOrBuilder.java | 60 +- .../cloud/functions/v2beta/ServiceConfig.java | 1810 +++++--- .../v2beta/ServiceConfigOrBuilder.java | 193 +- .../google/cloud/functions/v2beta/Source.java | 477 +- .../functions/v2beta/SourceOrBuilder.java | 34 +- .../functions/v2beta/SourceProvenance.java | 446 +- .../v2beta/SourceProvenanceOrBuilder.java | 34 +- .../google/cloud/functions/v2beta/Stage.java | 858 ++-- .../functions/v2beta/StageOrBuilder.java | 75 +- .../cloud/functions/v2beta/StateMessage.java | 523 ++- .../v2beta/StateMessageOrBuilder.java | 42 +- .../cloud/functions/v2beta/StorageSource.java | 420 +- .../v2beta/StorageSourceOrBuilder.java | 39 +- .../v2beta/UpdateFunctionRequest.java | 483 ++- .../UpdateFunctionRequestOrBuilder.java | 46 +- .../cloud/functions/v2beta/functions.proto | 0 .../callfunction/AsyncCallFunction.java | 0 .../callfunction/SyncCallFunction.java | 0 ...ncCallFunctionCloudfunctionnameString.java | 0 .../SyncCallFunctionStringString.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createfunction/AsyncCreateFunction.java | 0 .../AsyncCreateFunctionLRO.java | 0 .../createfunction/SyncCreateFunction.java | 0 ...eateFunctionLocationnameCloudfunction.java | 0 ...SyncCreateFunctionStringCloudfunction.java | 0 .../deletefunction/AsyncDeleteFunction.java | 0 .../AsyncDeleteFunctionLRO.java | 0 .../deletefunction/SyncDeleteFunction.java | 0 .../SyncDeleteFunctionCloudfunctionname.java | 0 .../SyncDeleteFunctionString.java | 0 .../AsyncGenerateDownloadUrl.java | 0 .../SyncGenerateDownloadUrl.java | 0 .../AsyncGenerateUploadUrl.java | 0 .../SyncGenerateUploadUrl.java | 0 .../getfunction/AsyncGetFunction.java | 0 .../getfunction/SyncGetFunction.java | 0 .../SyncGetFunctionCloudfunctionname.java | 0 .../getfunction/SyncGetFunctionString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../listfunctions/AsyncListFunctions.java | 0 .../AsyncListFunctionsPaged.java | 0 .../listfunctions/SyncListFunctions.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../updatefunction/AsyncUpdateFunction.java | 0 .../AsyncUpdateFunctionLRO.java | 0 .../updatefunction/SyncUpdateFunction.java | 0 .../SyncUpdateFunctionCloudfunction.java | 0 .../getfunction/SyncGetFunction.java | 0 .../getfunction/SyncGetFunction.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createfunction/AsyncCreateFunction.java | 0 .../AsyncCreateFunctionLRO.java | 0 .../createfunction/SyncCreateFunction.java | 0 ...ateFunctionLocationnameFunctionString.java | 0 ...yncCreateFunctionStringFunctionString.java | 0 .../deletefunction/AsyncDeleteFunction.java | 0 .../AsyncDeleteFunctionLRO.java | 0 .../deletefunction/SyncDeleteFunction.java | 0 .../SyncDeleteFunctionFunctionname.java | 0 .../SyncDeleteFunctionString.java | 0 .../AsyncGenerateDownloadUrl.java | 0 .../SyncGenerateDownloadUrl.java | 0 .../AsyncGenerateUploadUrl.java | 0 .../SyncGenerateUploadUrl.java | 0 .../getfunction/AsyncGetFunction.java | 0 .../getfunction/SyncGetFunction.java | 0 .../SyncGetFunctionFunctionname.java | 0 .../getfunction/SyncGetFunctionString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../listfunctions/AsyncListFunctions.java | 0 .../AsyncListFunctionsPaged.java | 0 .../listfunctions/SyncListFunctions.java | 0 .../SyncListFunctionsLocationname.java | 0 .../SyncListFunctionsString.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../listruntimes/AsyncListRuntimes.java | 0 .../listruntimes/SyncListRuntimes.java | 0 .../SyncListRuntimesLocationname.java | 0 .../listruntimes/SyncListRuntimesString.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../updatefunction/AsyncUpdateFunction.java | 0 .../AsyncUpdateFunctionLRO.java | 0 .../updatefunction/SyncUpdateFunction.java | 0 .../SyncUpdateFunctionFunctionFieldmask.java | 0 .../getfunction/SyncGetFunction.java | 0 .../getfunction/SyncGetFunction.java | 0 versions.txt | 2 + 408 files changed, 55163 insertions(+), 34255 deletions(-) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java (97%) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java (99%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java (98%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java (98%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2/gapic_metadata.json (100%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2/package-info.java (100%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStub.java (100%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java (99%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceStub.java (99%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceStub.java (99%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java (98%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java (98%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/gapic_metadata.json (100%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/package-info.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java (99%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceCallableFactory.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java (99%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceCallableFactory.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java (99%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java (98%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java (98%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/gapic_metadata.json (100%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/package-info.java (100%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java (100%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java (99%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceCallableFactory.java (100%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java (99%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceCallableFactory.java (100%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsService.java (100%) rename {owl-bot-staging/v1/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java (100%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientTest.java (100%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2/MockFunctionService.java (100%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2/MockFunctionServiceImpl.java (100%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2/MockIAMPolicy.java (100%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2/MockIAMPolicyImpl.java (100%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2/MockLocations.java (100%) rename {owl-bot-staging/v2/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2/MockLocationsImpl.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientTest.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionService.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionServiceImpl.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicy.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicyImpl.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/MockLocations.java (100%) rename {owl-bot-staging/v2alpha/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2alpha/MockLocationsImpl.java (100%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java (100%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/MockFunctionService.java (100%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/MockFunctionServiceImpl.java (100%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicy.java (100%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicyImpl.java (100%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/MockLocations.java (100%) rename {owl-bot-staging/v2beta/google-cloud-functions => google-cloud-functions}/src/test/java/com/google/cloud/functions/v2beta/MockLocationsImpl.java (100%) rename {owl-bot-staging/v1/grpc-google-cloud-functions-v1 => grpc-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java (50%) create mode 100644 grpc-google-cloud-functions-v2/pom.xml create mode 100644 grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java create mode 100644 grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java create mode 100644 grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2alpha/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2beta/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java delete mode 100644 owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java delete mode 100644 owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java (66%) create mode 100644 proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CloudFunction.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java (86%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java (62%) create mode 100644 proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java (64%) create mode 100644 proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/EventTrigger.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java (85%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java (63%) create mode 100644 proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java create mode 100644 proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java (51%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java (65%) create mode 100644 proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/OperationType.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/SecretVolume.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/SourceRepository.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/proto/google/cloud/functions/v1/functions.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-functions-v1 => proto-google-cloud-functions-v1}/src/main/proto/google/cloud/functions/v1/operations.proto (100%) create mode 100644 proto-google-cloud-functions-v2/clirr-ignored-differences.xml create mode 100644 proto-google-cloud-functions-v2/pom.xml rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/BuildConfig.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java (75%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java (64%) create mode 100644 proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/Environment.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/EventFilter.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/EventFilterOrBuilder.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/EventTrigger.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/Function.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/FunctionName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java (72%) create mode 100644 proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java (65%) create mode 100644 proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponseOrBuilder.java (51%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java (65%) create mode 100644 proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java (77%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java (65%) create mode 100644 proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequestOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponseOrBuilder.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequestOrBuilder.java (54%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponseOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/LocationName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/OperationMetadataOrBuilder.java (80%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/RepoSource.java (75%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java (79%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/SecretEnvVarOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/SecretVolume.java (77%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/SecretVolumeOrBuilder.java (80%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java (78%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/Source.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/SourceProvenanceOrBuilder.java (75%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/Stage.java (75%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/StageOrBuilder.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/StateMessage.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/StateMessageOrBuilder.java (62%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/StorageSource.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequestOrBuilder.java (60%) rename {owl-bot-staging/v2/proto-google-cloud-functions-v2 => proto-google-cloud-functions-v2}/src/main/proto/google/cloud/functions/v2/functions.proto (100%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java (70%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java (75%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java (65%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java (56%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java (64%) create mode 100644 proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/Environment.java (65%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java (72%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java (69%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java (73%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java (72%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/Function.java (68%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java (100%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java (73%) create mode 100644 proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java (64%) create mode 100644 proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java (66%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java (52%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java (65%) create mode 100644 proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java (73%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java (77%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java (64%) create mode 100644 proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java (72%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java (72%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java (74%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java (74%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java (67%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java (54%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java (71%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java (58%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java (100%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java (74%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java (80%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java (75%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java (79%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java (73%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java (71%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java (75%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java (81%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java (73%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java (78%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/Source.java (71%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java (74%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java (70%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java (75%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/Stage.java (75%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java (76%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java (70%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java (63%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java (72%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java (67%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java (66%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java (60%) rename {owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha => proto-google-cloud-functions-v2alpha}/src/main/proto/google/cloud/functions/v2alpha/functions.proto (100%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java (70%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java (75%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java (65%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java (56%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java (64%) create mode 100644 proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/Environment.java (65%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java (72%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java (69%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java (73%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java (72%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/Function.java (68%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java (100%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java (73%) create mode 100644 proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java (64%) create mode 100644 proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java (67%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java (52%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java (65%) create mode 100644 proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java (73%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java (77%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java (65%) create mode 100644 proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java (72%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java (72%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java (74%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java (74%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java (67%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java (54%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java (71%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java (67%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/LocationName.java (100%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java (74%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java (80%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java (74%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java (79%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java (73%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java (71%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java (76%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java (81%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java (74%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java (79%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/Source.java (71%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java (74%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java (70%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java (75%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/Stage.java (75%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java (76%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java (70%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java (63%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java (72%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java (67%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java (65%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java (60%) rename {owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta => proto-google-cloud-functions-v2beta}/src/main/proto/google/cloud/functions/v2beta/functions.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/AsyncCallFunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionCloudfunctionnameString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionStringString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunctionLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionLocationnameCloudfunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionStringCloudfunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunctionLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionCloudfunctionname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/SyncGenerateUploadUrl.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/AsyncGetFunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionCloudfunctionname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctionsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/SyncListFunctions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunctionLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunctionCloudfunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservicesettings/getfunction/SyncGetFunction.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/functions/v1/stub/cloudfunctionsservicestubsettings/getfunction/SyncGetFunction.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunction.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunctionLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunction.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionLocationnameFunctionString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionStringFunctionString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunction.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunctionLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunction.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionFunctionname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/SyncGenerateUploadUrl.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/AsyncGetFunction.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunction.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionFunctionname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctions.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctionsPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctions.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocations.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocationsPaged.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/SyncListLocations.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/AsyncListRuntimes.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimes.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesLocationname.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesString.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunction.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunctionLRO.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunction.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunctionFunctionFieldmask.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/functionservicesettings/getfunction/SyncGetFunction.java (100%) rename {owl-bot-staging/v2/samples => samples}/snippets/generated/com/google/cloud/functions/v2/stub/functionservicestubsettings/getfunction/SyncGetFunction.java (100%) diff --git a/google-cloud-functions-bom/pom.xml b/google-cloud-functions-bom/pom.xml index f7aa1dab..2820f75a 100644 --- a/google-cloud-functions-bom/pom.xml +++ b/google-cloud-functions-bom/pom.xml @@ -73,6 +73,11 @@ grpc-google-cloud-functions-v2alpha 2.4.3 + + com.google.api.grpc + grpc-google-cloud-functions-v2 + 2.4.3 + com.google.api.grpc proto-google-cloud-functions-v1 @@ -88,6 +93,11 @@ proto-google-cloud-functions-v2alpha 2.4.3 + + com.google.api.grpc + proto-google-cloud-functions-v2 + 2.4.3 + diff --git a/google-cloud-functions/pom.xml b/google-cloud-functions/pom.xml index 16493c10..a7ced942 100644 --- a/google-cloud-functions/pom.xml +++ b/google-cloud-functions/pom.xml @@ -41,10 +41,19 @@ com.google.api.grpc proto-google-common-protos + + com.google.api.grpc + proto-google-cloud-functions-v2 + com.google.api.grpc grpc-google-common-protos + + com.google.api.grpc + grpc-google-cloud-functions-v2 + test + com.google.api.grpc grpc-google-iam-v1 diff --git a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java index 64ce8be8..89cb411e 100644 --- a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java @@ -68,13 +68,13 @@ * methods: * *
                - *
              1. A "flattened" method. With this type of method, the fields of the request type have been + *
              2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
              3. A "request object" method. This type of method only takes one parameter, a request object, + *
              4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
              5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
              6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
              * @@ -927,9 +927,9 @@ public final UnaryCallable callFuncti *

              When uploading source code to the generated signed URL, please follow these restrictions: * *

                - *
              • Source file type should be a zip file. - *
              • Source file size should not exceed 100MB limit. - *
              • No credentials should be attached - the signed URLs provide access to the target bucket + *
              • Source file type should be a zip file. + *
              • Source file size should not exceed 100MB limit. + *
              • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -938,14 +938,14 @@ public final UnaryCallable callFuncti *

                When making a HTTP PUT request, these two headers need to be specified: * *

                  - *
                • `content-type: application/zip` - *
                • `x-goog-content-length-range: 0,104857600` + *
                • `content-type: application/zip` + *
                • `x-goog-content-length-range: 0,104857600` *
                * *

                And this header SHOULD NOT be specified: * *

                  - *
                • `Authorization: Bearer YOUR_TOKEN` + *
                • `Authorization: Bearer YOUR_TOKEN` *
                * *

                Sample code: @@ -983,9 +983,9 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

                When uploading source code to the generated signed URL, please follow these restrictions: * *

                  - *
                • Source file type should be a zip file. - *
                • Source file size should not exceed 100MB limit. - *
                • No credentials should be attached - the signed URLs provide access to the target bucket + *
                • Source file type should be a zip file. + *
                • Source file size should not exceed 100MB limit. + *
                • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -994,14 +994,14 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

                  When making a HTTP PUT request, these two headers need to be specified: * *

                    - *
                  • `content-type: application/zip` - *
                  • `x-goog-content-length-range: 0,104857600` + *
                  • `content-type: application/zip` + *
                  • `x-goog-content-length-range: 0,104857600` *
                  * *

                  And this header SHOULD NOT be specified: * *

                    - *
                  • `Authorization: Bearer YOUR_TOKEN` + *
                  • `Authorization: Bearer YOUR_TOKEN` *
                  * *

                  Sample code: @@ -1291,7 +1291,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListFunctionsPagedResponse extends AbstractPagedListResponse< - ListFunctionsRequest, ListFunctionsResponse, CloudFunction, ListFunctionsPage, + ListFunctionsRequest, + ListFunctionsResponse, + CloudFunction, + ListFunctionsPage, ListFunctionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1341,7 +1344,10 @@ public ApiFuture createPageAsync( public static class ListFunctionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFunctionsRequest, ListFunctionsResponse, CloudFunction, ListFunctionsPage, + ListFunctionsRequest, + ListFunctionsResponse, + CloudFunction, + ListFunctionsPage, ListFunctionsFixedSizeCollection> { private ListFunctionsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java index 5c904d73..b7b948fe 100644 --- a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.functions.v1.stub.CloudFunctionsServiceStubSettings; @@ -51,10 +50,10 @@ *

                  The default instance has everything set to sensible defaults: * *

                    - *
                  • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
                  • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
                  • Credentials are acquired automatically through Application Default Credentials. - *
                  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                  • Credentials are acquired automatically through Application Default Credentials. + *
                  • Retries are configured for idempotent methods but not for non-idempotent methods. *
                  * *

                  The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java index 810b5239..b7280156 100644 --- a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java @@ -84,10 +84,10 @@ *

                  The default instance has everything set to sensible defaults: * *

                    - *
                  • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
                  • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
                  • Credentials are acquired automatically through Application Default Credentials. - *
                  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                  • Credentials are acquired automatically through Application Default Credentials. + *
                  • Retries are configured for idempotent methods but not for non-idempotent methods. *
                  * *

                  The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceCallableFactory.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceCallableFactory.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java index 20e05fd4..10cc8375 100644 --- a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java @@ -51,7 +51,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceCallableFactory.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceCallableFactory.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java index b3ca17a4..2b76d736 100644 --- a/owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java similarity index 98% rename from owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java index def0257a..5140d636 100644 --- a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java @@ -76,13 +76,13 @@ * methods: * *

                    - *
                  1. A "flattened" method. With this type of method, the fields of the request type have been + *
                  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
                  3. A "request object" method. This type of method only takes one parameter, a request object, + *
                  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
                  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
                  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
                  * @@ -878,8 +878,8 @@ public final UnaryCallable deleteFunctionCalla *

                  When uploading source code to the generated signed URL, please follow these restrictions: * *

                    - *
                  • Source file type should be a zip file. - *
                  • No credentials should be attached - the signed URLs provide access to the target bucket + *
                  • Source file type should be a zip file. + *
                  • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -888,13 +888,13 @@ public final UnaryCallable deleteFunctionCalla *

                    When making a HTTP PUT request, these two headers need to be specified: * *

                      - *
                    • `content-type: application/zip` + *
                    • `content-type: application/zip` *
                    * *

                    And this header SHOULD NOT be specified: * *

                      - *
                    • `Authorization: Bearer YOUR_TOKEN` + *
                    • `Authorization: Bearer YOUR_TOKEN` *
                    * *

                    Sample code: @@ -928,8 +928,8 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

                    When uploading source code to the generated signed URL, please follow these restrictions: * *

                      - *
                    • Source file type should be a zip file. - *
                    • No credentials should be attached - the signed URLs provide access to the target bucket + *
                    • Source file type should be a zip file. + *
                    • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -938,13 +938,13 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

                      When making a HTTP PUT request, these two headers need to be specified: * *

                        - *
                      • `content-type: application/zip` + *
                      • `content-type: application/zip` *
                      * *

                      And this header SHOULD NOT be specified: * *

                        - *
                      • `Authorization: Bearer YOUR_TOKEN` + *
                      • `Authorization: Bearer YOUR_TOKEN` *
                      * *

                      Sample code: @@ -1430,7 +1430,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListFunctionsPagedResponse extends AbstractPagedListResponse< - ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage, + ListFunctionsRequest, + ListFunctionsResponse, + Function, + ListFunctionsPage, ListFunctionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1480,7 +1483,10 @@ public ApiFuture createPageAsync( public static class ListFunctionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage, + ListFunctionsRequest, + ListFunctionsResponse, + Function, + ListFunctionsPage, ListFunctionsFixedSizeCollection> { private ListFunctionsFixedSizeCollection(List pages, int collectionSize) { @@ -1500,7 +1506,10 @@ protected ListFunctionsFixedSizeCollection createCollection( public static class ListLocationsPagedResponse extends AbstractPagedListResponse< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1550,7 +1559,10 @@ public ApiFuture createPageAsync( public static class ListLocationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { private ListLocationsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java similarity index 98% rename from owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java index 6be620be..af930bf9 100644 --- a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java @@ -30,7 +30,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.functions.v2.stub.FunctionServiceStubSettings; @@ -54,10 +53,10 @@ *

                      The default instance has everything set to sensible defaults: * *

                        - *
                      • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
                      • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
                      • Credentials are acquired automatically through Application Default Credentials. - *
                      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                      • Credentials are acquired automatically through Application Default Credentials. + *
                      • Retries are configured for idempotent methods but not for non-idempotent methods. *
                      * *

                      The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/gapic_metadata.json b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/gapic_metadata.json rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2/gapic_metadata.json diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/package-info.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/package-info.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/package-info.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2/package-info.java diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStub.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStub.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStub.java diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java index 226a32af..14d9b30d 100644 --- a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java @@ -88,10 +88,10 @@ *

                      The default instance has everything set to sensible defaults: * *

                        - *
                      • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
                      • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
                      • Credentials are acquired automatically through Application Default Credentials. - *
                      • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                      • Credentials are acquired automatically through Application Default Credentials. + *
                      • Retries are configured for idempotent methods but not for non-idempotent methods. *
                      * *

                      The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceCallableFactory.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceCallableFactory.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceStub.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceStub.java index bd24e13a..c152a91c 100644 --- a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceStub.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/GrpcFunctionServiceStub.java @@ -54,7 +54,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceCallableFactory.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceCallableFactory.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceStub.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceStub.java index 6a802c2c..f96e4318 100644 --- a/owl-bot-staging/v2/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceStub.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/HttpJsonFunctionServiceStub.java @@ -31,7 +31,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java similarity index 98% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java index 8dffde6e..c4e4823a 100644 --- a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java @@ -76,13 +76,13 @@ * methods: * *

                        - *
                      1. A "flattened" method. With this type of method, the fields of the request type have been + *
                      2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
                      3. A "request object" method. This type of method only takes one parameter, a request object, + *
                      4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
                      5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
                      6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
                      * @@ -879,8 +879,8 @@ public final UnaryCallable deleteFunctionCalla *

                      When uploading source code to the generated signed URL, please follow these restrictions: * *

                        - *
                      • Source file type should be a zip file. - *
                      • No credentials should be attached - the signed URLs provide access to the target bucket + *
                      • Source file type should be a zip file. + *
                      • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -889,13 +889,13 @@ public final UnaryCallable deleteFunctionCalla *

                        When making a HTTP PUT request, these two headers need to be specified: * *

                          - *
                        • `content-type: application/zip` + *
                        • `content-type: application/zip` *
                        * *

                        And this header SHOULD NOT be specified: * *

                          - *
                        • `Authorization: Bearer YOUR_TOKEN` + *
                        • `Authorization: Bearer YOUR_TOKEN` *
                        * *

                        Sample code: @@ -929,8 +929,8 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

                        When uploading source code to the generated signed URL, please follow these restrictions: * *

                          - *
                        • Source file type should be a zip file. - *
                        • No credentials should be attached - the signed URLs provide access to the target bucket + *
                        • Source file type should be a zip file. + *
                        • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -939,13 +939,13 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

                          When making a HTTP PUT request, these two headers need to be specified: * *

                            - *
                          • `content-type: application/zip` + *
                          • `content-type: application/zip` *
                          * *

                          And this header SHOULD NOT be specified: * *

                            - *
                          • `Authorization: Bearer YOUR_TOKEN` + *
                          • `Authorization: Bearer YOUR_TOKEN` *
                          * *

                          Sample code: @@ -1431,7 +1431,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListFunctionsPagedResponse extends AbstractPagedListResponse< - ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage, + ListFunctionsRequest, + ListFunctionsResponse, + Function, + ListFunctionsPage, ListFunctionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1481,7 +1484,10 @@ public ApiFuture createPageAsync( public static class ListFunctionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage, + ListFunctionsRequest, + ListFunctionsResponse, + Function, + ListFunctionsPage, ListFunctionsFixedSizeCollection> { private ListFunctionsFixedSizeCollection(List pages, int collectionSize) { @@ -1501,7 +1507,10 @@ protected ListFunctionsFixedSizeCollection createCollection( public static class ListLocationsPagedResponse extends AbstractPagedListResponse< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1551,7 +1560,10 @@ public ApiFuture createPageAsync( public static class ListLocationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { private ListLocationsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java similarity index 98% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java index c99e3df7..e7cb6d98 100644 --- a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java @@ -30,7 +30,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.functions.v2alpha.stub.FunctionServiceStubSettings; @@ -54,10 +53,10 @@ *

                          The default instance has everything set to sensible defaults: * *

                            - *
                          • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
                          • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
                          • Credentials are acquired automatically through Application Default Credentials. - *
                          • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                          • Credentials are acquired automatically through Application Default Credentials. + *
                          • Retries are configured for idempotent methods but not for non-idempotent methods. *
                          * *

                          The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/gapic_metadata.json b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/gapic_metadata.json rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/gapic_metadata.json diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/package-info.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/package-info.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/package-info.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/package-info.java diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java similarity index 99% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java index 0d794d84..55f82c08 100644 --- a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java @@ -88,10 +88,10 @@ *

                          The default instance has everything set to sensible defaults: * *

                            - *
                          • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
                          • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
                          • Credentials are acquired automatically through Application Default Credentials. - *
                          • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                          • Credentials are acquired automatically through Application Default Credentials. + *
                          • Retries are configured for idempotent methods but not for non-idempotent methods. *
                          * *

                          The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceCallableFactory.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceCallableFactory.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceCallableFactory.java diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java similarity index 99% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java index a63a3572..c8d33c6d 100644 --- a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/GrpcFunctionServiceStub.java @@ -55,7 +55,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceCallableFactory.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceCallableFactory.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceCallableFactory.java diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java similarity index 99% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java index cf16cbfe..cbd0c128 100644 --- a/owl-bot-staging/v2alpha/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/HttpJsonFunctionServiceStub.java @@ -31,7 +31,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java similarity index 98% rename from owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java index f276c143..dc8cc17d 100644 --- a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java @@ -76,13 +76,13 @@ * methods: * *

                            - *
                          1. A "flattened" method. With this type of method, the fields of the request type have been + *
                          2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
                          3. A "request object" method. This type of method only takes one parameter, a request object, + *
                          4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
                          5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
                          6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
                          * @@ -879,8 +879,8 @@ public final UnaryCallable deleteFunctionCalla *

                          When uploading source code to the generated signed URL, please follow these restrictions: * *

                            - *
                          • Source file type should be a zip file. - *
                          • No credentials should be attached - the signed URLs provide access to the target bucket + *
                          • Source file type should be a zip file. + *
                          • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -889,13 +889,13 @@ public final UnaryCallable deleteFunctionCalla *

                            When making a HTTP PUT request, these two headers need to be specified: * *

                              - *
                            • `content-type: application/zip` + *
                            • `content-type: application/zip` *
                            * *

                            And this header SHOULD NOT be specified: * *

                              - *
                            • `Authorization: Bearer YOUR_TOKEN` + *
                            • `Authorization: Bearer YOUR_TOKEN` *
                            * *

                            Sample code: @@ -929,8 +929,8 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

                            When uploading source code to the generated signed URL, please follow these restrictions: * *

                              - *
                            • Source file type should be a zip file. - *
                            • No credentials should be attached - the signed URLs provide access to the target bucket + *
                            • Source file type should be a zip file. + *
                            • No credentials should be attached - the signed URLs provide access to the target bucket * using internal service identity; if credentials were attached, the identity from the * credentials would be used, but that identity does not have permissions to upload files to * the URL. @@ -939,13 +939,13 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques *

                              When making a HTTP PUT request, these two headers need to be specified: * *

                                - *
                              • `content-type: application/zip` + *
                              • `content-type: application/zip` *
                              * *

                              And this header SHOULD NOT be specified: * *

                                - *
                              • `Authorization: Bearer YOUR_TOKEN` + *
                              • `Authorization: Bearer YOUR_TOKEN` *
                              * *

                              Sample code: @@ -1431,7 +1431,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListFunctionsPagedResponse extends AbstractPagedListResponse< - ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage, + ListFunctionsRequest, + ListFunctionsResponse, + Function, + ListFunctionsPage, ListFunctionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1481,7 +1484,10 @@ public ApiFuture createPageAsync( public static class ListFunctionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage, + ListFunctionsRequest, + ListFunctionsResponse, + Function, + ListFunctionsPage, ListFunctionsFixedSizeCollection> { private ListFunctionsFixedSizeCollection(List pages, int collectionSize) { @@ -1501,7 +1507,10 @@ protected ListFunctionsFixedSizeCollection createCollection( public static class ListLocationsPagedResponse extends AbstractPagedListResponse< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1551,7 +1560,10 @@ public ApiFuture createPageAsync( public static class ListLocationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { private ListLocationsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java similarity index 98% rename from owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java index 8aad7ebe..0a20e92f 100644 --- a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java @@ -30,7 +30,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.functions.v2beta.stub.FunctionServiceStubSettings; @@ -54,10 +53,10 @@ *

                              The default instance has everything set to sensible defaults: * *

                                - *
                              • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
                              • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
                              • Credentials are acquired automatically through Application Default Credentials. - *
                              • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                              • Credentials are acquired automatically through Application Default Credentials. + *
                              • Retries are configured for idempotent methods but not for non-idempotent methods. *
                              * *

                              The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/gapic_metadata.json b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/gapic_metadata.json rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/gapic_metadata.json diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/package-info.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/package-info.java similarity index 100% rename from owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/package-info.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/package-info.java diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java similarity index 100% rename from owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java similarity index 99% rename from owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java index 3f0e9196..838580f6 100644 --- a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java @@ -88,10 +88,10 @@ *

                              The default instance has everything set to sensible defaults: * *

                                - *
                              • The default service address (cloudfunctions.googleapis.com) and default port (443) are + *
                              • The default service address (cloudfunctions.googleapis.com) and default port (443) are * used. - *
                              • Credentials are acquired automatically through Application Default Credentials. - *
                              • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                              • Credentials are acquired automatically through Application Default Credentials. + *
                              • Retries are configured for idempotent methods but not for non-idempotent methods. *
                              * *

                              The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceCallableFactory.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceCallableFactory.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceCallableFactory.java diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java similarity index 99% rename from owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java index b0503937..8346fe77 100644 --- a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/GrpcFunctionServiceStub.java @@ -55,7 +55,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceCallableFactory.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceCallableFactory.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceCallableFactory.java diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java similarity index 99% rename from owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java rename to google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java index b2e64d1d..82e0d1f3 100644 --- a/owl-bot-staging/v2beta/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java +++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/HttpJsonFunctionServiceStub.java @@ -31,7 +31,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientHttpJsonTest.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientHttpJsonTest.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v1/CloudFunctionsServiceClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsService.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsService.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsService.java diff --git a/owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v1/MockCloudFunctionsServiceImpl.java diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientHttpJsonTest.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientHttpJsonTest.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientTest.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientTest.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientTest.java diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionService.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionService.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionService.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionService.java diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionServiceImpl.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionServiceImpl.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionServiceImpl.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockFunctionServiceImpl.java diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicy.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicy.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicy.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicy.java diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicyImpl.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicyImpl.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicyImpl.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocations.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocations.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocations.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocations.java diff --git a/owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocationsImpl.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocationsImpl.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2/MockLocationsImpl.java diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientHttpJsonTest.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientHttpJsonTest.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientTest.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientTest.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientTest.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/FunctionServiceClientTest.java diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionService.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionService.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionService.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionService.java diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionServiceImpl.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionServiceImpl.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionServiceImpl.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockFunctionServiceImpl.java diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicy.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicy.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicy.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicy.java diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicyImpl.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicyImpl.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicyImpl.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocations.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocations.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocations.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocations.java diff --git a/owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocationsImpl.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/v2alpha/google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocationsImpl.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2alpha/MockLocationsImpl.java diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java similarity index 100% rename from owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionService.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionService.java similarity index 100% rename from owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionService.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionService.java diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionServiceImpl.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionServiceImpl.java similarity index 100% rename from owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionServiceImpl.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockFunctionServiceImpl.java diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicy.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicy.java similarity index 100% rename from owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicy.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicy.java diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicyImpl.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicyImpl.java similarity index 100% rename from owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicyImpl.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocations.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocations.java similarity index 100% rename from owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocations.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocations.java diff --git a/owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocationsImpl.java b/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/v2beta/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocationsImpl.java rename to google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/MockLocationsImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java b/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java similarity index 50% rename from owl-bot-staging/v1/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java rename to grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java index a3ebd45d..17c064db 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java +++ b/grpc-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * 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. + */ package com.google.cloud.functions.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *

                                * A service that application uses to manipulate triggers and functions.
                                * 
                              @@ -18,453 +35,625 @@ private CloudFunctionsServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.functions.v1.CloudFunctionsService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListFunctionsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.ListFunctionsRequest, + com.google.cloud.functions.v1.ListFunctionsResponse> + getListFunctionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListFunctions", requestType = com.google.cloud.functions.v1.ListFunctionsRequest.class, responseType = com.google.cloud.functions.v1.ListFunctionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFunctionsMethod() { - io.grpc.MethodDescriptor getListFunctionsMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.ListFunctionsRequest, + com.google.cloud.functions.v1.ListFunctionsResponse> + getListFunctionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.ListFunctionsRequest, + com.google.cloud.functions.v1.ListFunctionsResponse> + getListFunctionsMethod; if ((getListFunctionsMethod = CloudFunctionsServiceGrpc.getListFunctionsMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getListFunctionsMethod = CloudFunctionsServiceGrpc.getListFunctionsMethod) == null) { - CloudFunctionsServiceGrpc.getListFunctionsMethod = getListFunctionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.ListFunctionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.ListFunctionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("ListFunctions")) - .build(); + CloudFunctionsServiceGrpc.getListFunctionsMethod = + getListFunctionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.ListFunctionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.ListFunctionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudFunctionsServiceMethodDescriptorSupplier("ListFunctions")) + .build(); } } } return getListFunctionsMethod; } - private static volatile io.grpc.MethodDescriptor getGetFunctionMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.GetFunctionRequest, + com.google.cloud.functions.v1.CloudFunction> + getGetFunctionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetFunction", requestType = com.google.cloud.functions.v1.GetFunctionRequest.class, responseType = com.google.cloud.functions.v1.CloudFunction.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFunctionMethod() { - io.grpc.MethodDescriptor getGetFunctionMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.GetFunctionRequest, + com.google.cloud.functions.v1.CloudFunction> + getGetFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.GetFunctionRequest, + com.google.cloud.functions.v1.CloudFunction> + getGetFunctionMethod; if ((getGetFunctionMethod = CloudFunctionsServiceGrpc.getGetFunctionMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getGetFunctionMethod = CloudFunctionsServiceGrpc.getGetFunctionMethod) == null) { - CloudFunctionsServiceGrpc.getGetFunctionMethod = getGetFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.GetFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.CloudFunction.getDefaultInstance())) - .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("GetFunction")) - .build(); + CloudFunctionsServiceGrpc.getGetFunctionMethod = + getGetFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.GetFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.CloudFunction.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFunctionsServiceMethodDescriptorSupplier("GetFunction")) + .build(); } } } return getGetFunctionMethod; } - private static volatile io.grpc.MethodDescriptor getCreateFunctionMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.CreateFunctionRequest, com.google.longrunning.Operation> + getCreateFunctionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateFunction", requestType = com.google.cloud.functions.v1.CreateFunctionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFunctionMethod() { - io.grpc.MethodDescriptor getCreateFunctionMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.CreateFunctionRequest, com.google.longrunning.Operation> + getCreateFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.CreateFunctionRequest, com.google.longrunning.Operation> + getCreateFunctionMethod; if ((getCreateFunctionMethod = CloudFunctionsServiceGrpc.getCreateFunctionMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getCreateFunctionMethod = CloudFunctionsServiceGrpc.getCreateFunctionMethod) == null) { - CloudFunctionsServiceGrpc.getCreateFunctionMethod = getCreateFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.CreateFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("CreateFunction")) - .build(); + CloudFunctionsServiceGrpc.getCreateFunctionMethod = + getCreateFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.CreateFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFunctionsServiceMethodDescriptorSupplier("CreateFunction")) + .build(); } } } return getCreateFunctionMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateFunctionMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.UpdateFunctionRequest, com.google.longrunning.Operation> + getUpdateFunctionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateFunction", requestType = com.google.cloud.functions.v1.UpdateFunctionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateFunctionMethod() { - io.grpc.MethodDescriptor getUpdateFunctionMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.UpdateFunctionRequest, com.google.longrunning.Operation> + getUpdateFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.UpdateFunctionRequest, com.google.longrunning.Operation> + getUpdateFunctionMethod; if ((getUpdateFunctionMethod = CloudFunctionsServiceGrpc.getUpdateFunctionMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getUpdateFunctionMethod = CloudFunctionsServiceGrpc.getUpdateFunctionMethod) == null) { - CloudFunctionsServiceGrpc.getUpdateFunctionMethod = getUpdateFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.UpdateFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("UpdateFunction")) - .build(); + CloudFunctionsServiceGrpc.getUpdateFunctionMethod = + getUpdateFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.UpdateFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFunctionsServiceMethodDescriptorSupplier("UpdateFunction")) + .build(); } } } return getUpdateFunctionMethod; } - private static volatile io.grpc.MethodDescriptor getDeleteFunctionMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.DeleteFunctionRequest, com.google.longrunning.Operation> + getDeleteFunctionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteFunction", requestType = com.google.cloud.functions.v1.DeleteFunctionRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteFunctionMethod() { - io.grpc.MethodDescriptor getDeleteFunctionMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.DeleteFunctionRequest, com.google.longrunning.Operation> + getDeleteFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.DeleteFunctionRequest, com.google.longrunning.Operation> + getDeleteFunctionMethod; if ((getDeleteFunctionMethod = CloudFunctionsServiceGrpc.getDeleteFunctionMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getDeleteFunctionMethod = CloudFunctionsServiceGrpc.getDeleteFunctionMethod) == null) { - CloudFunctionsServiceGrpc.getDeleteFunctionMethod = getDeleteFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.DeleteFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("DeleteFunction")) - .build(); + CloudFunctionsServiceGrpc.getDeleteFunctionMethod = + getDeleteFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.DeleteFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFunctionsServiceMethodDescriptorSupplier("DeleteFunction")) + .build(); } } } return getDeleteFunctionMethod; } - private static volatile io.grpc.MethodDescriptor getCallFunctionMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.CallFunctionRequest, + com.google.cloud.functions.v1.CallFunctionResponse> + getCallFunctionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CallFunction", requestType = com.google.cloud.functions.v1.CallFunctionRequest.class, responseType = com.google.cloud.functions.v1.CallFunctionResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCallFunctionMethod() { - io.grpc.MethodDescriptor getCallFunctionMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.CallFunctionRequest, + com.google.cloud.functions.v1.CallFunctionResponse> + getCallFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.CallFunctionRequest, + com.google.cloud.functions.v1.CallFunctionResponse> + getCallFunctionMethod; if ((getCallFunctionMethod = CloudFunctionsServiceGrpc.getCallFunctionMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getCallFunctionMethod = CloudFunctionsServiceGrpc.getCallFunctionMethod) == null) { - CloudFunctionsServiceGrpc.getCallFunctionMethod = getCallFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CallFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.CallFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.CallFunctionResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("CallFunction")) - .build(); + CloudFunctionsServiceGrpc.getCallFunctionMethod = + getCallFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CallFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.CallFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.CallFunctionResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudFunctionsServiceMethodDescriptorSupplier("CallFunction")) + .build(); } } } return getCallFunctionMethod; } - private static volatile io.grpc.MethodDescriptor getGenerateUploadUrlMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.GenerateUploadUrlRequest, + com.google.cloud.functions.v1.GenerateUploadUrlResponse> + getGenerateUploadUrlMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GenerateUploadUrl", requestType = com.google.cloud.functions.v1.GenerateUploadUrlRequest.class, responseType = com.google.cloud.functions.v1.GenerateUploadUrlResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateUploadUrlMethod() { - io.grpc.MethodDescriptor getGenerateUploadUrlMethod; - if ((getGenerateUploadUrlMethod = CloudFunctionsServiceGrpc.getGenerateUploadUrlMethod) == null) { + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.GenerateUploadUrlRequest, + com.google.cloud.functions.v1.GenerateUploadUrlResponse> + getGenerateUploadUrlMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.GenerateUploadUrlRequest, + com.google.cloud.functions.v1.GenerateUploadUrlResponse> + getGenerateUploadUrlMethod; + if ((getGenerateUploadUrlMethod = CloudFunctionsServiceGrpc.getGenerateUploadUrlMethod) + == null) { synchronized (CloudFunctionsServiceGrpc.class) { - if ((getGenerateUploadUrlMethod = CloudFunctionsServiceGrpc.getGenerateUploadUrlMethod) == null) { - CloudFunctionsServiceGrpc.getGenerateUploadUrlMethod = getGenerateUploadUrlMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.GenerateUploadUrlRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.GenerateUploadUrlResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("GenerateUploadUrl")) - .build(); + if ((getGenerateUploadUrlMethod = CloudFunctionsServiceGrpc.getGenerateUploadUrlMethod) + == null) { + CloudFunctionsServiceGrpc.getGenerateUploadUrlMethod = + getGenerateUploadUrlMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.GenerateUploadUrlRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.GenerateUploadUrlResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudFunctionsServiceMethodDescriptorSupplier("GenerateUploadUrl")) + .build(); } } } return getGenerateUploadUrlMethod; } - private static volatile io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.GenerateDownloadUrlRequest, + com.google.cloud.functions.v1.GenerateDownloadUrlResponse> + getGenerateDownloadUrlMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GenerateDownloadUrl", requestType = com.google.cloud.functions.v1.GenerateDownloadUrlRequest.class, responseType = com.google.cloud.functions.v1.GenerateDownloadUrlResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateDownloadUrlMethod() { - io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; - if ((getGenerateDownloadUrlMethod = CloudFunctionsServiceGrpc.getGenerateDownloadUrlMethod) == null) { + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.GenerateDownloadUrlRequest, + com.google.cloud.functions.v1.GenerateDownloadUrlResponse> + getGenerateDownloadUrlMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v1.GenerateDownloadUrlRequest, + com.google.cloud.functions.v1.GenerateDownloadUrlResponse> + getGenerateDownloadUrlMethod; + if ((getGenerateDownloadUrlMethod = CloudFunctionsServiceGrpc.getGenerateDownloadUrlMethod) + == null) { synchronized (CloudFunctionsServiceGrpc.class) { - if ((getGenerateDownloadUrlMethod = CloudFunctionsServiceGrpc.getGenerateDownloadUrlMethod) == null) { - CloudFunctionsServiceGrpc.getGenerateDownloadUrlMethod = getGenerateDownloadUrlMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.GenerateDownloadUrlRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v1.GenerateDownloadUrlResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("GenerateDownloadUrl")) - .build(); + if ((getGenerateDownloadUrlMethod = CloudFunctionsServiceGrpc.getGenerateDownloadUrlMethod) + == null) { + CloudFunctionsServiceGrpc.getGenerateDownloadUrlMethod = + getGenerateDownloadUrlMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.GenerateDownloadUrlRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v1.GenerateDownloadUrlResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudFunctionsServiceMethodDescriptorSupplier("GenerateDownloadUrl")) + .build(); } } } return getGenerateDownloadUrlMethod; } - private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", requestType = com.google.iam.v1.SetIamPolicyRequest.class, responseType = com.google.iam.v1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; if ((getSetIamPolicyMethod = CloudFunctionsServiceGrpc.getSetIamPolicyMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getSetIamPolicyMethod = CloudFunctionsServiceGrpc.getSetIamPolicyMethod) == null) { - CloudFunctionsServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); + CloudFunctionsServiceGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFunctionsServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); } } } return getSetIamPolicyMethod; } - private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", requestType = com.google.iam.v1.GetIamPolicyRequest.class, responseType = com.google.iam.v1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; if ((getGetIamPolicyMethod = CloudFunctionsServiceGrpc.getGetIamPolicyMethod) == null) { synchronized (CloudFunctionsServiceGrpc.class) { if ((getGetIamPolicyMethod = CloudFunctionsServiceGrpc.getGetIamPolicyMethod) == null) { - CloudFunctionsServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); + CloudFunctionsServiceGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFunctionsServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); } } } return getGetIamPolicyMethod; } - private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", requestType = com.google.iam.v1.TestIamPermissionsRequest.class, responseType = com.google.iam.v1.TestIamPermissionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = CloudFunctionsServiceGrpc.getTestIamPermissionsMethod) == null) { + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = CloudFunctionsServiceGrpc.getTestIamPermissionsMethod) + == null) { synchronized (CloudFunctionsServiceGrpc.class) { - if ((getTestIamPermissionsMethod = CloudFunctionsServiceGrpc.getTestIamPermissionsMethod) == null) { - CloudFunctionsServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudFunctionsServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); + if ((getTestIamPermissionsMethod = CloudFunctionsServiceGrpc.getTestIamPermissionsMethod) + == null) { + CloudFunctionsServiceGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new CloudFunctionsServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); } } } return getTestIamPermissionsMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static CloudFunctionsServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFunctionsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFunctionsServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFunctionsServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFunctionsServiceStub(channel, callOptions); + } + }; return CloudFunctionsServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static CloudFunctionsServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static CloudFunctionsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFunctionsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFunctionsServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFunctionsServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFunctionsServiceBlockingStub(channel, callOptions); + } + }; return CloudFunctionsServiceBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static CloudFunctionsServiceFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CloudFunctionsServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudFunctionsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudFunctionsServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudFunctionsServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudFunctionsServiceFutureStub(channel, callOptions); + } + }; return CloudFunctionsServiceFutureStub.newStub(factory, channel); } /** + * + * *
                                  * A service that application uses to manipulate triggers and functions.
                                  * 
                              */ - public static abstract class CloudFunctionsServiceImplBase implements io.grpc.BindableService { + public abstract static class CloudFunctionsServiceImplBase implements io.grpc.BindableService { /** + * + * *
                                    * Returns a list of functions that belong to the requested project.
                                    * 
                              */ - public void listFunctions(com.google.cloud.functions.v1.ListFunctionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFunctionsMethod(), responseObserver); + public void listFunctions( + com.google.cloud.functions.v1.ListFunctionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFunctionsMethod(), responseObserver); } /** + * + * *
                                    * Returns a function with the given name from the requested project.
                                    * 
                              */ - public void getFunction(com.google.cloud.functions.v1.GetFunctionRequest request, + public void getFunction( + com.google.cloud.functions.v1.GetFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFunctionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetFunctionMethod(), responseObserver); } /** + * + * *
                                    * 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.
                                    * 
                              */ - public void createFunction(com.google.cloud.functions.v1.CreateFunctionRequest request, + public void createFunction( + com.google.cloud.functions.v1.CreateFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFunctionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFunctionMethod(), responseObserver); } /** + * + * *
                                    * Updates existing function.
                                    * 
                              */ - public void updateFunction(com.google.cloud.functions.v1.UpdateFunctionRequest request, + public void updateFunction( + com.google.cloud.functions.v1.UpdateFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFunctionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFunctionMethod(), responseObserver); } /** + * + * *
                                    * Deletes a function with the given name from the specified project. If the
                                    * given function is used by some trigger, the trigger will be updated to
                                    * remove this function.
                                    * 
                              */ - public void deleteFunction(com.google.cloud.functions.v1.DeleteFunctionRequest request, + public void deleteFunction( + com.google.cloud.functions.v1.DeleteFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFunctionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFunctionMethod(), responseObserver); } /** + * + * *
                                    * Synchronously invokes a deployed Cloud Function. To be used for testing
                                    * purposes as very limited traffic is allowed. For more information on
                              @@ -472,12 +661,17 @@ public void deleteFunction(com.google.cloud.functions.v1.DeleteFunctionRequest r
                                    * [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).
                                    * 
                              */ - public void callFunction(com.google.cloud.functions.v1.CallFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCallFunctionMethod(), responseObserver); + public void callFunction( + com.google.cloud.functions.v1.CallFunctionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCallFunctionMethod(), responseObserver); } /** + * + * *
                                    * Returns a signed URL for uploading a function source code.
                                    * For more information about the signed URL usage see:
                              @@ -500,12 +694,17 @@ public void callFunction(com.google.cloud.functions.v1.CallFunctionRequest reque
                                    * * `Authorization: Bearer YOUR_TOKEN`
                                    * 
                              */ - public void generateUploadUrl(com.google.cloud.functions.v1.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateUploadUrlMethod(), responseObserver); + public void generateUploadUrl( + com.google.cloud.functions.v1.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateUploadUrlMethod(), responseObserver); } /** + * + * *
                                    * Returns a signed URL for downloading deployed function source code.
                                    * The URL is only valid for a limited period and should be used within
                              @@ -514,35 +713,48 @@ public void generateUploadUrl(com.google.cloud.functions.v1.GenerateUploadUrlReq
                                    * https://cloud.google.com/storage/docs/access-control/signed-urls
                                    * 
                              */ - public void generateDownloadUrl(com.google.cloud.functions.v1.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateDownloadUrlMethod(), responseObserver); + public void generateDownloadUrl( + com.google.cloud.functions.v1.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateDownloadUrlMethod(), responseObserver); } /** + * + * *
                                    * Sets the IAM access control policy on the specified function.
                                    * Replaces any existing policy.
                                    * 
                              */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); } /** + * + * *
                                    * Gets the IAM access control policy for a function.
                                    * Returns an empty policy if the function exists and does not have a policy
                                    * set.
                                    * 
                              */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); } /** + * + * *
                                    * Tests the specified permissions against the IAM access control policy
                                    * for a function.
                              @@ -550,102 +762,102 @@ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
                                    * permissions, not a NOT_FOUND error.
                                    * 
                              */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListFunctionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.ListFunctionsRequest, - com.google.cloud.functions.v1.ListFunctionsResponse>( - this, METHODID_LIST_FUNCTIONS))) + getListFunctionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.ListFunctionsRequest, + com.google.cloud.functions.v1.ListFunctionsResponse>( + this, METHODID_LIST_FUNCTIONS))) .addMethod( - getGetFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.GetFunctionRequest, - com.google.cloud.functions.v1.CloudFunction>( - this, METHODID_GET_FUNCTION))) + getGetFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.GetFunctionRequest, + com.google.cloud.functions.v1.CloudFunction>(this, METHODID_GET_FUNCTION))) .addMethod( - getCreateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.CreateFunctionRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_FUNCTION))) + getCreateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.CreateFunctionRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_FUNCTION))) .addMethod( - getUpdateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.UpdateFunctionRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_FUNCTION))) + getUpdateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.UpdateFunctionRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_FUNCTION))) .addMethod( - getDeleteFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.DeleteFunctionRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_FUNCTION))) + getDeleteFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.DeleteFunctionRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_FUNCTION))) .addMethod( - getCallFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.CallFunctionRequest, - com.google.cloud.functions.v1.CallFunctionResponse>( - this, METHODID_CALL_FUNCTION))) + getCallFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.CallFunctionRequest, + com.google.cloud.functions.v1.CallFunctionResponse>( + this, METHODID_CALL_FUNCTION))) .addMethod( - getGenerateUploadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.GenerateUploadUrlRequest, - com.google.cloud.functions.v1.GenerateUploadUrlResponse>( - this, METHODID_GENERATE_UPLOAD_URL))) + getGenerateUploadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.GenerateUploadUrlRequest, + com.google.cloud.functions.v1.GenerateUploadUrlResponse>( + this, METHODID_GENERATE_UPLOAD_URL))) .addMethod( - getGenerateDownloadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v1.GenerateDownloadUrlRequest, - com.google.cloud.functions.v1.GenerateDownloadUrlResponse>( - this, METHODID_GENERATE_DOWNLOAD_URL))) + getGenerateDownloadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v1.GenerateDownloadUrlRequest, + com.google.cloud.functions.v1.GenerateDownloadUrlResponse>( + this, METHODID_GENERATE_DOWNLOAD_URL))) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) .build(); } } /** + * + * *
                                  * A service that application uses to manipulate triggers and functions.
                                  * 
                              */ - public static final class CloudFunctionsServiceStub extends io.grpc.stub.AbstractAsyncStub { - private CloudFunctionsServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class CloudFunctionsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private CloudFunctionsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -656,65 +868,93 @@ protected CloudFunctionsServiceStub build( } /** + * + * *
                                    * Returns a list of functions that belong to the requested project.
                                    * 
                              */ - public void listFunctions(com.google.cloud.functions.v1.ListFunctionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listFunctions( + com.google.cloud.functions.v1.ListFunctionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                                    * Returns a function with the given name from the requested project.
                                    * 
                              */ - public void getFunction(com.google.cloud.functions.v1.GetFunctionRequest request, + public void getFunction( + com.google.cloud.functions.v1.GetFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                                    * 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.
                                    * 
                              */ - public void createFunction(com.google.cloud.functions.v1.CreateFunctionRequest request, + public void createFunction( + com.google.cloud.functions.v1.CreateFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                                    * Updates existing function.
                                    * 
                              */ - public void updateFunction(com.google.cloud.functions.v1.UpdateFunctionRequest request, + public void updateFunction( + com.google.cloud.functions.v1.UpdateFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                                    * Deletes a function with the given name from the specified project. If the
                                    * given function is used by some trigger, the trigger will be updated to
                                    * remove this function.
                                    * 
                              */ - public void deleteFunction(com.google.cloud.functions.v1.DeleteFunctionRequest request, + public void deleteFunction( + com.google.cloud.functions.v1.DeleteFunctionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                                    * Synchronously invokes a deployed Cloud Function. To be used for testing
                                    * purposes as very limited traffic is allowed. For more information on
                              @@ -722,13 +962,19 @@ public void deleteFunction(com.google.cloud.functions.v1.DeleteFunctionRequest r
                                    * [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).
                                    * 
                              */ - public void callFunction(com.google.cloud.functions.v1.CallFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void callFunction( + com.google.cloud.functions.v1.CallFunctionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCallFunctionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCallFunctionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                                    * Returns a signed URL for uploading a function source code.
                                    * For more information about the signed URL usage see:
                              @@ -751,13 +997,19 @@ public void callFunction(com.google.cloud.functions.v1.CallFunctionRequest reque
                                    * * `Authorization: Bearer YOUR_TOKEN`
                                    * 
                              */ - public void generateUploadUrl(com.google.cloud.functions.v1.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void generateUploadUrl( + com.google.cloud.functions.v1.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                                    * Returns a signed URL for downloading deployed function source code.
                                    * The URL is only valid for a limited period and should be used within
                              @@ -766,38 +1018,54 @@ public void generateUploadUrl(com.google.cloud.functions.v1.GenerateUploadUrlReq
                                    * https://cloud.google.com/storage/docs/access-control/signed-urls
                                    * 
                              */ - public void generateDownloadUrl(com.google.cloud.functions.v1.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void generateDownloadUrl( + com.google.cloud.functions.v1.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                                    * Sets the IAM access control policy on the specified function.
                                    * Replaces any existing policy.
                                    * 
                              */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                                    * Gets the IAM access control policy for a function.
                                    * Returns an empty policy if the function exists and does not have a policy
                                    * set.
                                    * 
                              */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                                    * Tests the specified permissions against the IAM access control policy
                                    * for a function.
                              @@ -805,19 +1073,26 @@ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
                                    * permissions, not a NOT_FOUND error.
                                    * 
                              */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
                                  * A service that application uses to manipulate triggers and functions.
                                  * 
                              */ - public static final class CloudFunctionsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + public static final class CloudFunctionsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { private CloudFunctionsServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -830,60 +1105,77 @@ protected CloudFunctionsServiceBlockingStub build( } /** + * + * *
                                    * Returns a list of functions that belong to the requested project.
                                    * 
                              */ - public com.google.cloud.functions.v1.ListFunctionsResponse listFunctions(com.google.cloud.functions.v1.ListFunctionsRequest request) { + public com.google.cloud.functions.v1.ListFunctionsResponse listFunctions( + com.google.cloud.functions.v1.ListFunctionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListFunctionsMethod(), getCallOptions(), request); } /** + * + * *
                                    * Returns a function with the given name from the requested project.
                                    * 
                              */ - public com.google.cloud.functions.v1.CloudFunction getFunction(com.google.cloud.functions.v1.GetFunctionRequest request) { + public com.google.cloud.functions.v1.CloudFunction getFunction( + com.google.cloud.functions.v1.GetFunctionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetFunctionMethod(), getCallOptions(), request); } /** + * + * *
                                    * 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.
                                    * 
                              */ - public com.google.longrunning.Operation createFunction(com.google.cloud.functions.v1.CreateFunctionRequest request) { + public com.google.longrunning.Operation createFunction( + com.google.cloud.functions.v1.CreateFunctionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateFunctionMethod(), getCallOptions(), request); } /** + * + * *
                                    * Updates existing function.
                                    * 
                              */ - public com.google.longrunning.Operation updateFunction(com.google.cloud.functions.v1.UpdateFunctionRequest request) { + public com.google.longrunning.Operation updateFunction( + com.google.cloud.functions.v1.UpdateFunctionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); } /** + * + * *
                                    * Deletes a function with the given name from the specified project. If the
                                    * given function is used by some trigger, the trigger will be updated to
                                    * remove this function.
                                    * 
                              */ - public com.google.longrunning.Operation deleteFunction(com.google.cloud.functions.v1.DeleteFunctionRequest request) { + public com.google.longrunning.Operation deleteFunction( + com.google.cloud.functions.v1.DeleteFunctionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); } /** + * + * *
                                    * Synchronously invokes a deployed Cloud Function. To be used for testing
                                    * purposes as very limited traffic is allowed. For more information on
                              @@ -891,12 +1183,15 @@ public com.google.longrunning.Operation deleteFunction(com.google.cloud.function
                                    * [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).
                                    * 
                              */ - public com.google.cloud.functions.v1.CallFunctionResponse callFunction(com.google.cloud.functions.v1.CallFunctionRequest request) { + public com.google.cloud.functions.v1.CallFunctionResponse callFunction( + com.google.cloud.functions.v1.CallFunctionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCallFunctionMethod(), getCallOptions(), request); } /** + * + * *
                                    * Returns a signed URL for uploading a function source code.
                                    * For more information about the signed URL usage see:
                              @@ -919,12 +1214,15 @@ public com.google.cloud.functions.v1.CallFunctionResponse callFunction(com.googl
                                    * * `Authorization: Bearer YOUR_TOKEN`
                                    * 
                              */ - public com.google.cloud.functions.v1.GenerateUploadUrlResponse generateUploadUrl(com.google.cloud.functions.v1.GenerateUploadUrlRequest request) { + public com.google.cloud.functions.v1.GenerateUploadUrlResponse generateUploadUrl( + com.google.cloud.functions.v1.GenerateUploadUrlRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); } /** + * + * *
                                    * Returns a signed URL for downloading deployed function source code.
                                    * The URL is only valid for a limited period and should be used within
                              @@ -933,12 +1231,15 @@ public com.google.cloud.functions.v1.GenerateUploadUrlResponse generateUploadUrl
                                    * https://cloud.google.com/storage/docs/access-control/signed-urls
                                    * 
                              */ - public com.google.cloud.functions.v1.GenerateDownloadUrlResponse generateDownloadUrl(com.google.cloud.functions.v1.GenerateDownloadUrlRequest request) { + public com.google.cloud.functions.v1.GenerateDownloadUrlResponse generateDownloadUrl( + com.google.cloud.functions.v1.GenerateDownloadUrlRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); } /** + * + * *
                                    * Sets the IAM access control policy on the specified function.
                                    * Replaces any existing policy.
                              @@ -950,6 +1251,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque
                                   }
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Gets the IAM access control policy for a function.
                                    * Returns an empty policy if the function exists and does not have a policy
                              @@ -962,6 +1265,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
                                   }
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Tests the specified permissions against the IAM access control policy
                                    * for a function.
                              @@ -969,18 +1274,22 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
                                    * permissions, not a NOT_FOUND error.
                                    * 
                              */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } /** + * + * *
                                  * A service that application uses to manipulate triggers and functions.
                                  * 
                              */ - public static final class CloudFunctionsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + public static final class CloudFunctionsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { private CloudFunctionsServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -993,65 +1302,79 @@ protected CloudFunctionsServiceFutureStub build( } /** + * + * *
                                    * Returns a list of functions that belong to the requested project.
                                    * 
                              */ - public com.google.common.util.concurrent.ListenableFuture listFunctions( - com.google.cloud.functions.v1.ListFunctionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v1.ListFunctionsResponse> + listFunctions(com.google.cloud.functions.v1.ListFunctionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request); } /** + * + * *
                                    * Returns a function with the given name from the requested project.
                                    * 
                              */ - public com.google.common.util.concurrent.ListenableFuture getFunction( - com.google.cloud.functions.v1.GetFunctionRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v1.CloudFunction> + getFunction(com.google.cloud.functions.v1.GetFunctionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request); } /** + * + * *
                                    * 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.
                                    * 
                              */ - public com.google.common.util.concurrent.ListenableFuture createFunction( - com.google.cloud.functions.v1.CreateFunctionRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createFunction(com.google.cloud.functions.v1.CreateFunctionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request); } /** + * + * *
                                    * Updates existing function.
                                    * 
                              */ - public com.google.common.util.concurrent.ListenableFuture updateFunction( - com.google.cloud.functions.v1.UpdateFunctionRequest request) { + public com.google.common.util.concurrent.ListenableFuture + updateFunction(com.google.cloud.functions.v1.UpdateFunctionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request); } /** + * + * *
                                    * Deletes a function with the given name from the specified project. If the
                                    * given function is used by some trigger, the trigger will be updated to
                                    * remove this function.
                                    * 
                              */ - public com.google.common.util.concurrent.ListenableFuture deleteFunction( - com.google.cloud.functions.v1.DeleteFunctionRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteFunction(com.google.cloud.functions.v1.DeleteFunctionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request); } /** + * + * *
                                    * Synchronously invokes a deployed Cloud Function. To be used for testing
                                    * purposes as very limited traffic is allowed. For more information on
                              @@ -1059,13 +1382,16 @@ public com.google.common.util.concurrent.ListenableFuture
                                    */
                              -    public com.google.common.util.concurrent.ListenableFuture callFunction(
                              -        com.google.cloud.functions.v1.CallFunctionRequest request) {
                              +    public com.google.common.util.concurrent.ListenableFuture<
                              +            com.google.cloud.functions.v1.CallFunctionResponse>
                              +        callFunction(com.google.cloud.functions.v1.CallFunctionRequest request) {
                                     return io.grpc.stub.ClientCalls.futureUnaryCall(
                                         getChannel().newCall(getCallFunctionMethod(), getCallOptions()), request);
                                   }
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Returns a signed URL for uploading a function source code.
                                    * For more information about the signed URL usage see:
                              @@ -1088,13 +1414,16 @@ public com.google.common.util.concurrent.ListenableFuture
                                    */
                              -    public com.google.common.util.concurrent.ListenableFuture generateUploadUrl(
                              -        com.google.cloud.functions.v1.GenerateUploadUrlRequest request) {
                              +    public com.google.common.util.concurrent.ListenableFuture<
                              +            com.google.cloud.functions.v1.GenerateUploadUrlResponse>
                              +        generateUploadUrl(com.google.cloud.functions.v1.GenerateUploadUrlRequest request) {
                                     return io.grpc.stub.ClientCalls.futureUnaryCall(
                                         getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request);
                                   }
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Returns a signed URL for downloading deployed function source code.
                                    * The URL is only valid for a limited period and should be used within
                              @@ -1103,38 +1432,45 @@ public com.google.common.util.concurrent.ListenableFuture
                                    */
                              -    public com.google.common.util.concurrent.ListenableFuture generateDownloadUrl(
                              -        com.google.cloud.functions.v1.GenerateDownloadUrlRequest request) {
                              +    public com.google.common.util.concurrent.ListenableFuture<
                              +            com.google.cloud.functions.v1.GenerateDownloadUrlResponse>
                              +        generateDownloadUrl(com.google.cloud.functions.v1.GenerateDownloadUrlRequest request) {
                                     return io.grpc.stub.ClientCalls.futureUnaryCall(
                                         getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request);
                                   }
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Sets the IAM access control policy on the specified function.
                                    * Replaces any existing policy.
                                    * 
                              */ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } /** + * + * *
                                    * Gets the IAM access control policy for a function.
                                    * Returns an empty policy if the function exists and does not have a policy
                                    * set.
                                    * 
                              */ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } /** + * + * *
                                    * Tests the specified permissions against the IAM access control policy
                                    * for a function.
                              @@ -1142,8 +1478,9 @@ public com.google.common.util.concurrent.ListenableFuture
                                    */
                              -    public com.google.common.util.concurrent.ListenableFuture testIamPermissions(
                              -        com.google.iam.v1.TestIamPermissionsRequest request) {
                              +    public com.google.common.util.concurrent.ListenableFuture<
                              +            com.google.iam.v1.TestIamPermissionsResponse>
                              +        testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) {
                                     return io.grpc.stub.ClientCalls.futureUnaryCall(
                                         getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request);
                                   }
                              @@ -1161,11 +1498,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
                              -      io.grpc.stub.ServerCalls.UnaryMethod,
                              -      io.grpc.stub.ServerCalls.ServerStreamingMethod,
                              -      io.grpc.stub.ServerCalls.ClientStreamingMethod,
                              -      io.grpc.stub.ServerCalls.BidiStreamingMethod {
                              +  private static final class MethodHandlers
                              +      implements io.grpc.stub.ServerCalls.UnaryMethod,
                              +          io.grpc.stub.ServerCalls.ServerStreamingMethod,
                              +          io.grpc.stub.ServerCalls.ClientStreamingMethod,
                              +          io.grpc.stub.ServerCalls.BidiStreamingMethod {
                                   private final CloudFunctionsServiceImplBase serviceImpl;
                                   private final int methodId;
                               
                              @@ -1179,48 +1516,66 @@ private static final class MethodHandlers implements
                                   public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
                                     switch (methodId) {
                                       case METHODID_LIST_FUNCTIONS:
                              -          serviceImpl.listFunctions((com.google.cloud.functions.v1.ListFunctionsRequest) request,
                              -              (io.grpc.stub.StreamObserver) responseObserver);
                              +          serviceImpl.listFunctions(
                              +              (com.google.cloud.functions.v1.ListFunctionsRequest) request,
                              +              (io.grpc.stub.StreamObserver)
                              +                  responseObserver);
                                         break;
                                       case METHODID_GET_FUNCTION:
                              -          serviceImpl.getFunction((com.google.cloud.functions.v1.GetFunctionRequest) request,
                              -              (io.grpc.stub.StreamObserver) responseObserver);
                              +          serviceImpl.getFunction(
                              +              (com.google.cloud.functions.v1.GetFunctionRequest) request,
                              +              (io.grpc.stub.StreamObserver)
                              +                  responseObserver);
                                         break;
                                       case METHODID_CREATE_FUNCTION:
                              -          serviceImpl.createFunction((com.google.cloud.functions.v1.CreateFunctionRequest) request,
                              +          serviceImpl.createFunction(
                              +              (com.google.cloud.functions.v1.CreateFunctionRequest) request,
                                             (io.grpc.stub.StreamObserver) responseObserver);
                                         break;
                                       case METHODID_UPDATE_FUNCTION:
                              -          serviceImpl.updateFunction((com.google.cloud.functions.v1.UpdateFunctionRequest) request,
                              +          serviceImpl.updateFunction(
                              +              (com.google.cloud.functions.v1.UpdateFunctionRequest) request,
                                             (io.grpc.stub.StreamObserver) responseObserver);
                                         break;
                                       case METHODID_DELETE_FUNCTION:
                              -          serviceImpl.deleteFunction((com.google.cloud.functions.v1.DeleteFunctionRequest) request,
                              +          serviceImpl.deleteFunction(
                              +              (com.google.cloud.functions.v1.DeleteFunctionRequest) request,
                                             (io.grpc.stub.StreamObserver) responseObserver);
                                         break;
                                       case METHODID_CALL_FUNCTION:
                              -          serviceImpl.callFunction((com.google.cloud.functions.v1.CallFunctionRequest) request,
                              -              (io.grpc.stub.StreamObserver) responseObserver);
                              +          serviceImpl.callFunction(
                              +              (com.google.cloud.functions.v1.CallFunctionRequest) request,
                              +              (io.grpc.stub.StreamObserver)
                              +                  responseObserver);
                                         break;
                                       case METHODID_GENERATE_UPLOAD_URL:
                              -          serviceImpl.generateUploadUrl((com.google.cloud.functions.v1.GenerateUploadUrlRequest) request,
                              -              (io.grpc.stub.StreamObserver) responseObserver);
                              +          serviceImpl.generateUploadUrl(
                              +              (com.google.cloud.functions.v1.GenerateUploadUrlRequest) request,
                              +              (io.grpc.stub.StreamObserver)
                              +                  responseObserver);
                                         break;
                                       case METHODID_GENERATE_DOWNLOAD_URL:
                              -          serviceImpl.generateDownloadUrl((com.google.cloud.functions.v1.GenerateDownloadUrlRequest) request,
                              -              (io.grpc.stub.StreamObserver) responseObserver);
                              +          serviceImpl.generateDownloadUrl(
                              +              (com.google.cloud.functions.v1.GenerateDownloadUrlRequest) request,
                              +              (io.grpc.stub.StreamObserver<
                              +                      com.google.cloud.functions.v1.GenerateDownloadUrlResponse>)
                              +                  responseObserver);
                                         break;
                                       case METHODID_SET_IAM_POLICY:
                              -          serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request,
                              +          serviceImpl.setIamPolicy(
                              +              (com.google.iam.v1.SetIamPolicyRequest) request,
                                             (io.grpc.stub.StreamObserver) responseObserver);
                                         break;
                                       case METHODID_GET_IAM_POLICY:
                              -          serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request,
                              +          serviceImpl.getIamPolicy(
                              +              (com.google.iam.v1.GetIamPolicyRequest) request,
                                             (io.grpc.stub.StreamObserver) responseObserver);
                                         break;
                                       case METHODID_TEST_IAM_PERMISSIONS:
                              -          serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request,
                              -              (io.grpc.stub.StreamObserver) responseObserver);
                              +          serviceImpl.testIamPermissions(
                              +              (com.google.iam.v1.TestIamPermissionsRequest) request,
                              +              (io.grpc.stub.StreamObserver)
                              +                  responseObserver);
                                         break;
                                       default:
                                         throw new AssertionError();
                              @@ -1238,8 +1593,9 @@ public io.grpc.stub.StreamObserver invoke(
                                   }
                                 }
                               
                              -  private static abstract class CloudFunctionsServiceBaseDescriptorSupplier
                              -      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
                              +  private abstract static class CloudFunctionsServiceBaseDescriptorSupplier
                              +      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
                              +          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
                                   CloudFunctionsServiceBaseDescriptorSupplier() {}
                               
                                   @java.lang.Override
                              @@ -1281,20 +1637,22 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
                                     synchronized (CloudFunctionsServiceGrpc.class) {
                                       result = serviceDescriptor;
                                       if (result == null) {
                              -          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
                              -              .setSchemaDescriptor(new CloudFunctionsServiceFileDescriptorSupplier())
                              -              .addMethod(getListFunctionsMethod())
                              -              .addMethod(getGetFunctionMethod())
                              -              .addMethod(getCreateFunctionMethod())
                              -              .addMethod(getUpdateFunctionMethod())
                              -              .addMethod(getDeleteFunctionMethod())
                              -              .addMethod(getCallFunctionMethod())
                              -              .addMethod(getGenerateUploadUrlMethod())
                              -              .addMethod(getGenerateDownloadUrlMethod())
                              -              .addMethod(getSetIamPolicyMethod())
                              -              .addMethod(getGetIamPolicyMethod())
                              -              .addMethod(getTestIamPermissionsMethod())
                              -              .build();
                              +          serviceDescriptor =
                              +              result =
                              +                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
                              +                      .setSchemaDescriptor(new CloudFunctionsServiceFileDescriptorSupplier())
                              +                      .addMethod(getListFunctionsMethod())
                              +                      .addMethod(getGetFunctionMethod())
                              +                      .addMethod(getCreateFunctionMethod())
                              +                      .addMethod(getUpdateFunctionMethod())
                              +                      .addMethod(getDeleteFunctionMethod())
                              +                      .addMethod(getCallFunctionMethod())
                              +                      .addMethod(getGenerateUploadUrlMethod())
                              +                      .addMethod(getGenerateDownloadUrlMethod())
                              +                      .addMethod(getSetIamPolicyMethod())
                              +                      .addMethod(getGetIamPolicyMethod())
                              +                      .addMethod(getTestIamPermissionsMethod())
                              +                      .build();
                                       }
                                     }
                                   }
                              diff --git a/grpc-google-cloud-functions-v2/pom.xml b/grpc-google-cloud-functions-v2/pom.xml
                              new file mode 100644
                              index 00000000..ca917083
                              --- /dev/null
                              +++ b/grpc-google-cloud-functions-v2/pom.xml
                              @@ -0,0 +1,69 @@
                              +
                              +  4.0.0
                              +  com.google.api.grpc
                              +  grpc-google-cloud-functions-v2
                              +  2.4.3
                              +  grpc-google-cloud-functions-v2
                              +  GRPC library for google-cloud-functions
                              +  
                              +    com.google.cloud
                              +    google-cloud-functions-parent
                              +    2.4.3
                              +  
                              +  
                              +    
                              +      io.grpc
                              +      grpc-api
                              +    
                              +    
                              +      io.grpc
                              +      grpc-stub
                              +    
                              +    
                              +      io.grpc
                              +      grpc-protobuf
                              +    
                              +    
                              +      com.google.protobuf
                              +      protobuf-java
                              +    
                              +    
                              +      com.google.api.grpc
                              +      proto-google-common-protos
                              +    
                              +    
                              +      com.google.api.grpc
                              +      proto-google-cloud-functions-v2
                              +    
                              +    
                              +      com.google.guava
                              +      guava
                              +    
                              +  
                              +
                              +  
                              +    
                              +      java9
                              +      
                              +        [9,)
                              +      
                              +      
                              +        
                              +          javax.annotation
                              +          javax.annotation-api
                              +        
                              +      
                              +    
                              +  
                              +
                              +  
                              +    
                              +      
                              +          org.codehaus.mojo
                              +          flatten-maven-plugin
                              +        
                              +    
                              +  
                              +
                              \ No newline at end of file
                              diff --git a/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java b/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java
                              new file mode 100644
                              index 00000000..d9a054b7
                              --- /dev/null
                              +++ b/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java
                              @@ -0,0 +1,1296 @@
                              +/*
                              + * 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.
                              + */
                              +package com.google.cloud.functions.v2;
                              +
                              +import static io.grpc.MethodDescriptor.generateFullMethodName;
                              +
                              +/**
                              + *
                              + *
                              + * 
                              + * Google Cloud Functions is used to deploy functions that are executed by
                              + * Google in response to various events. Data connected with that event is
                              + * passed to a function as the input data.
                              + * A **function** is a resource which describes a function that should be
                              + * executed and how it is triggered.
                              + * 
                              + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/functions/v2/functions.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class FunctionServiceGrpc { + + private FunctionServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.functions.v2.FunctionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.GetFunctionRequest, com.google.cloud.functions.v2.Function> + getGetFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFunction", + requestType = com.google.cloud.functions.v2.GetFunctionRequest.class, + responseType = com.google.cloud.functions.v2.Function.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.GetFunctionRequest, com.google.cloud.functions.v2.Function> + getGetFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.GetFunctionRequest, + com.google.cloud.functions.v2.Function> + getGetFunctionMethod; + if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { + FunctionServiceGrpc.getGetFunctionMethod = + getGetFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.GetFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.Function.getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("GetFunction")) + .build(); + } + } + } + return getGetFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.ListFunctionsRequest, + com.google.cloud.functions.v2.ListFunctionsResponse> + getListFunctionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFunctions", + requestType = com.google.cloud.functions.v2.ListFunctionsRequest.class, + responseType = com.google.cloud.functions.v2.ListFunctionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.ListFunctionsRequest, + com.google.cloud.functions.v2.ListFunctionsResponse> + getListFunctionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.ListFunctionsRequest, + com.google.cloud.functions.v2.ListFunctionsResponse> + getListFunctionsMethod; + if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { + FunctionServiceGrpc.getListFunctionsMethod = + getListFunctionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.ListFunctionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.ListFunctionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("ListFunctions")) + .build(); + } + } + } + return getListFunctionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.CreateFunctionRequest, com.google.longrunning.Operation> + getCreateFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFunction", + requestType = com.google.cloud.functions.v2.CreateFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.CreateFunctionRequest, com.google.longrunning.Operation> + getCreateFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.CreateFunctionRequest, com.google.longrunning.Operation> + getCreateFunctionMethod; + if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { + FunctionServiceGrpc.getCreateFunctionMethod = + getCreateFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.CreateFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("CreateFunction")) + .build(); + } + } + } + return getCreateFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.UpdateFunctionRequest, com.google.longrunning.Operation> + getUpdateFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFunction", + requestType = com.google.cloud.functions.v2.UpdateFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.UpdateFunctionRequest, com.google.longrunning.Operation> + getUpdateFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.UpdateFunctionRequest, com.google.longrunning.Operation> + getUpdateFunctionMethod; + if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { + FunctionServiceGrpc.getUpdateFunctionMethod = + getUpdateFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.UpdateFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("UpdateFunction")) + .build(); + } + } + } + return getUpdateFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.DeleteFunctionRequest, com.google.longrunning.Operation> + getDeleteFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFunction", + requestType = com.google.cloud.functions.v2.DeleteFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.DeleteFunctionRequest, com.google.longrunning.Operation> + getDeleteFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.DeleteFunctionRequest, com.google.longrunning.Operation> + getDeleteFunctionMethod; + if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { + FunctionServiceGrpc.getDeleteFunctionMethod = + getDeleteFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.DeleteFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("DeleteFunction")) + .build(); + } + } + } + return getDeleteFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.GenerateUploadUrlRequest, + com.google.cloud.functions.v2.GenerateUploadUrlResponse> + getGenerateUploadUrlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateUploadUrl", + requestType = com.google.cloud.functions.v2.GenerateUploadUrlRequest.class, + responseType = com.google.cloud.functions.v2.GenerateUploadUrlResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.GenerateUploadUrlRequest, + com.google.cloud.functions.v2.GenerateUploadUrlResponse> + getGenerateUploadUrlMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.GenerateUploadUrlRequest, + com.google.cloud.functions.v2.GenerateUploadUrlResponse> + getGenerateUploadUrlMethod; + if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { + FunctionServiceGrpc.getGenerateUploadUrlMethod = + getGenerateUploadUrlMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.GenerateUploadUrlRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.GenerateUploadUrlResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("GenerateUploadUrl")) + .build(); + } + } + } + return getGenerateUploadUrlMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2.GenerateDownloadUrlResponse> + getGenerateDownloadUrlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateDownloadUrl", + requestType = com.google.cloud.functions.v2.GenerateDownloadUrlRequest.class, + responseType = com.google.cloud.functions.v2.GenerateDownloadUrlResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2.GenerateDownloadUrlResponse> + getGenerateDownloadUrlMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2.GenerateDownloadUrlResponse> + getGenerateDownloadUrlMethod; + if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) + == null) { + FunctionServiceGrpc.getGenerateDownloadUrlMethod = + getGenerateDownloadUrlMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.GenerateDownloadUrlRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.GenerateDownloadUrlResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("GenerateDownloadUrl")) + .build(); + } + } + } + return getGenerateDownloadUrlMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.ListRuntimesRequest, + com.google.cloud.functions.v2.ListRuntimesResponse> + getListRuntimesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", + requestType = com.google.cloud.functions.v2.ListRuntimesRequest.class, + responseType = com.google.cloud.functions.v2.ListRuntimesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.ListRuntimesRequest, + com.google.cloud.functions.v2.ListRuntimesResponse> + getListRuntimesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2.ListRuntimesRequest, + com.google.cloud.functions.v2.ListRuntimesResponse> + getListRuntimesMethod; + if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { + FunctionServiceGrpc.getListRuntimesMethod = + getListRuntimesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.ListRuntimesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2.ListRuntimesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("ListRuntimes")) + .build(); + } + } + } + return getListRuntimesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static FunctionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceStub(channel, callOptions); + } + }; + return FunctionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static FunctionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceBlockingStub(channel, callOptions); + } + }; + return FunctionServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static FunctionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceFutureStub(channel, callOptions); + } + }; + return FunctionServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                              +   * Google Cloud Functions is used to deploy functions that are executed by
                              +   * Google in response to various events. Data connected with that event is
                              +   * passed to a function as the input data.
                              +   * A **function** is a resource which describes a function that should be
                              +   * executed and how it is triggered.
                              +   * 
                              + */ + public abstract static class FunctionServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
                              +     * Returns a function with the given name from the requested project.
                              +     * 
                              + */ + public void getFunction( + com.google.cloud.functions.v2.GetFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetFunctionMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Returns a list of functions that belong to the requested project.
                              +     * 
                              + */ + public void listFunctions( + com.google.cloud.functions.v2.ListFunctionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFunctionsMethod(), responseObserver); + } + + /** + * + * + *
                              +     * 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.
                              +     * 
                              + */ + public void createFunction( + com.google.cloud.functions.v2.CreateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFunctionMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Updates existing function.
                              +     * 
                              + */ + public void updateFunction( + com.google.cloud.functions.v2.UpdateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFunctionMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Deletes a function with the given name from the specified project. If the
                              +     * given function is used by some trigger, the trigger will be updated to
                              +     * remove this function.
                              +     * 
                              + */ + public void deleteFunction( + com.google.cloud.functions.v2.DeleteFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFunctionMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Returns a signed URL for uploading a function source code.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              +     * Once the function source code upload is complete, the used signed
                              +     * URL should be provided in CreateFunction or UpdateFunction request
                              +     * as a reference to the function source code.
                              +     * When uploading source code to the generated signed URL, please follow
                              +     * these restrictions:
                              +     * * Source file type should be a zip file.
                              +     * * No credentials should be attached - the signed URLs provide access to the
                              +     *   target bucket using internal service identity; if credentials were
                              +     *   attached, the identity from the credentials would be used, but that
                              +     *   identity does not have permissions to upload files to the URL.
                              +     * When making a HTTP PUT request, these two headers need to be specified:
                              +     * * `content-type: application/zip`
                              +     * And this header SHOULD NOT be specified:
                              +     * * `Authorization: Bearer YOUR_TOKEN`
                              +     * 
                              + */ + public void generateUploadUrl( + com.google.cloud.functions.v2.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateUploadUrlMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Returns a signed URL for downloading deployed function source code.
                              +     * The URL is only valid for a limited period and should be used within
                              +     * 30 minutes of generation.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              +     * 
                              + */ + public void generateDownloadUrl( + com.google.cloud.functions.v2.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateDownloadUrlMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Returns a list of runtimes that are supported for the requested project.
                              +     * 
                              + */ + public void listRuntimes( + com.google.cloud.functions.v2.ListRuntimesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRuntimesMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.GetFunctionRequest, + com.google.cloud.functions.v2.Function>(this, METHODID_GET_FUNCTION))) + .addMethod( + getListFunctionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.ListFunctionsRequest, + com.google.cloud.functions.v2.ListFunctionsResponse>( + this, METHODID_LIST_FUNCTIONS))) + .addMethod( + getCreateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.CreateFunctionRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_FUNCTION))) + .addMethod( + getUpdateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.UpdateFunctionRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_FUNCTION))) + .addMethod( + getDeleteFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.DeleteFunctionRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_FUNCTION))) + .addMethod( + getGenerateUploadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.GenerateUploadUrlRequest, + com.google.cloud.functions.v2.GenerateUploadUrlResponse>( + this, METHODID_GENERATE_UPLOAD_URL))) + .addMethod( + getGenerateDownloadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2.GenerateDownloadUrlResponse>( + this, METHODID_GENERATE_DOWNLOAD_URL))) + .addMethod( + getListRuntimesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2.ListRuntimesRequest, + com.google.cloud.functions.v2.ListRuntimesResponse>( + this, METHODID_LIST_RUNTIMES))) + .build(); + } + } + + /** + * + * + *
                              +   * Google Cloud Functions is used to deploy functions that are executed by
                              +   * Google in response to various events. Data connected with that event is
                              +   * passed to a function as the input data.
                              +   * A **function** is a resource which describes a function that should be
                              +   * executed and how it is triggered.
                              +   * 
                              + */ + public static final class FunctionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private FunctionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceStub(channel, callOptions); + } + + /** + * + * + *
                              +     * Returns a function with the given name from the requested project.
                              +     * 
                              + */ + public void getFunction( + com.google.cloud.functions.v2.GetFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Returns a list of functions that belong to the requested project.
                              +     * 
                              + */ + public void listFunctions( + com.google.cloud.functions.v2.ListFunctionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * 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.
                              +     * 
                              + */ + public void createFunction( + com.google.cloud.functions.v2.CreateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Updates existing function.
                              +     * 
                              + */ + public void updateFunction( + com.google.cloud.functions.v2.UpdateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Deletes a function with the given name from the specified project. If the
                              +     * given function is used by some trigger, the trigger will be updated to
                              +     * remove this function.
                              +     * 
                              + */ + public void deleteFunction( + com.google.cloud.functions.v2.DeleteFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Returns a signed URL for uploading a function source code.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              +     * Once the function source code upload is complete, the used signed
                              +     * URL should be provided in CreateFunction or UpdateFunction request
                              +     * as a reference to the function source code.
                              +     * When uploading source code to the generated signed URL, please follow
                              +     * these restrictions:
                              +     * * Source file type should be a zip file.
                              +     * * No credentials should be attached - the signed URLs provide access to the
                              +     *   target bucket using internal service identity; if credentials were
                              +     *   attached, the identity from the credentials would be used, but that
                              +     *   identity does not have permissions to upload files to the URL.
                              +     * When making a HTTP PUT request, these two headers need to be specified:
                              +     * * `content-type: application/zip`
                              +     * And this header SHOULD NOT be specified:
                              +     * * `Authorization: Bearer YOUR_TOKEN`
                              +     * 
                              + */ + public void generateUploadUrl( + com.google.cloud.functions.v2.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Returns a signed URL for downloading deployed function source code.
                              +     * The URL is only valid for a limited period and should be used within
                              +     * 30 minutes of generation.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              +     * 
                              + */ + public void generateDownloadUrl( + com.google.cloud.functions.v2.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Returns a list of runtimes that are supported for the requested project.
                              +     * 
                              + */ + public void listRuntimes( + com.google.cloud.functions.v2.ListRuntimesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
                              +   * Google Cloud Functions is used to deploy functions that are executed by
                              +   * Google in response to various events. Data connected with that event is
                              +   * passed to a function as the input data.
                              +   * A **function** is a resource which describes a function that should be
                              +   * executed and how it is triggered.
                              +   * 
                              + */ + public static final class FunctionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private FunctionServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
                              +     * Returns a function with the given name from the requested project.
                              +     * 
                              + */ + public com.google.cloud.functions.v2.Function getFunction( + com.google.cloud.functions.v2.GetFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFunctionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Returns a list of functions that belong to the requested project.
                              +     * 
                              + */ + public com.google.cloud.functions.v2.ListFunctionsResponse listFunctions( + com.google.cloud.functions.v2.ListFunctionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFunctionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * 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.
                              +     * 
                              + */ + public com.google.longrunning.Operation createFunction( + com.google.cloud.functions.v2.CreateFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFunctionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Updates existing function.
                              +     * 
                              + */ + public com.google.longrunning.Operation updateFunction( + com.google.cloud.functions.v2.UpdateFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Deletes a function with the given name from the specified project. If the
                              +     * given function is used by some trigger, the trigger will be updated to
                              +     * remove this function.
                              +     * 
                              + */ + public com.google.longrunning.Operation deleteFunction( + com.google.cloud.functions.v2.DeleteFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Returns a signed URL for uploading a function source code.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              +     * Once the function source code upload is complete, the used signed
                              +     * URL should be provided in CreateFunction or UpdateFunction request
                              +     * as a reference to the function source code.
                              +     * When uploading source code to the generated signed URL, please follow
                              +     * these restrictions:
                              +     * * Source file type should be a zip file.
                              +     * * No credentials should be attached - the signed URLs provide access to the
                              +     *   target bucket using internal service identity; if credentials were
                              +     *   attached, the identity from the credentials would be used, but that
                              +     *   identity does not have permissions to upload files to the URL.
                              +     * When making a HTTP PUT request, these two headers need to be specified:
                              +     * * `content-type: application/zip`
                              +     * And this header SHOULD NOT be specified:
                              +     * * `Authorization: Bearer YOUR_TOKEN`
                              +     * 
                              + */ + public com.google.cloud.functions.v2.GenerateUploadUrlResponse generateUploadUrl( + com.google.cloud.functions.v2.GenerateUploadUrlRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Returns a signed URL for downloading deployed function source code.
                              +     * The URL is only valid for a limited period and should be used within
                              +     * 30 minutes of generation.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              +     * 
                              + */ + public com.google.cloud.functions.v2.GenerateDownloadUrlResponse generateDownloadUrl( + com.google.cloud.functions.v2.GenerateDownloadUrlRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Returns a list of runtimes that are supported for the requested project.
                              +     * 
                              + */ + public com.google.cloud.functions.v2.ListRuntimesResponse listRuntimes( + com.google.cloud.functions.v2.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRuntimesMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
                              +   * Google Cloud Functions is used to deploy functions that are executed by
                              +   * Google in response to various events. Data connected with that event is
                              +   * passed to a function as the input data.
                              +   * A **function** is a resource which describes a function that should be
                              +   * executed and how it is triggered.
                              +   * 
                              + */ + public static final class FunctionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private FunctionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
                              +     * Returns a function with the given name from the requested project.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2.Function> + getFunction(com.google.cloud.functions.v2.GetFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Returns a list of functions that belong to the requested project.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2.ListFunctionsResponse> + listFunctions(com.google.cloud.functions.v2.ListFunctionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * 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.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture + createFunction(com.google.cloud.functions.v2.CreateFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Updates existing function.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateFunction(com.google.cloud.functions.v2.UpdateFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Deletes a function with the given name from the specified project. If the
                              +     * given function is used by some trigger, the trigger will be updated to
                              +     * remove this function.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteFunction(com.google.cloud.functions.v2.DeleteFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Returns a signed URL for uploading a function source code.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              +     * Once the function source code upload is complete, the used signed
                              +     * URL should be provided in CreateFunction or UpdateFunction request
                              +     * as a reference to the function source code.
                              +     * When uploading source code to the generated signed URL, please follow
                              +     * these restrictions:
                              +     * * Source file type should be a zip file.
                              +     * * No credentials should be attached - the signed URLs provide access to the
                              +     *   target bucket using internal service identity; if credentials were
                              +     *   attached, the identity from the credentials would be used, but that
                              +     *   identity does not have permissions to upload files to the URL.
                              +     * When making a HTTP PUT request, these two headers need to be specified:
                              +     * * `content-type: application/zip`
                              +     * And this header SHOULD NOT be specified:
                              +     * * `Authorization: Bearer YOUR_TOKEN`
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2.GenerateUploadUrlResponse> + generateUploadUrl(com.google.cloud.functions.v2.GenerateUploadUrlRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Returns a signed URL for downloading deployed function source code.
                              +     * The URL is only valid for a limited period and should be used within
                              +     * 30 minutes of generation.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2.GenerateDownloadUrlResponse> + generateDownloadUrl(com.google.cloud.functions.v2.GenerateDownloadUrlRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Returns a list of runtimes that are supported for the requested project.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2.ListRuntimesResponse> + listRuntimes(com.google.cloud.functions.v2.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_FUNCTION = 0; + private static final int METHODID_LIST_FUNCTIONS = 1; + private static final int METHODID_CREATE_FUNCTION = 2; + private static final int METHODID_UPDATE_FUNCTION = 3; + private static final int METHODID_DELETE_FUNCTION = 4; + private static final int METHODID_GENERATE_UPLOAD_URL = 5; + private static final int METHODID_GENERATE_DOWNLOAD_URL = 6; + private static final int METHODID_LIST_RUNTIMES = 7; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final FunctionServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(FunctionServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_FUNCTION: + serviceImpl.getFunction( + (com.google.cloud.functions.v2.GetFunctionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FUNCTIONS: + serviceImpl.listFunctions( + (com.google.cloud.functions.v2.ListFunctionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FUNCTION: + serviceImpl.createFunction( + (com.google.cloud.functions.v2.CreateFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FUNCTION: + serviceImpl.updateFunction( + (com.google.cloud.functions.v2.UpdateFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FUNCTION: + serviceImpl.deleteFunction( + (com.google.cloud.functions.v2.DeleteFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_UPLOAD_URL: + serviceImpl.generateUploadUrl( + (com.google.cloud.functions.v2.GenerateUploadUrlRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GENERATE_DOWNLOAD_URL: + serviceImpl.generateDownloadUrl( + (com.google.cloud.functions.v2.GenerateDownloadUrlRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.functions.v2.GenerateDownloadUrlResponse>) + responseObserver); + break; + case METHODID_LIST_RUNTIMES: + serviceImpl.listRuntimes( + (com.google.cloud.functions.v2.ListRuntimesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class FunctionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + FunctionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("FunctionService"); + } + } + + private static final class FunctionServiceFileDescriptorSupplier + extends FunctionServiceBaseDescriptorSupplier { + FunctionServiceFileDescriptorSupplier() {} + } + + private static final class FunctionServiceMethodDescriptorSupplier + extends FunctionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + FunctionServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (FunctionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new FunctionServiceFileDescriptorSupplier()) + .addMethod(getGetFunctionMethod()) + .addMethod(getListFunctionsMethod()) + .addMethod(getCreateFunctionMethod()) + .addMethod(getUpdateFunctionMethod()) + .addMethod(getDeleteFunctionMethod()) + .addMethod(getGenerateUploadUrlMethod()) + .addMethod(getGenerateDownloadUrlMethod()) + .addMethod(getListRuntimesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java b/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java new file mode 100644 index 00000000..cc0d18d5 --- /dev/null +++ b/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java @@ -0,0 +1,1309 @@ +/* + * 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. + */ +package com.google.cloud.functions.v2alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                              + * Google Cloud Functions is used to deploy functions that are executed by
                              + * Google in response to various events. Data connected with that event is
                              + * passed to a function as the input data.
                              + * A **function** is a resource which describes a function that should be
                              + * executed and how it is triggered.
                              + * 
                              + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/functions/v2alpha/functions.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class FunctionServiceGrpc { + + private FunctionServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.functions.v2alpha.FunctionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.GetFunctionRequest, + com.google.cloud.functions.v2alpha.Function> + getGetFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFunction", + requestType = com.google.cloud.functions.v2alpha.GetFunctionRequest.class, + responseType = com.google.cloud.functions.v2alpha.Function.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.GetFunctionRequest, + com.google.cloud.functions.v2alpha.Function> + getGetFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.GetFunctionRequest, + com.google.cloud.functions.v2alpha.Function> + getGetFunctionMethod; + if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { + FunctionServiceGrpc.getGetFunctionMethod = + getGetFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.GetFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.Function.getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("GetFunction")) + .build(); + } + } + } + return getGetFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.ListFunctionsRequest, + com.google.cloud.functions.v2alpha.ListFunctionsResponse> + getListFunctionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFunctions", + requestType = com.google.cloud.functions.v2alpha.ListFunctionsRequest.class, + responseType = com.google.cloud.functions.v2alpha.ListFunctionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.ListFunctionsRequest, + com.google.cloud.functions.v2alpha.ListFunctionsResponse> + getListFunctionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.ListFunctionsRequest, + com.google.cloud.functions.v2alpha.ListFunctionsResponse> + getListFunctionsMethod; + if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { + FunctionServiceGrpc.getListFunctionsMethod = + getListFunctionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.ListFunctionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.ListFunctionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("ListFunctions")) + .build(); + } + } + } + return getListFunctionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.CreateFunctionRequest, + com.google.longrunning.Operation> + getCreateFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFunction", + requestType = com.google.cloud.functions.v2alpha.CreateFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.CreateFunctionRequest, + com.google.longrunning.Operation> + getCreateFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.CreateFunctionRequest, + com.google.longrunning.Operation> + getCreateFunctionMethod; + if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { + FunctionServiceGrpc.getCreateFunctionMethod = + getCreateFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.CreateFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("CreateFunction")) + .build(); + } + } + } + return getCreateFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.UpdateFunctionRequest, + com.google.longrunning.Operation> + getUpdateFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFunction", + requestType = com.google.cloud.functions.v2alpha.UpdateFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.UpdateFunctionRequest, + com.google.longrunning.Operation> + getUpdateFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.UpdateFunctionRequest, + com.google.longrunning.Operation> + getUpdateFunctionMethod; + if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { + FunctionServiceGrpc.getUpdateFunctionMethod = + getUpdateFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.UpdateFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("UpdateFunction")) + .build(); + } + } + } + return getUpdateFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.DeleteFunctionRequest, + com.google.longrunning.Operation> + getDeleteFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFunction", + requestType = com.google.cloud.functions.v2alpha.DeleteFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.DeleteFunctionRequest, + com.google.longrunning.Operation> + getDeleteFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.DeleteFunctionRequest, + com.google.longrunning.Operation> + getDeleteFunctionMethod; + if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { + FunctionServiceGrpc.getDeleteFunctionMethod = + getDeleteFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.DeleteFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("DeleteFunction")) + .build(); + } + } + } + return getDeleteFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest, + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse> + getGenerateUploadUrlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateUploadUrl", + requestType = com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.class, + responseType = com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest, + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse> + getGenerateUploadUrlMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest, + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse> + getGenerateUploadUrlMethod; + if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { + FunctionServiceGrpc.getGenerateUploadUrlMethod = + getGenerateUploadUrlMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("GenerateUploadUrl")) + .build(); + } + } + } + return getGenerateUploadUrlMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse> + getGenerateDownloadUrlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateDownloadUrl", + requestType = com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.class, + responseType = com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse> + getGenerateDownloadUrlMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse> + getGenerateDownloadUrlMethod; + if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) + == null) { + FunctionServiceGrpc.getGenerateDownloadUrlMethod = + getGenerateDownloadUrlMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("GenerateDownloadUrl")) + .build(); + } + } + } + return getGenerateDownloadUrlMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.ListRuntimesRequest, + com.google.cloud.functions.v2alpha.ListRuntimesResponse> + getListRuntimesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", + requestType = com.google.cloud.functions.v2alpha.ListRuntimesRequest.class, + responseType = com.google.cloud.functions.v2alpha.ListRuntimesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.ListRuntimesRequest, + com.google.cloud.functions.v2alpha.ListRuntimesResponse> + getListRuntimesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2alpha.ListRuntimesRequest, + com.google.cloud.functions.v2alpha.ListRuntimesResponse> + getListRuntimesMethod; + if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { + FunctionServiceGrpc.getListRuntimesMethod = + getListRuntimesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.ListRuntimesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2alpha.ListRuntimesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("ListRuntimes")) + .build(); + } + } + } + return getListRuntimesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static FunctionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceStub(channel, callOptions); + } + }; + return FunctionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static FunctionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceBlockingStub(channel, callOptions); + } + }; + return FunctionServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static FunctionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceFutureStub(channel, callOptions); + } + }; + return FunctionServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                              +   * Google Cloud Functions is used to deploy functions that are executed by
                              +   * Google in response to various events. Data connected with that event is
                              +   * passed to a function as the input data.
                              +   * A **function** is a resource which describes a function that should be
                              +   * executed and how it is triggered.
                              +   * 
                              + */ + public abstract static class FunctionServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
                              +     * Returns a function with the given name from the requested project.
                              +     * 
                              + */ + public void getFunction( + com.google.cloud.functions.v2alpha.GetFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetFunctionMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Returns a list of functions that belong to the requested project.
                              +     * 
                              + */ + public void listFunctions( + com.google.cloud.functions.v2alpha.ListFunctionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFunctionsMethod(), responseObserver); + } + + /** + * + * + *
                              +     * 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.
                              +     * 
                              + */ + public void createFunction( + com.google.cloud.functions.v2alpha.CreateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFunctionMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Updates existing function.
                              +     * 
                              + */ + public void updateFunction( + com.google.cloud.functions.v2alpha.UpdateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFunctionMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Deletes a function with the given name from the specified project. If the
                              +     * given function is used by some trigger, the trigger will be updated to
                              +     * remove this function.
                              +     * 
                              + */ + public void deleteFunction( + com.google.cloud.functions.v2alpha.DeleteFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFunctionMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Returns a signed URL for uploading a function source code.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              +     * Once the function source code upload is complete, the used signed
                              +     * URL should be provided in CreateFunction or UpdateFunction request
                              +     * as a reference to the function source code.
                              +     * When uploading source code to the generated signed URL, please follow
                              +     * these restrictions:
                              +     * * Source file type should be a zip file.
                              +     * * No credentials should be attached - the signed URLs provide access to the
                              +     *   target bucket using internal service identity; if credentials were
                              +     *   attached, the identity from the credentials would be used, but that
                              +     *   identity does not have permissions to upload files to the URL.
                              +     * When making a HTTP PUT request, these two headers need to be specified:
                              +     * * `content-type: application/zip`
                              +     * And this header SHOULD NOT be specified:
                              +     * * `Authorization: Bearer YOUR_TOKEN`
                              +     * 
                              + */ + public void generateUploadUrl( + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateUploadUrlMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Returns a signed URL for downloading deployed function source code.
                              +     * The URL is only valid for a limited period and should be used within
                              +     * 30 minutes of generation.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              +     * 
                              + */ + public void generateDownloadUrl( + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateDownloadUrlMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Returns a list of runtimes that are supported for the requested project.
                              +     * 
                              + */ + public void listRuntimes( + com.google.cloud.functions.v2alpha.ListRuntimesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRuntimesMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.GetFunctionRequest, + com.google.cloud.functions.v2alpha.Function>(this, METHODID_GET_FUNCTION))) + .addMethod( + getListFunctionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.ListFunctionsRequest, + com.google.cloud.functions.v2alpha.ListFunctionsResponse>( + this, METHODID_LIST_FUNCTIONS))) + .addMethod( + getCreateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.CreateFunctionRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_FUNCTION))) + .addMethod( + getUpdateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.UpdateFunctionRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_FUNCTION))) + .addMethod( + getDeleteFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.DeleteFunctionRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_FUNCTION))) + .addMethod( + getGenerateUploadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest, + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse>( + this, METHODID_GENERATE_UPLOAD_URL))) + .addMethod( + getGenerateDownloadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse>( + this, METHODID_GENERATE_DOWNLOAD_URL))) + .addMethod( + getListRuntimesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2alpha.ListRuntimesRequest, + com.google.cloud.functions.v2alpha.ListRuntimesResponse>( + this, METHODID_LIST_RUNTIMES))) + .build(); + } + } + + /** + * + * + *
                              +   * Google Cloud Functions is used to deploy functions that are executed by
                              +   * Google in response to various events. Data connected with that event is
                              +   * passed to a function as the input data.
                              +   * A **function** is a resource which describes a function that should be
                              +   * executed and how it is triggered.
                              +   * 
                              + */ + public static final class FunctionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private FunctionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceStub(channel, callOptions); + } + + /** + * + * + *
                              +     * Returns a function with the given name from the requested project.
                              +     * 
                              + */ + public void getFunction( + com.google.cloud.functions.v2alpha.GetFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Returns a list of functions that belong to the requested project.
                              +     * 
                              + */ + public void listFunctions( + com.google.cloud.functions.v2alpha.ListFunctionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * 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.
                              +     * 
                              + */ + public void createFunction( + com.google.cloud.functions.v2alpha.CreateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Updates existing function.
                              +     * 
                              + */ + public void updateFunction( + com.google.cloud.functions.v2alpha.UpdateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Deletes a function with the given name from the specified project. If the
                              +     * given function is used by some trigger, the trigger will be updated to
                              +     * remove this function.
                              +     * 
                              + */ + public void deleteFunction( + com.google.cloud.functions.v2alpha.DeleteFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Returns a signed URL for uploading a function source code.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              +     * Once the function source code upload is complete, the used signed
                              +     * URL should be provided in CreateFunction or UpdateFunction request
                              +     * as a reference to the function source code.
                              +     * When uploading source code to the generated signed URL, please follow
                              +     * these restrictions:
                              +     * * Source file type should be a zip file.
                              +     * * No credentials should be attached - the signed URLs provide access to the
                              +     *   target bucket using internal service identity; if credentials were
                              +     *   attached, the identity from the credentials would be used, but that
                              +     *   identity does not have permissions to upload files to the URL.
                              +     * When making a HTTP PUT request, these two headers need to be specified:
                              +     * * `content-type: application/zip`
                              +     * And this header SHOULD NOT be specified:
                              +     * * `Authorization: Bearer YOUR_TOKEN`
                              +     * 
                              + */ + public void generateUploadUrl( + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Returns a signed URL for downloading deployed function source code.
                              +     * The URL is only valid for a limited period and should be used within
                              +     * 30 minutes of generation.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              +     * 
                              + */ + public void generateDownloadUrl( + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Returns a list of runtimes that are supported for the requested project.
                              +     * 
                              + */ + public void listRuntimes( + com.google.cloud.functions.v2alpha.ListRuntimesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
                              +   * Google Cloud Functions is used to deploy functions that are executed by
                              +   * Google in response to various events. Data connected with that event is
                              +   * passed to a function as the input data.
                              +   * A **function** is a resource which describes a function that should be
                              +   * executed and how it is triggered.
                              +   * 
                              + */ + public static final class FunctionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private FunctionServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
                              +     * Returns a function with the given name from the requested project.
                              +     * 
                              + */ + public com.google.cloud.functions.v2alpha.Function getFunction( + com.google.cloud.functions.v2alpha.GetFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFunctionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Returns a list of functions that belong to the requested project.
                              +     * 
                              + */ + public com.google.cloud.functions.v2alpha.ListFunctionsResponse listFunctions( + com.google.cloud.functions.v2alpha.ListFunctionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFunctionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * 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.
                              +     * 
                              + */ + public com.google.longrunning.Operation createFunction( + com.google.cloud.functions.v2alpha.CreateFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFunctionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Updates existing function.
                              +     * 
                              + */ + public com.google.longrunning.Operation updateFunction( + com.google.cloud.functions.v2alpha.UpdateFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Deletes a function with the given name from the specified project. If the
                              +     * given function is used by some trigger, the trigger will be updated to
                              +     * remove this function.
                              +     * 
                              + */ + public com.google.longrunning.Operation deleteFunction( + com.google.cloud.functions.v2alpha.DeleteFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Returns a signed URL for uploading a function source code.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              +     * Once the function source code upload is complete, the used signed
                              +     * URL should be provided in CreateFunction or UpdateFunction request
                              +     * as a reference to the function source code.
                              +     * When uploading source code to the generated signed URL, please follow
                              +     * these restrictions:
                              +     * * Source file type should be a zip file.
                              +     * * No credentials should be attached - the signed URLs provide access to the
                              +     *   target bucket using internal service identity; if credentials were
                              +     *   attached, the identity from the credentials would be used, but that
                              +     *   identity does not have permissions to upload files to the URL.
                              +     * When making a HTTP PUT request, these two headers need to be specified:
                              +     * * `content-type: application/zip`
                              +     * And this header SHOULD NOT be specified:
                              +     * * `Authorization: Bearer YOUR_TOKEN`
                              +     * 
                              + */ + public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse generateUploadUrl( + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Returns a signed URL for downloading deployed function source code.
                              +     * The URL is only valid for a limited period and should be used within
                              +     * 30 minutes of generation.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              +     * 
                              + */ + public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse generateDownloadUrl( + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Returns a list of runtimes that are supported for the requested project.
                              +     * 
                              + */ + public com.google.cloud.functions.v2alpha.ListRuntimesResponse listRuntimes( + com.google.cloud.functions.v2alpha.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRuntimesMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
                              +   * Google Cloud Functions is used to deploy functions that are executed by
                              +   * Google in response to various events. Data connected with that event is
                              +   * passed to a function as the input data.
                              +   * A **function** is a resource which describes a function that should be
                              +   * executed and how it is triggered.
                              +   * 
                              + */ + public static final class FunctionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private FunctionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
                              +     * Returns a function with the given name from the requested project.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2alpha.Function> + getFunction(com.google.cloud.functions.v2alpha.GetFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Returns a list of functions that belong to the requested project.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2alpha.ListFunctionsResponse> + listFunctions(com.google.cloud.functions.v2alpha.ListFunctionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * 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.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture + createFunction(com.google.cloud.functions.v2alpha.CreateFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Updates existing function.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateFunction(com.google.cloud.functions.v2alpha.UpdateFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Deletes a function with the given name from the specified project. If the
                              +     * given function is used by some trigger, the trigger will be updated to
                              +     * remove this function.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteFunction(com.google.cloud.functions.v2alpha.DeleteFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Returns a signed URL for uploading a function source code.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              +     * Once the function source code upload is complete, the used signed
                              +     * URL should be provided in CreateFunction or UpdateFunction request
                              +     * as a reference to the function source code.
                              +     * When uploading source code to the generated signed URL, please follow
                              +     * these restrictions:
                              +     * * Source file type should be a zip file.
                              +     * * No credentials should be attached - the signed URLs provide access to the
                              +     *   target bucket using internal service identity; if credentials were
                              +     *   attached, the identity from the credentials would be used, but that
                              +     *   identity does not have permissions to upload files to the URL.
                              +     * When making a HTTP PUT request, these two headers need to be specified:
                              +     * * `content-type: application/zip`
                              +     * And this header SHOULD NOT be specified:
                              +     * * `Authorization: Bearer YOUR_TOKEN`
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse> + generateUploadUrl(com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Returns a signed URL for downloading deployed function source code.
                              +     * The URL is only valid for a limited period and should be used within
                              +     * 30 minutes of generation.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse> + generateDownloadUrl(com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Returns a list of runtimes that are supported for the requested project.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2alpha.ListRuntimesResponse> + listRuntimes(com.google.cloud.functions.v2alpha.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_FUNCTION = 0; + private static final int METHODID_LIST_FUNCTIONS = 1; + private static final int METHODID_CREATE_FUNCTION = 2; + private static final int METHODID_UPDATE_FUNCTION = 3; + private static final int METHODID_DELETE_FUNCTION = 4; + private static final int METHODID_GENERATE_UPLOAD_URL = 5; + private static final int METHODID_GENERATE_DOWNLOAD_URL = 6; + private static final int METHODID_LIST_RUNTIMES = 7; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final FunctionServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(FunctionServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_FUNCTION: + serviceImpl.getFunction( + (com.google.cloud.functions.v2alpha.GetFunctionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FUNCTIONS: + serviceImpl.listFunctions( + (com.google.cloud.functions.v2alpha.ListFunctionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.functions.v2alpha.ListFunctionsResponse>) + responseObserver); + break; + case METHODID_CREATE_FUNCTION: + serviceImpl.createFunction( + (com.google.cloud.functions.v2alpha.CreateFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FUNCTION: + serviceImpl.updateFunction( + (com.google.cloud.functions.v2alpha.UpdateFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FUNCTION: + serviceImpl.deleteFunction( + (com.google.cloud.functions.v2alpha.DeleteFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_UPLOAD_URL: + serviceImpl.generateUploadUrl( + (com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse>) + responseObserver); + break; + case METHODID_GENERATE_DOWNLOAD_URL: + serviceImpl.generateDownloadUrl( + (com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse>) + responseObserver); + break; + case METHODID_LIST_RUNTIMES: + serviceImpl.listRuntimes( + (com.google.cloud.functions.v2alpha.ListRuntimesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class FunctionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + FunctionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("FunctionService"); + } + } + + private static final class FunctionServiceFileDescriptorSupplier + extends FunctionServiceBaseDescriptorSupplier { + FunctionServiceFileDescriptorSupplier() {} + } + + private static final class FunctionServiceMethodDescriptorSupplier + extends FunctionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + FunctionServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (FunctionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new FunctionServiceFileDescriptorSupplier()) + .addMethod(getGetFunctionMethod()) + .addMethod(getListFunctionsMethod()) + .addMethod(getCreateFunctionMethod()) + .addMethod(getUpdateFunctionMethod()) + .addMethod(getDeleteFunctionMethod()) + .addMethod(getGenerateUploadUrlMethod()) + .addMethod(getGenerateDownloadUrlMethod()) + .addMethod(getListRuntimesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java b/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java new file mode 100644 index 00000000..1b00ba30 --- /dev/null +++ b/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java @@ -0,0 +1,1302 @@ +/* + * 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. + */ +package com.google.cloud.functions.v2beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                              + * Google Cloud Functions is used to deploy functions that are executed by
                              + * Google in response to various events. Data connected with that event is
                              + * passed to a function as the input data.
                              + * A **function** is a resource which describes a function that should be
                              + * executed and how it is triggered.
                              + * 
                              + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/functions/v2beta/functions.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class FunctionServiceGrpc { + + private FunctionServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.functions.v2beta.FunctionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.GetFunctionRequest, + com.google.cloud.functions.v2beta.Function> + getGetFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFunction", + requestType = com.google.cloud.functions.v2beta.GetFunctionRequest.class, + responseType = com.google.cloud.functions.v2beta.Function.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.GetFunctionRequest, + com.google.cloud.functions.v2beta.Function> + getGetFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.GetFunctionRequest, + com.google.cloud.functions.v2beta.Function> + getGetFunctionMethod; + if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { + FunctionServiceGrpc.getGetFunctionMethod = + getGetFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.GetFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.Function.getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("GetFunction")) + .build(); + } + } + } + return getGetFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.ListFunctionsRequest, + com.google.cloud.functions.v2beta.ListFunctionsResponse> + getListFunctionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFunctions", + requestType = com.google.cloud.functions.v2beta.ListFunctionsRequest.class, + responseType = com.google.cloud.functions.v2beta.ListFunctionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.ListFunctionsRequest, + com.google.cloud.functions.v2beta.ListFunctionsResponse> + getListFunctionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.ListFunctionsRequest, + com.google.cloud.functions.v2beta.ListFunctionsResponse> + getListFunctionsMethod; + if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { + FunctionServiceGrpc.getListFunctionsMethod = + getListFunctionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.ListFunctionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.ListFunctionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("ListFunctions")) + .build(); + } + } + } + return getListFunctionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.CreateFunctionRequest, com.google.longrunning.Operation> + getCreateFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFunction", + requestType = com.google.cloud.functions.v2beta.CreateFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.CreateFunctionRequest, com.google.longrunning.Operation> + getCreateFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.CreateFunctionRequest, + com.google.longrunning.Operation> + getCreateFunctionMethod; + if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { + FunctionServiceGrpc.getCreateFunctionMethod = + getCreateFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.CreateFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("CreateFunction")) + .build(); + } + } + } + return getCreateFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.UpdateFunctionRequest, com.google.longrunning.Operation> + getUpdateFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFunction", + requestType = com.google.cloud.functions.v2beta.UpdateFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.UpdateFunctionRequest, com.google.longrunning.Operation> + getUpdateFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.UpdateFunctionRequest, + com.google.longrunning.Operation> + getUpdateFunctionMethod; + if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { + FunctionServiceGrpc.getUpdateFunctionMethod = + getUpdateFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.UpdateFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("UpdateFunction")) + .build(); + } + } + } + return getUpdateFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.DeleteFunctionRequest, com.google.longrunning.Operation> + getDeleteFunctionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFunction", + requestType = com.google.cloud.functions.v2beta.DeleteFunctionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.DeleteFunctionRequest, com.google.longrunning.Operation> + getDeleteFunctionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.DeleteFunctionRequest, + com.google.longrunning.Operation> + getDeleteFunctionMethod; + if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { + FunctionServiceGrpc.getDeleteFunctionMethod = + getDeleteFunctionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.DeleteFunctionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("DeleteFunction")) + .build(); + } + } + } + return getDeleteFunctionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest, + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse> + getGenerateUploadUrlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateUploadUrl", + requestType = com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.class, + responseType = com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest, + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse> + getGenerateUploadUrlMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest, + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse> + getGenerateUploadUrlMethod; + if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { + FunctionServiceGrpc.getGenerateUploadUrlMethod = + getGenerateUploadUrlMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("GenerateUploadUrl")) + .build(); + } + } + } + return getGenerateUploadUrlMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse> + getGenerateDownloadUrlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateDownloadUrl", + requestType = com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.class, + responseType = com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse> + getGenerateDownloadUrlMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse> + getGenerateDownloadUrlMethod; + if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) + == null) { + FunctionServiceGrpc.getGenerateDownloadUrlMethod = + getGenerateDownloadUrlMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("GenerateDownloadUrl")) + .build(); + } + } + } + return getGenerateDownloadUrlMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.ListRuntimesRequest, + com.google.cloud.functions.v2beta.ListRuntimesResponse> + getListRuntimesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", + requestType = com.google.cloud.functions.v2beta.ListRuntimesRequest.class, + responseType = com.google.cloud.functions.v2beta.ListRuntimesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.ListRuntimesRequest, + com.google.cloud.functions.v2beta.ListRuntimesResponse> + getListRuntimesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.functions.v2beta.ListRuntimesRequest, + com.google.cloud.functions.v2beta.ListRuntimesResponse> + getListRuntimesMethod; + if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { + synchronized (FunctionServiceGrpc.class) { + if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { + FunctionServiceGrpc.getListRuntimesMethod = + getListRuntimesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.ListRuntimesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.functions.v2beta.ListRuntimesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FunctionServiceMethodDescriptorSupplier("ListRuntimes")) + .build(); + } + } + } + return getListRuntimesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static FunctionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceStub(channel, callOptions); + } + }; + return FunctionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static FunctionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceBlockingStub(channel, callOptions); + } + }; + return FunctionServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static FunctionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FunctionServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceFutureStub(channel, callOptions); + } + }; + return FunctionServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                              +   * Google Cloud Functions is used to deploy functions that are executed by
                              +   * Google in response to various events. Data connected with that event is
                              +   * passed to a function as the input data.
                              +   * A **function** is a resource which describes a function that should be
                              +   * executed and how it is triggered.
                              +   * 
                              + */ + public abstract static class FunctionServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
                              +     * Returns a function with the given name from the requested project.
                              +     * 
                              + */ + public void getFunction( + com.google.cloud.functions.v2beta.GetFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetFunctionMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Returns a list of functions that belong to the requested project.
                              +     * 
                              + */ + public void listFunctions( + com.google.cloud.functions.v2beta.ListFunctionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFunctionsMethod(), responseObserver); + } + + /** + * + * + *
                              +     * 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.
                              +     * 
                              + */ + public void createFunction( + com.google.cloud.functions.v2beta.CreateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFunctionMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Updates existing function.
                              +     * 
                              + */ + public void updateFunction( + com.google.cloud.functions.v2beta.UpdateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFunctionMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Deletes a function with the given name from the specified project. If the
                              +     * given function is used by some trigger, the trigger will be updated to
                              +     * remove this function.
                              +     * 
                              + */ + public void deleteFunction( + com.google.cloud.functions.v2beta.DeleteFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFunctionMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Returns a signed URL for uploading a function source code.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              +     * Once the function source code upload is complete, the used signed
                              +     * URL should be provided in CreateFunction or UpdateFunction request
                              +     * as a reference to the function source code.
                              +     * When uploading source code to the generated signed URL, please follow
                              +     * these restrictions:
                              +     * * Source file type should be a zip file.
                              +     * * No credentials should be attached - the signed URLs provide access to the
                              +     *   target bucket using internal service identity; if credentials were
                              +     *   attached, the identity from the credentials would be used, but that
                              +     *   identity does not have permissions to upload files to the URL.
                              +     * When making a HTTP PUT request, these two headers need to be specified:
                              +     * * `content-type: application/zip`
                              +     * And this header SHOULD NOT be specified:
                              +     * * `Authorization: Bearer YOUR_TOKEN`
                              +     * 
                              + */ + public void generateUploadUrl( + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateUploadUrlMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Returns a signed URL for downloading deployed function source code.
                              +     * The URL is only valid for a limited period and should be used within
                              +     * 30 minutes of generation.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              +     * 
                              + */ + public void generateDownloadUrl( + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateDownloadUrlMethod(), responseObserver); + } + + /** + * + * + *
                              +     * Returns a list of runtimes that are supported for the requested project.
                              +     * 
                              + */ + public void listRuntimes( + com.google.cloud.functions.v2beta.ListRuntimesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRuntimesMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.GetFunctionRequest, + com.google.cloud.functions.v2beta.Function>(this, METHODID_GET_FUNCTION))) + .addMethod( + getListFunctionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.ListFunctionsRequest, + com.google.cloud.functions.v2beta.ListFunctionsResponse>( + this, METHODID_LIST_FUNCTIONS))) + .addMethod( + getCreateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.CreateFunctionRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_FUNCTION))) + .addMethod( + getUpdateFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.UpdateFunctionRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_FUNCTION))) + .addMethod( + getDeleteFunctionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.DeleteFunctionRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_FUNCTION))) + .addMethod( + getGenerateUploadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest, + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse>( + this, METHODID_GENERATE_UPLOAD_URL))) + .addMethod( + getGenerateDownloadUrlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest, + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse>( + this, METHODID_GENERATE_DOWNLOAD_URL))) + .addMethod( + getListRuntimesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.functions.v2beta.ListRuntimesRequest, + com.google.cloud.functions.v2beta.ListRuntimesResponse>( + this, METHODID_LIST_RUNTIMES))) + .build(); + } + } + + /** + * + * + *
                              +   * Google Cloud Functions is used to deploy functions that are executed by
                              +   * Google in response to various events. Data connected with that event is
                              +   * passed to a function as the input data.
                              +   * A **function** is a resource which describes a function that should be
                              +   * executed and how it is triggered.
                              +   * 
                              + */ + public static final class FunctionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private FunctionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceStub(channel, callOptions); + } + + /** + * + * + *
                              +     * Returns a function with the given name from the requested project.
                              +     * 
                              + */ + public void getFunction( + com.google.cloud.functions.v2beta.GetFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Returns a list of functions that belong to the requested project.
                              +     * 
                              + */ + public void listFunctions( + com.google.cloud.functions.v2beta.ListFunctionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * 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.
                              +     * 
                              + */ + public void createFunction( + com.google.cloud.functions.v2beta.CreateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Updates existing function.
                              +     * 
                              + */ + public void updateFunction( + com.google.cloud.functions.v2beta.UpdateFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Deletes a function with the given name from the specified project. If the
                              +     * given function is used by some trigger, the trigger will be updated to
                              +     * remove this function.
                              +     * 
                              + */ + public void deleteFunction( + com.google.cloud.functions.v2beta.DeleteFunctionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Returns a signed URL for uploading a function source code.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              +     * Once the function source code upload is complete, the used signed
                              +     * URL should be provided in CreateFunction or UpdateFunction request
                              +     * as a reference to the function source code.
                              +     * When uploading source code to the generated signed URL, please follow
                              +     * these restrictions:
                              +     * * Source file type should be a zip file.
                              +     * * No credentials should be attached - the signed URLs provide access to the
                              +     *   target bucket using internal service identity; if credentials were
                              +     *   attached, the identity from the credentials would be used, but that
                              +     *   identity does not have permissions to upload files to the URL.
                              +     * When making a HTTP PUT request, these two headers need to be specified:
                              +     * * `content-type: application/zip`
                              +     * And this header SHOULD NOT be specified:
                              +     * * `Authorization: Bearer YOUR_TOKEN`
                              +     * 
                              + */ + public void generateUploadUrl( + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Returns a signed URL for downloading deployed function source code.
                              +     * The URL is only valid for a limited period and should be used within
                              +     * 30 minutes of generation.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              +     * 
                              + */ + public void generateDownloadUrl( + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                              +     * Returns a list of runtimes that are supported for the requested project.
                              +     * 
                              + */ + public void listRuntimes( + com.google.cloud.functions.v2beta.ListRuntimesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
                              +   * Google Cloud Functions is used to deploy functions that are executed by
                              +   * Google in response to various events. Data connected with that event is
                              +   * passed to a function as the input data.
                              +   * A **function** is a resource which describes a function that should be
                              +   * executed and how it is triggered.
                              +   * 
                              + */ + public static final class FunctionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private FunctionServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
                              +     * Returns a function with the given name from the requested project.
                              +     * 
                              + */ + public com.google.cloud.functions.v2beta.Function getFunction( + com.google.cloud.functions.v2beta.GetFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFunctionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Returns a list of functions that belong to the requested project.
                              +     * 
                              + */ + public com.google.cloud.functions.v2beta.ListFunctionsResponse listFunctions( + com.google.cloud.functions.v2beta.ListFunctionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFunctionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * 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.
                              +     * 
                              + */ + public com.google.longrunning.Operation createFunction( + com.google.cloud.functions.v2beta.CreateFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFunctionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Updates existing function.
                              +     * 
                              + */ + public com.google.longrunning.Operation updateFunction( + com.google.cloud.functions.v2beta.UpdateFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Deletes a function with the given name from the specified project. If the
                              +     * given function is used by some trigger, the trigger will be updated to
                              +     * remove this function.
                              +     * 
                              + */ + public com.google.longrunning.Operation deleteFunction( + com.google.cloud.functions.v2beta.DeleteFunctionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Returns a signed URL for uploading a function source code.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              +     * Once the function source code upload is complete, the used signed
                              +     * URL should be provided in CreateFunction or UpdateFunction request
                              +     * as a reference to the function source code.
                              +     * When uploading source code to the generated signed URL, please follow
                              +     * these restrictions:
                              +     * * Source file type should be a zip file.
                              +     * * No credentials should be attached - the signed URLs provide access to the
                              +     *   target bucket using internal service identity; if credentials were
                              +     *   attached, the identity from the credentials would be used, but that
                              +     *   identity does not have permissions to upload files to the URL.
                              +     * When making a HTTP PUT request, these two headers need to be specified:
                              +     * * `content-type: application/zip`
                              +     * And this header SHOULD NOT be specified:
                              +     * * `Authorization: Bearer YOUR_TOKEN`
                              +     * 
                              + */ + public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse generateUploadUrl( + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Returns a signed URL for downloading deployed function source code.
                              +     * The URL is only valid for a limited period and should be used within
                              +     * 30 minutes of generation.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              +     * 
                              + */ + public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse generateDownloadUrl( + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); + } + + /** + * + * + *
                              +     * Returns a list of runtimes that are supported for the requested project.
                              +     * 
                              + */ + public com.google.cloud.functions.v2beta.ListRuntimesResponse listRuntimes( + com.google.cloud.functions.v2beta.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRuntimesMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
                              +   * Google Cloud Functions is used to deploy functions that are executed by
                              +   * Google in response to various events. Data connected with that event is
                              +   * passed to a function as the input data.
                              +   * A **function** is a resource which describes a function that should be
                              +   * executed and how it is triggered.
                              +   * 
                              + */ + public static final class FunctionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private FunctionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FunctionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FunctionServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
                              +     * Returns a function with the given name from the requested project.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2beta.Function> + getFunction(com.google.cloud.functions.v2beta.GetFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Returns a list of functions that belong to the requested project.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2beta.ListFunctionsResponse> + listFunctions(com.google.cloud.functions.v2beta.ListFunctionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * 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.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture + createFunction(com.google.cloud.functions.v2beta.CreateFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Updates existing function.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture + updateFunction(com.google.cloud.functions.v2beta.UpdateFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Deletes a function with the given name from the specified project. If the
                              +     * given function is used by some trigger, the trigger will be updated to
                              +     * remove this function.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteFunction(com.google.cloud.functions.v2beta.DeleteFunctionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Returns a signed URL for uploading a function source code.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              +     * Once the function source code upload is complete, the used signed
                              +     * URL should be provided in CreateFunction or UpdateFunction request
                              +     * as a reference to the function source code.
                              +     * When uploading source code to the generated signed URL, please follow
                              +     * these restrictions:
                              +     * * Source file type should be a zip file.
                              +     * * No credentials should be attached - the signed URLs provide access to the
                              +     *   target bucket using internal service identity; if credentials were
                              +     *   attached, the identity from the credentials would be used, but that
                              +     *   identity does not have permissions to upload files to the URL.
                              +     * When making a HTTP PUT request, these two headers need to be specified:
                              +     * * `content-type: application/zip`
                              +     * And this header SHOULD NOT be specified:
                              +     * * `Authorization: Bearer YOUR_TOKEN`
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse> + generateUploadUrl(com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Returns a signed URL for downloading deployed function source code.
                              +     * The URL is only valid for a limited period and should be used within
                              +     * 30 minutes of generation.
                              +     * For more information about the signed URL usage see:
                              +     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse> + generateDownloadUrl(com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request); + } + + /** + * + * + *
                              +     * Returns a list of runtimes that are supported for the requested project.
                              +     * 
                              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.functions.v2beta.ListRuntimesResponse> + listRuntimes(com.google.cloud.functions.v2beta.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_FUNCTION = 0; + private static final int METHODID_LIST_FUNCTIONS = 1; + private static final int METHODID_CREATE_FUNCTION = 2; + private static final int METHODID_UPDATE_FUNCTION = 3; + private static final int METHODID_DELETE_FUNCTION = 4; + private static final int METHODID_GENERATE_UPLOAD_URL = 5; + private static final int METHODID_GENERATE_DOWNLOAD_URL = 6; + private static final int METHODID_LIST_RUNTIMES = 7; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final FunctionServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(FunctionServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_FUNCTION: + serviceImpl.getFunction( + (com.google.cloud.functions.v2beta.GetFunctionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FUNCTIONS: + serviceImpl.listFunctions( + (com.google.cloud.functions.v2beta.ListFunctionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FUNCTION: + serviceImpl.createFunction( + (com.google.cloud.functions.v2beta.CreateFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FUNCTION: + serviceImpl.updateFunction( + (com.google.cloud.functions.v2beta.UpdateFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FUNCTION: + serviceImpl.deleteFunction( + (com.google.cloud.functions.v2beta.DeleteFunctionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_UPLOAD_URL: + serviceImpl.generateUploadUrl( + (com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse>) + responseObserver); + break; + case METHODID_GENERATE_DOWNLOAD_URL: + serviceImpl.generateDownloadUrl( + (com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse>) + responseObserver); + break; + case METHODID_LIST_RUNTIMES: + serviceImpl.listRuntimes( + (com.google.cloud.functions.v2beta.ListRuntimesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class FunctionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + FunctionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("FunctionService"); + } + } + + private static final class FunctionServiceFileDescriptorSupplier + extends FunctionServiceBaseDescriptorSupplier { + FunctionServiceFileDescriptorSupplier() {} + } + + private static final class FunctionServiceMethodDescriptorSupplier + extends FunctionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + FunctionServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (FunctionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new FunctionServiceFileDescriptorSupplier()) + .addMethod(getGetFunctionMethod()) + .addMethod(getListFunctionsMethod()) + .addMethod(getCreateFunctionMethod()) + .addMethod(getUpdateFunctionMethod()) + .addMethod(getDeleteFunctionMethod()) + .addMethod(getGenerateUploadUrlMethod()) + .addMethod(getGenerateDownloadUrlMethod()) + .addMethod(getListRuntimesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java deleted file mode 100644 index b0e626b3..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v1/functions.proto - -package com.google.cloud.functions.v1; - -public interface CallFunctionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.CallFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * Required. The name of the function to be called.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
                              -   * Required. The name of the function to be called.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
                              -   * Required. Input to be passed to the function.
                              -   * 
                              - * - * string data = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The data. - */ - java.lang.String getData(); - /** - *
                              -   * Required. Input to be passed to the function.
                              -   * 
                              - * - * string data = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for data. - */ - com.google.protobuf.ByteString - getDataBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java deleted file mode 100644 index cb01501d..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v1/functions.proto - -package com.google.cloud.functions.v1; - -public interface CreateFunctionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.CreateFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * Required. The project and location in which the function should be created, specified
                              -   * in the format `projects/*/locations/*`
                              -   * 
                              - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The location. - */ - java.lang.String getLocation(); - /** - *
                              -   * Required. The project and location in which the function should be created, specified
                              -   * in the format `projects/*/locations/*`
                              -   * 
                              - * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for location. - */ - com.google.protobuf.ByteString - getLocationBytes(); - - /** - *
                              -   * Required. Function to be created.
                              -   * 
                              - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the function field is set. - */ - boolean hasFunction(); - /** - *
                              -   * Required. Function to be created.
                              -   * 
                              - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The function. - */ - com.google.cloud.functions.v1.CloudFunction getFunction(); - /** - *
                              -   * Required. Function to be created.
                              -   * 
                              - * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java deleted file mode 100644 index 72025db3..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v1/functions.proto - -package com.google.cloud.functions.v1; - -public interface DeleteFunctionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.DeleteFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * Required. The name of the function which should be deleted.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
                              -   * Required. The name of the function which should be deleted.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java deleted file mode 100644 index a0ca1445..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v1/operations.proto - -package com.google.cloud.functions.v1; - -public final class FunctionsOperationsProto { - private FunctionsOperationsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*google/cloud/functions/v1/operations.p" + - "roto\022\031google.cloud.functions.v1\032\031google/" + - "protobuf/any.proto\032\037google/protobuf/time" + - "stamp.proto\"\205\002\n\023OperationMetadataV1\022\016\n\006t" + - "arget\030\001 \001(\t\0226\n\004type\030\002 \001(\0162(.google.cloud" + - ".functions.v1.OperationType\022%\n\007request\030\003" + - " \001(\0132\024.google.protobuf.Any\022\022\n\nversion_id" + - "\030\004 \001(\003\022/\n\013update_time\030\005 \001(\0132\032.google.pro" + - "tobuf.Timestamp\022\020\n\010build_id\030\006 \001(\t\022\024\n\014sou" + - "rce_token\030\007 \001(\t\022\022\n\nbuild_name\030\010 \001(\t*i\n\rO" + - "perationType\022\031\n\025OPERATION_UNSPECIFIED\020\000\022" + - "\023\n\017CREATE_FUNCTION\020\001\022\023\n\017UPDATE_FUNCTION\020" + - "\002\022\023\n\017DELETE_FUNCTION\020\003B\177\n\035com.google.clo" + - "ud.functions.v1B\030FunctionsOperationsProt" + - "oP\001ZBgoogle.golang.org/genproto/googleap" + - "is/cloud/functions/v1;functionsb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor, - new java.lang.String[] { "Target", "Type", "Request", "VersionId", "UpdateTime", "BuildId", "SourceToken", "BuildName", }); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java deleted file mode 100644 index 5bf34e9e..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java +++ /dev/null @@ -1,515 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v1/functions.proto - -package com.google.cloud.functions.v1; - -public final class FunctionsProto { - private FunctionsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CloudFunction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_SourceRepository_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_EventTrigger_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_FailurePolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_SecretVolume_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/functions/v1/functions.pr" + - "oto\022\031google.cloud.functions.v1\032\034google/a" + - "pi/annotations.proto\032\027google/api/client." + - "proto\032\037google/api/field_behavior.proto\032\031" + - "google/api/resource.proto\032\036google/iam/v1" + - "/iam_policy.proto\032\032google/iam/v1/policy." + - "proto\032#google/longrunning/operations.pro" + - "to\032\036google/protobuf/duration.proto\032 goog" + - "le/protobuf/field_mask.proto\032\037google/pro" + - "tobuf/timestamp.proto\"\347\021\n\rCloudFunction\022" + - "\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\034\n\022so" + - "urce_archive_url\030\003 \001(\tH\000\022H\n\021source_repos" + - "itory\030\004 \001(\0132+.google.cloud.functions.v1." + - "SourceRepositoryH\000\022\033\n\021source_upload_url\030" + - "\020 \001(\tH\000\022@\n\rhttps_trigger\030\005 \001(\0132\'.google." + - "cloud.functions.v1.HttpsTriggerH\001\022@\n\reve" + - "nt_trigger\030\006 \001(\0132\'.google.cloud.function" + - "s.v1.EventTriggerH\001\022C\n\006status\030\007 \001(\0162..go" + - "ogle.cloud.functions.v1.CloudFunctionSta" + - "tusB\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.protobu" + - "f.Duration\022\033\n\023available_memory_mb\030\n \001(\005\022" + - "\035\n\025service_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.CloudF" + - "unction.LabelsEntry\022a\n\025environment_varia" + - "bles\030\021 \003(\0132B.google.cloud.functions.v1.C" + - "loudFunction.EnvironmentVariablesEntry\022l" + - "\n\033build_environment_variables\030\034 \003(\0132G.go" + - "ogle.cloud.functions.v1.CloudFunction.Bu" + - "ildEnvironmentVariablesEntry\022\017\n\007network\030" + - "\022 \001(\t\022\025\n\rmax_instances\030\024 \001(\005\022\025\n\rmin_inst" + - "ances\030 \001(\005\022\025\n\rvpc_connector\030\026 \001(\t\022j\n\035vp" + - "c_connector_egress_settings\030\027 \001(\0162C.goog" + - "le.cloud.functions.v1.CloudFunction.VpcC" + - "onnectorEgressSettings\022R\n\020ingress_settin" + - "gs\030\030 \001(\01628.google.cloud.functions.v1.Clo" + - "udFunction.IngressSettings\022<\n\014kms_key_na" + - "me\030\031 \001(\tB&\372A#\n!cloudkms.googleapis.com/C" + - "ryptoKey\022\031\n\021build_worker_pool\030\032 \001(\t\022\025\n\010b" + - "uild_id\030\033 \001(\tB\003\340A\003\022\027\n\nbuild_name\030! \001(\tB\003" + - "\340A\003\022M\n\034secret_environment_variables\030\035 \003(" + - "\0132\'.google.cloud.functions.v1.SecretEnvV" + - "ar\022?\n\016secret_volumes\030\036 \003(\0132\'.google.clou" + - "d.functions.v1.SecretVolume\022\031\n\014source_to" + - "ken\030\037 \001(\tB\003\340A\004\022J\n\021docker_repository\030\" \001(" + - "\tB/\372A,\n*artifactregistry.googleapis.com/" + - "Repository\022P\n\017docker_registry\030# \001(\01627.go" + - "ogle.cloud.functions.v1.CloudFunction.Do" + - "ckerRegistry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001\032;\n\031EnvironmentVariab" + - "lesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + - "\032@\n\036BuildEnvironmentVariablesEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\032VpcConnect" + - "orEgressSettings\022-\n)VPC_CONNECTOR_EGRESS" + - "_SETTINGS_UNSPECIFIED\020\000\022\027\n\023PRIVATE_RANGE" + - "S_ONLY\020\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n\017IngressSett" + - "ings\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\016DockerReg" + - "istry\022\037\n\033DOCKER_REGISTRY_UNSPECIFIED\020\000\022\026" + - "\n\022CONTAINER_REGISTRY\020\001\022\025\n\021ARTIFACT_REGIS" + - "TRY\020\002:n\352Ak\n+cloudfunctions.googleapis.co" + - "m/CloudFunction\022\n\032GenerateD" + - "ownloadUrlRequest\022\014\n\004name\030\001 \001(\t\022\022\n\nversi" + - "on_id\030\002 \001(\004\"3\n\033GenerateDownloadUrlRespon" + - "se\022\024\n\014download_url\030\001 \001(\t*\222\001\n\023CloudFuncti" + - "onStatus\022%\n!CLOUD_FUNCTION_STATUS_UNSPEC" + - "IFIED\020\000\022\n\n\006ACTIVE\020\001\022\013\n\007OFFLINE\020\002\022\026\n\022DEPL" + - "OY_IN_PROGRESS\020\003\022\026\n\022DELETE_IN_PROGRESS\020\004" + - "\022\013\n\007UNKNOWN\020\0052\227\021\n\025CloudFunctionsService\022" + - "\251\001\n\rListFunctions\022/.google.cloud.functio" + - "ns.v1.ListFunctionsRequest\0320.google.clou" + - "d.functions.v1.ListFunctionsResponse\"5\202\323" + - "\344\223\002/\022-/v1/{parent=projects/*/locations/*" + - "}/functions\022\244\001\n\013GetFunction\022-.google.clo" + - "ud.functions.v1.GetFunctionRequest\032(.goo" + - "gle.cloud.functions.v1.CloudFunction\"<\202\323" + - "\344\223\002/\022-/v1/{name=projects/*/locations/*/f" + - "unctions/*}\332A\004name\022\337\001\n\016CreateFunction\0220." + - "google.cloud.functions.v1.CreateFunction" + - "Request\032\035.google.longrunning.Operation\"|" + - "\202\323\344\223\002;\"//v1/{location=projects/*/locatio" + - "ns/*}/functions:\010function\332A\021location,fun" + - "ction\312A$\n\rCloudFunction\022\023OperationMetada" + - "taV1\022\335\001\n\016UpdateFunction\0220.google.cloud.f" + - "unctions.v1.UpdateFunctionRequest\032\035.goog" + - "le.longrunning.Operation\"z\202\323\344\223\002B26/v1/{f" + - "unction.name=projects/*/locations/*/func" + - "tions/*}:\010function\332A\010function\312A$\n\rCloudF" + - "unction\022\023OperationMetadataV1\022\316\001\n\016DeleteF" + - "unction\0220.google.cloud.functions.v1.Dele" + - "teFunctionRequest\032\035.google.longrunning.O" + - "peration\"k\202\323\344\223\002/*-/v1/{name=projects/*/l" + - "ocations/*/functions/*}\332A\004name\312A,\n\025googl" + - "e.protobuf.Empty\022\023OperationMetadataV1\022\272\001" + - "\n\014CallFunction\022..google.cloud.functions." + - "v1.CallFunctionRequest\032/.google.cloud.fu" + - "nctions.v1.CallFunctionResponse\"I\202\323\344\223\0027\"" + - "2/v1/{name=projects/*/locations/*/functi" + - "ons/*}:call:\001*\332A\tname,data\022\312\001\n\021GenerateU" + - "ploadUrl\0223.google.cloud.functions.v1.Gen" + - "erateUploadUrlRequest\0324.google.cloud.fun" + - "ctions.v1.GenerateUploadUrlResponse\"J\202\323\344" + - "\223\002D\"?/v1/{parent=projects/*/locations/*}" + - "/functions:generateUploadUrl:\001*\022\322\001\n\023Gene" + - "rateDownloadUrl\0225.google.cloud.functions" + - ".v1.GenerateDownloadUrlRequest\0326.google." + - "cloud.functions.v1.GenerateDownloadUrlRe" + - "sponse\"L\202\323\344\223\002F\"A/v1/{name=projects/*/loc" + - "ations/*/functions/*}:generateDownloadUr" + - "l:\001*\022\224\001\n\014SetIamPolicy\022\".google.iam.v1.Se" + - "tIamPolicyRequest\032\025.google.iam.v1.Policy" + - "\"I\202\323\344\223\002C\">/v1/{resource=projects/*/locat" + - "ions/*/functions/*}:setIamPolicy:\001*\022\221\001\n\014" + - "GetIamPolicy\022\".google.iam.v1.GetIamPolic" + - "yRequest\032\025.google.iam.v1.Policy\"F\202\323\344\223\002@\022" + - ">/v1/{resource=projects/*/locations/*/fu" + - "nctions/*}:getIamPolicy\022\272\001\n\022TestIamPermi" + - "ssions\022(.google.iam.v1.TestIamPermission" + - "sRequest\032).google.iam.v1.TestIamPermissi" + - "onsResponse\"O\202\323\344\223\002I\"D/v1/{resource=proje" + - "cts/*/locations/*/functions/*}:testIamPe" + - "rmissions:\001*\032Q\312A\035cloudfunctions.googleap" + - "is.com\322A.https://www.googleapis.com/auth" + - "/cloud-platformB\350\002\n\035com.google.cloud.fun" + - "ctions.v1B\016FunctionsProtoP\001ZBgoogle.gola" + - "ng.org/genproto/googleapis/cloud/functio" + - "ns/v1;functions\242\002\003GCF\352Ao\n*artifactregist" + - "ry.googleapis.com/Repository\022Aprojects/{" + - "project}/locations/{location}/repositori" + - "es/{repository}\352Ax\n!cloudkms.googleapis." + - "com/CryptoKey\022Sprojects/{project}/locati" + - "ons/{location}/keyRings/{key_ring}/crypt" + - "oKeys/{crypto_key}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_functions_v1_CloudFunction_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CloudFunction_descriptor, - new java.lang.String[] { "Name", "Description", "SourceArchiveUrl", "SourceRepository", "SourceUploadUrl", "HttpsTrigger", "EventTrigger", "Status", "EntryPoint", "Runtime", "Timeout", "AvailableMemoryMb", "ServiceAccountEmail", "UpdateTime", "VersionId", "Labels", "EnvironmentVariables", "BuildEnvironmentVariables", "Network", "MaxInstances", "MinInstances", "VpcConnector", "VpcConnectorEgressSettings", "IngressSettings", "KmsKeyName", "BuildWorkerPool", "BuildId", "BuildName", "SecretEnvironmentVariables", "SecretVolumes", "SourceToken", "DockerRepository", "DockerRegistry", "SourceCode", "Trigger", }); - internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor = - internal_static_google_cloud_functions_v1_CloudFunction_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v1_CloudFunction_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v1_CloudFunction_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_functions_v1_SourceRepository_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_SourceRepository_descriptor, - new java.lang.String[] { "Url", "DeployedUrl", }); - internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor, - new java.lang.String[] { "Url", "SecurityLevel", }); - internal_static_google_cloud_functions_v1_EventTrigger_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_EventTrigger_descriptor, - new java.lang.String[] { "EventType", "Resource", "Service", "FailurePolicy", }); - internal_static_google_cloud_functions_v1_FailurePolicy_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_FailurePolicy_descriptor, - new java.lang.String[] { "Retry", "Action", }); - internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor = - internal_static_google_cloud_functions_v1_FailurePolicy_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor, - new java.lang.String[] { "Key", "ProjectId", "Secret", "Version", }); - internal_static_google_cloud_functions_v1_SecretVolume_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_SecretVolume_descriptor, - new java.lang.String[] { "MountPath", "ProjectId", "Secret", "Versions", }); - internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor = - internal_static_google_cloud_functions_v1_SecretVolume_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor, - new java.lang.String[] { "Version", "Path", }); - internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor, - new java.lang.String[] { "Location", "Function", }); - internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor, - new java.lang.String[] { "Function", "UpdateMask", }); - internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor, - new java.lang.String[] { "Functions", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor, - new java.lang.String[] { "Name", "Data", }); - internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor, - new java.lang.String[] { "ExecutionId", "Result", "Error", }); - internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor, - new java.lang.String[] { "Parent", "KmsKeyName", }); - internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor, - new java.lang.String[] { "UploadUrl", }); - internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor, - new java.lang.String[] { "Name", "VersionId", }); - internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor, - new java.lang.String[] { "DownloadUrl", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java deleted file mode 100644 index 42050ee8..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v1/functions.proto - -package com.google.cloud.functions.v1; - -public interface GetFunctionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.GetFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * Required. The name of the function which details should be obtained.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
                              -   * Required. The name of the function which details should be obtained.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v2/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java deleted file mode 100644 index a6620025..00000000 --- a/owl-bot-staging/v2/grpc-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionServiceGrpc.java +++ /dev/null @@ -1,1021 +0,0 @@ -package com.google.cloud.functions.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
                              - * Google Cloud Functions is used to deploy functions that are executed by
                              - * Google in response to various events. Data connected with that event is
                              - * passed to a function as the input data.
                              - * A **function** is a resource which describes a function that should be
                              - * executed and how it is triggered.
                              - * 
                              - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/functions/v2/functions.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class FunctionServiceGrpc { - - private FunctionServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.functions.v2.FunctionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFunction", - requestType = com.google.cloud.functions.v2.GetFunctionRequest.class, - responseType = com.google.cloud.functions.v2.Function.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFunctionMethod() { - io.grpc.MethodDescriptor getGetFunctionMethod; - if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { - FunctionServiceGrpc.getGetFunctionMethod = getGetFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2.GetFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2.Function.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GetFunction")) - .build(); - } - } - } - return getGetFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFunctionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFunctions", - requestType = com.google.cloud.functions.v2.ListFunctionsRequest.class, - responseType = com.google.cloud.functions.v2.ListFunctionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFunctionsMethod() { - io.grpc.MethodDescriptor getListFunctionsMethod; - if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { - FunctionServiceGrpc.getListFunctionsMethod = getListFunctionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2.ListFunctionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2.ListFunctionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListFunctions")) - .build(); - } - } - } - return getListFunctionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFunction", - requestType = com.google.cloud.functions.v2.CreateFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFunctionMethod() { - io.grpc.MethodDescriptor getCreateFunctionMethod; - if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { - FunctionServiceGrpc.getCreateFunctionMethod = getCreateFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2.CreateFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("CreateFunction")) - .build(); - } - } - } - return getCreateFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFunction", - requestType = com.google.cloud.functions.v2.UpdateFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateFunctionMethod() { - io.grpc.MethodDescriptor getUpdateFunctionMethod; - if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { - FunctionServiceGrpc.getUpdateFunctionMethod = getUpdateFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2.UpdateFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("UpdateFunction")) - .build(); - } - } - } - return getUpdateFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFunction", - requestType = com.google.cloud.functions.v2.DeleteFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteFunctionMethod() { - io.grpc.MethodDescriptor getDeleteFunctionMethod; - if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { - FunctionServiceGrpc.getDeleteFunctionMethod = getDeleteFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2.DeleteFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("DeleteFunction")) - .build(); - } - } - } - return getDeleteFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateUploadUrlMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateUploadUrl", - requestType = com.google.cloud.functions.v2.GenerateUploadUrlRequest.class, - responseType = com.google.cloud.functions.v2.GenerateUploadUrlResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateUploadUrlMethod() { - io.grpc.MethodDescriptor getGenerateUploadUrlMethod; - if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { - FunctionServiceGrpc.getGenerateUploadUrlMethod = getGenerateUploadUrlMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2.GenerateUploadUrlRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2.GenerateUploadUrlResponse.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GenerateUploadUrl")) - .build(); - } - } - } - return getGenerateUploadUrlMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateDownloadUrl", - requestType = com.google.cloud.functions.v2.GenerateDownloadUrlRequest.class, - responseType = com.google.cloud.functions.v2.GenerateDownloadUrlResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateDownloadUrlMethod() { - io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; - if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { - FunctionServiceGrpc.getGenerateDownloadUrlMethod = getGenerateDownloadUrlMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2.GenerateDownloadUrlRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2.GenerateDownloadUrlResponse.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GenerateDownloadUrl")) - .build(); - } - } - } - return getGenerateDownloadUrlMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRuntimesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", - requestType = com.google.cloud.functions.v2.ListRuntimesRequest.class, - responseType = com.google.cloud.functions.v2.ListRuntimesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRuntimesMethod() { - io.grpc.MethodDescriptor getListRuntimesMethod; - if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { - FunctionServiceGrpc.getListRuntimesMethod = getListRuntimesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2.ListRuntimesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2.ListRuntimesResponse.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListRuntimes")) - .build(); - } - } - } - return getListRuntimesMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static FunctionServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceStub(channel, callOptions); - } - }; - return FunctionServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static FunctionServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceBlockingStub(channel, callOptions); - } - }; - return FunctionServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static FunctionServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceFutureStub(channel, callOptions); - } - }; - return FunctionServiceFutureStub.newStub(factory, channel); - } - - /** - *
                              -   * Google Cloud Functions is used to deploy functions that are executed by
                              -   * Google in response to various events. Data connected with that event is
                              -   * passed to a function as the input data.
                              -   * A **function** is a resource which describes a function that should be
                              -   * executed and how it is triggered.
                              -   * 
                              - */ - public static abstract class FunctionServiceImplBase implements io.grpc.BindableService { - - /** - *
                              -     * Returns a function with the given name from the requested project.
                              -     * 
                              - */ - public void getFunction(com.google.cloud.functions.v2.GetFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFunctionMethod(), responseObserver); - } - - /** - *
                              -     * Returns a list of functions that belong to the requested project.
                              -     * 
                              - */ - public void listFunctions(com.google.cloud.functions.v2.ListFunctionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFunctionsMethod(), responseObserver); - } - - /** - *
                              -     * 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.
                              -     * 
                              - */ - public void createFunction(com.google.cloud.functions.v2.CreateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFunctionMethod(), responseObserver); - } - - /** - *
                              -     * Updates existing function.
                              -     * 
                              - */ - public void updateFunction(com.google.cloud.functions.v2.UpdateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFunctionMethod(), responseObserver); - } - - /** - *
                              -     * Deletes a function with the given name from the specified project. If the
                              -     * given function is used by some trigger, the trigger will be updated to
                              -     * remove this function.
                              -     * 
                              - */ - public void deleteFunction(com.google.cloud.functions.v2.DeleteFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFunctionMethod(), responseObserver); - } - - /** - *
                              -     * Returns a signed URL for uploading a function source code.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              -     * Once the function source code upload is complete, the used signed
                              -     * URL should be provided in CreateFunction or UpdateFunction request
                              -     * as a reference to the function source code.
                              -     * When uploading source code to the generated signed URL, please follow
                              -     * these restrictions:
                              -     * * Source file type should be a zip file.
                              -     * * No credentials should be attached - the signed URLs provide access to the
                              -     *   target bucket using internal service identity; if credentials were
                              -     *   attached, the identity from the credentials would be used, but that
                              -     *   identity does not have permissions to upload files to the URL.
                              -     * When making a HTTP PUT request, these two headers need to be specified:
                              -     * * `content-type: application/zip`
                              -     * And this header SHOULD NOT be specified:
                              -     * * `Authorization: Bearer YOUR_TOKEN`
                              -     * 
                              - */ - public void generateUploadUrl(com.google.cloud.functions.v2.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateUploadUrlMethod(), responseObserver); - } - - /** - *
                              -     * Returns a signed URL for downloading deployed function source code.
                              -     * The URL is only valid for a limited period and should be used within
                              -     * 30 minutes of generation.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              -     * 
                              - */ - public void generateDownloadUrl(com.google.cloud.functions.v2.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateDownloadUrlMethod(), responseObserver); - } - - /** - *
                              -     * Returns a list of runtimes that are supported for the requested project.
                              -     * 
                              - */ - public void listRuntimes(com.google.cloud.functions.v2.ListRuntimesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuntimesMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2.GetFunctionRequest, - com.google.cloud.functions.v2.Function>( - this, METHODID_GET_FUNCTION))) - .addMethod( - getListFunctionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2.ListFunctionsRequest, - com.google.cloud.functions.v2.ListFunctionsResponse>( - this, METHODID_LIST_FUNCTIONS))) - .addMethod( - getCreateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2.CreateFunctionRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_FUNCTION))) - .addMethod( - getUpdateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2.UpdateFunctionRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_FUNCTION))) - .addMethod( - getDeleteFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2.DeleteFunctionRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_FUNCTION))) - .addMethod( - getGenerateUploadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2.GenerateUploadUrlRequest, - com.google.cloud.functions.v2.GenerateUploadUrlResponse>( - this, METHODID_GENERATE_UPLOAD_URL))) - .addMethod( - getGenerateDownloadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2.GenerateDownloadUrlRequest, - com.google.cloud.functions.v2.GenerateDownloadUrlResponse>( - this, METHODID_GENERATE_DOWNLOAD_URL))) - .addMethod( - getListRuntimesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2.ListRuntimesRequest, - com.google.cloud.functions.v2.ListRuntimesResponse>( - this, METHODID_LIST_RUNTIMES))) - .build(); - } - } - - /** - *
                              -   * Google Cloud Functions is used to deploy functions that are executed by
                              -   * Google in response to various events. Data connected with that event is
                              -   * passed to a function as the input data.
                              -   * A **function** is a resource which describes a function that should be
                              -   * executed and how it is triggered.
                              -   * 
                              - */ - public static final class FunctionServiceStub extends io.grpc.stub.AbstractAsyncStub { - private FunctionServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceStub(channel, callOptions); - } - - /** - *
                              -     * Returns a function with the given name from the requested project.
                              -     * 
                              - */ - public void getFunction(com.google.cloud.functions.v2.GetFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Returns a list of functions that belong to the requested project.
                              -     * 
                              - */ - public void listFunctions(com.google.cloud.functions.v2.ListFunctionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * 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.
                              -     * 
                              - */ - public void createFunction(com.google.cloud.functions.v2.CreateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Updates existing function.
                              -     * 
                              - */ - public void updateFunction(com.google.cloud.functions.v2.UpdateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Deletes a function with the given name from the specified project. If the
                              -     * given function is used by some trigger, the trigger will be updated to
                              -     * remove this function.
                              -     * 
                              - */ - public void deleteFunction(com.google.cloud.functions.v2.DeleteFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Returns a signed URL for uploading a function source code.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              -     * Once the function source code upload is complete, the used signed
                              -     * URL should be provided in CreateFunction or UpdateFunction request
                              -     * as a reference to the function source code.
                              -     * When uploading source code to the generated signed URL, please follow
                              -     * these restrictions:
                              -     * * Source file type should be a zip file.
                              -     * * No credentials should be attached - the signed URLs provide access to the
                              -     *   target bucket using internal service identity; if credentials were
                              -     *   attached, the identity from the credentials would be used, but that
                              -     *   identity does not have permissions to upload files to the URL.
                              -     * When making a HTTP PUT request, these two headers need to be specified:
                              -     * * `content-type: application/zip`
                              -     * And this header SHOULD NOT be specified:
                              -     * * `Authorization: Bearer YOUR_TOKEN`
                              -     * 
                              - */ - public void generateUploadUrl(com.google.cloud.functions.v2.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Returns a signed URL for downloading deployed function source code.
                              -     * The URL is only valid for a limited period and should be used within
                              -     * 30 minutes of generation.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              -     * 
                              - */ - public void generateDownloadUrl(com.google.cloud.functions.v2.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Returns a list of runtimes that are supported for the requested project.
                              -     * 
                              - */ - public void listRuntimes(com.google.cloud.functions.v2.ListRuntimesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
                              -   * Google Cloud Functions is used to deploy functions that are executed by
                              -   * Google in response to various events. Data connected with that event is
                              -   * passed to a function as the input data.
                              -   * A **function** is a resource which describes a function that should be
                              -   * executed and how it is triggered.
                              -   * 
                              - */ - public static final class FunctionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private FunctionServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceBlockingStub(channel, callOptions); - } - - /** - *
                              -     * Returns a function with the given name from the requested project.
                              -     * 
                              - */ - public com.google.cloud.functions.v2.Function getFunction(com.google.cloud.functions.v2.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFunctionMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Returns a list of functions that belong to the requested project.
                              -     * 
                              - */ - public com.google.cloud.functions.v2.ListFunctionsResponse listFunctions(com.google.cloud.functions.v2.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFunctionsMethod(), getCallOptions(), request); - } - - /** - *
                              -     * 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.
                              -     * 
                              - */ - public com.google.longrunning.Operation createFunction(com.google.cloud.functions.v2.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFunctionMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Updates existing function.
                              -     * 
                              - */ - public com.google.longrunning.Operation updateFunction(com.google.cloud.functions.v2.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Deletes a function with the given name from the specified project. If the
                              -     * given function is used by some trigger, the trigger will be updated to
                              -     * remove this function.
                              -     * 
                              - */ - public com.google.longrunning.Operation deleteFunction(com.google.cloud.functions.v2.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Returns a signed URL for uploading a function source code.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              -     * Once the function source code upload is complete, the used signed
                              -     * URL should be provided in CreateFunction or UpdateFunction request
                              -     * as a reference to the function source code.
                              -     * When uploading source code to the generated signed URL, please follow
                              -     * these restrictions:
                              -     * * Source file type should be a zip file.
                              -     * * No credentials should be attached - the signed URLs provide access to the
                              -     *   target bucket using internal service identity; if credentials were
                              -     *   attached, the identity from the credentials would be used, but that
                              -     *   identity does not have permissions to upload files to the URL.
                              -     * When making a HTTP PUT request, these two headers need to be specified:
                              -     * * `content-type: application/zip`
                              -     * And this header SHOULD NOT be specified:
                              -     * * `Authorization: Bearer YOUR_TOKEN`
                              -     * 
                              - */ - public com.google.cloud.functions.v2.GenerateUploadUrlResponse generateUploadUrl(com.google.cloud.functions.v2.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Returns a signed URL for downloading deployed function source code.
                              -     * The URL is only valid for a limited period and should be used within
                              -     * 30 minutes of generation.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              -     * 
                              - */ - public com.google.cloud.functions.v2.GenerateDownloadUrlResponse generateDownloadUrl(com.google.cloud.functions.v2.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Returns a list of runtimes that are supported for the requested project.
                              -     * 
                              - */ - public com.google.cloud.functions.v2.ListRuntimesResponse listRuntimes(com.google.cloud.functions.v2.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRuntimesMethod(), getCallOptions(), request); - } - } - - /** - *
                              -   * Google Cloud Functions is used to deploy functions that are executed by
                              -   * Google in response to various events. Data connected with that event is
                              -   * passed to a function as the input data.
                              -   * A **function** is a resource which describes a function that should be
                              -   * executed and how it is triggered.
                              -   * 
                              - */ - public static final class FunctionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private FunctionServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceFutureStub(channel, callOptions); - } - - /** - *
                              -     * Returns a function with the given name from the requested project.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture getFunction( - com.google.cloud.functions.v2.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Returns a list of functions that belong to the requested project.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture listFunctions( - com.google.cloud.functions.v2.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request); - } - - /** - *
                              -     * 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.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture createFunction( - com.google.cloud.functions.v2.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Updates existing function.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture updateFunction( - com.google.cloud.functions.v2.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Deletes a function with the given name from the specified project. If the
                              -     * given function is used by some trigger, the trigger will be updated to
                              -     * remove this function.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture deleteFunction( - com.google.cloud.functions.v2.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Returns a signed URL for uploading a function source code.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              -     * Once the function source code upload is complete, the used signed
                              -     * URL should be provided in CreateFunction or UpdateFunction request
                              -     * as a reference to the function source code.
                              -     * When uploading source code to the generated signed URL, please follow
                              -     * these restrictions:
                              -     * * Source file type should be a zip file.
                              -     * * No credentials should be attached - the signed URLs provide access to the
                              -     *   target bucket using internal service identity; if credentials were
                              -     *   attached, the identity from the credentials would be used, but that
                              -     *   identity does not have permissions to upload files to the URL.
                              -     * When making a HTTP PUT request, these two headers need to be specified:
                              -     * * `content-type: application/zip`
                              -     * And this header SHOULD NOT be specified:
                              -     * * `Authorization: Bearer YOUR_TOKEN`
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture generateUploadUrl( - com.google.cloud.functions.v2.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Returns a signed URL for downloading deployed function source code.
                              -     * The URL is only valid for a limited period and should be used within
                              -     * 30 minutes of generation.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture generateDownloadUrl( - com.google.cloud.functions.v2.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Returns a list of runtimes that are supported for the requested project.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture listRuntimes( - com.google.cloud.functions.v2.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_FUNCTION = 0; - private static final int METHODID_LIST_FUNCTIONS = 1; - private static final int METHODID_CREATE_FUNCTION = 2; - private static final int METHODID_UPDATE_FUNCTION = 3; - private static final int METHODID_DELETE_FUNCTION = 4; - private static final int METHODID_GENERATE_UPLOAD_URL = 5; - private static final int METHODID_GENERATE_DOWNLOAD_URL = 6; - private static final int METHODID_LIST_RUNTIMES = 7; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final FunctionServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(FunctionServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_FUNCTION: - serviceImpl.getFunction((com.google.cloud.functions.v2.GetFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FUNCTIONS: - serviceImpl.listFunctions((com.google.cloud.functions.v2.ListFunctionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FUNCTION: - serviceImpl.createFunction((com.google.cloud.functions.v2.CreateFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FUNCTION: - serviceImpl.updateFunction((com.google.cloud.functions.v2.UpdateFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FUNCTION: - serviceImpl.deleteFunction((com.google.cloud.functions.v2.DeleteFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_UPLOAD_URL: - serviceImpl.generateUploadUrl((com.google.cloud.functions.v2.GenerateUploadUrlRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_DOWNLOAD_URL: - serviceImpl.generateDownloadUrl((com.google.cloud.functions.v2.GenerateDownloadUrlRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RUNTIMES: - serviceImpl.listRuntimes((com.google.cloud.functions.v2.ListRuntimesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class FunctionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - FunctionServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("FunctionService"); - } - } - - private static final class FunctionServiceFileDescriptorSupplier - extends FunctionServiceBaseDescriptorSupplier { - FunctionServiceFileDescriptorSupplier() {} - } - - private static final class FunctionServiceMethodDescriptorSupplier - extends FunctionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - FunctionServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (FunctionServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new FunctionServiceFileDescriptorSupplier()) - .addMethod(getGetFunctionMethod()) - .addMethod(getListFunctionsMethod()) - .addMethod(getCreateFunctionMethod()) - .addMethod(getUpdateFunctionMethod()) - .addMethod(getDeleteFunctionMethod()) - .addMethod(getGenerateUploadUrlMethod()) - .addMethod(getGenerateDownloadUrlMethod()) - .addMethod(getListRuntimesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequestOrBuilder.java deleted file mode 100644 index 243c81e0..00000000 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2/functions.proto - -package com.google.cloud.functions.v2; - -public interface DeleteFunctionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.DeleteFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * Required. The name of the function which should be deleted.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
                              -   * Required. The name of the function which should be deleted.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java deleted file mode 100644 index 6d6fa3b3..00000000 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java +++ /dev/null @@ -1,648 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2/functions.proto - -package com.google.cloud.functions.v2; - -public final class FunctionsProto { - private FunctionsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_Function_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_Function_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_Function_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_Function_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_StateMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_StateMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_StorageSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_StorageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_RepoSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_RepoSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_Source_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_Source_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_SourceProvenance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_SourceProvenance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_BuildConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_BuildConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_ServiceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_ServiceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_SecretEnvVar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_SecretVolume_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_SecretVolume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_EventTrigger_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_EventTrigger_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_EventFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_EventFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_GetFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_ListFunctionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_ListFunctionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_CreateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_UpdateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_DeleteFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_ListRuntimesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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_Stage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2_Stage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/functions/v2/functions.pr" + - "oto\022\031google.cloud.functions.v2\032\034google/a" + - "pi/annotations.proto\032\027google/api/client." + - "proto\032\037google/api/field_behavior.proto\032\031" + - "google/api/resource.proto\032#google/longru" + - "nning/operations.proto\032\031google/protobuf/" + - "any.proto\032 google/protobuf/field_mask.pr" + - "oto\032\037google/protobuf/timestamp.proto\"\267\006\n" + - "\010Function\022\014\n\004name\030\001 \001(\t\022;\n\013environment\030\n" + - " \001(\0162&.google.cloud.functions.v2.Environ" + - "ment\022\023\n\013description\030\002 \001(\t\022<\n\014build_confi" + - "g\030\003 \001(\0132&.google.cloud.functions.v2.Buil" + - "dConfig\022@\n\016service_config\030\004 \001(\0132(.google" + - ".cloud.functions.v2.ServiceConfig\022>\n\reve" + - "nt_trigger\030\005 \001(\0132\'.google.cloud.function" + - "s.v2.EventTrigger\022=\n\005state\030\006 \001(\0162).googl" + - "e.cloud.functions.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.functions.v2.Function.LabelsEntry\022" + - "D\n\016state_messages\030\t \003(\0132\'.google.cloud.f" + - "unctions.v2.StateMessageB\003\340A\003\032-\n\013LabelsE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\005" + - "State\022\025\n\021STATE_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\007UNKNOWN\020\005:~\352A{\n&cloudfunctions.goog" + - "leapis.com/Function\022\n\013worker_pool\030\005 \001(\tB)\372A&\n$cloudbuild.go" + - "ogleapis.com/WorkerPool\022_\n\025environment_v" + - "ariables\030\006 \003(\0132@.google.cloud.functions." + - "v2.BuildConfig.EnvironmentVariablesEntry" + - "\022M\n\021docker_repository\030\007 \001(\tB2\340A\001\372A,\n*art" + - "ifactregistry.googleapis.com/Repository\032" + - ";\n\031EnvironmentVariablesEntry\022\013\n\003key\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\300\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\020" + - "available_memory\030\r \001(\t\022a\n\025environment_va" + - "riables\030\004 \003(\0132B.google.cloud.functions.v" + - "2.ServiceConfig.EnvironmentVariablesEntr" + - "y\022\032\n\022max_instance_count\030\005 \001(\005\022\032\n\022min_ins" + - "tance_count\030\014 \001(\005\022>\n\rvpc_connector\030\006 \001(\t" + - "B\'\372A$\n\"vpcaccess.googleapis.com/Connecto" + - "r\022j\n\035vpc_connector_egress_settings\030\007 \001(\016" + - "2C.google.cloud.functions.v2.ServiceConf" + - "ig.VpcConnectorEgressSettings\022R\n\020ingress" + - "_settings\030\010 \001(\01628.google.cloud.functions" + - ".v2.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\022M\n\034secret_environment_variables\030\021 \003(\013" + - "2\'.google.cloud.functions.v2.SecretEnvVa" + - "r\022?\n\016secret_volumes\030\023 \003(\0132\'.google.cloud" + - ".functions.v2.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\032VpcCon" + - "nectorEgressSettings\022-\n)VPC_CONNECTOR_EG" + - "RESS_SETTINGS_UNSPECIFIED\020\000\022\027\n\023PRIVATE_R" + - "ANGES_ONLY\020\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n\017Ingress" + - "Settings\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\014Secre" + - "tEnvVar\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\014Se" + - "cretVolume\022\022\n\nmount_path\030\001 \001(\t\022\022\n\nprojec" + - "t_id\030\002 \001(\t\022\016\n\006secret\030\003 \001(\t\022G\n\010versions\030\004" + - " \003(\01325.google.cloud.functions.v2.SecretV" + - "olume.SecretVersion\032.\n\rSecretVersion\022\017\n\007" + - "version\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\"\205\004\n\014EventTri" + - "gger\0228\n\007trigger\030\001 \001(\tB\'\340A\003\372A!\n\037eventarc." + - "googleapis.com/Trigger\022\026\n\016trigger_region" + - "\030\002 \001(\t\022\027\n\nevent_type\030\003 \001(\tB\003\340A\002\022=\n\revent" + - "_filters\030\004 \003(\0132&.google.cloud.functions." + - "v2.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\022N\n\014retry_p" + - "olicy\030\007 \001(\01623.google.cloud.functions.v2." + - "EventTrigger.RetryPolicyB\003\340A\001\0228\n\007channel" + - "\030\010 \001(\tB\'\340A\001\372A!\n\037eventarc.googleapis.com/" + - "Channel\"b\n\013RetryPolicy\022\034\n\030RETRY_POLICY_U" + - "NSPECIFIED\020\000\022\035\n\031RETRY_POLICY_DO_NOT_RETR" + - "Y\020\001\022\026\n\022RETRY_POLICY_RETRY\020\002\"P\n\013EventFilt" + - "er\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\022GetFunc" + - "tionRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&cloud" + - "functions.googleapis.com/Function\"\237\001\n\024Li" + - "stFunctionsRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372" + - "A(\022&cloudfunctions.googleapis.com/Functi" + - "on\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\025L" + - "istFunctionsResponse\0226\n\tfunctions\030\001 \003(\0132" + - "#.google.cloud.functions.v2.Function\022\027\n\017" + - "next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003" + - "(\t\"\243\001\n\025CreateFunctionRequest\0229\n\006parent\030\001" + - " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + - "ocation\022:\n\010function\030\002 \001(\0132#.google.cloud" + - ".functions.v2.FunctionB\003\340A\002\022\023\n\013function_" + - "id\030\003 \001(\t\"\204\001\n\025UpdateFunctionRequest\022:\n\010fu" + - "nction\030\001 \001(\0132#.google.cloud.functions.v2" + - ".FunctionB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.go" + - "ogle.protobuf.FieldMask\"U\n\025DeleteFunctio" + - "nRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&cloudfun" + - "ctions.googleapis.com/Function\"U\n\030Genera" + - "teUploadUrlRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" + - "A#\n!locations.googleapis.com/Location\"q\n" + - "\031GenerateUploadUrlResponse\022\022\n\nupload_url" + - "\030\001 \001(\t\022@\n\016storage_source\030\002 \001(\0132(.google." + - "cloud.functions.v2.StorageSource\"Z\n\032Gene" + - "rateDownloadUrlRequest\022<\n\004name\030\001 \001(\tB.\340A" + - "\002\372A(\n&cloudfunctions.googleapis.com/Func" + - "tion\"3\n\033GenerateDownloadUrlResponse\022\024\n\014d" + - "ownload_url\030\001 \001(\t\"`\n\023ListRuntimesRequest" + - "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + - "leapis.com/Location\022\016\n\006filter\030\002 \001(\t\"\256\003\n\024" + - "ListRuntimesResponse\022I\n\010runtimes\030\001 \003(\01327" + - ".google.cloud.functions.v2.ListRuntimesR" + - "esponse.Runtime\032\311\001\n\007Runtime\022\014\n\004name\030\001 \001(" + - "\t\022\024\n\014display_name\030\005 \001(\t\022K\n\005stage\030\002 \001(\0162<" + - ".google.cloud.functions.v2.ListRuntimesR" + - "esponse.RuntimeStage\022\020\n\010warnings\030\003 \003(\t\022;" + - "\n\013environment\030\004 \001(\0162&.google.cloud.funct" + - "ions.v2.Environment\"\177\n\014RuntimeStage\022\035\n\031R" + - "UNTIME_STAGE_UNSPECIFIED\020\000\022\017\n\013DEVELOPMEN" + - "T\020\001\022\t\n\005ALPHA\020\002\022\010\n\004BETA\020\003\022\006\n\002GA\020\004\022\016\n\nDEPR" + - "ECATED\020\005\022\022\n\016DECOMMISSIONED\020\006\"\270\002\n\021Operati" + - "onMetadata\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\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.google" + - ".protobuf.Any\0220\n\006stages\030\t \003(\0132 .google.c" + - "loud.functions.v2.Stage\"\304\003\n\005Stage\0223\n\004nam" + - "e\030\001 \001(\0162%.google.cloud.functions.v2.Stag" + - "e.Name\022\017\n\007message\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_messages\030\006 \003(\0132\'.google.cloud.fu" + - "nctions.v2.StateMessage\"\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\007SERVICE\020\003\022\013\n\007TRIGGER\020\004\022\024\n\020SE" + - "RVICE_ROLLBACK\020\005\022\024\n\020TRIGGER_ROLLBACK\020\006\"N" + - "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013NOT_ST" + - "ARTED\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\017FunctionSer" + - "vice\022\237\001\n\013GetFunction\022-.google.cloud.func" + - "tions.v2.GetFunctionRequest\032#.google.clo" + - "ud.functions.v2.Function\"<\202\323\344\223\002/\022-/v2/{n" + - "ame=projects/*/locations/*/functions/*}\332" + - "A\004name\022\262\001\n\rListFunctions\022/.google.cloud." + - "functions.v2.ListFunctionsRequest\0320.goog" + - "le.cloud.functions.v2.ListFunctionsRespo" + - "nse\">\202\323\344\223\002/\022-/v2/{parent=projects/*/loca" + - "tions/*}/functions\332A\006parent\022\225\002\n\016CreateFu" + - "nction\0220.google.cloud.functions.v2.Creat" + - "eFunctionRequest\032\035.google.longrunning.Op" + - "eration\"\261\001\202\323\344\223\0029\"-/v2/{parent=projects/*" + - "/locations/*}/functions:\010function\332A\033pare" + - "nt,function,function_id\312AQ\n\"google.cloud" + - ".functions.v2.Function\022+google.cloud.fun" + - "ctions.v2.OperationMetadata\022\227\002\n\016UpdateFu" + - "nction\0220.google.cloud.functions.v2.Updat" + - "eFunctionRequest\032\035.google.longrunning.Op" + - "eration\"\263\001\202\323\344\223\002B26/v2/{function.name=pro" + - "jects/*/locations/*/functions/*}:\010functi" + - "on\332A\024function,update_mask\312AQ\n\"google.clo" + - "ud.functions.v2.Function\022+google.cloud.f" + - "unctions.v2.OperationMetadata\022\347\001\n\016Delete" + - "Function\0220.google.cloud.functions.v2.Del" + - "eteFunctionRequest\032\035.google.longrunning." + - "Operation\"\203\001\202\323\344\223\002/*-/v2/{name=projects/*" + - "/locations/*/functions/*}\332A\004name\312AD\n\025goo" + - "gle.protobuf.Empty\022+google.cloud.functio" + - "ns.v2.OperationMetadata\022\312\001\n\021GenerateUplo" + - "adUrl\0223.google.cloud.functions.v2.Genera" + - "teUploadUrlRequest\0324.google.cloud.functi" + - "ons.v2.GenerateUploadUrlResponse\"J\202\323\344\223\002D" + - "\"?/v2/{parent=projects/*/locations/*}/fu" + - "nctions:generateUploadUrl:\001*\022\322\001\n\023Generat" + - "eDownloadUrl\0225.google.cloud.functions.v2" + - ".GenerateDownloadUrlRequest\0326.google.clo" + - "ud.functions.v2.GenerateDownloadUrlRespo" + - "nse\"L\202\323\344\223\002F\"A/v2/{name=projects/*/locati" + - "ons/*/functions/*}:generateDownloadUrl:\001" + - "*\022\256\001\n\014ListRuntimes\022..google.cloud.functi" + - "ons.v2.ListRuntimesRequest\032/.google.clou" + - "d.functions.v2.ListRuntimesResponse\"=\202\323\344" + - "\223\002.\022,/v2/{parent=projects/*/locations/*}" + - "/runtimes\332A\006parent\032Q\312A\035cloudfunctions.go" + - "ogleapis.com\322A.https://www.googleapis.co" + - "m/auth/cloud-platformB\365\007\n\035com.google.clo" + - "ud.functions.v2B\016FunctionsProtoP\001ZBgoogl" + - "e.golang.org/genproto/googleapis/cloud/f" + - "unctions/v2;functions\242\002\003GCF\352Ao\n*artifact" + - "registry.googleapis.com/Repository\022Aproj" + - "ects/{project}/locations/{location}/repo" + - "sitories/{repository}\352AY\n\037cloudbuild.goo" + - "gleapis.com/Build\0226projects/{project}/lo" + - "cations/{location}/builds/{build}\352Ai\n$cl" + - "oudbuild.googleapis.com/WorkerPool\022Aproj" + - "ects/{project}/locations/{location}/work" + - "erPools/{worker_pool}\352AX\n\032run.googleapis" + - ".com/Service\022:projects/{project}/locatio" + - "ns/{location}/services/{service}\352Ad\n\"vpc" + - "access.googleapis.com/Connector\022>project" + - "s/{project}/locations/{location}/connect" + - "ors/{connector}\352A]\n\037eventarc.googleapis." + - "com/Trigger\022:projects/{project}/location" + - "s/{location}/triggers/{trigger}\352A]\n\037even" + - "tarc.googleapis.com/Channel\022:projects/{p" + - "roject}/locations/{location}/channels/{c" + - "hannel}\352A@\n\033pubsub.googleapis.com/Topic\022" + - "!projects/{project}/topics/{topic}\352Ax\n!c" + - "loudkms.googleapis.com/CryptoKey\022Sprojec" + - "ts/{project}/locations/{location}/keyRin" + - "gs/{key_ring}/cryptoKeys/{crypto_key}b\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_functions_v2_Function_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_functions_v2_Function_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_Function_descriptor, - new java.lang.String[] { "Name", "Environment", "Description", "BuildConfig", "ServiceConfig", "EventTrigger", "State", "UpdateTime", "Labels", "StateMessages", }); - internal_static_google_cloud_functions_v2_Function_LabelsEntry_descriptor = - internal_static_google_cloud_functions_v2_Function_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2_Function_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_Function_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_functions_v2_StateMessage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_functions_v2_StateMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_StateMessage_descriptor, - new java.lang.String[] { "Severity", "Type", "Message", }); - internal_static_google_cloud_functions_v2_StorageSource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_functions_v2_StorageSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_StorageSource_descriptor, - new java.lang.String[] { "Bucket", "Object", "Generation", }); - internal_static_google_cloud_functions_v2_RepoSource_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_functions_v2_RepoSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_RepoSource_descriptor, - new java.lang.String[] { "BranchName", "TagName", "CommitSha", "ProjectId", "RepoName", "Dir", "InvertRegex", "Revision", }); - internal_static_google_cloud_functions_v2_Source_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_functions_v2_Source_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_Source_descriptor, - new java.lang.String[] { "StorageSource", "RepoSource", "Source", }); - internal_static_google_cloud_functions_v2_SourceProvenance_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_functions_v2_SourceProvenance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_SourceProvenance_descriptor, - new java.lang.String[] { "ResolvedStorageSource", "ResolvedRepoSource", }); - internal_static_google_cloud_functions_v2_BuildConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_functions_v2_BuildConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_BuildConfig_descriptor, - new java.lang.String[] { "Build", "Runtime", "EntryPoint", "Source", "SourceProvenance", "WorkerPool", "EnvironmentVariables", "DockerRepository", }); - internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v2_BuildConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_functions_v2_ServiceConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_functions_v2_ServiceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_ServiceConfig_descriptor, - new java.lang.String[] { "Service", "TimeoutSeconds", "AvailableMemory", "EnvironmentVariables", "MaxInstanceCount", "MinInstanceCount", "VpcConnector", "VpcConnectorEgressSettings", "IngressSettings", "Uri", "ServiceAccountEmail", "AllTrafficOnLatestRevision", "SecretEnvironmentVariables", "SecretVolumes", "Revision", }); - internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v2_ServiceConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_functions_v2_SecretEnvVar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor, - new java.lang.String[] { "Key", "ProjectId", "Secret", "Version", }); - internal_static_google_cloud_functions_v2_SecretVolume_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_functions_v2_SecretVolume_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_SecretVolume_descriptor, - new java.lang.String[] { "MountPath", "ProjectId", "Secret", "Versions", }); - internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_descriptor = - internal_static_google_cloud_functions_v2_SecretVolume_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_descriptor, - new java.lang.String[] { "Version", "Path", }); - internal_static_google_cloud_functions_v2_EventTrigger_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_functions_v2_EventTrigger_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_EventTrigger_descriptor, - new java.lang.String[] { "Trigger", "TriggerRegion", "EventType", "EventFilters", "PubsubTopic", "ServiceAccountEmail", "RetryPolicy", "Channel", }); - internal_static_google_cloud_functions_v2_EventFilter_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_functions_v2_EventFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_EventFilter_descriptor, - new java.lang.String[] { "Attribute", "Value", "Operator", }); - internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_functions_v2_GetFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_functions_v2_ListFunctionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_functions_v2_ListFunctionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor, - new java.lang.String[] { "Functions", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_functions_v2_CreateFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor, - new java.lang.String[] { "Parent", "Function", "FunctionId", }); - internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_functions_v2_UpdateFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor, - new java.lang.String[] { "Function", "UpdateMask", }); - internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_functions_v2_DeleteFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor, - new java.lang.String[] { "Parent", }); - internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor, - new java.lang.String[] { "UploadUrl", "StorageSource", }); - internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor, - new java.lang.String[] { "DownloadUrl", }); - internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_functions_v2_ListRuntimesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", }); - internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor, - new java.lang.String[] { "Runtimes", }); - internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor = - internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Stage", "Warnings", "Environment", }); - internal_static_google_cloud_functions_v2_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_functions_v2_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", "RequestResource", "Stages", }); - internal_static_google_cloud_functions_v2_Stage_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_functions_v2_Stage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2_Stage_descriptor, - new java.lang.String[] { "Name", "Message", "State", "Resource", "ResourceUri", "StateMessages", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequestOrBuilder.java deleted file mode 100644 index d4574174..00000000 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2/functions.proto - -package com.google.cloud.functions.v2; - -public interface GenerateDownloadUrlRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.GenerateDownloadUrlRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * 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) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
                              -   * 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) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java deleted file mode 100644 index 7ed0d5ef..00000000 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2/functions.proto - -package com.google.cloud.functions.v2; - -public interface GenerateUploadUrlRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.GenerateUploadUrlRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * 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) = { ... } - * @return The parent. - */ - 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/*`.
                              -   * 
                              - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequestOrBuilder.java deleted file mode 100644 index 0c5264ab..00000000 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2/functions.proto - -package com.google.cloud.functions.v2; - -public interface GetFunctionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.GetFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * Required. The name of the function which details should be obtained.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
                              -   * Required. The name of the function which details should be obtained.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v2alpha/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java b/owl-bot-staging/v2alpha/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java deleted file mode 100644 index 062a7246..00000000 --- a/owl-bot-staging/v2alpha/grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java +++ /dev/null @@ -1,1021 +0,0 @@ -package com.google.cloud.functions.v2alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
                              - * Google Cloud Functions is used to deploy functions that are executed by
                              - * Google in response to various events. Data connected with that event is
                              - * passed to a function as the input data.
                              - * A **function** is a resource which describes a function that should be
                              - * executed and how it is triggered.
                              - * 
                              - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/functions/v2alpha/functions.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class FunctionServiceGrpc { - - private FunctionServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.functions.v2alpha.FunctionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFunction", - requestType = com.google.cloud.functions.v2alpha.GetFunctionRequest.class, - responseType = com.google.cloud.functions.v2alpha.Function.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFunctionMethod() { - io.grpc.MethodDescriptor getGetFunctionMethod; - if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { - FunctionServiceGrpc.getGetFunctionMethod = getGetFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.GetFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.Function.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GetFunction")) - .build(); - } - } - } - return getGetFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFunctionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFunctions", - requestType = com.google.cloud.functions.v2alpha.ListFunctionsRequest.class, - responseType = com.google.cloud.functions.v2alpha.ListFunctionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFunctionsMethod() { - io.grpc.MethodDescriptor getListFunctionsMethod; - if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { - FunctionServiceGrpc.getListFunctionsMethod = getListFunctionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.ListFunctionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.ListFunctionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListFunctions")) - .build(); - } - } - } - return getListFunctionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFunction", - requestType = com.google.cloud.functions.v2alpha.CreateFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFunctionMethod() { - io.grpc.MethodDescriptor getCreateFunctionMethod; - if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { - FunctionServiceGrpc.getCreateFunctionMethod = getCreateFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.CreateFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("CreateFunction")) - .build(); - } - } - } - return getCreateFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFunction", - requestType = com.google.cloud.functions.v2alpha.UpdateFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateFunctionMethod() { - io.grpc.MethodDescriptor getUpdateFunctionMethod; - if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { - FunctionServiceGrpc.getUpdateFunctionMethod = getUpdateFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.UpdateFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("UpdateFunction")) - .build(); - } - } - } - return getUpdateFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFunction", - requestType = com.google.cloud.functions.v2alpha.DeleteFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteFunctionMethod() { - io.grpc.MethodDescriptor getDeleteFunctionMethod; - if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { - FunctionServiceGrpc.getDeleteFunctionMethod = getDeleteFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.DeleteFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("DeleteFunction")) - .build(); - } - } - } - return getDeleteFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateUploadUrlMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateUploadUrl", - requestType = com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.class, - responseType = com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateUploadUrlMethod() { - io.grpc.MethodDescriptor getGenerateUploadUrlMethod; - if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { - FunctionServiceGrpc.getGenerateUploadUrlMethod = getGenerateUploadUrlMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GenerateUploadUrl")) - .build(); - } - } - } - return getGenerateUploadUrlMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateDownloadUrl", - requestType = com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.class, - responseType = com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateDownloadUrlMethod() { - io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; - if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { - FunctionServiceGrpc.getGenerateDownloadUrlMethod = getGenerateDownloadUrlMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GenerateDownloadUrl")) - .build(); - } - } - } - return getGenerateDownloadUrlMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRuntimesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", - requestType = com.google.cloud.functions.v2alpha.ListRuntimesRequest.class, - responseType = com.google.cloud.functions.v2alpha.ListRuntimesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRuntimesMethod() { - io.grpc.MethodDescriptor getListRuntimesMethod; - if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { - FunctionServiceGrpc.getListRuntimesMethod = getListRuntimesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.ListRuntimesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2alpha.ListRuntimesResponse.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListRuntimes")) - .build(); - } - } - } - return getListRuntimesMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static FunctionServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceStub(channel, callOptions); - } - }; - return FunctionServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static FunctionServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceBlockingStub(channel, callOptions); - } - }; - return FunctionServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static FunctionServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceFutureStub(channel, callOptions); - } - }; - return FunctionServiceFutureStub.newStub(factory, channel); - } - - /** - *
                              -   * Google Cloud Functions is used to deploy functions that are executed by
                              -   * Google in response to various events. Data connected with that event is
                              -   * passed to a function as the input data.
                              -   * A **function** is a resource which describes a function that should be
                              -   * executed and how it is triggered.
                              -   * 
                              - */ - public static abstract class FunctionServiceImplBase implements io.grpc.BindableService { - - /** - *
                              -     * Returns a function with the given name from the requested project.
                              -     * 
                              - */ - public void getFunction(com.google.cloud.functions.v2alpha.GetFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFunctionMethod(), responseObserver); - } - - /** - *
                              -     * Returns a list of functions that belong to the requested project.
                              -     * 
                              - */ - public void listFunctions(com.google.cloud.functions.v2alpha.ListFunctionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFunctionsMethod(), responseObserver); - } - - /** - *
                              -     * 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.
                              -     * 
                              - */ - public void createFunction(com.google.cloud.functions.v2alpha.CreateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFunctionMethod(), responseObserver); - } - - /** - *
                              -     * Updates existing function.
                              -     * 
                              - */ - public void updateFunction(com.google.cloud.functions.v2alpha.UpdateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFunctionMethod(), responseObserver); - } - - /** - *
                              -     * Deletes a function with the given name from the specified project. If the
                              -     * given function is used by some trigger, the trigger will be updated to
                              -     * remove this function.
                              -     * 
                              - */ - public void deleteFunction(com.google.cloud.functions.v2alpha.DeleteFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFunctionMethod(), responseObserver); - } - - /** - *
                              -     * Returns a signed URL for uploading a function source code.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              -     * Once the function source code upload is complete, the used signed
                              -     * URL should be provided in CreateFunction or UpdateFunction request
                              -     * as a reference to the function source code.
                              -     * When uploading source code to the generated signed URL, please follow
                              -     * these restrictions:
                              -     * * Source file type should be a zip file.
                              -     * * No credentials should be attached - the signed URLs provide access to the
                              -     *   target bucket using internal service identity; if credentials were
                              -     *   attached, the identity from the credentials would be used, but that
                              -     *   identity does not have permissions to upload files to the URL.
                              -     * When making a HTTP PUT request, these two headers need to be specified:
                              -     * * `content-type: application/zip`
                              -     * And this header SHOULD NOT be specified:
                              -     * * `Authorization: Bearer YOUR_TOKEN`
                              -     * 
                              - */ - public void generateUploadUrl(com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateUploadUrlMethod(), responseObserver); - } - - /** - *
                              -     * Returns a signed URL for downloading deployed function source code.
                              -     * The URL is only valid for a limited period and should be used within
                              -     * 30 minutes of generation.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              -     * 
                              - */ - public void generateDownloadUrl(com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateDownloadUrlMethod(), responseObserver); - } - - /** - *
                              -     * Returns a list of runtimes that are supported for the requested project.
                              -     * 
                              - */ - public void listRuntimes(com.google.cloud.functions.v2alpha.ListRuntimesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuntimesMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.GetFunctionRequest, - com.google.cloud.functions.v2alpha.Function>( - this, METHODID_GET_FUNCTION))) - .addMethod( - getListFunctionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.ListFunctionsRequest, - com.google.cloud.functions.v2alpha.ListFunctionsResponse>( - this, METHODID_LIST_FUNCTIONS))) - .addMethod( - getCreateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.CreateFunctionRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_FUNCTION))) - .addMethod( - getUpdateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.UpdateFunctionRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_FUNCTION))) - .addMethod( - getDeleteFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.DeleteFunctionRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_FUNCTION))) - .addMethod( - getGenerateUploadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest, - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse>( - this, METHODID_GENERATE_UPLOAD_URL))) - .addMethod( - getGenerateDownloadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest, - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse>( - this, METHODID_GENERATE_DOWNLOAD_URL))) - .addMethod( - getListRuntimesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2alpha.ListRuntimesRequest, - com.google.cloud.functions.v2alpha.ListRuntimesResponse>( - this, METHODID_LIST_RUNTIMES))) - .build(); - } - } - - /** - *
                              -   * Google Cloud Functions is used to deploy functions that are executed by
                              -   * Google in response to various events. Data connected with that event is
                              -   * passed to a function as the input data.
                              -   * A **function** is a resource which describes a function that should be
                              -   * executed and how it is triggered.
                              -   * 
                              - */ - public static final class FunctionServiceStub extends io.grpc.stub.AbstractAsyncStub { - private FunctionServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceStub(channel, callOptions); - } - - /** - *
                              -     * Returns a function with the given name from the requested project.
                              -     * 
                              - */ - public void getFunction(com.google.cloud.functions.v2alpha.GetFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Returns a list of functions that belong to the requested project.
                              -     * 
                              - */ - public void listFunctions(com.google.cloud.functions.v2alpha.ListFunctionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * 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.
                              -     * 
                              - */ - public void createFunction(com.google.cloud.functions.v2alpha.CreateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Updates existing function.
                              -     * 
                              - */ - public void updateFunction(com.google.cloud.functions.v2alpha.UpdateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Deletes a function with the given name from the specified project. If the
                              -     * given function is used by some trigger, the trigger will be updated to
                              -     * remove this function.
                              -     * 
                              - */ - public void deleteFunction(com.google.cloud.functions.v2alpha.DeleteFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Returns a signed URL for uploading a function source code.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              -     * Once the function source code upload is complete, the used signed
                              -     * URL should be provided in CreateFunction or UpdateFunction request
                              -     * as a reference to the function source code.
                              -     * When uploading source code to the generated signed URL, please follow
                              -     * these restrictions:
                              -     * * Source file type should be a zip file.
                              -     * * No credentials should be attached - the signed URLs provide access to the
                              -     *   target bucket using internal service identity; if credentials were
                              -     *   attached, the identity from the credentials would be used, but that
                              -     *   identity does not have permissions to upload files to the URL.
                              -     * When making a HTTP PUT request, these two headers need to be specified:
                              -     * * `content-type: application/zip`
                              -     * And this header SHOULD NOT be specified:
                              -     * * `Authorization: Bearer YOUR_TOKEN`
                              -     * 
                              - */ - public void generateUploadUrl(com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Returns a signed URL for downloading deployed function source code.
                              -     * The URL is only valid for a limited period and should be used within
                              -     * 30 minutes of generation.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              -     * 
                              - */ - public void generateDownloadUrl(com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Returns a list of runtimes that are supported for the requested project.
                              -     * 
                              - */ - public void listRuntimes(com.google.cloud.functions.v2alpha.ListRuntimesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
                              -   * Google Cloud Functions is used to deploy functions that are executed by
                              -   * Google in response to various events. Data connected with that event is
                              -   * passed to a function as the input data.
                              -   * A **function** is a resource which describes a function that should be
                              -   * executed and how it is triggered.
                              -   * 
                              - */ - public static final class FunctionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private FunctionServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceBlockingStub(channel, callOptions); - } - - /** - *
                              -     * Returns a function with the given name from the requested project.
                              -     * 
                              - */ - public com.google.cloud.functions.v2alpha.Function getFunction(com.google.cloud.functions.v2alpha.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFunctionMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Returns a list of functions that belong to the requested project.
                              -     * 
                              - */ - public com.google.cloud.functions.v2alpha.ListFunctionsResponse listFunctions(com.google.cloud.functions.v2alpha.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFunctionsMethod(), getCallOptions(), request); - } - - /** - *
                              -     * 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.
                              -     * 
                              - */ - public com.google.longrunning.Operation createFunction(com.google.cloud.functions.v2alpha.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFunctionMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Updates existing function.
                              -     * 
                              - */ - public com.google.longrunning.Operation updateFunction(com.google.cloud.functions.v2alpha.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Deletes a function with the given name from the specified project. If the
                              -     * given function is used by some trigger, the trigger will be updated to
                              -     * remove this function.
                              -     * 
                              - */ - public com.google.longrunning.Operation deleteFunction(com.google.cloud.functions.v2alpha.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Returns a signed URL for uploading a function source code.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              -     * Once the function source code upload is complete, the used signed
                              -     * URL should be provided in CreateFunction or UpdateFunction request
                              -     * as a reference to the function source code.
                              -     * When uploading source code to the generated signed URL, please follow
                              -     * these restrictions:
                              -     * * Source file type should be a zip file.
                              -     * * No credentials should be attached - the signed URLs provide access to the
                              -     *   target bucket using internal service identity; if credentials were
                              -     *   attached, the identity from the credentials would be used, but that
                              -     *   identity does not have permissions to upload files to the URL.
                              -     * When making a HTTP PUT request, these two headers need to be specified:
                              -     * * `content-type: application/zip`
                              -     * And this header SHOULD NOT be specified:
                              -     * * `Authorization: Bearer YOUR_TOKEN`
                              -     * 
                              - */ - public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse generateUploadUrl(com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Returns a signed URL for downloading deployed function source code.
                              -     * The URL is only valid for a limited period and should be used within
                              -     * 30 minutes of generation.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              -     * 
                              - */ - public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse generateDownloadUrl(com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Returns a list of runtimes that are supported for the requested project.
                              -     * 
                              - */ - public com.google.cloud.functions.v2alpha.ListRuntimesResponse listRuntimes(com.google.cloud.functions.v2alpha.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRuntimesMethod(), getCallOptions(), request); - } - } - - /** - *
                              -   * Google Cloud Functions is used to deploy functions that are executed by
                              -   * Google in response to various events. Data connected with that event is
                              -   * passed to a function as the input data.
                              -   * A **function** is a resource which describes a function that should be
                              -   * executed and how it is triggered.
                              -   * 
                              - */ - public static final class FunctionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private FunctionServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceFutureStub(channel, callOptions); - } - - /** - *
                              -     * Returns a function with the given name from the requested project.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture getFunction( - com.google.cloud.functions.v2alpha.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Returns a list of functions that belong to the requested project.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture listFunctions( - com.google.cloud.functions.v2alpha.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request); - } - - /** - *
                              -     * 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.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture createFunction( - com.google.cloud.functions.v2alpha.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Updates existing function.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture updateFunction( - com.google.cloud.functions.v2alpha.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Deletes a function with the given name from the specified project. If the
                              -     * given function is used by some trigger, the trigger will be updated to
                              -     * remove this function.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture deleteFunction( - com.google.cloud.functions.v2alpha.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Returns a signed URL for uploading a function source code.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              -     * Once the function source code upload is complete, the used signed
                              -     * URL should be provided in CreateFunction or UpdateFunction request
                              -     * as a reference to the function source code.
                              -     * When uploading source code to the generated signed URL, please follow
                              -     * these restrictions:
                              -     * * Source file type should be a zip file.
                              -     * * No credentials should be attached - the signed URLs provide access to the
                              -     *   target bucket using internal service identity; if credentials were
                              -     *   attached, the identity from the credentials would be used, but that
                              -     *   identity does not have permissions to upload files to the URL.
                              -     * When making a HTTP PUT request, these two headers need to be specified:
                              -     * * `content-type: application/zip`
                              -     * And this header SHOULD NOT be specified:
                              -     * * `Authorization: Bearer YOUR_TOKEN`
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture generateUploadUrl( - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Returns a signed URL for downloading deployed function source code.
                              -     * The URL is only valid for a limited period and should be used within
                              -     * 30 minutes of generation.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture generateDownloadUrl( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Returns a list of runtimes that are supported for the requested project.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture listRuntimes( - com.google.cloud.functions.v2alpha.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_FUNCTION = 0; - private static final int METHODID_LIST_FUNCTIONS = 1; - private static final int METHODID_CREATE_FUNCTION = 2; - private static final int METHODID_UPDATE_FUNCTION = 3; - private static final int METHODID_DELETE_FUNCTION = 4; - private static final int METHODID_GENERATE_UPLOAD_URL = 5; - private static final int METHODID_GENERATE_DOWNLOAD_URL = 6; - private static final int METHODID_LIST_RUNTIMES = 7; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final FunctionServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(FunctionServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_FUNCTION: - serviceImpl.getFunction((com.google.cloud.functions.v2alpha.GetFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FUNCTIONS: - serviceImpl.listFunctions((com.google.cloud.functions.v2alpha.ListFunctionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FUNCTION: - serviceImpl.createFunction((com.google.cloud.functions.v2alpha.CreateFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FUNCTION: - serviceImpl.updateFunction((com.google.cloud.functions.v2alpha.UpdateFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FUNCTION: - serviceImpl.deleteFunction((com.google.cloud.functions.v2alpha.DeleteFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_UPLOAD_URL: - serviceImpl.generateUploadUrl((com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_DOWNLOAD_URL: - serviceImpl.generateDownloadUrl((com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RUNTIMES: - serviceImpl.listRuntimes((com.google.cloud.functions.v2alpha.ListRuntimesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class FunctionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - FunctionServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("FunctionService"); - } - } - - private static final class FunctionServiceFileDescriptorSupplier - extends FunctionServiceBaseDescriptorSupplier { - FunctionServiceFileDescriptorSupplier() {} - } - - private static final class FunctionServiceMethodDescriptorSupplier - extends FunctionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - FunctionServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (FunctionServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new FunctionServiceFileDescriptorSupplier()) - .addMethod(getGetFunctionMethod()) - .addMethod(getListFunctionsMethod()) - .addMethod(getCreateFunctionMethod()) - .addMethod(getUpdateFunctionMethod()) - .addMethod(getDeleteFunctionMethod()) - .addMethod(getGenerateUploadUrlMethod()) - .addMethod(getGenerateDownloadUrlMethod()) - .addMethod(getListRuntimesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java deleted file mode 100644 index 278f1f9d..00000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2alpha/functions.proto - -package com.google.cloud.functions.v2alpha; - -public interface DeleteFunctionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.DeleteFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * Required. The name of the function which should be deleted.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
                              -   * Required. The name of the function which should be deleted.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java deleted file mode 100644 index f8998709..00000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java +++ /dev/null @@ -1,653 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2alpha/functions.proto - -package com.google.cloud.functions.v2alpha; - -public final class FunctionsProto { - private FunctionsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_Function_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_Source_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2alpha_Stage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.google/cloud/functions/v2alpha/functio" + - "ns.proto\022\036google.cloud.functions.v2alpha" + - "\032\034google/api/annotations.proto\032\027google/a" + - "pi/client.proto\032\037google/api/field_behavi" + - "or.proto\032\031google/api/resource.proto\032#goo" + - "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" + - "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" + - "nctions.v2alpha.BuildConfig\022E\n\016service_c" + - "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" + - "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\204\007\n\"com.google.cloud.functi" + - "ons.v2alphaB\016FunctionsProtoP\001ZGgoogle.go" + - "lang.org/genproto/googleapis/cloud/funct" + - "ions/v2alpha;functions\242\002\003GCF\352Ao\n*artifac" + - "tregistry.googleapis.com/Repository\022Apro" + - "jects/{project}/locations/{location}/rep" + - "ositories/{repository}\352AY\n\037cloudbuild.go" + - "ogleapis.com/Build\0226projects/{project}/l" + - "ocations/{location}/builds/{build}\352Ai\n$c" + - "loudbuild.googleapis.com/WorkerPool\022Apro" + - "jects/{project}/locations/{location}/wor" + - "kerPools/{worker_pool}\352AX\n\032run.googleapi" + - "s.com/Service\022:projects/{project}/locati" + - "ons/{location}/services/{service}\352Ad\n\"vp" + - "caccess.googleapis.com/Connector\022>projec" + - "ts/{project}/locations/{location}/connec" + - "tors/{connector}\352A]\n\037eventarc.googleapis" + - ".com/Trigger\022:projects/{project}/locatio" + - "ns/{location}/triggers/{trigger}\352A]\n\037eve" + - "ntarc.googleapis.com/Channel\022:projects/{" + - "project}/locations/{location}/channels/{" + - "channel}\352A@\n\033pubsub.googleapis.com/Topic" + - "\022!projects/{project}/topics/{topic}b\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_functions_v2alpha_Function_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_Function_descriptor, - new java.lang.String[] { "Name", "Environment", "Description", "BuildConfig", "ServiceConfig", "EventTrigger", "State", "UpdateTime", "Labels", "StateMessages", }); - internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor = - internal_static_google_cloud_functions_v2alpha_Function_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor, - new java.lang.String[] { "Severity", "Type", "Message", }); - internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor, - new java.lang.String[] { "Bucket", "Object", "Generation", }); - internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor, - new java.lang.String[] { "BranchName", "TagName", "CommitSha", "ProjectId", "RepoName", "Dir", "InvertRegex", "Revision", }); - internal_static_google_cloud_functions_v2alpha_Source_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_Source_descriptor, - new java.lang.String[] { "StorageSource", "RepoSource", "Source", }); - internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor, - new java.lang.String[] { "ResolvedStorageSource", "ResolvedRepoSource", }); - internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor, - new java.lang.String[] { "Build", "Runtime", "EntryPoint", "Source", "SourceProvenance", "WorkerPool", "EnvironmentVariables", "DockerRepository", }); - internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor, - new java.lang.String[] { "Service", "TimeoutSeconds", "AvailableMemory", "EnvironmentVariables", "MaxInstanceCount", "MinInstanceCount", "VpcConnector", "VpcConnectorEgressSettings", "IngressSettings", "Uri", "ServiceAccountEmail", "AllTrafficOnLatestRevision", "SecretEnvironmentVariables", "SecretVolumes", "Revision", }); - internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor, - new java.lang.String[] { "Key", "ProjectId", "Secret", "Version", }); - internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor, - new java.lang.String[] { "MountPath", "ProjectId", "Secret", "Versions", }); - internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor = - internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor, - new java.lang.String[] { "Version", "Path", }); - internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor, - new java.lang.String[] { "Trigger", "TriggerRegion", "EventType", "EventFilters", "PubsubTopic", "ServiceAccountEmail", "RetryPolicy", "Channel", }); - internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor, - new java.lang.String[] { "Attribute", "Value", "Operator", }); - internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor, - new java.lang.String[] { "Functions", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor, - new java.lang.String[] { "Parent", "Function", "FunctionId", }); - internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor, - new java.lang.String[] { "Function", "UpdateMask", }); - internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor, - new java.lang.String[] { "Parent", }); - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor, - new java.lang.String[] { "UploadUrl", "StorageSource", }); - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor, - new java.lang.String[] { "DownloadUrl", }); - internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", }); - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor, - new java.lang.String[] { "Runtimes", }); - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor = - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Stage", "Warnings", "Environment", }); - internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", "RequestResource", "Stages", }); - internal_static_google_cloud_functions_v2alpha_Stage_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2alpha_Stage_descriptor, - new java.lang.String[] { "Name", "Message", "State", "Resource", "ResourceUri", "StateMessages", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java deleted file mode 100644 index aa045855..00000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2alpha/functions.proto - -package com.google.cloud.functions.v2alpha; - -public interface GenerateDownloadUrlRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * 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) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
                              -   * 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) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java deleted file mode 100644 index e8da0f49..00000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2alpha/functions.proto - -package com.google.cloud.functions.v2alpha; - -public interface GenerateUploadUrlRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GenerateUploadUrlRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * 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) = { ... } - * @return The parent. - */ - 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/*`.
                              -   * 
                              - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java b/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java deleted file mode 100644 index ce22817d..00000000 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2alpha/functions.proto - -package com.google.cloud.functions.v2alpha; - -public interface GetFunctionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GetFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * Required. The name of the function which details should be obtained.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
                              -   * Required. The name of the function which details should be obtained.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v2beta/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java b/owl-bot-staging/v2beta/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java deleted file mode 100644 index 6929bb43..00000000 --- a/owl-bot-staging/v2beta/grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java +++ /dev/null @@ -1,1021 +0,0 @@ -package com.google.cloud.functions.v2beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
                              - * Google Cloud Functions is used to deploy functions that are executed by
                              - * Google in response to various events. Data connected with that event is
                              - * passed to a function as the input data.
                              - * A **function** is a resource which describes a function that should be
                              - * executed and how it is triggered.
                              - * 
                              - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/functions/v2beta/functions.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class FunctionServiceGrpc { - - private FunctionServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.functions.v2beta.FunctionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFunction", - requestType = com.google.cloud.functions.v2beta.GetFunctionRequest.class, - responseType = com.google.cloud.functions.v2beta.Function.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFunctionMethod() { - io.grpc.MethodDescriptor getGetFunctionMethod; - if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGetFunctionMethod = FunctionServiceGrpc.getGetFunctionMethod) == null) { - FunctionServiceGrpc.getGetFunctionMethod = getGetFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.GetFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.Function.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GetFunction")) - .build(); - } - } - } - return getGetFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFunctionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFunctions", - requestType = com.google.cloud.functions.v2beta.ListFunctionsRequest.class, - responseType = com.google.cloud.functions.v2beta.ListFunctionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFunctionsMethod() { - io.grpc.MethodDescriptor getListFunctionsMethod; - if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getListFunctionsMethod = FunctionServiceGrpc.getListFunctionsMethod) == null) { - FunctionServiceGrpc.getListFunctionsMethod = getListFunctionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFunctions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.ListFunctionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.ListFunctionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListFunctions")) - .build(); - } - } - } - return getListFunctionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFunction", - requestType = com.google.cloud.functions.v2beta.CreateFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFunctionMethod() { - io.grpc.MethodDescriptor getCreateFunctionMethod; - if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getCreateFunctionMethod = FunctionServiceGrpc.getCreateFunctionMethod) == null) { - FunctionServiceGrpc.getCreateFunctionMethod = getCreateFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.CreateFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("CreateFunction")) - .build(); - } - } - } - return getCreateFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFunction", - requestType = com.google.cloud.functions.v2beta.UpdateFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateFunctionMethod() { - io.grpc.MethodDescriptor getUpdateFunctionMethod; - if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getUpdateFunctionMethod = FunctionServiceGrpc.getUpdateFunctionMethod) == null) { - FunctionServiceGrpc.getUpdateFunctionMethod = getUpdateFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.UpdateFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("UpdateFunction")) - .build(); - } - } - } - return getUpdateFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteFunctionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFunction", - requestType = com.google.cloud.functions.v2beta.DeleteFunctionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteFunctionMethod() { - io.grpc.MethodDescriptor getDeleteFunctionMethod; - if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getDeleteFunctionMethod = FunctionServiceGrpc.getDeleteFunctionMethod) == null) { - FunctionServiceGrpc.getDeleteFunctionMethod = getDeleteFunctionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFunction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.DeleteFunctionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("DeleteFunction")) - .build(); - } - } - } - return getDeleteFunctionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateUploadUrlMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateUploadUrl", - requestType = com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.class, - responseType = com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateUploadUrlMethod() { - io.grpc.MethodDescriptor getGenerateUploadUrlMethod; - if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGenerateUploadUrlMethod = FunctionServiceGrpc.getGenerateUploadUrlMethod) == null) { - FunctionServiceGrpc.getGenerateUploadUrlMethod = getGenerateUploadUrlMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateUploadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GenerateUploadUrl")) - .build(); - } - } - } - return getGenerateUploadUrlMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateDownloadUrl", - requestType = com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.class, - responseType = com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateDownloadUrlMethod() { - io.grpc.MethodDescriptor getGenerateDownloadUrlMethod; - if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getGenerateDownloadUrlMethod = FunctionServiceGrpc.getGenerateDownloadUrlMethod) == null) { - FunctionServiceGrpc.getGenerateDownloadUrlMethod = getGenerateDownloadUrlMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateDownloadUrl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("GenerateDownloadUrl")) - .build(); - } - } - } - return getGenerateDownloadUrlMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRuntimesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", - requestType = com.google.cloud.functions.v2beta.ListRuntimesRequest.class, - responseType = com.google.cloud.functions.v2beta.ListRuntimesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRuntimesMethod() { - io.grpc.MethodDescriptor getListRuntimesMethod; - if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { - synchronized (FunctionServiceGrpc.class) { - if ((getListRuntimesMethod = FunctionServiceGrpc.getListRuntimesMethod) == null) { - FunctionServiceGrpc.getListRuntimesMethod = getListRuntimesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.ListRuntimesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.functions.v2beta.ListRuntimesResponse.getDefaultInstance())) - .setSchemaDescriptor(new FunctionServiceMethodDescriptorSupplier("ListRuntimes")) - .build(); - } - } - } - return getListRuntimesMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static FunctionServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceStub(channel, callOptions); - } - }; - return FunctionServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static FunctionServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceBlockingStub(channel, callOptions); - } - }; - return FunctionServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static FunctionServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FunctionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceFutureStub(channel, callOptions); - } - }; - return FunctionServiceFutureStub.newStub(factory, channel); - } - - /** - *
                              -   * Google Cloud Functions is used to deploy functions that are executed by
                              -   * Google in response to various events. Data connected with that event is
                              -   * passed to a function as the input data.
                              -   * A **function** is a resource which describes a function that should be
                              -   * executed and how it is triggered.
                              -   * 
                              - */ - public static abstract class FunctionServiceImplBase implements io.grpc.BindableService { - - /** - *
                              -     * Returns a function with the given name from the requested project.
                              -     * 
                              - */ - public void getFunction(com.google.cloud.functions.v2beta.GetFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFunctionMethod(), responseObserver); - } - - /** - *
                              -     * Returns a list of functions that belong to the requested project.
                              -     * 
                              - */ - public void listFunctions(com.google.cloud.functions.v2beta.ListFunctionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFunctionsMethod(), responseObserver); - } - - /** - *
                              -     * 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.
                              -     * 
                              - */ - public void createFunction(com.google.cloud.functions.v2beta.CreateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFunctionMethod(), responseObserver); - } - - /** - *
                              -     * Updates existing function.
                              -     * 
                              - */ - public void updateFunction(com.google.cloud.functions.v2beta.UpdateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFunctionMethod(), responseObserver); - } - - /** - *
                              -     * Deletes a function with the given name from the specified project. If the
                              -     * given function is used by some trigger, the trigger will be updated to
                              -     * remove this function.
                              -     * 
                              - */ - public void deleteFunction(com.google.cloud.functions.v2beta.DeleteFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFunctionMethod(), responseObserver); - } - - /** - *
                              -     * Returns a signed URL for uploading a function source code.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              -     * Once the function source code upload is complete, the used signed
                              -     * URL should be provided in CreateFunction or UpdateFunction request
                              -     * as a reference to the function source code.
                              -     * When uploading source code to the generated signed URL, please follow
                              -     * these restrictions:
                              -     * * Source file type should be a zip file.
                              -     * * No credentials should be attached - the signed URLs provide access to the
                              -     *   target bucket using internal service identity; if credentials were
                              -     *   attached, the identity from the credentials would be used, but that
                              -     *   identity does not have permissions to upload files to the URL.
                              -     * When making a HTTP PUT request, these two headers need to be specified:
                              -     * * `content-type: application/zip`
                              -     * And this header SHOULD NOT be specified:
                              -     * * `Authorization: Bearer YOUR_TOKEN`
                              -     * 
                              - */ - public void generateUploadUrl(com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateUploadUrlMethod(), responseObserver); - } - - /** - *
                              -     * Returns a signed URL for downloading deployed function source code.
                              -     * The URL is only valid for a limited period and should be used within
                              -     * 30 minutes of generation.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              -     * 
                              - */ - public void generateDownloadUrl(com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateDownloadUrlMethod(), responseObserver); - } - - /** - *
                              -     * Returns a list of runtimes that are supported for the requested project.
                              -     * 
                              - */ - public void listRuntimes(com.google.cloud.functions.v2beta.ListRuntimesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuntimesMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.GetFunctionRequest, - com.google.cloud.functions.v2beta.Function>( - this, METHODID_GET_FUNCTION))) - .addMethod( - getListFunctionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.ListFunctionsRequest, - com.google.cloud.functions.v2beta.ListFunctionsResponse>( - this, METHODID_LIST_FUNCTIONS))) - .addMethod( - getCreateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.CreateFunctionRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_FUNCTION))) - .addMethod( - getUpdateFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.UpdateFunctionRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_FUNCTION))) - .addMethod( - getDeleteFunctionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.DeleteFunctionRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_FUNCTION))) - .addMethod( - getGenerateUploadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest, - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse>( - this, METHODID_GENERATE_UPLOAD_URL))) - .addMethod( - getGenerateDownloadUrlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest, - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse>( - this, METHODID_GENERATE_DOWNLOAD_URL))) - .addMethod( - getListRuntimesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.functions.v2beta.ListRuntimesRequest, - com.google.cloud.functions.v2beta.ListRuntimesResponse>( - this, METHODID_LIST_RUNTIMES))) - .build(); - } - } - - /** - *
                              -   * Google Cloud Functions is used to deploy functions that are executed by
                              -   * Google in response to various events. Data connected with that event is
                              -   * passed to a function as the input data.
                              -   * A **function** is a resource which describes a function that should be
                              -   * executed and how it is triggered.
                              -   * 
                              - */ - public static final class FunctionServiceStub extends io.grpc.stub.AbstractAsyncStub { - private FunctionServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceStub(channel, callOptions); - } - - /** - *
                              -     * Returns a function with the given name from the requested project.
                              -     * 
                              - */ - public void getFunction(com.google.cloud.functions.v2beta.GetFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Returns a list of functions that belong to the requested project.
                              -     * 
                              - */ - public void listFunctions(com.google.cloud.functions.v2beta.ListFunctionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * 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.
                              -     * 
                              - */ - public void createFunction(com.google.cloud.functions.v2beta.CreateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Updates existing function.
                              -     * 
                              - */ - public void updateFunction(com.google.cloud.functions.v2beta.UpdateFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Deletes a function with the given name from the specified project. If the
                              -     * given function is used by some trigger, the trigger will be updated to
                              -     * remove this function.
                              -     * 
                              - */ - public void deleteFunction(com.google.cloud.functions.v2beta.DeleteFunctionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Returns a signed URL for uploading a function source code.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              -     * Once the function source code upload is complete, the used signed
                              -     * URL should be provided in CreateFunction or UpdateFunction request
                              -     * as a reference to the function source code.
                              -     * When uploading source code to the generated signed URL, please follow
                              -     * these restrictions:
                              -     * * Source file type should be a zip file.
                              -     * * No credentials should be attached - the signed URLs provide access to the
                              -     *   target bucket using internal service identity; if credentials were
                              -     *   attached, the identity from the credentials would be used, but that
                              -     *   identity does not have permissions to upload files to the URL.
                              -     * When making a HTTP PUT request, these two headers need to be specified:
                              -     * * `content-type: application/zip`
                              -     * And this header SHOULD NOT be specified:
                              -     * * `Authorization: Bearer YOUR_TOKEN`
                              -     * 
                              - */ - public void generateUploadUrl(com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Returns a signed URL for downloading deployed function source code.
                              -     * The URL is only valid for a limited period and should be used within
                              -     * 30 minutes of generation.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              -     * 
                              - */ - public void generateDownloadUrl(com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
                              -     * Returns a list of runtimes that are supported for the requested project.
                              -     * 
                              - */ - public void listRuntimes(com.google.cloud.functions.v2beta.ListRuntimesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
                              -   * Google Cloud Functions is used to deploy functions that are executed by
                              -   * Google in response to various events. Data connected with that event is
                              -   * passed to a function as the input data.
                              -   * A **function** is a resource which describes a function that should be
                              -   * executed and how it is triggered.
                              -   * 
                              - */ - public static final class FunctionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private FunctionServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceBlockingStub(channel, callOptions); - } - - /** - *
                              -     * Returns a function with the given name from the requested project.
                              -     * 
                              - */ - public com.google.cloud.functions.v2beta.Function getFunction(com.google.cloud.functions.v2beta.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFunctionMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Returns a list of functions that belong to the requested project.
                              -     * 
                              - */ - public com.google.cloud.functions.v2beta.ListFunctionsResponse listFunctions(com.google.cloud.functions.v2beta.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFunctionsMethod(), getCallOptions(), request); - } - - /** - *
                              -     * 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.
                              -     * 
                              - */ - public com.google.longrunning.Operation createFunction(com.google.cloud.functions.v2beta.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFunctionMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Updates existing function.
                              -     * 
                              - */ - public com.google.longrunning.Operation updateFunction(com.google.cloud.functions.v2beta.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFunctionMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Deletes a function with the given name from the specified project. If the
                              -     * given function is used by some trigger, the trigger will be updated to
                              -     * remove this function.
                              -     * 
                              - */ - public com.google.longrunning.Operation deleteFunction(com.google.cloud.functions.v2beta.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFunctionMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Returns a signed URL for uploading a function source code.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              -     * Once the function source code upload is complete, the used signed
                              -     * URL should be provided in CreateFunction or UpdateFunction request
                              -     * as a reference to the function source code.
                              -     * When uploading source code to the generated signed URL, please follow
                              -     * these restrictions:
                              -     * * Source file type should be a zip file.
                              -     * * No credentials should be attached - the signed URLs provide access to the
                              -     *   target bucket using internal service identity; if credentials were
                              -     *   attached, the identity from the credentials would be used, but that
                              -     *   identity does not have permissions to upload files to the URL.
                              -     * When making a HTTP PUT request, these two headers need to be specified:
                              -     * * `content-type: application/zip`
                              -     * And this header SHOULD NOT be specified:
                              -     * * `Authorization: Bearer YOUR_TOKEN`
                              -     * 
                              - */ - public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse generateUploadUrl(com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateUploadUrlMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Returns a signed URL for downloading deployed function source code.
                              -     * The URL is only valid for a limited period and should be used within
                              -     * 30 minutes of generation.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              -     * 
                              - */ - public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse generateDownloadUrl(com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateDownloadUrlMethod(), getCallOptions(), request); - } - - /** - *
                              -     * Returns a list of runtimes that are supported for the requested project.
                              -     * 
                              - */ - public com.google.cloud.functions.v2beta.ListRuntimesResponse listRuntimes(com.google.cloud.functions.v2beta.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRuntimesMethod(), getCallOptions(), request); - } - } - - /** - *
                              -   * Google Cloud Functions is used to deploy functions that are executed by
                              -   * Google in response to various events. Data connected with that event is
                              -   * passed to a function as the input data.
                              -   * A **function** is a resource which describes a function that should be
                              -   * executed and how it is triggered.
                              -   * 
                              - */ - public static final class FunctionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private FunctionServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FunctionServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FunctionServiceFutureStub(channel, callOptions); - } - - /** - *
                              -     * Returns a function with the given name from the requested project.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture getFunction( - com.google.cloud.functions.v2beta.GetFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFunctionMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Returns a list of functions that belong to the requested project.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture listFunctions( - com.google.cloud.functions.v2beta.ListFunctionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFunctionsMethod(), getCallOptions()), request); - } - - /** - *
                              -     * 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.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture createFunction( - com.google.cloud.functions.v2beta.CreateFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFunctionMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Updates existing function.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture updateFunction( - com.google.cloud.functions.v2beta.UpdateFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFunctionMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Deletes a function with the given name from the specified project. If the
                              -     * given function is used by some trigger, the trigger will be updated to
                              -     * remove this function.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture deleteFunction( - com.google.cloud.functions.v2beta.DeleteFunctionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFunctionMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Returns a signed URL for uploading a function source code.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls.
                              -     * Once the function source code upload is complete, the used signed
                              -     * URL should be provided in CreateFunction or UpdateFunction request
                              -     * as a reference to the function source code.
                              -     * When uploading source code to the generated signed URL, please follow
                              -     * these restrictions:
                              -     * * Source file type should be a zip file.
                              -     * * No credentials should be attached - the signed URLs provide access to the
                              -     *   target bucket using internal service identity; if credentials were
                              -     *   attached, the identity from the credentials would be used, but that
                              -     *   identity does not have permissions to upload files to the URL.
                              -     * When making a HTTP PUT request, these two headers need to be specified:
                              -     * * `content-type: application/zip`
                              -     * And this header SHOULD NOT be specified:
                              -     * * `Authorization: Bearer YOUR_TOKEN`
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture generateUploadUrl( - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateUploadUrlMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Returns a signed URL for downloading deployed function source code.
                              -     * The URL is only valid for a limited period and should be used within
                              -     * 30 minutes of generation.
                              -     * For more information about the signed URL usage see:
                              -     * https://cloud.google.com/storage/docs/access-control/signed-urls
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture generateDownloadUrl( - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateDownloadUrlMethod(), getCallOptions()), request); - } - - /** - *
                              -     * Returns a list of runtimes that are supported for the requested project.
                              -     * 
                              - */ - public com.google.common.util.concurrent.ListenableFuture listRuntimes( - com.google.cloud.functions.v2beta.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_FUNCTION = 0; - private static final int METHODID_LIST_FUNCTIONS = 1; - private static final int METHODID_CREATE_FUNCTION = 2; - private static final int METHODID_UPDATE_FUNCTION = 3; - private static final int METHODID_DELETE_FUNCTION = 4; - private static final int METHODID_GENERATE_UPLOAD_URL = 5; - private static final int METHODID_GENERATE_DOWNLOAD_URL = 6; - private static final int METHODID_LIST_RUNTIMES = 7; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final FunctionServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(FunctionServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_FUNCTION: - serviceImpl.getFunction((com.google.cloud.functions.v2beta.GetFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FUNCTIONS: - serviceImpl.listFunctions((com.google.cloud.functions.v2beta.ListFunctionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FUNCTION: - serviceImpl.createFunction((com.google.cloud.functions.v2beta.CreateFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FUNCTION: - serviceImpl.updateFunction((com.google.cloud.functions.v2beta.UpdateFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FUNCTION: - serviceImpl.deleteFunction((com.google.cloud.functions.v2beta.DeleteFunctionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_UPLOAD_URL: - serviceImpl.generateUploadUrl((com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_DOWNLOAD_URL: - serviceImpl.generateDownloadUrl((com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RUNTIMES: - serviceImpl.listRuntimes((com.google.cloud.functions.v2beta.ListRuntimesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class FunctionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - FunctionServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("FunctionService"); - } - } - - private static final class FunctionServiceFileDescriptorSupplier - extends FunctionServiceBaseDescriptorSupplier { - FunctionServiceFileDescriptorSupplier() {} - } - - private static final class FunctionServiceMethodDescriptorSupplier - extends FunctionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - FunctionServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (FunctionServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new FunctionServiceFileDescriptorSupplier()) - .addMethod(getGetFunctionMethod()) - .addMethod(getListFunctionsMethod()) - .addMethod(getCreateFunctionMethod()) - .addMethod(getUpdateFunctionMethod()) - .addMethod(getDeleteFunctionMethod()) - .addMethod(getGenerateUploadUrlMethod()) - .addMethod(getGenerateDownloadUrlMethod()) - .addMethod(getListRuntimesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java deleted file mode 100644 index 40753e74..00000000 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2beta/functions.proto - -package com.google.cloud.functions.v2beta; - -public interface DeleteFunctionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.DeleteFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * Required. The name of the function which should be deleted.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
                              -   * Required. The name of the function which should be deleted.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java deleted file mode 100644 index 02d7660b..00000000 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java +++ /dev/null @@ -1,651 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2beta/functions.proto - -package com.google.cloud.functions.v2beta; - -public final class FunctionsProto { - private FunctionsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_Function_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_Source_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - 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_Stage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n-google/cloud/functions/v2beta/function" + - "s.proto\022\035google.cloud.functions.v2beta\032\034" + - "google/api/annotations.proto\032\027google/api" + - "/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\202\007\n!com.g" + - "oogle.cloud.functions.v2betaB\016FunctionsP" + - "rotoP\001ZFgoogle.golang.org/genproto/googl" + - "eapis/cloud/functions/v2beta;functions\242\002" + - "\003GCF\352Ao\n*artifactregistry.googleapis.com" + - "/Repository\022Aprojects/{project}/location" + - "s/{location}/repositories/{repository}\352A" + - "Y\n\037cloudbuild.googleapis.com/Build\0226proj" + - "ects/{project}/locations/{location}/buil" + - "ds/{build}\352Ai\n$cloudbuild.googleapis.com" + - "/WorkerPool\022Aprojects/{project}/location" + - "s/{location}/workerPools/{worker_pool}\352A" + - "X\n\032run.googleapis.com/Service\022:projects/" + - "{project}/locations/{location}/services/" + - "{service}\352Ad\n\"vpcaccess.googleapis.com/C" + - "onnector\022>projects/{project}/locations/{" + - "location}/connectors/{connector}\352A]\n\037eve" + - "ntarc.googleapis.com/Trigger\022:projects/{" + - "project}/locations/{location}/triggers/{" + - "trigger}\352A]\n\037eventarc.googleapis.com/Cha" + - "nnel\022:projects/{project}/locations/{loca" + - "tion}/channels/{channel}\352A@\n\033pubsub.goog" + - "leapis.com/Topic\022!projects/{project}/top" + - "ics/{topic}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_functions_v2beta_Function_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_Function_descriptor, - new java.lang.String[] { "Name", "Environment", "Description", "BuildConfig", "ServiceConfig", "EventTrigger", "State", "UpdateTime", "Labels", "StateMessages", }); - internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor = - internal_static_google_cloud_functions_v2beta_Function_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_functions_v2beta_StateMessage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_StateMessage_descriptor, - new java.lang.String[] { "Severity", "Type", "Message", }); - internal_static_google_cloud_functions_v2beta_StorageSource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_StorageSource_descriptor, - new java.lang.String[] { "Bucket", "Object", "Generation", }); - internal_static_google_cloud_functions_v2beta_RepoSource_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_RepoSource_descriptor, - new java.lang.String[] { "BranchName", "TagName", "CommitSha", "ProjectId", "RepoName", "Dir", "InvertRegex", "Revision", }); - internal_static_google_cloud_functions_v2beta_Source_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_Source_descriptor, - new java.lang.String[] { "StorageSource", "RepoSource", "Source", }); - internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor, - new java.lang.String[] { "ResolvedStorageSource", "ResolvedRepoSource", }); - internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor, - new java.lang.String[] { "Build", "Runtime", "EntryPoint", "Source", "SourceProvenance", "WorkerPool", "EnvironmentVariables", "DockerRepository", }); - internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor, - new java.lang.String[] { "Service", "TimeoutSeconds", "AvailableMemory", "EnvironmentVariables", "MaxInstanceCount", "MinInstanceCount", "VpcConnector", "VpcConnectorEgressSettings", "IngressSettings", "Uri", "ServiceAccountEmail", "AllTrafficOnLatestRevision", "SecretEnvironmentVariables", "SecretVolumes", "Revision", }); - internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor = - internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor, - new java.lang.String[] { "Key", "ProjectId", "Secret", "Version", }); - internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor, - new java.lang.String[] { "MountPath", "ProjectId", "Secret", "Versions", }); - internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor = - internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor, - new java.lang.String[] { "Version", "Path", }); - internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor, - new java.lang.String[] { "Trigger", "TriggerRegion", "EventType", "EventFilters", "PubsubTopic", "ServiceAccountEmail", "RetryPolicy", "Channel", }); - internal_static_google_cloud_functions_v2beta_EventFilter_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_EventFilter_descriptor, - new java.lang.String[] { "Attribute", "Value", "Operator", }); - internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor, - new java.lang.String[] { "Functions", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor, - new java.lang.String[] { "Parent", "Function", "FunctionId", }); - internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor, - new java.lang.String[] { "Function", "UpdateMask", }); - internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor, - new java.lang.String[] { "Parent", }); - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor, - new java.lang.String[] { "UploadUrl", "StorageSource", }); - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor, - new java.lang.String[] { "DownloadUrl", }); - internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", }); - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor, - new java.lang.String[] { "Runtimes", }); - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor = - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Stage", "Warnings", "Environment", }); - internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_functions_v2beta_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", "RequestResource", "Stages", }); - internal_static_google_cloud_functions_v2beta_Stage_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_functions_v2beta_Stage_descriptor, - new java.lang.String[] { "Name", "Message", "State", "Resource", "ResourceUri", "StateMessages", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java deleted file mode 100644 index 4e7c5db4..00000000 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2beta/functions.proto - -package com.google.cloud.functions.v2beta; - -public interface GenerateDownloadUrlRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GenerateDownloadUrlRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * 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) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
                              -   * 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) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java deleted file mode 100644 index 4bad9a26..00000000 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2beta/functions.proto - -package com.google.cloud.functions.v2beta; - -public interface GenerateUploadUrlRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GenerateUploadUrlRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * 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) = { ... } - * @return The parent. - */ - 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/*`.
                              -   * 
                              - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java b/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java deleted file mode 100644 index 7d615258..00000000 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/functions/v2beta/functions.proto - -package com.google.cloud.functions.v2beta; - -public interface GetFunctionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GetFunctionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
                              -   * Required. The name of the function which details should be obtained.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
                              -   * Required. The name of the function which details should be obtained.
                              -   * 
                              - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/pom.xml b/pom.xml index 1befb4e0..abd8aca4 100644 --- a/pom.xml +++ b/pom.xml @@ -63,6 +63,16 @@ google-cloud-functions 2.4.3 + + com.google.api.grpc + proto-google-cloud-functions-v2 + 2.4.3 + + + com.google.api.grpc + grpc-google-cloud-functions-v2 + 2.4.3 + com.google.api.grpc proto-google-cloud-functions-v2alpha @@ -133,9 +143,11 @@ grpc-google-cloud-functions-v1 grpc-google-cloud-functions-v2beta grpc-google-cloud-functions-v2alpha + grpc-google-cloud-functions-v2 proto-google-cloud-functions-v1 proto-google-cloud-functions-v2beta proto-google-cloud-functions-v2alpha + proto-google-cloud-functions-v2 google-cloud-functions-bom diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java index b701eb4a..24344734 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java @@ -1,24 +1,42 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Request for the `CallFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.CallFunctionRequest} */ -public final class CallFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CallFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.CallFunctionRequest) CallFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CallFunctionRequest.newBuilder() to construct. private CallFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CallFunctionRequest() { name_ = ""; data_ = ""; @@ -26,16 +44,15 @@ private CallFunctionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CallFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CallFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private CallFunctionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - data_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + data_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,41 @@ private CallFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.CallFunctionRequest.class, com.google.cloud.functions.v1.CallFunctionRequest.Builder.class); + com.google.cloud.functions.v1.CallFunctionRequest.class, + com.google.cloud.functions.v1.CallFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
                                  * Required. The name of the function to be called.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -116,29 +142,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * Required. The name of the function to be called.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -149,11 +177,14 @@ public java.lang.String getName() { public static final int DATA_FIELD_NUMBER = 2; private volatile java.lang.Object data_; /** + * + * *
                                  * Required. Input to be passed to the function.
                                  * 
                              * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The data. */ @java.lang.Override @@ -162,29 +193,29 @@ public java.lang.String getData() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); data_ = s; return s; } } /** + * + * *
                                  * Required. Input to be passed to the function.
                                  * 
                              * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for data. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataBytes() { + public com.google.protobuf.ByteString getDataBytes() { java.lang.Object ref = data_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); data_ = b; return b; } else { @@ -193,6 +224,7 @@ public java.lang.String getData() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +236,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -235,17 +266,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.CallFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.CallFunctionRequest other = (com.google.cloud.functions.v1.CallFunctionRequest) obj; + com.google.cloud.functions.v1.CallFunctionRequest other = + (com.google.cloud.functions.v1.CallFunctionRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getData() - .equals(other.getData())) return false; + if (!getName().equals(other.getName())) return false; + if (!getData().equals(other.getData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,117 +297,126 @@ public int hashCode() { } public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CallFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.CallFunctionRequest 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.v1.CallFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.CallFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.CallFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.CallFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.CallFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.CallFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `CallFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.CallFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.CallFunctionRequest) com.google.cloud.functions.v1.CallFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.CallFunctionRequest.class, com.google.cloud.functions.v1.CallFunctionRequest.Builder.class); + com.google.cloud.functions.v1.CallFunctionRequest.class, + com.google.cloud.functions.v1.CallFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.CallFunctionRequest.newBuilder() @@ -385,16 +424,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; } @java.lang.Override @@ -427,7 +465,8 @@ public com.google.cloud.functions.v1.CallFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v1.CallFunctionRequest buildPartial() { - com.google.cloud.functions.v1.CallFunctionRequest result = new com.google.cloud.functions.v1.CallFunctionRequest(this); + com.google.cloud.functions.v1.CallFunctionRequest result = + new com.google.cloud.functions.v1.CallFunctionRequest(this); result.name_ = name_; result.data_ = data_; onBuilt(); @@ -438,38 +477,39 @@ public com.google.cloud.functions.v1.CallFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.CallFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v1.CallFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -477,7 +517,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.CallFunctionRequest other) { - if (other == com.google.cloud.functions.v1.CallFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.CallFunctionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -505,7 +546,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v1.CallFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v1.CallFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -517,18 +559,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                                    * Required. The name of the function to be called.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -537,20 +583,23 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function to be called.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -558,54 +607,67 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function to be called.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function to be called.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function to be called.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -613,18 +675,20 @@ public Builder setNameBytes( private java.lang.Object data_ = ""; /** + * + * *
                                    * Required. Input to be passed to the function.
                                    * 
                              * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The data. */ public java.lang.String getData() { java.lang.Object ref = data_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); data_ = s; return s; @@ -633,20 +697,21 @@ public java.lang.String getData() { } } /** + * + * *
                                    * Required. Input to be passed to the function.
                                    * 
                              * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for data. */ - public com.google.protobuf.ByteString - getDataBytes() { + public com.google.protobuf.ByteString getDataBytes() { java.lang.Object ref = data_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); data_ = b; return b; } else { @@ -654,61 +719,68 @@ public java.lang.String getData() { } } /** + * + * *
                                    * Required. Input to be passed to the function.
                                    * 
                              * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The data to set. * @return This builder for chaining. */ - public Builder setData( - java.lang.String value) { + public Builder setData(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + data_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. Input to be passed to the function.
                                    * 
                              * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearData() { - + data_ = getDefaultInstance().getData(); onChanged(); return this; } /** + * + * *
                                    * Required. Input to be passed to the function.
                                    * 
                              * * string data = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for data to set. * @return This builder for chaining. */ - public Builder setDataBytes( - com.google.protobuf.ByteString value) { + public Builder setDataBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + data_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +790,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.CallFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.CallFunctionRequest) private static final com.google.cloud.functions.v1.CallFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.CallFunctionRequest(); } @@ -732,16 +804,16 @@ public static com.google.cloud.functions.v1.CallFunctionRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CallFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CallFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CallFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CallFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +828,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.CallFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java new file mode 100644 index 00000000..4a6b73f2 --- /dev/null +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * 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/v1/functions.proto + +package com.google.cloud.functions.v1; + +public interface CallFunctionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.CallFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * Required. The name of the function to be called.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                              +   * Required. The name of the function to be called.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                              +   * Required. Input to be passed to the function.
                              +   * 
                              + * + * string data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The data. + */ + java.lang.String getData(); + /** + * + * + *
                              +   * Required. Input to be passed to the function.
                              +   * 
                              + * + * string data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for data. + */ + com.google.protobuf.ByteString getDataBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java index 1e0c8f0a..34c0537b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java @@ -1,24 +1,42 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Response of `CallFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.CallFunctionResponse} */ -public final class CallFunctionResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CallFunctionResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.CallFunctionResponse) CallFunctionResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CallFunctionResponse.newBuilder() to construct. private CallFunctionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CallFunctionResponse() { executionId_ = ""; result_ = ""; @@ -27,16 +45,15 @@ private CallFunctionResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CallFunctionResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CallFunctionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private CallFunctionResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - executionId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + executionId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - result_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + result_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - error_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + error_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,34 +107,39 @@ private CallFunctionResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.CallFunctionResponse.class, com.google.cloud.functions.v1.CallFunctionResponse.Builder.class); + com.google.cloud.functions.v1.CallFunctionResponse.class, + com.google.cloud.functions.v1.CallFunctionResponse.Builder.class); } public static final int EXECUTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object executionId_; /** + * + * *
                                  * Execution id of function invocation.
                                  * 
                              * * string execution_id = 1; + * * @return The executionId. */ @java.lang.Override @@ -123,29 +148,29 @@ public java.lang.String getExecutionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); executionId_ = s; return s; } } /** + * + * *
                                  * Execution id of function invocation.
                                  * 
                              * * string execution_id = 1; + * * @return The bytes for executionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getExecutionIdBytes() { + public com.google.protobuf.ByteString getExecutionIdBytes() { java.lang.Object ref = executionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); executionId_ = b; return b; } else { @@ -156,12 +181,15 @@ public java.lang.String getExecutionId() { public static final int RESULT_FIELD_NUMBER = 2; private volatile java.lang.Object result_; /** + * + * *
                                  * Result populated for successful execution of synchronous function. Will
                                  * not be populated if function does not return a result through context.
                                  * 
                              * * string result = 2; + * * @return The result. */ @java.lang.Override @@ -170,30 +198,30 @@ public java.lang.String getResult() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); result_ = s; return s; } } /** + * + * *
                                  * Result populated for successful execution of synchronous function. Will
                                  * not be populated if function does not return a result through context.
                                  * 
                              * * string result = 2; + * * @return The bytes for result. */ @java.lang.Override - public com.google.protobuf.ByteString - getResultBytes() { + public com.google.protobuf.ByteString getResultBytes() { java.lang.Object ref = result_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); result_ = b; return b; } else { @@ -204,12 +232,15 @@ public java.lang.String getResult() { public static final int ERROR_FIELD_NUMBER = 3; private volatile java.lang.Object error_; /** + * + * *
                                  * Either system or user-function generated error. Set if execution
                                  * was not successful.
                                  * 
                              * * string error = 3; + * * @return The error. */ @java.lang.Override @@ -218,30 +249,30 @@ public java.lang.String getError() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } } /** + * + * *
                                  * Either system or user-function generated error. Set if execution
                                  * was not successful.
                                  * 
                              * * string error = 3; + * * @return The bytes for error. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorBytes() { + public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { @@ -250,6 +281,7 @@ public java.lang.String getError() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +293,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executionId_); } @@ -298,19 +329,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.CallFunctionResponse)) { return super.equals(obj); } - com.google.cloud.functions.v1.CallFunctionResponse other = (com.google.cloud.functions.v1.CallFunctionResponse) obj; + com.google.cloud.functions.v1.CallFunctionResponse other = + (com.google.cloud.functions.v1.CallFunctionResponse) obj; - if (!getExecutionId() - .equals(other.getExecutionId())) return false; - if (!getResult() - .equals(other.getResult())) return false; - if (!getError() - .equals(other.getError())) return false; + if (!getExecutionId().equals(other.getExecutionId())) return false; + if (!getResult().equals(other.getResult())) return false; + if (!getError().equals(other.getError())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,117 +363,126 @@ public int hashCode() { } public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CallFunctionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.CallFunctionResponse 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.v1.CallFunctionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.CallFunctionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.CallFunctionResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.CallFunctionResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.CallFunctionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.CallFunctionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Response of `CallFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.CallFunctionResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.CallFunctionResponse) com.google.cloud.functions.v1.CallFunctionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.CallFunctionResponse.class, com.google.cloud.functions.v1.CallFunctionResponse.Builder.class); + com.google.cloud.functions.v1.CallFunctionResponse.class, + com.google.cloud.functions.v1.CallFunctionResponse.Builder.class); } // Construct using com.google.cloud.functions.v1.CallFunctionResponse.newBuilder() @@ -452,16 +490,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +512,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; } @java.lang.Override @@ -496,7 +533,8 @@ public com.google.cloud.functions.v1.CallFunctionResponse build() { @java.lang.Override public com.google.cloud.functions.v1.CallFunctionResponse buildPartial() { - com.google.cloud.functions.v1.CallFunctionResponse result = new com.google.cloud.functions.v1.CallFunctionResponse(this); + com.google.cloud.functions.v1.CallFunctionResponse result = + new com.google.cloud.functions.v1.CallFunctionResponse(this); result.executionId_ = executionId_; result.result_ = result_; result.error_ = error_; @@ -508,38 +546,39 @@ public com.google.cloud.functions.v1.CallFunctionResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.CallFunctionResponse)other); + return mergeFrom((com.google.cloud.functions.v1.CallFunctionResponse) other); } else { super.mergeFrom(other); return this; @@ -547,7 +586,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.CallFunctionResponse other) { - if (other == com.google.cloud.functions.v1.CallFunctionResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.CallFunctionResponse.getDefaultInstance()) + return this; if (!other.getExecutionId().isEmpty()) { executionId_ = other.executionId_; onChanged(); @@ -579,7 +619,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v1.CallFunctionResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v1.CallFunctionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -591,18 +632,20 @@ public Builder mergeFrom( private java.lang.Object executionId_ = ""; /** + * + * *
                                    * Execution id of function invocation.
                                    * 
                              * * string execution_id = 1; + * * @return The executionId. */ public java.lang.String getExecutionId() { java.lang.Object ref = executionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); executionId_ = s; return s; @@ -611,20 +654,21 @@ public java.lang.String getExecutionId() { } } /** + * + * *
                                    * Execution id of function invocation.
                                    * 
                              * * string execution_id = 1; + * * @return The bytes for executionId. */ - public com.google.protobuf.ByteString - getExecutionIdBytes() { + public com.google.protobuf.ByteString getExecutionIdBytes() { java.lang.Object ref = executionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); executionId_ = b; return b; } else { @@ -632,54 +676,61 @@ public java.lang.String getExecutionId() { } } /** + * + * *
                                    * Execution id of function invocation.
                                    * 
                              * * string execution_id = 1; + * * @param value The executionId to set. * @return This builder for chaining. */ - public Builder setExecutionId( - java.lang.String value) { + public Builder setExecutionId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + executionId_ = value; onChanged(); return this; } /** + * + * *
                                    * Execution id of function invocation.
                                    * 
                              * * string execution_id = 1; + * * @return This builder for chaining. */ public Builder clearExecutionId() { - + executionId_ = getDefaultInstance().getExecutionId(); onChanged(); return this; } /** + * + * *
                                    * Execution id of function invocation.
                                    * 
                              * * string execution_id = 1; + * * @param value The bytes for executionId to set. * @return This builder for chaining. */ - public Builder setExecutionIdBytes( - com.google.protobuf.ByteString value) { + public Builder setExecutionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + executionId_ = value; onChanged(); return this; @@ -687,19 +738,21 @@ public Builder setExecutionIdBytes( private java.lang.Object result_ = ""; /** + * + * *
                                    * Result populated for successful execution of synchronous function. Will
                                    * not be populated if function does not return a result through context.
                                    * 
                              * * string result = 2; + * * @return The result. */ public java.lang.String getResult() { java.lang.Object ref = result_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); result_ = s; return s; @@ -708,21 +761,22 @@ public java.lang.String getResult() { } } /** + * + * *
                                    * Result populated for successful execution of synchronous function. Will
                                    * not be populated if function does not return a result through context.
                                    * 
                              * * string result = 2; + * * @return The bytes for result. */ - public com.google.protobuf.ByteString - getResultBytes() { + public com.google.protobuf.ByteString getResultBytes() { java.lang.Object ref = result_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); result_ = b; return b; } else { @@ -730,57 +784,64 @@ public java.lang.String getResult() { } } /** + * + * *
                                    * Result populated for successful execution of synchronous function. Will
                                    * not be populated if function does not return a result through context.
                                    * 
                              * * string result = 2; + * * @param value The result to set. * @return This builder for chaining. */ - public Builder setResult( - java.lang.String value) { + public Builder setResult(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + result_ = value; onChanged(); return this; } /** + * + * *
                                    * Result populated for successful execution of synchronous function. Will
                                    * not be populated if function does not return a result through context.
                                    * 
                              * * string result = 2; + * * @return This builder for chaining. */ public Builder clearResult() { - + result_ = getDefaultInstance().getResult(); onChanged(); return this; } /** + * + * *
                                    * Result populated for successful execution of synchronous function. Will
                                    * not be populated if function does not return a result through context.
                                    * 
                              * * string result = 2; + * * @param value The bytes for result to set. * @return This builder for chaining. */ - public Builder setResultBytes( - com.google.protobuf.ByteString value) { + public Builder setResultBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + result_ = value; onChanged(); return this; @@ -788,19 +849,21 @@ public Builder setResultBytes( private java.lang.Object error_ = ""; /** + * + * *
                                    * Either system or user-function generated error. Set if execution
                                    * was not successful.
                                    * 
                              * * string error = 3; + * * @return The error. */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; @@ -809,21 +872,22 @@ public java.lang.String getError() { } } /** + * + * *
                                    * Either system or user-function generated error. Set if execution
                                    * was not successful.
                                    * 
                              * * string error = 3; + * * @return The bytes for error. */ - public com.google.protobuf.ByteString - getErrorBytes() { + public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { @@ -831,64 +895,71 @@ public java.lang.String getError() { } } /** + * + * *
                                    * Either system or user-function generated error. Set if execution
                                    * was not successful.
                                    * 
                              * * string error = 3; + * * @param value The error to set. * @return This builder for chaining. */ - public Builder setError( - java.lang.String value) { + public Builder setError(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + error_ = value; onChanged(); return this; } /** + * + * *
                                    * Either system or user-function generated error. Set if execution
                                    * was not successful.
                                    * 
                              * * string error = 3; + * * @return This builder for chaining. */ public Builder clearError() { - + error_ = getDefaultInstance().getError(); onChanged(); return this; } /** + * + * *
                                    * Either system or user-function generated error. Set if execution
                                    * was not successful.
                                    * 
                              * * string error = 3; + * * @param value The bytes for error to set. * @return This builder for chaining. */ - public Builder setErrorBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + error_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -898,12 +969,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.CallFunctionResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.CallFunctionResponse) private static final com.google.cloud.functions.v1.CallFunctionResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.CallFunctionResponse(); } @@ -912,16 +983,16 @@ public static com.google.cloud.functions.v1.CallFunctionResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CallFunctionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CallFunctionResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CallFunctionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CallFunctionResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,6 +1007,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.CallFunctionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java index 382a94e9..4bb656e9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponseOrBuilder.java @@ -1,73 +1,104 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface CallFunctionResponseOrBuilder extends +public interface CallFunctionResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.CallFunctionResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Execution id of function invocation.
                                  * 
                              * * string execution_id = 1; + * * @return The executionId. */ java.lang.String getExecutionId(); /** + * + * *
                                  * Execution id of function invocation.
                                  * 
                              * * string execution_id = 1; + * * @return The bytes for executionId. */ - com.google.protobuf.ByteString - getExecutionIdBytes(); + com.google.protobuf.ByteString getExecutionIdBytes(); /** + * + * *
                                  * Result populated for successful execution of synchronous function. Will
                                  * not be populated if function does not return a result through context.
                                  * 
                              * * string result = 2; + * * @return The result. */ java.lang.String getResult(); /** + * + * *
                                  * Result populated for successful execution of synchronous function. Will
                                  * not be populated if function does not return a result through context.
                                  * 
                              * * string result = 2; + * * @return The bytes for result. */ - com.google.protobuf.ByteString - getResultBytes(); + com.google.protobuf.ByteString getResultBytes(); /** + * + * *
                                  * Either system or user-function generated error. Set if execution
                                  * was not successful.
                                  * 
                              * * string error = 3; + * * @return The error. */ java.lang.String getError(); /** + * + * *
                                  * Either system or user-function generated error. Set if execution
                                  * was not successful.
                                  * 
                              * * string error = 3; + * * @return The bytes for error. */ - com.google.protobuf.ByteString - getErrorBytes(); + com.google.protobuf.ByteString getErrorBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java index 04de8546..bcb223da 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java @@ -1,9 +1,26 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Describes a Cloud Function that contains user computation executed in
                                * response to an event. It encapsulate function and triggers configurations.
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v1.CloudFunction}
                                */
                              -public final class CloudFunction extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class CloudFunction extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.CloudFunction)
                                   CloudFunctionOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use CloudFunction.newBuilder() to construct.
                                 private CloudFunction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private CloudFunction() {
                                   name_ = "";
                                   description_ = "";
                              @@ -44,16 +62,15 @@ private CloudFunction() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new CloudFunction();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private CloudFunction(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -73,272 +90,320 @@ private CloudFunction(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            name_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            description_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -            sourceCodeCase_ = 3;
                              -            sourceCode_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            com.google.cloud.functions.v1.SourceRepository.Builder subBuilder = null;
                              -            if (sourceCodeCase_ == 4) {
                              -              subBuilder = ((com.google.cloud.functions.v1.SourceRepository) sourceCode_).toBuilder();
                              +              name_ = s;
                              +              break;
                                           }
                              -            sourceCode_ =
                              -                input.readMessage(com.google.cloud.functions.v1.SourceRepository.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom((com.google.cloud.functions.v1.SourceRepository) sourceCode_);
                              -              sourceCode_ = subBuilder.buildPartial();
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                              +
                              +              description_ = s;
                              +              break;
                                           }
                              -            sourceCodeCase_ = 4;
                              -            break;
                              -          }
                              -          case 42: {
                              -            com.google.cloud.functions.v1.HttpsTrigger.Builder subBuilder = null;
                              -            if (triggerCase_ == 5) {
                              -              subBuilder = ((com.google.cloud.functions.v1.HttpsTrigger) trigger_).toBuilder();
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                              +              sourceCodeCase_ = 3;
                              +              sourceCode_ = s;
                              +              break;
                                           }
                              -            trigger_ =
                              -                input.readMessage(com.google.cloud.functions.v1.HttpsTrigger.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom((com.google.cloud.functions.v1.HttpsTrigger) trigger_);
                              -              trigger_ = subBuilder.buildPartial();
                              +          case 34:
                              +            {
                              +              com.google.cloud.functions.v1.SourceRepository.Builder subBuilder = null;
                              +              if (sourceCodeCase_ == 4) {
                              +                subBuilder =
                              +                    ((com.google.cloud.functions.v1.SourceRepository) sourceCode_).toBuilder();
                              +              }
                              +              sourceCode_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v1.SourceRepository.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom((com.google.cloud.functions.v1.SourceRepository) sourceCode_);
                              +                sourceCode_ = subBuilder.buildPartial();
                              +              }
                              +              sourceCodeCase_ = 4;
                              +              break;
                                           }
                              -            triggerCase_ = 5;
                              -            break;
                              -          }
                              -          case 50: {
                              -            com.google.cloud.functions.v1.EventTrigger.Builder subBuilder = null;
                              -            if (triggerCase_ == 6) {
                              -              subBuilder = ((com.google.cloud.functions.v1.EventTrigger) trigger_).toBuilder();
                              +          case 42:
                              +            {
                              +              com.google.cloud.functions.v1.HttpsTrigger.Builder subBuilder = null;
                              +              if (triggerCase_ == 5) {
                              +                subBuilder = ((com.google.cloud.functions.v1.HttpsTrigger) trigger_).toBuilder();
                              +              }
                              +              trigger_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v1.HttpsTrigger.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom((com.google.cloud.functions.v1.HttpsTrigger) trigger_);
                              +                trigger_ = subBuilder.buildPartial();
                              +              }
                              +              triggerCase_ = 5;
                              +              break;
                                           }
                              -            trigger_ =
                              -                input.readMessage(com.google.cloud.functions.v1.EventTrigger.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom((com.google.cloud.functions.v1.EventTrigger) trigger_);
                              -              trigger_ = subBuilder.buildPartial();
                              +          case 50:
                              +            {
                              +              com.google.cloud.functions.v1.EventTrigger.Builder subBuilder = null;
                              +              if (triggerCase_ == 6) {
                              +                subBuilder = ((com.google.cloud.functions.v1.EventTrigger) trigger_).toBuilder();
                              +              }
                              +              trigger_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v1.EventTrigger.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom((com.google.cloud.functions.v1.EventTrigger) trigger_);
                              +                trigger_ = subBuilder.buildPartial();
                              +              }
                              +              triggerCase_ = 6;
                              +              break;
                                           }
                              -            triggerCase_ = 6;
                              -            break;
                              -          }
                              -          case 56: {
                              -            int rawValue = input.readEnum();
                              +          case 56:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            status_ = rawValue;
                              -            break;
                              -          }
                              -          case 66: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              status_ = rawValue;
                              +              break;
                              +            }
                              +          case 66:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            entryPoint_ = s;
                              -            break;
                              -          }
                              -          case 74: {
                              -            com.google.protobuf.Duration.Builder subBuilder = null;
                              -            if (timeout_ != null) {
                              -              subBuilder = timeout_.toBuilder();
                              +              entryPoint_ = s;
                              +              break;
                                           }
                              -            timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(timeout_);
                              -              timeout_ = subBuilder.buildPartial();
                              +          case 74:
                              +            {
                              +              com.google.protobuf.Duration.Builder subBuilder = null;
                              +              if (timeout_ != null) {
                              +                subBuilder = timeout_.toBuilder();
                              +              }
                              +              timeout_ =
                              +                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(timeout_);
                              +                timeout_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              +          case 80:
                              +            {
                              +              availableMemoryMb_ = input.readInt32();
                              +              break;
                              +            }
                              +          case 90:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            break;
                              -          }
                              -          case 80: {
                              -
                              -            availableMemoryMb_ = input.readInt32();
                              -            break;
                              -          }
                              -          case 90: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            serviceAccountEmail_ = s;
                              -            break;
                              -          }
                              -          case 98: {
                              -            com.google.protobuf.Timestamp.Builder subBuilder = null;
                              -            if (updateTime_ != null) {
                              -              subBuilder = updateTime_.toBuilder();
                              +              serviceAccountEmail_ = s;
                              +              break;
                                           }
                              -            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(updateTime_);
                              -              updateTime_ = subBuilder.buildPartial();
                              +          case 98:
                              +            {
                              +              com.google.protobuf.Timestamp.Builder subBuilder = null;
                              +              if (updateTime_ != null) {
                              +                subBuilder = updateTime_.toBuilder();
                              +              }
                              +              updateTime_ =
                              +                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(updateTime_);
                              +                updateTime_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              -
                              -            break;
                              -          }
                              -          case 112: {
                              -
                              -            versionId_ = input.readInt64();
                              -            break;
                              -          }
                              -          case 122: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              labels_ = com.google.protobuf.MapField.newMapField(
                              -                  LabelsDefaultEntryHolder.defaultEntry);
                              -              mutable_bitField0_ |= 0x00000001;
                              +          case 112:
                              +            {
                              +              versionId_ = input.readInt64();
                              +              break;
                                           }
                              -            com.google.protobuf.MapEntry
                              -            labels__ = input.readMessage(
                              -                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              -            labels_.getMutableMap().put(
                              -                labels__.getKey(), labels__.getValue());
                              -            break;
                              -          }
                              -          case 130: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -            sourceCodeCase_ = 16;
                              -            sourceCode_ = s;
                              -            break;
                              -          }
                              -          case 138: {
                              -            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              -              environmentVariables_ = com.google.protobuf.MapField.newMapField(
                              -                  EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              -              mutable_bitField0_ |= 0x00000002;
                              +          case 122:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                labels_ =
                              +                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              com.google.protobuf.MapEntry labels__ =
                              +                  input.readMessage(
                              +                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              +              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
                              +              break;
                                           }
                              -            com.google.protobuf.MapEntry
                              -            environmentVariables__ = input.readMessage(
                              -                EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              -            environmentVariables_.getMutableMap().put(
                              -                environmentVariables__.getKey(), environmentVariables__.getValue());
                              -            break;
                              -          }
                              -          case 146: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            network_ = s;
                              -            break;
                              -          }
                              -          case 154: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 130:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                              +              sourceCodeCase_ = 16;
                              +              sourceCode_ = s;
                              +              break;
                              +            }
                              +          case 138:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              +                environmentVariables_ =
                              +                    com.google.protobuf.MapField.newMapField(
                              +                        EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              +                mutable_bitField0_ |= 0x00000002;
                              +              }
                              +              com.google.protobuf.MapEntry
                              +                  environmentVariables__ =
                              +                      input.readMessage(
                              +                          EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
                              +                          extensionRegistry);
                              +              environmentVariables_
                              +                  .getMutableMap()
                              +                  .put(environmentVariables__.getKey(), environmentVariables__.getValue());
                              +              break;
                              +            }
                              +          case 146:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            runtime_ = s;
                              -            break;
                              -          }
                              -          case 160: {
                              +              network_ = s;
                              +              break;
                              +            }
                              +          case 154:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            maxInstances_ = input.readInt32();
                              -            break;
                              -          }
                              -          case 178: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              runtime_ = s;
                              +              break;
                              +            }
                              +          case 160:
                              +            {
                              +              maxInstances_ = input.readInt32();
                              +              break;
                              +            }
                              +          case 178:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            vpcConnector_ = s;
                              -            break;
                              -          }
                              -          case 184: {
                              -            int rawValue = input.readEnum();
                              +              vpcConnector_ = s;
                              +              break;
                              +            }
                              +          case 184:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            vpcConnectorEgressSettings_ = rawValue;
                              -            break;
                              -          }
                              -          case 192: {
                              -            int rawValue = input.readEnum();
                              +              vpcConnectorEgressSettings_ = rawValue;
                              +              break;
                              +            }
                              +          case 192:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            ingressSettings_ = rawValue;
                              -            break;
                              -          }
                              -          case 202: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              ingressSettings_ = rawValue;
                              +              break;
                              +            }
                              +          case 202:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            kmsKeyName_ = s;
                              -            break;
                              -          }
                              -          case 210: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              kmsKeyName_ = s;
                              +              break;
                              +            }
                              +          case 210:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            buildWorkerPool_ = s;
                              -            break;
                              -          }
                              -          case 218: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              buildWorkerPool_ = s;
                              +              break;
                              +            }
                              +          case 218:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            buildId_ = s;
                              -            break;
                              -          }
                              -          case 226: {
                              -            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                              -              buildEnvironmentVariables_ = com.google.protobuf.MapField.newMapField(
                              -                  BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              -              mutable_bitField0_ |= 0x00000004;
                              +              buildId_ = s;
                              +              break;
                                           }
                              -            com.google.protobuf.MapEntry
                              -            buildEnvironmentVariables__ = input.readMessage(
                              -                BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              -            buildEnvironmentVariables_.getMutableMap().put(
                              -                buildEnvironmentVariables__.getKey(), buildEnvironmentVariables__.getValue());
                              -            break;
                              -          }
                              -          case 234: {
                              -            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
                              -              secretEnvironmentVariables_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000008;
                              +          case 226:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                              +                buildEnvironmentVariables_ =
                              +                    com.google.protobuf.MapField.newMapField(
                              +                        BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              +                mutable_bitField0_ |= 0x00000004;
                              +              }
                              +              com.google.protobuf.MapEntry
                              +                  buildEnvironmentVariables__ =
                              +                      input.readMessage(
                              +                          BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry
                              +                              .getParserForType(),
                              +                          extensionRegistry);
                              +              buildEnvironmentVariables_
                              +                  .getMutableMap()
                              +                  .put(
                              +                      buildEnvironmentVariables__.getKey(), buildEnvironmentVariables__.getValue());
                              +              break;
                                           }
                              -            secretEnvironmentVariables_.add(
                              -                input.readMessage(com.google.cloud.functions.v1.SecretEnvVar.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          case 242: {
                              -            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
                              -              secretVolumes_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000010;
                              +          case 234:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
                              +                secretEnvironmentVariables_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000008;
                              +              }
                              +              secretEnvironmentVariables_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v1.SecretEnvVar.parser(), extensionRegistry));
                              +              break;
                                           }
                              -            secretVolumes_.add(
                              -                input.readMessage(com.google.cloud.functions.v1.SecretVolume.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          case 250: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            sourceToken_ = s;
                              -            break;
                              -          }
                              -          case 256: {
                              +          case 242:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
                              +                secretVolumes_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000010;
                              +              }
                              +              secretVolumes_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v1.SecretVolume.parser(), extensionRegistry));
                              +              break;
                              +            }
                              +          case 250:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            minInstances_ = input.readInt32();
                              -            break;
                              -          }
                              -          case 266: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              sourceToken_ = s;
                              +              break;
                              +            }
                              +          case 256:
                              +            {
                              +              minInstances_ = input.readInt32();
                              +              break;
                              +            }
                              +          case 266:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            buildName_ = s;
                              -            break;
                              -          }
                              -          case 274: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              buildName_ = s;
                              +              break;
                              +            }
                              +          case 274:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            dockerRepository_ = s;
                              -            break;
                              -          }
                              -          case 280: {
                              -            int rawValue = input.readEnum();
                              +              dockerRepository_ = s;
                              +              break;
                              +            }
                              +          case 280:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            dockerRegistry_ = rawValue;
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              dockerRegistry_ = rawValue;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -346,11 +411,11 @@ private CloudFunction(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000008) != 0)) {
                              -        secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                              +        secretEnvironmentVariables_ =
                              +            java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                                     }
                                     if (((mutable_bitField0_ & 0x00000010) != 0)) {
                                       secretVolumes_ = java.util.Collections.unmodifiableList(secretVolumes_);
                              @@ -359,15 +424,15 @@ private CloudFunction(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v1.FunctionsProto
                              +        .internal_static_google_cloud_functions_v1_CloudFunction_descriptor;
                                 }
                               
                                 @SuppressWarnings({"rawtypes"})
                                 @java.lang.Override
                              -  protected com.google.protobuf.MapField internalGetMapField(
                              -      int number) {
                              +  protected com.google.protobuf.MapField internalGetMapField(int number) {
                                   switch (number) {
                                     case 15:
                                       return internalGetLabels();
                              @@ -376,19 +441,23 @@ protected com.google.protobuf.MapField internalGetMapField(
                                     case 28:
                                       return internalGetBuildEnvironmentVariables();
                                     default:
                              -        throw new RuntimeException(
                              -            "Invalid map field number: " + number);
                              +        throw new RuntimeException("Invalid map field number: " + number);
                                   }
                                 }
                              +
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable
                              +    return com.google.cloud.functions.v1.FunctionsProto
                              +        .internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v1.CloudFunction.class, com.google.cloud.functions.v1.CloudFunction.Builder.class);
                              +            com.google.cloud.functions.v1.CloudFunction.class,
                              +            com.google.cloud.functions.v1.CloudFunction.Builder.class);
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Available egress settings.
                                  * This controls what traffic is diverted through the VPC Access Connector
                              @@ -397,9 +466,10 @@ protected com.google.protobuf.MapField internalGetMapField(
                                  *
                                  * Protobuf enum {@code google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings}
                                  */
                              -  public enum VpcConnectorEgressSettings
                              -      implements com.google.protobuf.ProtocolMessageEnum {
                              +  public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMessageEnum {
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -408,6 +478,8 @@ public enum VpcConnectorEgressSettings */ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED(0), /** + * + * *
                                    * Use the VPC Access Connector only for private IP space from RFC1918.
                                    * 
                              @@ -416,6 +488,8 @@ public enum VpcConnectorEgressSettings */ PRIVATE_RANGES_ONLY(1), /** + * + * *
                                    * Force the use of VPC Access Connector for all egress traffic from the
                                    * function.
                              @@ -428,6 +502,8 @@ public enum VpcConnectorEgressSettings
                                   ;
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -436,6 +512,8 @@ public enum VpcConnectorEgressSettings */ public static final int VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Use the VPC Access Connector only for private IP space from RFC1918.
                                    * 
                              @@ -444,6 +522,8 @@ public enum VpcConnectorEgressSettings */ public static final int PRIVATE_RANGES_ONLY_VALUE = 1; /** + * + * *
                                    * Force the use of VPC Access Connector for all egress traffic from the
                                    * function.
                              @@ -453,7 +533,6 @@ public enum VpcConnectorEgressSettings
                                    */
                                   public static final int ALL_TRAFFIC_VALUE = 2;
                               
                              -
                                   public final int getNumber() {
                                     if (this == UNRECOGNIZED) {
                                       throw new java.lang.IllegalArgumentException(
                              @@ -478,10 +557,14 @@ public static VpcConnectorEgressSettings valueOf(int value) {
                                    */
                                   public static VpcConnectorEgressSettings forNumber(int value) {
                                     switch (value) {
                              -        case 0: return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
                              -        case 1: return PRIVATE_RANGES_ONLY;
                              -        case 2: return ALL_TRAFFIC;
                              -        default: return null;
                              +        case 0:
                              +          return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
                              +        case 1:
                              +          return PRIVATE_RANGES_ONLY;
                              +        case 2:
                              +          return ALL_TRAFFIC;
                              +        default:
                              +          return null;
                                     }
                                   }
                               
                              @@ -489,28 +572,28 @@ public static VpcConnectorEgressSettings forNumber(int value) {
                                       internalGetValueMap() {
                                     return internalValueMap;
                                   }
                              -    private static final com.google.protobuf.Internal.EnumLiteMap<
                              -        VpcConnectorEgressSettings> internalValueMap =
                              -          new com.google.protobuf.Internal.EnumLiteMap() {
                              -            public VpcConnectorEgressSettings findValueByNumber(int number) {
                              -              return VpcConnectorEgressSettings.forNumber(number);
                              -            }
                              -          };
                               
                              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
                              -        getValueDescriptor() {
                              +    private static final com.google.protobuf.Internal.EnumLiteMap
                              +        internalValueMap =
                              +            new com.google.protobuf.Internal.EnumLiteMap() {
                              +              public VpcConnectorEgressSettings findValueByNumber(int number) {
                              +                return VpcConnectorEgressSettings.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() {
                              +
                              +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                                     return getDescriptor();
                                   }
                              -    public static final com.google.protobuf.Descriptors.EnumDescriptor
                              -        getDescriptor() {
                              +
                              +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                                     return com.google.cloud.functions.v1.CloudFunction.getDescriptor().getEnumTypes().get(0);
                                   }
                               
                              @@ -519,8 +602,7 @@ public VpcConnectorEgressSettings findValueByNumber(int number) {
                                   public static VpcConnectorEgressSettings valueOf(
                                       com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                                     if (desc.getType() != getDescriptor()) {
                              -        throw new java.lang.IllegalArgumentException(
                              -          "EnumValueDescriptor is not for this type.");
                              +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                                     }
                                     if (desc.getIndex() == -1) {
                                       return UNRECOGNIZED;
                              @@ -538,6 +620,8 @@ private VpcConnectorEgressSettings(int value) {
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Available ingress settings.
                                  * This controls what traffic can reach the function.
                              @@ -546,9 +630,10 @@ private VpcConnectorEgressSettings(int value) {
                                  *
                                  * Protobuf enum {@code google.cloud.functions.v1.CloudFunction.IngressSettings}
                                  */
                              -  public enum IngressSettings
                              -      implements com.google.protobuf.ProtocolMessageEnum {
                              +  public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum {
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -557,6 +642,8 @@ public enum IngressSettings */ INGRESS_SETTINGS_UNSPECIFIED(0), /** + * + * *
                                    * Allow HTTP traffic from public and private sources.
                                    * 
                              @@ -565,6 +652,8 @@ public enum IngressSettings */ ALLOW_ALL(1), /** + * + * *
                                    * Allow HTTP traffic from only private VPC sources.
                                    * 
                              @@ -573,6 +662,8 @@ public enum IngressSettings */ ALLOW_INTERNAL_ONLY(2), /** + * + * *
                                    * Allow HTTP traffic from private VPC sources and through GCLB.
                                    * 
                              @@ -584,6 +675,8 @@ public enum IngressSettings ; /** + * + * *
                                    * Unspecified.
                                    * 
                              @@ -592,6 +685,8 @@ public enum IngressSettings */ public static final int INGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Allow HTTP traffic from public and private sources.
                                    * 
                              @@ -600,6 +695,8 @@ public enum IngressSettings */ public static final int ALLOW_ALL_VALUE = 1; /** + * + * *
                                    * Allow HTTP traffic from only private VPC sources.
                                    * 
                              @@ -608,6 +705,8 @@ public enum IngressSettings */ public static final int ALLOW_INTERNAL_ONLY_VALUE = 2; /** + * + * *
                                    * Allow HTTP traffic from private VPC sources and through GCLB.
                                    * 
                              @@ -616,7 +715,6 @@ public enum IngressSettings */ public static final int ALLOW_INTERNAL_AND_GCLB_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -641,40 +739,44 @@ public static IngressSettings valueOf(int value) { */ public static IngressSettings forNumber(int value) { switch (value) { - case 0: return INGRESS_SETTINGS_UNSPECIFIED; - case 1: return ALLOW_ALL; - case 2: return ALLOW_INTERNAL_ONLY; - case 3: return ALLOW_INTERNAL_AND_GCLB; - default: return null; + case 0: + return INGRESS_SETTINGS_UNSPECIFIED; + case 1: + return ALLOW_ALL; + case 2: + return ALLOW_INTERNAL_ONLY; + case 3: + return ALLOW_INTERNAL_AND_GCLB; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - IngressSettings> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IngressSettings findValueByNumber(int number) { - return IngressSettings.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IngressSettings findValueByNumber(int number) { + return IngressSettings.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v1.CloudFunction.getDescriptor().getEnumTypes().get(1); } @@ -683,8 +785,7 @@ public IngressSettings findValueByNumber(int number) { public static IngressSettings valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -702,15 +803,18 @@ private IngressSettings(int value) { } /** + * + * *
                                  * Docker Registry to use for storing function Docker images.
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v1.CloudFunction.DockerRegistry} */ - public enum DockerRegistry - implements com.google.protobuf.ProtocolMessageEnum { + public enum DockerRegistry implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Unspecified.
                                    * 
                              @@ -719,6 +823,8 @@ public enum DockerRegistry */ DOCKER_REGISTRY_UNSPECIFIED(0), /** + * + * *
                                    * Docker images will be stored in multi-regional Container Registry
                                    * repositories named `gcf`.
                              @@ -728,6 +834,8 @@ public enum DockerRegistry
                                    */
                                   CONTAINER_REGISTRY(1),
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Docker images will be stored in regional Artifact Registry repositories.
                                    * By default, GCF will create and use repositories named `gcf-artifacts`
                              @@ -743,6 +851,8 @@ public enum DockerRegistry
                                   ;
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -751,6 +861,8 @@ public enum DockerRegistry */ public static final int DOCKER_REGISTRY_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Docker images will be stored in multi-regional Container Registry
                                    * repositories named `gcf`.
                              @@ -760,6 +872,8 @@ public enum DockerRegistry
                                    */
                                   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`
                              @@ -772,7 +886,6 @@ public enum DockerRegistry
                                    */
                                   public static final int ARTIFACT_REGISTRY_VALUE = 2;
                               
                              -
                                   public final int getNumber() {
                                     if (this == UNRECOGNIZED) {
                                       throw new java.lang.IllegalArgumentException(
                              @@ -797,49 +910,49 @@ public static DockerRegistry valueOf(int 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;
                              +        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() {
                              +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
                                     return internalValueMap;
                                   }
                              -    private static final com.google.protobuf.Internal.EnumLiteMap<
                              -        DockerRegistry> internalValueMap =
                              -          new com.google.protobuf.Internal.EnumLiteMap() {
                              -            public DockerRegistry findValueByNumber(int number) {
                              -              return DockerRegistry.forNumber(number);
                              -            }
                              -          };
                               
                              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
                              -        getValueDescriptor() {
                              +    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() {
                              +
                              +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                                     return getDescriptor();
                                   }
                              -    public static final com.google.protobuf.Descriptors.EnumDescriptor
                              -        getDescriptor() {
                              +
                              +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                                     return com.google.cloud.functions.v1.CloudFunction.getDescriptor().getEnumTypes().get(2);
                                   }
                               
                                   private static final DockerRegistry[] VALUES = values();
                               
                              -    public static DockerRegistry valueOf(
                              -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                              +    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.");
                              +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                                     }
                                     if (desc.getIndex() == -1) {
                                       return UNRECOGNIZED;
                              @@ -858,14 +971,17 @@ private DockerRegistry(int value) {
                               
                                 private int sourceCodeCase_ = 0;
                                 private java.lang.Object sourceCode_;
                              +
                                 public enum SourceCodeCase
                              -      implements com.google.protobuf.Internal.EnumLite,
                              +      implements
                              +          com.google.protobuf.Internal.EnumLite,
                                         com.google.protobuf.AbstractMessage.InternalOneOfEnum {
                                   SOURCE_ARCHIVE_URL(3),
                                   SOURCE_REPOSITORY(4),
                                   SOURCE_UPLOAD_URL(16),
                                   SOURCECODE_NOT_SET(0);
                                   private final int value;
                              +
                                   private SourceCodeCase(int value) {
                                     this.value = value;
                                   }
                              @@ -881,33 +997,40 @@ public static SourceCodeCase valueOf(int value) {
                               
                                   public static SourceCodeCase forNumber(int value) {
                                     switch (value) {
                              -        case 3: return SOURCE_ARCHIVE_URL;
                              -        case 4: return SOURCE_REPOSITORY;
                              -        case 16: return SOURCE_UPLOAD_URL;
                              -        case 0: return SOURCECODE_NOT_SET;
                              -        default: return null;
                              +        case 3:
                              +          return SOURCE_ARCHIVE_URL;
                              +        case 4:
                              +          return SOURCE_REPOSITORY;
                              +        case 16:
                              +          return SOURCE_UPLOAD_URL;
                              +        case 0:
                              +          return SOURCECODE_NOT_SET;
                              +        default:
                              +          return null;
                                     }
                                   }
                              +
                                   public int getNumber() {
                                     return this.value;
                                   }
                                 };
                               
                              -  public SourceCodeCase
                              -  getSourceCodeCase() {
                              -    return SourceCodeCase.forNumber(
                              -        sourceCodeCase_);
                              +  public SourceCodeCase getSourceCodeCase() {
                              +    return SourceCodeCase.forNumber(sourceCodeCase_);
                                 }
                               
                                 private int triggerCase_ = 0;
                                 private java.lang.Object trigger_;
                              +
                                 public enum TriggerCase
                              -      implements com.google.protobuf.Internal.EnumLite,
                              +      implements
                              +          com.google.protobuf.Internal.EnumLite,
                                         com.google.protobuf.AbstractMessage.InternalOneOfEnum {
                                   HTTPS_TRIGGER(5),
                                   EVENT_TRIGGER(6),
                                   TRIGGER_NOT_SET(0);
                                   private final int value;
                              +
                                   private TriggerCase(int value) {
                                     this.value = value;
                                   }
                              @@ -923,32 +1046,38 @@ public static TriggerCase valueOf(int value) {
                               
                                   public static TriggerCase forNumber(int value) {
                                     switch (value) {
                              -        case 5: return HTTPS_TRIGGER;
                              -        case 6: return EVENT_TRIGGER;
                              -        case 0: return TRIGGER_NOT_SET;
                              -        default: return null;
                              +        case 5:
                              +          return HTTPS_TRIGGER;
                              +        case 6:
                              +          return EVENT_TRIGGER;
                              +        case 0:
                              +          return TRIGGER_NOT_SET;
                              +        default:
                              +          return null;
                                     }
                                   }
                              +
                                   public int getNumber() {
                                     return this.value;
                                   }
                                 };
                               
                              -  public TriggerCase
                              -  getTriggerCase() {
                              -    return TriggerCase.forNumber(
                              -        triggerCase_);
                              +  public TriggerCase getTriggerCase() {
                              +    return TriggerCase.forNumber(triggerCase_);
                                 }
                               
                                 public static final int NAME_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object name_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -957,30 +1086,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -991,11 +1120,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The description. */ @java.lang.Override @@ -1004,29 +1136,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1036,24 +1168,30 @@ public java.lang.String getDescription() { public static final int SOURCE_ARCHIVE_URL_FIELD_NUMBER = 3; /** + * + * *
                                  * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
                                  * archive which contains the function.
                                  * 
                              * * string source_archive_url = 3; + * * @return Whether the sourceArchiveUrl field is set. */ public boolean hasSourceArchiveUrl() { return sourceCodeCase_ == 3; } /** + * + * *
                                  * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
                                  * archive which contains the function.
                                  * 
                              * * string source_archive_url = 3; + * * @return The sourceArchiveUrl. */ public java.lang.String getSourceArchiveUrl() { @@ -1064,8 +1202,7 @@ public java.lang.String getSourceArchiveUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 3) { sourceCode_ = s; @@ -1074,24 +1211,25 @@ public java.lang.String getSourceArchiveUrl() { } } /** + * + * *
                                  * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
                                  * archive which contains the function.
                                  * 
                              * * string source_archive_url = 3; + * * @return The bytes for sourceArchiveUrl. */ - public com.google.protobuf.ByteString - getSourceArchiveUrlBytes() { + public com.google.protobuf.ByteString getSourceArchiveUrlBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 3) { ref = sourceCode_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCodeCase_ == 3) { sourceCode_ = b; } @@ -1103,12 +1241,15 @@ public java.lang.String getSourceArchiveUrl() { public static final int SOURCE_REPOSITORY_FIELD_NUMBER = 4; /** + * + * *
                                  * **Beta Feature**
                                  * The source repository where a function is hosted.
                                  * 
                              * * .google.cloud.functions.v1.SourceRepository source_repository = 4; + * * @return Whether the sourceRepository field is set. */ @java.lang.Override @@ -1116,22 +1257,27 @@ public boolean hasSourceRepository() { return sourceCodeCase_ == 4; } /** + * + * *
                                  * **Beta Feature**
                                  * The source repository where a function is hosted.
                                  * 
                              * * .google.cloud.functions.v1.SourceRepository source_repository = 4; + * * @return The sourceRepository. */ @java.lang.Override public com.google.cloud.functions.v1.SourceRepository getSourceRepository() { if (sourceCodeCase_ == 4) { - return (com.google.cloud.functions.v1.SourceRepository) sourceCode_; + return (com.google.cloud.functions.v1.SourceRepository) sourceCode_; } return com.google.cloud.functions.v1.SourceRepository.getDefaultInstance(); } /** + * + * *
                                  * **Beta Feature**
                                  * The source repository where a function is hosted.
                              @@ -1142,13 +1288,15 @@ public com.google.cloud.functions.v1.SourceRepository getSourceRepository() {
                                 @java.lang.Override
                                 public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceRepositoryOrBuilder() {
                                   if (sourceCodeCase_ == 4) {
                              -       return (com.google.cloud.functions.v1.SourceRepository) sourceCode_;
                              +      return (com.google.cloud.functions.v1.SourceRepository) sourceCode_;
                                   }
                                   return com.google.cloud.functions.v1.SourceRepository.getDefaultInstance();
                                 }
                               
                                 public static final int SOURCE_UPLOAD_URL_FIELD_NUMBER = 16;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The Google Cloud Storage signed URL used for source uploading, generated
                                  * by calling [google.cloud.functions.v1.GenerateUploadUrl].
                              @@ -1158,12 +1306,15 @@ public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceReposito
                                  * 
                              * * string source_upload_url = 16; + * * @return Whether the sourceUploadUrl field is set. */ public boolean hasSourceUploadUrl() { return sourceCodeCase_ == 16; } /** + * + * *
                                  * The Google Cloud Storage signed URL used for source uploading, generated
                                  * by calling [google.cloud.functions.v1.GenerateUploadUrl].
                              @@ -1173,6 +1324,7 @@ public boolean hasSourceUploadUrl() {
                                  * 
                              * * string source_upload_url = 16; + * * @return The sourceUploadUrl. */ public java.lang.String getSourceUploadUrl() { @@ -1183,8 +1335,7 @@ public java.lang.String getSourceUploadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 16) { sourceCode_ = s; @@ -1193,6 +1344,8 @@ public java.lang.String getSourceUploadUrl() { } } /** + * + * *
                                  * The Google Cloud Storage signed URL used for source uploading, generated
                                  * by calling [google.cloud.functions.v1.GenerateUploadUrl].
                              @@ -1202,18 +1355,17 @@ public java.lang.String getSourceUploadUrl() {
                                  * 
                              * * string source_upload_url = 16; + * * @return The bytes for sourceUploadUrl. */ - public com.google.protobuf.ByteString - getSourceUploadUrlBytes() { + public com.google.protobuf.ByteString getSourceUploadUrlBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 16) { ref = sourceCode_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCodeCase_ == 16) { sourceCode_ = b; } @@ -1225,11 +1377,14 @@ public java.lang.String getSourceUploadUrl() { public static final int HTTPS_TRIGGER_FIELD_NUMBER = 5; /** + * + * *
                                  * An HTTPS endpoint type of source that can be triggered via URL.
                                  * 
                              * * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; + * * @return Whether the httpsTrigger field is set. */ @java.lang.Override @@ -1237,21 +1392,26 @@ public boolean hasHttpsTrigger() { return triggerCase_ == 5; } /** + * + * *
                                  * An HTTPS endpoint type of source that can be triggered via URL.
                                  * 
                              * * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; + * * @return The httpsTrigger. */ @java.lang.Override public com.google.cloud.functions.v1.HttpsTrigger getHttpsTrigger() { if (triggerCase_ == 5) { - return (com.google.cloud.functions.v1.HttpsTrigger) trigger_; + return (com.google.cloud.functions.v1.HttpsTrigger) trigger_; } return com.google.cloud.functions.v1.HttpsTrigger.getDefaultInstance(); } /** + * + * *
                                  * An HTTPS endpoint type of source that can be triggered via URL.
                                  * 
                              @@ -1261,18 +1421,21 @@ public com.google.cloud.functions.v1.HttpsTrigger getHttpsTrigger() { @java.lang.Override public com.google.cloud.functions.v1.HttpsTriggerOrBuilder getHttpsTriggerOrBuilder() { if (triggerCase_ == 5) { - return (com.google.cloud.functions.v1.HttpsTrigger) trigger_; + return (com.google.cloud.functions.v1.HttpsTrigger) trigger_; } return com.google.cloud.functions.v1.HttpsTrigger.getDefaultInstance(); } public static final int EVENT_TRIGGER_FIELD_NUMBER = 6; /** + * + * *
                                  * A source that fires events in response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v1.EventTrigger event_trigger = 6; + * * @return Whether the eventTrigger field is set. */ @java.lang.Override @@ -1280,21 +1443,26 @@ public boolean hasEventTrigger() { return triggerCase_ == 6; } /** + * + * *
                                  * A source that fires events in response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v1.EventTrigger event_trigger = 6; + * * @return The eventTrigger. */ @java.lang.Override public com.google.cloud.functions.v1.EventTrigger getEventTrigger() { if (triggerCase_ == 6) { - return (com.google.cloud.functions.v1.EventTrigger) trigger_; + return (com.google.cloud.functions.v1.EventTrigger) trigger_; } return com.google.cloud.functions.v1.EventTrigger.getDefaultInstance(); } /** + * + * *
                                  * A source that fires events in response to a condition in another service.
                                  * 
                              @@ -1304,7 +1472,7 @@ public com.google.cloud.functions.v1.EventTrigger getEventTrigger() { @java.lang.Override public com.google.cloud.functions.v1.EventTriggerOrBuilder getEventTriggerOrBuilder() { if (triggerCase_ == 6) { - return (com.google.cloud.functions.v1.EventTrigger) trigger_; + return (com.google.cloud.functions.v1.EventTrigger) trigger_; } return com.google.cloud.functions.v1.EventTrigger.getDefaultInstance(); } @@ -1312,33 +1480,48 @@ public com.google.cloud.functions.v1.EventTriggerOrBuilder getEventTriggerOrBuil public static final int STATUS_FIELD_NUMBER = 7; private int status_; /** + * + * *
                                  * Output only. Status of the function deployment.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for status. */ - @java.lang.Override public int getStatusValue() { + @java.lang.Override + public int getStatusValue() { return status_; } /** + * + * *
                                  * Output only. Status of the function deployment.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ - @java.lang.Override public com.google.cloud.functions.v1.CloudFunctionStatus getStatus() { + @java.lang.Override + public com.google.cloud.functions.v1.CloudFunctionStatus getStatus() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunctionStatus result = com.google.cloud.functions.v1.CloudFunctionStatus.valueOf(status_); + com.google.cloud.functions.v1.CloudFunctionStatus result = + com.google.cloud.functions.v1.CloudFunctionStatus.valueOf(status_); return result == null ? com.google.cloud.functions.v1.CloudFunctionStatus.UNRECOGNIZED : result; } public static final int ENTRY_POINT_FIELD_NUMBER = 8; private volatile java.lang.Object entryPoint_; /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1349,6 +1532,7 @@ public com.google.cloud.functions.v1.EventTriggerOrBuilder getEventTriggerOrBuil
                                  * 
                              * * string entry_point = 8; + * * @return The entryPoint. */ @java.lang.Override @@ -1357,14 +1541,15 @@ public java.lang.String getEntryPoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; } } /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1375,16 +1560,15 @@ public java.lang.String getEntryPoint() {
                                  * 
                              * * string entry_point = 8; + * * @return The bytes for entryPoint. */ @java.lang.Override - public com.google.protobuf.ByteString - getEntryPointBytes() { + public com.google.protobuf.ByteString getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -1395,6 +1579,8 @@ public java.lang.String getEntryPoint() { public static final int RUNTIME_FIELD_NUMBER = 19; private volatile java.lang.Object runtime_; /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -1404,6 +1590,7 @@ public java.lang.String getEntryPoint() {
                                  * 
                              * * string runtime = 19; + * * @return The runtime. */ @java.lang.Override @@ -1412,14 +1599,15 @@ public java.lang.String getRuntime() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; } } /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -1429,16 +1617,15 @@ public java.lang.String getRuntime() {
                                  * 
                              * * string runtime = 19; + * * @return The bytes for runtime. */ @java.lang.Override - public com.google.protobuf.ByteString - getRuntimeBytes() { + public com.google.protobuf.ByteString getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtime_ = b; return b; } else { @@ -1449,6 +1636,8 @@ public java.lang.String getRuntime() { public static final int TIMEOUT_FIELD_NUMBER = 9; private com.google.protobuf.Duration timeout_; /** + * + * *
                                  * The function execution timeout. Execution is considered failed and
                                  * can be terminated if the function is not completed at the end of the
                              @@ -1456,6 +1645,7 @@ public java.lang.String getRuntime() {
                                  * 
                              * * .google.protobuf.Duration timeout = 9; + * * @return Whether the timeout field is set. */ @java.lang.Override @@ -1463,6 +1653,8 @@ public boolean hasTimeout() { return timeout_ != null; } /** + * + * *
                                  * The function execution timeout. Execution is considered failed and
                                  * can be terminated if the function is not completed at the end of the
                              @@ -1470,6 +1662,7 @@ public boolean hasTimeout() {
                                  * 
                              * * .google.protobuf.Duration timeout = 9; + * * @return The timeout. */ @java.lang.Override @@ -1477,6 +1670,8 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** + * + * *
                                  * The function execution timeout. Execution is considered failed and
                                  * can be terminated if the function is not completed at the end of the
                              @@ -1493,12 +1688,15 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
                                 public static final int AVAILABLE_MEMORY_MB_FIELD_NUMBER = 10;
                                 private int availableMemoryMb_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The amount of memory in MB available for a function.
                                  * Defaults to 256MB.
                                  * 
                              * * int32 available_memory_mb = 10; + * * @return The availableMemoryMb. */ @java.lang.Override @@ -1509,12 +1707,15 @@ public int getAvailableMemoryMb() { public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 11; private volatile java.lang.Object serviceAccountEmail_; /** + * + * *
                                  * The email of the function's service account. If empty, defaults to
                                  * `{project_id}@appspot.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 11; + * * @return The serviceAccountEmail. */ @java.lang.Override @@ -1523,30 +1724,30 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** + * + * *
                                  * The email of the function's service account. If empty, defaults to
                                  * `{project_id}@appspot.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 11; + * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -1557,11 +1758,15 @@ public java.lang.String getServiceAccountEmail() { public static final int UPDATE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
                                  * Output only. The last update timestamp of a Cloud Function.
                                  * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1569,11 +1774,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
                                  * Output only. The last update timestamp of a Cloud Function.
                                  * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1581,11 +1790,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
                                  * Output only. The last update timestamp of a Cloud Function.
                                  * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1595,12 +1807,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int VERSION_ID_FIELD_NUMBER = 14; private long versionId_; /** + * + * *
                                  * Output only. The version identifier of the Cloud Function. Each deployment attempt
                                  * results in a new version of a function being created.
                                  * 
                              * * int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The versionId. */ @java.lang.Override @@ -1609,24 +1824,23 @@ public long getVersionId() { } public static final int LABELS_FIELD_NUMBER = 15; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1635,28 +1849,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 15; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -1664,11 +1880,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 15; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -1676,16 +1893,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 15; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -1693,12 +1910,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 15; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1706,21 +1922,22 @@ public java.lang.String getLabelsOrThrow( } public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 17; + private static final class EnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -1732,28 +1949,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 17; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -1761,11 +1980,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 17; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -1773,16 +1993,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 17; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -1790,10 +2012,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 17; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -1803,21 +2025,23 @@ public java.lang.String getEnvironmentVariablesOrThrow( } public static final int BUILD_ENVIRONMENT_VARIABLES_FIELD_NUMBER = 28; + private static final class BuildEnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> buildEnvironmentVariables_; + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField + buildEnvironmentVariables_; + private com.google.protobuf.MapField - internalGetBuildEnvironmentVariables() { + internalGetBuildEnvironmentVariables() { if (buildEnvironmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -1829,28 +2053,30 @@ public int getBuildEnvironmentVariablesCount() { return internalGetBuildEnvironmentVariables().getMap().size(); } /** + * + * *
                                  * Build environment variables that shall be available during build time.
                                  * 
                              * * map<string, string> build_environment_variables = 28; */ - @java.lang.Override - public boolean containsBuildEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsBuildEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetBuildEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getBuildEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getBuildEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getBuildEnvironmentVariables() { return getBuildEnvironmentVariablesMap(); } /** + * + * *
                                  * Build environment variables that shall be available during build time.
                                  * 
                              @@ -1858,11 +2084,12 @@ public java.util.Map getBuildEnvironmentVari * map<string, string> build_environment_variables = 28; */ @java.lang.Override - public java.util.Map getBuildEnvironmentVariablesMap() { return internalGetBuildEnvironmentVariables().getMap(); } /** + * + * *
                                  * Build environment variables that shall be available during build time.
                                  * 
                              @@ -1870,16 +2097,18 @@ public java.util.Map getBuildEnvironmentVari * map<string, string> build_environment_variables = 28; */ @java.lang.Override - public java.lang.String getBuildEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetBuildEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                  * Build environment variables that shall be available during build time.
                                  * 
                              @@ -1887,10 +2116,10 @@ public java.lang.String getBuildEnvironmentVariablesOrDefault( * map<string, string> build_environment_variables = 28; */ @java.lang.Override - - public java.lang.String getBuildEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getBuildEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetBuildEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -1902,6 +2131,8 @@ public java.lang.String getBuildEnvironmentVariablesOrThrow( public static final int NETWORK_FIELD_NUMBER = 18; private volatile java.lang.Object network_; /** + * + * *
                                  * The VPC Network that this cloud function can connect to. It can be
                                  * either the fully-qualified URI, or the short name of the network resource.
                              @@ -1918,6 +2149,7 @@ public java.lang.String getBuildEnvironmentVariablesOrThrow(
                                  * 
                              * * string network = 18; + * * @return The network. */ @java.lang.Override @@ -1926,14 +2158,15 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
                                  * The VPC Network that this cloud function can connect to. It can be
                                  * either the fully-qualified URI, or the short name of the network resource.
                              @@ -1950,16 +2183,15 @@ public java.lang.String getNetwork() {
                                  * 
                              * * string network = 18; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -1970,6 +2202,8 @@ public java.lang.String getNetwork() { public static final int MAX_INSTANCES_FIELD_NUMBER = 20; private int maxInstances_; /** + * + * *
                                  * The limit on the maximum number of function instances that may coexist at a
                                  * given time.
                              @@ -1984,6 +2218,7 @@ public java.lang.String getNetwork() {
                                  * 
                              * * int32 max_instances = 20; + * * @return The maxInstances. */ @java.lang.Override @@ -1994,12 +2229,15 @@ public int getMaxInstances() { public static final int MIN_INSTANCES_FIELD_NUMBER = 32; private int minInstances_; /** + * + * *
                                  * A lower bound for the number function instances that may coexist at a
                                  * given time.
                                  * 
                              * * int32 min_instances = 32; + * * @return The minInstances. */ @java.lang.Override @@ -2010,6 +2248,8 @@ public int getMinInstances() { public static final int VPC_CONNECTOR_FIELD_NUMBER = 22; private volatile java.lang.Object vpcConnector_; /** + * + * *
                                  * The VPC Network Connector that this cloud function can connect to. It can
                                  * be either the fully-qualified URI, or the short name of the network
                              @@ -2022,6 +2262,7 @@ public int getMinInstances() {
                                  * 
                              * * string vpc_connector = 22; + * * @return The vpcConnector. */ @java.lang.Override @@ -2030,14 +2271,15 @@ public java.lang.String getVpcConnector() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; } } /** + * + * *
                                  * The VPC Network Connector that this cloud function can connect to. It can
                                  * be either the fully-qualified URI, or the short name of the network
                              @@ -2050,16 +2292,15 @@ public java.lang.String getVpcConnector() {
                                  * 
                              * * string vpc_connector = 22; + * * @return The bytes for vpcConnector. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcConnectorBytes() { + public com.google.protobuf.ByteString getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -2070,64 +2311,94 @@ public java.lang.String getVpcConnector() { public static final int VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER = 23; private int vpcConnectorEgressSettings_; /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override + public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * * @return The vpcConnectorEgressSettings. */ - @java.lang.Override public com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { + @java.lang.Override + public com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings + getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings result = com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); - return result == null ? com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings result = + com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.valueOf( + vpcConnectorEgressSettings_); + return result == null + ? com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.UNRECOGNIZED + : result; } public static final int INGRESS_SETTINGS_FIELD_NUMBER = 24; private int ingressSettings_; /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; + * * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override public int getIngressSettingsValue() { + @java.lang.Override + public int getIngressSettingsValue() { return ingressSettings_; } /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; + * * @return The ingressSettings. */ - @java.lang.Override public com.google.cloud.functions.v1.CloudFunction.IngressSettings getIngressSettings() { + @java.lang.Override + public com.google.cloud.functions.v1.CloudFunction.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunction.IngressSettings result = com.google.cloud.functions.v1.CloudFunction.IngressSettings.valueOf(ingressSettings_); - return result == null ? com.google.cloud.functions.v1.CloudFunction.IngressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v1.CloudFunction.IngressSettings result = + com.google.cloud.functions.v1.CloudFunction.IngressSettings.valueOf(ingressSettings_); + return result == null + ? com.google.cloud.functions.v1.CloudFunction.IngressSettings.UNRECOGNIZED + : result; } public static final int KMS_KEY_NAME_FIELD_NUMBER = 25; private volatile java.lang.Object kmsKeyName_; /** + * + * *
                                  * Resource name of a KMS crypto key (managed by the user) used to
                                  * encrypt/decrypt function resources.
                              @@ -2156,6 +2427,7 @@ public java.lang.String getVpcConnector() {
                                  * 
                              * * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyName. */ @java.lang.Override @@ -2164,14 +2436,15 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** + * + * *
                                  * Resource name of a KMS crypto key (managed by the user) used to
                                  * encrypt/decrypt function resources.
                              @@ -2200,16 +2473,15 @@ public java.lang.String getKmsKeyName() {
                                  * 
                              * * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -2220,6 +2492,8 @@ public java.lang.String getKmsKeyName() { public static final int BUILD_WORKER_POOL_FIELD_NUMBER = 26; private volatile java.lang.Object buildWorkerPool_; /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -2235,6 +2509,7 @@ public java.lang.String getKmsKeyName() {
                                  * 
                              * * string build_worker_pool = 26; + * * @return The buildWorkerPool. */ @java.lang.Override @@ -2243,14 +2518,15 @@ public java.lang.String getBuildWorkerPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildWorkerPool_ = s; return s; } } /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -2266,16 +2542,15 @@ public java.lang.String getBuildWorkerPool() {
                                  * 
                              * * string build_worker_pool = 26; + * * @return The bytes for buildWorkerPool. */ @java.lang.Override - public com.google.protobuf.ByteString - getBuildWorkerPoolBytes() { + public com.google.protobuf.ByteString getBuildWorkerPoolBytes() { java.lang.Object ref = buildWorkerPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); buildWorkerPool_ = b; return b; } else { @@ -2286,12 +2561,15 @@ public java.lang.String getBuildWorkerPool() { public static final int BUILD_ID_FIELD_NUMBER = 27; private volatile java.lang.Object buildId_; /** + * + * *
                                  * Output only. The Cloud Build ID of the latest successful deployment of the
                                  * function.
                                  * 
                              * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The buildId. */ @java.lang.Override @@ -2300,30 +2578,30 @@ public java.lang.String getBuildId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildId_ = s; return s; } } /** + * + * *
                                  * Output only. The Cloud Build ID of the latest successful deployment of the
                                  * function.
                                  * 
                              * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for buildId. */ @java.lang.Override - public com.google.protobuf.ByteString - getBuildIdBytes() { + public com.google.protobuf.ByteString getBuildIdBytes() { java.lang.Object ref = buildId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); buildId_ = b; return b; } else { @@ -2334,12 +2612,15 @@ public java.lang.String getBuildId() { public static final int BUILD_NAME_FIELD_NUMBER = 33; private volatile java.lang.Object buildName_; /** + * + * *
                                  * Output only. The Cloud Build Name of the function deployment.
                                  * `projects/<project-number>/locations/<region>/builds/<build-id>`.
                                  * 
                              * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The buildName. */ @java.lang.Override @@ -2348,30 +2629,30 @@ public java.lang.String getBuildName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildName_ = s; return s; } } /** + * + * *
                                  * Output only. The Cloud Build Name of the function deployment.
                                  * `projects/<project-number>/locations/<region>/builds/<build-id>`.
                                  * 
                              * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for buildName. */ @java.lang.Override - public com.google.protobuf.ByteString - getBuildNameBytes() { + public com.google.protobuf.ByteString getBuildNameBytes() { java.lang.Object ref = buildName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); buildName_ = b; return b; } else { @@ -2382,56 +2663,72 @@ public java.lang.String getBuildName() { public static final int SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER = 29; private java.util.List secretEnvironmentVariables_; /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ @java.lang.Override - public java.util.List getSecretEnvironmentVariablesList() { + public java.util.List + getSecretEnvironmentVariablesList() { return secretEnvironmentVariables_; } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ @java.lang.Override - public java.util.List + public java.util.List getSecretEnvironmentVariablesOrBuilderList() { return secretEnvironmentVariables_; } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ @java.lang.Override public int getSecretEnvironmentVariablesCount() { return secretEnvironmentVariables_.size(); } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ @java.lang.Override public com.google.cloud.functions.v1.SecretEnvVar getSecretEnvironmentVariables(int index) { return secretEnvironmentVariables_.get(index); } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ @java.lang.Override public com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( @@ -2442,6 +2739,8 @@ public com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentV public static final int SECRET_VOLUMES_FIELD_NUMBER = 30; private java.util.List secretVolumes_; /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -2453,6 +2752,8 @@ public java.util.List getSecretVolum return secretVolumes_; } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -2460,11 +2761,13 @@ public java.util.List getSecretVolum * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ @java.lang.Override - public java.util.List + public java.util.List getSecretVolumesOrBuilderList() { return secretVolumes_; } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -2476,6 +2779,8 @@ public int getSecretVolumesCount() { return secretVolumes_.size(); } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -2487,6 +2792,8 @@ public com.google.cloud.functions.v1.SecretVolume getSecretVolumes(int index) { return secretVolumes_.get(index); } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -2494,20 +2801,22 @@ public com.google.cloud.functions.v1.SecretVolume getSecretVolumes(int index) { * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ @java.lang.Override - public com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder( - int index) { + public com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index) { return secretVolumes_.get(index); } public static final int SOURCE_TOKEN_FIELD_NUMBER = 31; private volatile java.lang.Object sourceToken_; /** + * + * *
                                  * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
                                  * supported for Firebase function deployments.
                                  * 
                              * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The sourceToken. */ @java.lang.Override @@ -2516,30 +2825,30 @@ public java.lang.String getSourceToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; } } /** + * + * *
                                  * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
                                  * supported for Firebase function deployments.
                                  * 
                              * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for sourceToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceTokenBytes() { + public com.google.protobuf.ByteString getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -2550,6 +2859,8 @@ public java.lang.String getSourceToken() { public static final int DOCKER_REPOSITORY_FIELD_NUMBER = 34; private volatile java.lang.Object dockerRepository_; /** + * + * *
                                  * User managed repository created in Artifact Registry optionally with a
                                  * customer managed encryption key. If specified, deployments will use
                              @@ -2565,6 +2876,7 @@ public java.lang.String getSourceToken() {
                                  * 
                              * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } + * * @return The dockerRepository. */ @java.lang.Override @@ -2573,14 +2885,15 @@ public java.lang.String getDockerRepository() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; } } /** + * + * *
                                  * User managed repository created in Artifact Registry optionally with a
                                  * customer managed encryption key. If specified, deployments will use
                              @@ -2596,16 +2909,15 @@ public java.lang.String getDockerRepository() {
                                  * 
                              * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } + * * @return The bytes for dockerRepository. */ @java.lang.Override - public com.google.protobuf.ByteString - getDockerRepositoryBytes() { + public com.google.protobuf.ByteString getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -2616,6 +2928,8 @@ public java.lang.String getDockerRepository() { public static final int DOCKER_REGISTRY_FIELD_NUMBER = 35; private int dockerRegistry_; /** + * + * *
                                  * Docker Registry to use for this deployment.
                                  * If `docker_repository` field is specified, this field will be automatically
                              @@ -2625,12 +2939,16 @@ public java.lang.String getDockerRepository() {
                                  * 
                              * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; + * * @return The enum numeric value on the wire for dockerRegistry. */ - @java.lang.Override public int getDockerRegistryValue() { + @java.lang.Override + public int getDockerRegistryValue() { return dockerRegistry_; } /** + * + * *
                                  * Docker Registry to use for this deployment.
                                  * If `docker_repository` field is specified, this field will be automatically
                              @@ -2640,15 +2958,21 @@ public java.lang.String getDockerRepository() {
                                  * 
                              * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; + * * @return The dockerRegistry. */ - @java.lang.Override public com.google.cloud.functions.v1.CloudFunction.DockerRegistry getDockerRegistry() { + @java.lang.Override + public com.google.cloud.functions.v1.CloudFunction.DockerRegistry getDockerRegistry() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunction.DockerRegistry result = com.google.cloud.functions.v1.CloudFunction.DockerRegistry.valueOf(dockerRegistry_); - return result == null ? com.google.cloud.functions.v1.CloudFunction.DockerRegistry.UNRECOGNIZED : result; + com.google.cloud.functions.v1.CloudFunction.DockerRegistry result = + com.google.cloud.functions.v1.CloudFunction.DockerRegistry.valueOf(dockerRegistry_); + return result == null + ? com.google.cloud.functions.v1.CloudFunction.DockerRegistry.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2660,8 +2984,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2680,7 +3003,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (triggerCase_ == 6) { output.writeMessage(6, (com.google.cloud.functions.v1.EventTrigger) trigger_); } - if (status_ != com.google.cloud.functions.v1.CloudFunctionStatus.CLOUD_FUNCTION_STATUS_UNSPECIFIED.getNumber()) { + if (status_ + != com.google.cloud.functions.v1.CloudFunctionStatus.CLOUD_FUNCTION_STATUS_UNSPECIFIED + .getNumber()) { output.writeEnum(7, status_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) { @@ -2701,17 +3026,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (versionId_ != 0L) { output.writeInt64(14, versionId_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 15); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 15); if (sourceCodeCase_ == 16) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, sourceCode_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -2728,10 +3048,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 22, vpcConnector_); } - if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + if (vpcConnectorEgressSettings_ + != com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings + .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { output.writeEnum(23, vpcConnectorEgressSettings_); } - if (ingressSettings_ != com.google.cloud.functions.v1.CloudFunction.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + if (ingressSettings_ + != com.google.cloud.functions.v1.CloudFunction.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { output.writeEnum(24, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { @@ -2743,8 +3068,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, buildId_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetBuildEnvironmentVariables(), BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -2767,7 +3091,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dockerRepository_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 34, dockerRepository_); } - if (dockerRegistry_ != com.google.cloud.functions.v1.CloudFunction.DockerRegistry.DOCKER_REGISTRY_UNSPECIFIED.getNumber()) { + if (dockerRegistry_ + != com.google.cloud.functions.v1.CloudFunction.DockerRegistry.DOCKER_REGISTRY_UNSPECIFIED + .getNumber()) { output.writeEnum(35, dockerRegistry_); } unknownFields.writeTo(output); @@ -2789,65 +3115,65 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceCode_); } if (sourceCodeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.functions.v1.SourceRepository) sourceCode_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.functions.v1.SourceRepository) sourceCode_); } if (triggerCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.functions.v1.HttpsTrigger) trigger_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.functions.v1.HttpsTrigger) trigger_); } if (triggerCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.functions.v1.EventTrigger) trigger_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.functions.v1.EventTrigger) trigger_); } - if (status_ != com.google.cloud.functions.v1.CloudFunctionStatus.CLOUD_FUNCTION_STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, status_); + if (status_ + != com.google.cloud.functions.v1.CloudFunctionStatus.CLOUD_FUNCTION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, status_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, entryPoint_); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTimeout()); } if (availableMemoryMb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(10, availableMemoryMb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, availableMemoryMb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, serviceAccountEmail_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); } if (versionId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(14, versionId_); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, labels__); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, versionId_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, labels__); } if (sourceCodeCase_ == 16) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, sourceCode_); } - for (java.util.Map.Entry entry - : internalGetEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, environmentVariables__); + for (java.util.Map.Entry entry : + internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry environmentVariables__ = + EnvironmentVariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, environmentVariables__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, network_); @@ -2856,19 +3182,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, runtime_); } if (maxInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(20, maxInstances_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(20, maxInstances_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, vpcConnector_); } - if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(23, vpcConnectorEgressSettings_); + if (vpcConnectorEgressSettings_ + != com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings + .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(23, vpcConnectorEgressSettings_); } - if (ingressSettings_ != com.google.cloud.functions.v1.CloudFunction.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(24, ingressSettings_); + if (ingressSettings_ + != com.google.cloud.functions.v1.CloudFunction.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(24, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, kmsKeyName_); @@ -2879,30 +3208,30 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, buildId_); } - for (java.util.Map.Entry entry - : internalGetBuildEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - buildEnvironmentVariables__ = BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, buildEnvironmentVariables__); + for (java.util.Map.Entry entry : + internalGetBuildEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry buildEnvironmentVariables__ = + BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(28, buildEnvironmentVariables__); } for (int i = 0; i < secretEnvironmentVariables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, secretEnvironmentVariables_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 29, secretEnvironmentVariables_.get(i)); } for (int i = 0; i < secretVolumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, secretVolumes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, secretVolumes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, sourceToken_); } if (minInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(32, minInstances_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(32, minInstances_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, buildName_); @@ -2910,9 +3239,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dockerRepository_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(34, dockerRepository_); } - if (dockerRegistry_ != com.google.cloud.functions.v1.CloudFunction.DockerRegistry.DOCKER_REGISTRY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(35, dockerRegistry_); + if (dockerRegistry_ + != com.google.cloud.functions.v1.CloudFunction.DockerRegistry.DOCKER_REGISTRY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, dockerRegistry_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2922,84 +3252,61 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.CloudFunction)) { return super.equals(obj); } - com.google.cloud.functions.v1.CloudFunction other = (com.google.cloud.functions.v1.CloudFunction) obj; + com.google.cloud.functions.v1.CloudFunction other = + (com.google.cloud.functions.v1.CloudFunction) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (status_ != other.status_) return false; - if (!getEntryPoint() - .equals(other.getEntryPoint())) return false; - if (!getRuntime() - .equals(other.getRuntime())) return false; + if (!getEntryPoint().equals(other.getEntryPoint())) return false; + if (!getRuntime().equals(other.getRuntime())) return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; + if (!getTimeout().equals(other.getTimeout())) return false; } - if (getAvailableMemoryMb() - != other.getAvailableMemoryMb()) return false; - if (!getServiceAccountEmail() - .equals(other.getServiceAccountEmail())) return false; + if (getAvailableMemoryMb() != other.getAvailableMemoryMb()) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (getVersionId() - != other.getVersionId()) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetEnvironmentVariables().equals( - other.internalGetEnvironmentVariables())) return false; - if (!internalGetBuildEnvironmentVariables().equals( - other.internalGetBuildEnvironmentVariables())) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (getMaxInstances() - != other.getMaxInstances()) return false; - if (getMinInstances() - != other.getMinInstances()) return false; - if (!getVpcConnector() - .equals(other.getVpcConnector())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (getVersionId() != other.getVersionId()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) + return false; + if (!internalGetBuildEnvironmentVariables() + .equals(other.internalGetBuildEnvironmentVariables())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (getMaxInstances() != other.getMaxInstances()) return false; + if (getMinInstances() != other.getMinInstances()) return false; + if (!getVpcConnector().equals(other.getVpcConnector())) return false; if (vpcConnectorEgressSettings_ != other.vpcConnectorEgressSettings_) return false; if (ingressSettings_ != other.ingressSettings_) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; - if (!getBuildWorkerPool() - .equals(other.getBuildWorkerPool())) return false; - if (!getBuildId() - .equals(other.getBuildId())) return false; - if (!getBuildName() - .equals(other.getBuildName())) return false; - if (!getSecretEnvironmentVariablesList() - .equals(other.getSecretEnvironmentVariablesList())) return false; - if (!getSecretVolumesList() - .equals(other.getSecretVolumesList())) return false; - if (!getSourceToken() - .equals(other.getSourceToken())) return false; - if (!getDockerRepository() - .equals(other.getDockerRepository())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getBuildWorkerPool().equals(other.getBuildWorkerPool())) return false; + if (!getBuildId().equals(other.getBuildId())) return false; + if (!getBuildName().equals(other.getBuildName())) return false; + if (!getSecretEnvironmentVariablesList().equals(other.getSecretEnvironmentVariablesList())) + return false; + if (!getSecretVolumesList().equals(other.getSecretVolumesList())) return false; + if (!getSourceToken().equals(other.getSourceToken())) return false; + if (!getDockerRepository().equals(other.getDockerRepository())) return false; if (dockerRegistry_ != other.dockerRegistry_) return false; if (!getSourceCodeCase().equals(other.getSourceCodeCase())) return false; switch (sourceCodeCase_) { case 3: - if (!getSourceArchiveUrl() - .equals(other.getSourceArchiveUrl())) return false; + if (!getSourceArchiveUrl().equals(other.getSourceArchiveUrl())) return false; break; case 4: - if (!getSourceRepository() - .equals(other.getSourceRepository())) return false; + if (!getSourceRepository().equals(other.getSourceRepository())) return false; break; case 16: - if (!getSourceUploadUrl() - .equals(other.getSourceUploadUrl())) return false; + if (!getSourceUploadUrl().equals(other.getSourceUploadUrl())) return false; break; case 0: default: @@ -3007,12 +3314,10 @@ public boolean equals(final java.lang.Object obj) { if (!getTriggerCase().equals(other.getTriggerCase())) return false; switch (triggerCase_) { case 5: - if (!getHttpsTrigger() - .equals(other.getHttpsTrigger())) return false; + if (!getHttpsTrigger().equals(other.getHttpsTrigger())) return false; break; case 6: - if (!getEventTrigger() - .equals(other.getEventTrigger())) return false; + if (!getEventTrigger().equals(other.getEventTrigger())) return false; break; case 0: default: @@ -3051,8 +3356,7 @@ public int hashCode() { hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (37 * hash) + VERSION_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersionId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersionId()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -3132,97 +3436,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.CloudFunction parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.CloudFunction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.CloudFunction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CloudFunction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.CloudFunction 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.v1.CloudFunction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.CloudFunction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v1.CloudFunction parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.CloudFunction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.CloudFunction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.CloudFunction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.CloudFunction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.CloudFunction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.CloudFunction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.CloudFunction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes a Cloud Function that contains user computation executed in
                                  * response to an event. It encapsulate function and triggers configurations.
                              @@ -3230,18 +3541,17 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v1.CloudFunction}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.CloudFunction)
                                     com.google.cloud.functions.v1.CloudFunctionOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_CloudFunction_descriptor;
                                   }
                               
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMapField(int number) {
                                     switch (number) {
                                       case 15:
                                         return internalGetLabels();
                              @@ -3250,13 +3560,12 @@ protected com.google.protobuf.MapField internalGetMapField(
                                       case 28:
                                         return internalGetBuildEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMutableMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
                                     switch (number) {
                                       case 15:
                                         return internalGetMutableLabels();
                              @@ -3265,16 +3574,18 @@ protected com.google.protobuf.MapField internalGetMutableMapField(
                                       case 28:
                                         return internalGetMutableBuildEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v1.CloudFunction.class, com.google.cloud.functions.v1.CloudFunction.Builder.class);
                              +              com.google.cloud.functions.v1.CloudFunction.class,
                              +              com.google.cloud.functions.v1.CloudFunction.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v1.CloudFunction.newBuilder()
                              @@ -3282,18 +3593,18 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getSecretEnvironmentVariablesFieldBuilder();
                                       getSecretVolumesFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -3374,9 +3685,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CloudFunction_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_CloudFunction_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -3395,7 +3706,8 @@ public com.google.cloud.functions.v1.CloudFunction build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v1.CloudFunction buildPartial() {
                              -      com.google.cloud.functions.v1.CloudFunction result = new com.google.cloud.functions.v1.CloudFunction(this);
                              +      com.google.cloud.functions.v1.CloudFunction result =
                              +          new com.google.cloud.functions.v1.CloudFunction(this);
                                     int from_bitField0_ = bitField0_;
                                     result.name_ = name_;
                                     result.description_ = description_;
                              @@ -3460,7 +3772,8 @@ public com.google.cloud.functions.v1.CloudFunction buildPartial() {
                                     result.buildName_ = buildName_;
                                     if (secretEnvironmentVariablesBuilder_ == null) {
                                       if (((bitField0_ & 0x00000008) != 0)) {
                              -          secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                              +          secretEnvironmentVariables_ =
                              +              java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                                         bitField0_ = (bitField0_ & ~0x00000008);
                                       }
                                       result.secretEnvironmentVariables_ = secretEnvironmentVariables_;
                              @@ -3489,38 +3802,39 @@ public com.google.cloud.functions.v1.CloudFunction buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v1.CloudFunction)other);
                              +        return mergeFrom((com.google.cloud.functions.v1.CloudFunction) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -3564,12 +3878,10 @@ public Builder mergeFrom(com.google.cloud.functions.v1.CloudFunction other) {
                                     if (other.getVersionId() != 0L) {
                                       setVersionId(other.getVersionId());
                                     }
                              -      internalGetMutableLabels().mergeFrom(
                              -          other.internalGetLabels());
                              -      internalGetMutableEnvironmentVariables().mergeFrom(
                              -          other.internalGetEnvironmentVariables());
                              -      internalGetMutableBuildEnvironmentVariables().mergeFrom(
                              -          other.internalGetBuildEnvironmentVariables());
                              +      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
                              +      internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables());
                              +      internalGetMutableBuildEnvironmentVariables()
                              +          .mergeFrom(other.internalGetBuildEnvironmentVariables());
                                     if (!other.getNetwork().isEmpty()) {
                                       network_ = other.network_;
                                       onChanged();
                              @@ -3624,9 +3936,10 @@ public Builder mergeFrom(com.google.cloud.functions.v1.CloudFunction other) {
                                           secretEnvironmentVariablesBuilder_ = null;
                                           secretEnvironmentVariables_ = other.secretEnvironmentVariables_;
                                           bitField0_ = (bitField0_ & ~0x00000008);
                              -            secretEnvironmentVariablesBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getSecretEnvironmentVariablesFieldBuilder() : null;
                              +            secretEnvironmentVariablesBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getSecretEnvironmentVariablesFieldBuilder()
                              +                    : null;
                                         } else {
                                           secretEnvironmentVariablesBuilder_.addAllMessages(other.secretEnvironmentVariables_);
                                         }
                              @@ -3650,9 +3963,10 @@ public Builder mergeFrom(com.google.cloud.functions.v1.CloudFunction other) {
                                           secretVolumesBuilder_ = null;
                                           secretVolumes_ = other.secretVolumes_;
                                           bitField0_ = (bitField0_ & ~0x00000010);
                              -            secretVolumesBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getSecretVolumesFieldBuilder() : null;
                              +            secretVolumesBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getSecretVolumesFieldBuilder()
                              +                    : null;
                                         } else {
                                           secretVolumesBuilder_.addAllMessages(other.secretVolumes_);
                                         }
                              @@ -3670,38 +3984,45 @@ public Builder mergeFrom(com.google.cloud.functions.v1.CloudFunction other) {
                                       setDockerRegistryValue(other.getDockerRegistryValue());
                                     }
                                     switch (other.getSourceCodeCase()) {
                              -        case SOURCE_ARCHIVE_URL: {
                              -          sourceCodeCase_ = 3;
                              -          sourceCode_ = other.sourceCode_;
                              -          onChanged();
                              -          break;
                              -        }
                              -        case SOURCE_REPOSITORY: {
                              -          mergeSourceRepository(other.getSourceRepository());
                              -          break;
                              -        }
                              -        case SOURCE_UPLOAD_URL: {
                              -          sourceCodeCase_ = 16;
                              -          sourceCode_ = other.sourceCode_;
                              -          onChanged();
                              -          break;
                              -        }
                              -        case SOURCECODE_NOT_SET: {
                              -          break;
                              -        }
                              +        case SOURCE_ARCHIVE_URL:
                              +          {
                              +            sourceCodeCase_ = 3;
                              +            sourceCode_ = other.sourceCode_;
                              +            onChanged();
                              +            break;
                              +          }
                              +        case SOURCE_REPOSITORY:
                              +          {
                              +            mergeSourceRepository(other.getSourceRepository());
                              +            break;
                              +          }
                              +        case SOURCE_UPLOAD_URL:
                              +          {
                              +            sourceCodeCase_ = 16;
                              +            sourceCode_ = other.sourceCode_;
                              +            onChanged();
                              +            break;
                              +          }
                              +        case SOURCECODE_NOT_SET:
                              +          {
                              +            break;
                              +          }
                                     }
                                     switch (other.getTriggerCase()) {
                              -        case HTTPS_TRIGGER: {
                              -          mergeHttpsTrigger(other.getHttpsTrigger());
                              -          break;
                              -        }
                              -        case EVENT_TRIGGER: {
                              -          mergeEventTrigger(other.getEventTrigger());
                              -          break;
                              -        }
                              -        case TRIGGER_NOT_SET: {
                              -          break;
                              -        }
                              +        case HTTPS_TRIGGER:
                              +          {
                              +            mergeHttpsTrigger(other.getHttpsTrigger());
                              +            break;
                              +          }
                              +        case EVENT_TRIGGER:
                              +          {
                              +            mergeEventTrigger(other.getEventTrigger());
                              +            break;
                              +          }
                              +        case TRIGGER_NOT_SET:
                              +          {
                              +            break;
                              +          }
                                     }
                                     this.mergeUnknownFields(other.unknownFields);
                                     onChanged();
                              @@ -3731,12 +4052,12 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int sourceCodeCase_ = 0;
                                   private java.lang.Object sourceCode_;
                              -    public SourceCodeCase
                              -        getSourceCodeCase() {
                              -      return SourceCodeCase.forNumber(
                              -          sourceCodeCase_);
                              +
                              +    public SourceCodeCase getSourceCodeCase() {
                              +      return SourceCodeCase.forNumber(sourceCodeCase_);
                                   }
                               
                                   public Builder clearSourceCode() {
                              @@ -3748,10 +4069,9 @@ public Builder clearSourceCode() {
                               
                                   private int triggerCase_ = 0;
                                   private java.lang.Object trigger_;
                              -    public TriggerCase
                              -        getTriggerCase() {
                              -      return TriggerCase.forNumber(
                              -          triggerCase_);
                              +
                              +    public TriggerCase getTriggerCase() {
                              +      return TriggerCase.forNumber(triggerCase_);
                                   }
                               
                                   public Builder clearTrigger() {
                              @@ -3765,19 +4085,21 @@ public Builder clearTrigger() {
                               
                                   private java.lang.Object name_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3786,21 +4108,22 @@ public java.lang.String getName() { } } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -3808,57 +4131,64 @@ public java.lang.String getName() { } } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3866,18 +4196,20 @@ public Builder setNameBytes( 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -3886,20 +4218,21 @@ public java.lang.String getDescription() { } } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -3907,66 +4240,76 @@ public java.lang.String getDescription() { } } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } /** + * + * *
                                    * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
                                    * archive which contains the function.
                                    * 
                              * * string source_archive_url = 3; + * * @return Whether the sourceArchiveUrl field is set. */ @java.lang.Override @@ -3974,12 +4317,15 @@ public boolean hasSourceArchiveUrl() { return sourceCodeCase_ == 3; } /** + * + * *
                                    * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
                                    * archive which contains the function.
                                    * 
                              * * string source_archive_url = 3; + * * @return The sourceArchiveUrl. */ @java.lang.Override @@ -3989,8 +4335,7 @@ public java.lang.String getSourceArchiveUrl() { ref = sourceCode_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 3) { sourceCode_ = s; @@ -4001,25 +4346,26 @@ public java.lang.String getSourceArchiveUrl() { } } /** + * + * *
                                    * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
                                    * archive which contains the function.
                                    * 
                              * * string source_archive_url = 3; + * * @return The bytes for sourceArchiveUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceArchiveUrlBytes() { + public com.google.protobuf.ByteString getSourceArchiveUrlBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 3) { ref = sourceCode_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCodeCase_ == 3) { sourceCode_ = b; } @@ -4029,32 +4375,37 @@ public java.lang.String getSourceArchiveUrl() { } } /** + * + * *
                                    * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
                                    * archive which contains the function.
                                    * 
                              * * string source_archive_url = 3; + * * @param value The sourceArchiveUrl to set. * @return This builder for chaining. */ - public Builder setSourceArchiveUrl( - java.lang.String value) { + public Builder setSourceArchiveUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCodeCase_ = 3; + throw new NullPointerException(); + } + sourceCodeCase_ = 3; sourceCode_ = value; onChanged(); return this; } /** + * + * *
                                    * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
                                    * archive which contains the function.
                                    * 
                              * * string source_archive_url = 3; + * * @return This builder for chaining. */ public Builder clearSourceArchiveUrl() { @@ -4066,21 +4417,23 @@ public Builder clearSourceArchiveUrl() { return this; } /** + * + * *
                                    * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
                                    * archive which contains the function.
                                    * 
                              * * string source_archive_url = 3; + * * @param value The bytes for sourceArchiveUrl to set. * @return This builder for chaining. */ - public Builder setSourceArchiveUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceArchiveUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCodeCase_ = 3; sourceCode_ = value; onChanged(); @@ -4088,14 +4441,20 @@ public Builder setSourceArchiveUrlBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.SourceRepository, com.google.cloud.functions.v1.SourceRepository.Builder, com.google.cloud.functions.v1.SourceRepositoryOrBuilder> sourceRepositoryBuilder_; + com.google.cloud.functions.v1.SourceRepository, + com.google.cloud.functions.v1.SourceRepository.Builder, + com.google.cloud.functions.v1.SourceRepositoryOrBuilder> + sourceRepositoryBuilder_; /** + * + * *
                                    * **Beta Feature**
                                    * The source repository where a function is hosted.
                                    * 
                              * * .google.cloud.functions.v1.SourceRepository source_repository = 4; + * * @return Whether the sourceRepository field is set. */ @java.lang.Override @@ -4103,12 +4462,15 @@ public boolean hasSourceRepository() { return sourceCodeCase_ == 4; } /** + * + * *
                                    * **Beta Feature**
                                    * The source repository where a function is hosted.
                                    * 
                              * * .google.cloud.functions.v1.SourceRepository source_repository = 4; + * * @return The sourceRepository. */ @java.lang.Override @@ -4126,6 +4488,8 @@ public com.google.cloud.functions.v1.SourceRepository getSourceRepository() { } } /** + * + * *
                                    * **Beta Feature**
                                    * The source repository where a function is hosted.
                              @@ -4147,6 +4511,8 @@ public Builder setSourceRepository(com.google.cloud.functions.v1.SourceRepositor
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * **Beta Feature**
                                    * The source repository where a function is hosted.
                              @@ -4166,6 +4532,8 @@ public Builder setSourceRepository(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * **Beta Feature**
                                    * The source repository where a function is hosted.
                              @@ -4175,10 +4543,13 @@ public Builder setSourceRepository(
                                    */
                                   public Builder mergeSourceRepository(com.google.cloud.functions.v1.SourceRepository value) {
                                     if (sourceRepositoryBuilder_ == null) {
                              -        if (sourceCodeCase_ == 4 &&
                              -            sourceCode_ != com.google.cloud.functions.v1.SourceRepository.getDefaultInstance()) {
                              -          sourceCode_ = com.google.cloud.functions.v1.SourceRepository.newBuilder((com.google.cloud.functions.v1.SourceRepository) sourceCode_)
                              -              .mergeFrom(value).buildPartial();
                              +        if (sourceCodeCase_ == 4
                              +            && sourceCode_ != com.google.cloud.functions.v1.SourceRepository.getDefaultInstance()) {
                              +          sourceCode_ =
                              +              com.google.cloud.functions.v1.SourceRepository.newBuilder(
                              +                      (com.google.cloud.functions.v1.SourceRepository) sourceCode_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         sourceCode_ = value;
                                       }
                              @@ -4194,6 +4565,8 @@ public Builder mergeSourceRepository(com.google.cloud.functions.v1.SourceReposit
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * **Beta Feature**
                                    * The source repository where a function is hosted.
                              @@ -4218,6 +4591,8 @@ public Builder clearSourceRepository() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * **Beta Feature**
                                    * The source repository where a function is hosted.
                              @@ -4229,6 +4604,8 @@ public com.google.cloud.functions.v1.SourceRepository.Builder getSourceRepositor
                                     return getSourceRepositoryFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * **Beta Feature**
                                    * The source repository where a function is hosted.
                              @@ -4248,6 +4625,8 @@ public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceReposito
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * **Beta Feature**
                                    * The source repository where a function is hosted.
                              @@ -4256,25 +4635,33 @@ public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceReposito
                                    * .google.cloud.functions.v1.SourceRepository source_repository = 4;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v1.SourceRepository, com.google.cloud.functions.v1.SourceRepository.Builder, com.google.cloud.functions.v1.SourceRepositoryOrBuilder> 
                              +            com.google.cloud.functions.v1.SourceRepository,
                              +            com.google.cloud.functions.v1.SourceRepository.Builder,
                              +            com.google.cloud.functions.v1.SourceRepositoryOrBuilder>
                                       getSourceRepositoryFieldBuilder() {
                                     if (sourceRepositoryBuilder_ == null) {
                                       if (!(sourceCodeCase_ == 4)) {
                                         sourceCode_ = com.google.cloud.functions.v1.SourceRepository.getDefaultInstance();
                                       }
                              -        sourceRepositoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v1.SourceRepository, com.google.cloud.functions.v1.SourceRepository.Builder, com.google.cloud.functions.v1.SourceRepositoryOrBuilder>(
                              +        sourceRepositoryBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v1.SourceRepository,
                              +                com.google.cloud.functions.v1.SourceRepository.Builder,
                              +                com.google.cloud.functions.v1.SourceRepositoryOrBuilder>(
                                               (com.google.cloud.functions.v1.SourceRepository) sourceCode_,
                                               getParentForChildren(),
                                               isClean());
                                       sourceCode_ = null;
                                     }
                                     sourceCodeCase_ = 4;
                              -      onChanged();;
                              +      onChanged();
                              +      ;
                                     return sourceRepositoryBuilder_;
                                   }
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The Google Cloud Storage signed URL used for source uploading, generated
                                    * by calling [google.cloud.functions.v1.GenerateUploadUrl].
                              @@ -4284,6 +4671,7 @@ public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceReposito
                                    * 
                              * * string source_upload_url = 16; + * * @return Whether the sourceUploadUrl field is set. */ @java.lang.Override @@ -4291,6 +4679,8 @@ public boolean hasSourceUploadUrl() { return sourceCodeCase_ == 16; } /** + * + * *
                                    * The Google Cloud Storage signed URL used for source uploading, generated
                                    * by calling [google.cloud.functions.v1.GenerateUploadUrl].
                              @@ -4300,6 +4690,7 @@ public boolean hasSourceUploadUrl() {
                                    * 
                              * * string source_upload_url = 16; + * * @return The sourceUploadUrl. */ @java.lang.Override @@ -4309,8 +4700,7 @@ public java.lang.String getSourceUploadUrl() { ref = sourceCode_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 16) { sourceCode_ = s; @@ -4321,6 +4711,8 @@ public java.lang.String getSourceUploadUrl() { } } /** + * + * *
                                    * The Google Cloud Storage signed URL used for source uploading, generated
                                    * by calling [google.cloud.functions.v1.GenerateUploadUrl].
                              @@ -4330,19 +4722,18 @@ public java.lang.String getSourceUploadUrl() {
                                    * 
                              * * string source_upload_url = 16; + * * @return The bytes for sourceUploadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceUploadUrlBytes() { + public com.google.protobuf.ByteString getSourceUploadUrlBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 16) { ref = sourceCode_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCodeCase_ == 16) { sourceCode_ = b; } @@ -4352,6 +4743,8 @@ public java.lang.String getSourceUploadUrl() { } } /** + * + * *
                                    * The Google Cloud Storage signed URL used for source uploading, generated
                                    * by calling [google.cloud.functions.v1.GenerateUploadUrl].
                              @@ -4361,20 +4754,22 @@ public java.lang.String getSourceUploadUrl() {
                                    * 
                              * * string source_upload_url = 16; + * * @param value The sourceUploadUrl to set. * @return This builder for chaining. */ - public Builder setSourceUploadUrl( - java.lang.String value) { + public Builder setSourceUploadUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCodeCase_ = 16; + throw new NullPointerException(); + } + sourceCodeCase_ = 16; sourceCode_ = value; onChanged(); return this; } /** + * + * *
                                    * The Google Cloud Storage signed URL used for source uploading, generated
                                    * by calling [google.cloud.functions.v1.GenerateUploadUrl].
                              @@ -4384,6 +4779,7 @@ public Builder setSourceUploadUrl(
                                    * 
                              * * string source_upload_url = 16; + * * @return This builder for chaining. */ public Builder clearSourceUploadUrl() { @@ -4395,6 +4791,8 @@ public Builder clearSourceUploadUrl() { return this; } /** + * + * *
                                    * The Google Cloud Storage signed URL used for source uploading, generated
                                    * by calling [google.cloud.functions.v1.GenerateUploadUrl].
                              @@ -4404,15 +4802,15 @@ public Builder clearSourceUploadUrl() {
                                    * 
                              * * string source_upload_url = 16; + * * @param value The bytes for sourceUploadUrl to set. * @return This builder for chaining. */ - public Builder setSourceUploadUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceUploadUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCodeCase_ = 16; sourceCode_ = value; onChanged(); @@ -4420,13 +4818,19 @@ public Builder setSourceUploadUrlBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.HttpsTrigger, com.google.cloud.functions.v1.HttpsTrigger.Builder, com.google.cloud.functions.v1.HttpsTriggerOrBuilder> httpsTriggerBuilder_; + com.google.cloud.functions.v1.HttpsTrigger, + com.google.cloud.functions.v1.HttpsTrigger.Builder, + com.google.cloud.functions.v1.HttpsTriggerOrBuilder> + httpsTriggerBuilder_; /** + * + * *
                                    * An HTTPS endpoint type of source that can be triggered via URL.
                                    * 
                              * * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; + * * @return Whether the httpsTrigger field is set. */ @java.lang.Override @@ -4434,11 +4838,14 @@ public boolean hasHttpsTrigger() { return triggerCase_ == 5; } /** + * + * *
                                    * An HTTPS endpoint type of source that can be triggered via URL.
                                    * 
                              * * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; + * * @return The httpsTrigger. */ @java.lang.Override @@ -4456,6 +4863,8 @@ public com.google.cloud.functions.v1.HttpsTrigger getHttpsTrigger() { } } /** + * + * *
                                    * An HTTPS endpoint type of source that can be triggered via URL.
                                    * 
                              @@ -4476,6 +4885,8 @@ public Builder setHttpsTrigger(com.google.cloud.functions.v1.HttpsTrigger value) return this; } /** + * + * *
                                    * An HTTPS endpoint type of source that can be triggered via URL.
                                    * 
                              @@ -4494,6 +4905,8 @@ public Builder setHttpsTrigger( return this; } /** + * + * *
                                    * An HTTPS endpoint type of source that can be triggered via URL.
                                    * 
                              @@ -4502,10 +4915,13 @@ public Builder setHttpsTrigger( */ public Builder mergeHttpsTrigger(com.google.cloud.functions.v1.HttpsTrigger value) { if (httpsTriggerBuilder_ == null) { - if (triggerCase_ == 5 && - trigger_ != com.google.cloud.functions.v1.HttpsTrigger.getDefaultInstance()) { - trigger_ = com.google.cloud.functions.v1.HttpsTrigger.newBuilder((com.google.cloud.functions.v1.HttpsTrigger) trigger_) - .mergeFrom(value).buildPartial(); + if (triggerCase_ == 5 + && trigger_ != com.google.cloud.functions.v1.HttpsTrigger.getDefaultInstance()) { + trigger_ = + com.google.cloud.functions.v1.HttpsTrigger.newBuilder( + (com.google.cloud.functions.v1.HttpsTrigger) trigger_) + .mergeFrom(value) + .buildPartial(); } else { trigger_ = value; } @@ -4521,6 +4937,8 @@ public Builder mergeHttpsTrigger(com.google.cloud.functions.v1.HttpsTrigger valu return this; } /** + * + * *
                                    * An HTTPS endpoint type of source that can be triggered via URL.
                                    * 
                              @@ -4544,6 +4962,8 @@ public Builder clearHttpsTrigger() { return this; } /** + * + * *
                                    * An HTTPS endpoint type of source that can be triggered via URL.
                                    * 
                              @@ -4554,6 +4974,8 @@ public com.google.cloud.functions.v1.HttpsTrigger.Builder getHttpsTriggerBuilder return getHttpsTriggerFieldBuilder().getBuilder(); } /** + * + * *
                                    * An HTTPS endpoint type of source that can be triggered via URL.
                                    * 
                              @@ -4572,6 +4994,8 @@ public com.google.cloud.functions.v1.HttpsTriggerOrBuilder getHttpsTriggerOrBuil } } /** + * + * *
                                    * An HTTPS endpoint type of source that can be triggered via URL.
                                    * 
                              @@ -4579,32 +5003,44 @@ public com.google.cloud.functions.v1.HttpsTriggerOrBuilder getHttpsTriggerOrBuil * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.HttpsTrigger, com.google.cloud.functions.v1.HttpsTrigger.Builder, com.google.cloud.functions.v1.HttpsTriggerOrBuilder> + com.google.cloud.functions.v1.HttpsTrigger, + com.google.cloud.functions.v1.HttpsTrigger.Builder, + com.google.cloud.functions.v1.HttpsTriggerOrBuilder> getHttpsTriggerFieldBuilder() { if (httpsTriggerBuilder_ == null) { if (!(triggerCase_ == 5)) { trigger_ = com.google.cloud.functions.v1.HttpsTrigger.getDefaultInstance(); } - httpsTriggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.HttpsTrigger, com.google.cloud.functions.v1.HttpsTrigger.Builder, com.google.cloud.functions.v1.HttpsTriggerOrBuilder>( + httpsTriggerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v1.HttpsTrigger, + com.google.cloud.functions.v1.HttpsTrigger.Builder, + com.google.cloud.functions.v1.HttpsTriggerOrBuilder>( (com.google.cloud.functions.v1.HttpsTrigger) trigger_, getParentForChildren(), isClean()); trigger_ = null; } triggerCase_ = 5; - onChanged();; + onChanged(); + ; return httpsTriggerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.EventTrigger, com.google.cloud.functions.v1.EventTrigger.Builder, com.google.cloud.functions.v1.EventTriggerOrBuilder> eventTriggerBuilder_; + com.google.cloud.functions.v1.EventTrigger, + com.google.cloud.functions.v1.EventTrigger.Builder, + com.google.cloud.functions.v1.EventTriggerOrBuilder> + eventTriggerBuilder_; /** + * + * *
                                    * A source that fires events in response to a condition in another service.
                                    * 
                              * * .google.cloud.functions.v1.EventTrigger event_trigger = 6; + * * @return Whether the eventTrigger field is set. */ @java.lang.Override @@ -4612,11 +5048,14 @@ public boolean hasEventTrigger() { return triggerCase_ == 6; } /** + * + * *
                                    * A source that fires events in response to a condition in another service.
                                    * 
                              * * .google.cloud.functions.v1.EventTrigger event_trigger = 6; + * * @return The eventTrigger. */ @java.lang.Override @@ -4634,6 +5073,8 @@ public com.google.cloud.functions.v1.EventTrigger getEventTrigger() { } } /** + * + * *
                                    * A source that fires events in response to a condition in another service.
                                    * 
                              @@ -4654,6 +5095,8 @@ public Builder setEventTrigger(com.google.cloud.functions.v1.EventTrigger value) return this; } /** + * + * *
                                    * A source that fires events in response to a condition in another service.
                                    * 
                              @@ -4672,6 +5115,8 @@ public Builder setEventTrigger( return this; } /** + * + * *
                                    * A source that fires events in response to a condition in another service.
                                    * 
                              @@ -4680,10 +5125,13 @@ public Builder setEventTrigger( */ public Builder mergeEventTrigger(com.google.cloud.functions.v1.EventTrigger value) { if (eventTriggerBuilder_ == null) { - if (triggerCase_ == 6 && - trigger_ != com.google.cloud.functions.v1.EventTrigger.getDefaultInstance()) { - trigger_ = com.google.cloud.functions.v1.EventTrigger.newBuilder((com.google.cloud.functions.v1.EventTrigger) trigger_) - .mergeFrom(value).buildPartial(); + if (triggerCase_ == 6 + && trigger_ != com.google.cloud.functions.v1.EventTrigger.getDefaultInstance()) { + trigger_ = + com.google.cloud.functions.v1.EventTrigger.newBuilder( + (com.google.cloud.functions.v1.EventTrigger) trigger_) + .mergeFrom(value) + .buildPartial(); } else { trigger_ = value; } @@ -4699,6 +5147,8 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v1.EventTrigger valu return this; } /** + * + * *
                                    * A source that fires events in response to a condition in another service.
                                    * 
                              @@ -4722,6 +5172,8 @@ public Builder clearEventTrigger() { return this; } /** + * + * *
                                    * A source that fires events in response to a condition in another service.
                                    * 
                              @@ -4732,6 +5184,8 @@ public com.google.cloud.functions.v1.EventTrigger.Builder getEventTriggerBuilder return getEventTriggerFieldBuilder().getBuilder(); } /** + * + * *
                                    * A source that fires events in response to a condition in another service.
                                    * 
                              @@ -4750,6 +5204,8 @@ public com.google.cloud.functions.v1.EventTriggerOrBuilder getEventTriggerOrBuil } } /** + * + * *
                                    * A source that fires events in response to a condition in another service.
                                    * 
                              @@ -4757,71 +5213,101 @@ public com.google.cloud.functions.v1.EventTriggerOrBuilder getEventTriggerOrBuil * .google.cloud.functions.v1.EventTrigger event_trigger = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.EventTrigger, com.google.cloud.functions.v1.EventTrigger.Builder, com.google.cloud.functions.v1.EventTriggerOrBuilder> + com.google.cloud.functions.v1.EventTrigger, + com.google.cloud.functions.v1.EventTrigger.Builder, + com.google.cloud.functions.v1.EventTriggerOrBuilder> getEventTriggerFieldBuilder() { if (eventTriggerBuilder_ == null) { if (!(triggerCase_ == 6)) { trigger_ = com.google.cloud.functions.v1.EventTrigger.getDefaultInstance(); } - eventTriggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.EventTrigger, com.google.cloud.functions.v1.EventTrigger.Builder, com.google.cloud.functions.v1.EventTriggerOrBuilder>( + eventTriggerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v1.EventTrigger, + com.google.cloud.functions.v1.EventTrigger.Builder, + com.google.cloud.functions.v1.EventTriggerOrBuilder>( (com.google.cloud.functions.v1.EventTrigger) trigger_, getParentForChildren(), isClean()); trigger_ = null; } triggerCase_ = 6; - onChanged();; + onChanged(); + ; return eventTriggerBuilder_; } private int status_ = 0; /** + * + * *
                                    * Output only. Status of the function deployment.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for status. */ - @java.lang.Override public int getStatusValue() { + @java.lang.Override + public int getStatusValue() { return status_; } /** + * + * *
                                    * Output only. Status of the function deployment.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { - + status_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. Status of the function deployment.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunctionStatus getStatus() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunctionStatus result = com.google.cloud.functions.v1.CloudFunctionStatus.valueOf(status_); - return result == null ? com.google.cloud.functions.v1.CloudFunctionStatus.UNRECOGNIZED : result; + com.google.cloud.functions.v1.CloudFunctionStatus result = + com.google.cloud.functions.v1.CloudFunctionStatus.valueOf(status_); + return result == null + ? com.google.cloud.functions.v1.CloudFunctionStatus.UNRECOGNIZED + : result; } /** + * + * *
                                    * Output only. Status of the function deployment.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The status to set. * @return This builder for chaining. */ @@ -4829,21 +5315,26 @@ public Builder setStatus(com.google.cloud.functions.v1.CloudFunctionStatus value if (value == null) { throw new NullPointerException(); } - + status_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Output only. Status of the function deployment.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearStatus() { - + status_ = 0; onChanged(); return this; @@ -4851,6 +5342,8 @@ public Builder clearStatus() { private java.lang.Object entryPoint_ = ""; /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -4861,13 +5354,13 @@ public Builder clearStatus() {
                                    * 
                              * * string entry_point = 8; + * * @return The entryPoint. */ public java.lang.String getEntryPoint() { java.lang.Object ref = entryPoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; @@ -4876,6 +5369,8 @@ public java.lang.String getEntryPoint() { } } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -4886,15 +5381,14 @@ public java.lang.String getEntryPoint() {
                                    * 
                              * * string entry_point = 8; + * * @return The bytes for entryPoint. */ - public com.google.protobuf.ByteString - getEntryPointBytes() { + public com.google.protobuf.ByteString getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -4902,6 +5396,8 @@ public java.lang.String getEntryPoint() { } } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -4912,20 +5408,22 @@ public java.lang.String getEntryPoint() {
                                    * 
                              * * string entry_point = 8; + * * @param value The entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPoint( - java.lang.String value) { + public Builder setEntryPoint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entryPoint_ = value; onChanged(); return this; } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -4936,15 +5434,18 @@ public Builder setEntryPoint(
                                    * 
                              * * string entry_point = 8; + * * @return This builder for chaining. */ public Builder clearEntryPoint() { - + entryPoint_ = getDefaultInstance().getEntryPoint(); onChanged(); return this; } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -4955,16 +5456,16 @@ public Builder clearEntryPoint() {
                                    * 
                              * * string entry_point = 8; + * * @param value The bytes for entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPointBytes( - com.google.protobuf.ByteString value) { + public Builder setEntryPointBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryPoint_ = value; onChanged(); return this; @@ -4972,6 +5473,8 @@ public Builder setEntryPointBytes( private java.lang.Object runtime_ = ""; /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -4981,13 +5484,13 @@ public Builder setEntryPointBytes(
                                    * 
                              * * string runtime = 19; + * * @return The runtime. */ public java.lang.String getRuntime() { java.lang.Object ref = runtime_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; @@ -4996,6 +5499,8 @@ public java.lang.String getRuntime() { } } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -5005,15 +5510,14 @@ public java.lang.String getRuntime() {
                                    * 
                              * * string runtime = 19; + * * @return The bytes for runtime. */ - public com.google.protobuf.ByteString - getRuntimeBytes() { + public com.google.protobuf.ByteString getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtime_ = b; return b; } else { @@ -5021,6 +5525,8 @@ public java.lang.String getRuntime() { } } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -5030,20 +5536,22 @@ public java.lang.String getRuntime() {
                                    * 
                              * * string runtime = 19; + * * @param value The runtime to set. * @return This builder for chaining. */ - public Builder setRuntime( - java.lang.String value) { + public Builder setRuntime(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + runtime_ = value; onChanged(); return this; } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -5053,15 +5561,18 @@ public Builder setRuntime(
                                    * 
                              * * string runtime = 19; + * * @return This builder for chaining. */ public Builder clearRuntime() { - + runtime_ = getDefaultInstance().getRuntime(); onChanged(); return this; } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -5071,16 +5582,16 @@ public Builder clearRuntime() {
                                    * 
                              * * string runtime = 19; + * * @param value The bytes for runtime to set. * @return This builder for chaining. */ - public Builder setRuntimeBytes( - com.google.protobuf.ByteString value) { + public Builder setRuntimeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + runtime_ = value; onChanged(); return this; @@ -5088,8 +5599,13 @@ public Builder setRuntimeBytes( private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeoutBuilder_; /** + * + * *
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -5097,12 +5613,15 @@ public Builder setRuntimeBytes(
                                    * 
                              * * .google.protobuf.Duration timeout = 9; + * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** + * + * *
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -5110,6 +5629,7 @@ public boolean hasTimeout() {
                                    * 
                              * * .google.protobuf.Duration timeout = 9; + * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -5120,6 +5640,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -5142,6 +5664,8 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -5150,8 +5674,7 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
                                    *
                                    * .google.protobuf.Duration timeout = 9;
                                    */
                              -    public Builder setTimeout(
                              -        com.google.protobuf.Duration.Builder builderForValue) {
                              +    public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) {
                                     if (timeoutBuilder_ == null) {
                                       timeout_ = builderForValue.build();
                                       onChanged();
                              @@ -5162,6 +5685,8 @@ public Builder setTimeout(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -5174,7 +5699,7 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
                                     if (timeoutBuilder_ == null) {
                                       if (timeout_ != null) {
                                         timeout_ =
                              -            com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial();
                              +              com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial();
                                       } else {
                                         timeout_ = value;
                                       }
                              @@ -5186,6 +5711,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -5206,6 +5733,8 @@ public Builder clearTimeout() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -5215,11 +5744,13 @@ public Builder clearTimeout() {
                                    * .google.protobuf.Duration timeout = 9;
                                    */
                                   public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getTimeoutFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -5232,11 +5763,12 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
                                     if (timeoutBuilder_ != null) {
                                       return timeoutBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return timeout_ == null ?
                              -            com.google.protobuf.Duration.getDefaultInstance() : timeout_;
                              +        return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -5246,27 +5778,33 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
                                    * .google.protobuf.Duration timeout = 9;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
                              +            com.google.protobuf.Duration,
                              +            com.google.protobuf.Duration.Builder,
                              +            com.google.protobuf.DurationOrBuilder>
                                       getTimeoutFieldBuilder() {
                                     if (timeoutBuilder_ == null) {
                              -        timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
                              -                getTimeout(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        timeoutBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.protobuf.Duration,
                              +                com.google.protobuf.Duration.Builder,
                              +                com.google.protobuf.DurationOrBuilder>(
                              +                getTimeout(), getParentForChildren(), isClean());
                                       timeout_ = null;
                                     }
                                     return timeoutBuilder_;
                                   }
                               
                              -    private int availableMemoryMb_ ;
                              +    private int availableMemoryMb_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The amount of memory in MB available for a function.
                                    * Defaults to 256MB.
                                    * 
                              * * int32 available_memory_mb = 10; + * * @return The availableMemoryMb. */ @java.lang.Override @@ -5274,32 +5812,38 @@ public int getAvailableMemoryMb() { return availableMemoryMb_; } /** + * + * *
                                    * The amount of memory in MB available for a function.
                                    * Defaults to 256MB.
                                    * 
                              * * int32 available_memory_mb = 10; + * * @param value The availableMemoryMb to set. * @return This builder for chaining. */ public Builder setAvailableMemoryMb(int value) { - + availableMemoryMb_ = value; onChanged(); return this; } /** + * + * *
                                    * The amount of memory in MB available for a function.
                                    * Defaults to 256MB.
                                    * 
                              * * int32 available_memory_mb = 10; + * * @return This builder for chaining. */ public Builder clearAvailableMemoryMb() { - + availableMemoryMb_ = 0; onChanged(); return this; @@ -5307,19 +5851,21 @@ public Builder clearAvailableMemoryMb() { private java.lang.Object serviceAccountEmail_ = ""; /** + * + * *
                                    * The email of the function's service account. If empty, defaults to
                                    * `{project_id}@appspot.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 11; + * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -5328,21 +5874,22 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
                                    * The email of the function's service account. If empty, defaults to
                                    * `{project_id}@appspot.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 11; + * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -5350,57 +5897,64 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
                                    * The email of the function's service account. If empty, defaults to
                                    * `{project_id}@appspot.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 11; + * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail( - java.lang.String value) { + public Builder setServiceAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** + * + * *
                                    * The email of the function's service account. If empty, defaults to
                                    * `{project_id}@appspot.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 11; + * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** + * + * *
                                    * The email of the function's service account. If empty, defaults to
                                    * `{project_id}@appspot.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 11; + * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; @@ -5408,39 +5962,58 @@ public Builder setServiceAccountEmailBytes( private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
                                    * Output only. The last update timestamp of a Cloud Function.
                                    * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
                                    * Output only. The last update timestamp of a Cloud Function.
                                    * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
                                    * Output only. The last update timestamp of a Cloud Function.
                                    * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -5456,14 +6029,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * Output only. The last update timestamp of a Cloud Function.
                                    * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -5474,17 +6050,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
                                    * Output only. The last update timestamp of a Cloud Function.
                                    * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -5496,11 +6076,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * Output only. The last update timestamp of a Cloud Function.
                                    * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -5514,61 +6098,80 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
                                    * Output only. The last update timestamp of a Cloud Function.
                                    * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
                                    * Output only. The last update timestamp of a Cloud Function.
                                    * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
                                    * Output only. The last update timestamp of a Cloud Function.
                                    * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private long versionId_ ; + private long versionId_; /** + * + * *
                                    * Output only. The version identifier of the Cloud Function. Each deployment attempt
                                    * results in a new version of a function being created.
                                    * 
                              * * int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The versionId. */ @java.lang.Override @@ -5576,53 +6179,58 @@ public long getVersionId() { return versionId_; } /** + * + * *
                                    * Output only. The version identifier of the Cloud Function. Each deployment attempt
                                    * results in a new version of a function being created.
                                    * 
                              * * int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The versionId to set. * @return This builder for chaining. */ public Builder setVersionId(long value) { - + versionId_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. The version identifier of the Cloud Function. Each deployment attempt
                                    * results in a new version of a function being created.
                                    * 
                              * * int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVersionId() { - + versionId_ = 0L; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -5634,28 +6242,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 15; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              @@ -5663,11 +6273,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 15; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              @@ -5675,16 +6286,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 15; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              @@ -5692,12 +6304,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 15; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -5705,83 +6316,83 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 15; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 15; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 15; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } + private com.google.protobuf.MapField - internalGetMutableEnvironmentVariables() { - onChanged();; + internalGetMutableEnvironmentVariables() { + onChanged(); + ; if (environmentVariables_ == null) { - environmentVariables_ = com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); + environmentVariables_ = + com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); @@ -5793,28 +6404,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 17; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              @@ -5822,11 +6435,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 17; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              @@ -5834,16 +6448,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 17; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              @@ -5851,10 +6467,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 17; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -5864,83 +6480,85 @@ public java.lang.String getEnvironmentVariablesOrThrow( } public Builder clearEnvironmentVariables() { - internalGetMutableEnvironmentVariables().getMutableMap() - .clear(); + internalGetMutableEnvironmentVariables().getMutableMap().clear(); return this; } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 17; */ - - public Builder removeEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableEnvironmentVariables().getMutableMap() - .remove(key); + public Builder removeEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEnvironmentVariables().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableEnvironmentVariables() { + public java.util.Map getMutableEnvironmentVariables() { return internalGetMutableEnvironmentVariables().getMutableMap(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 17; */ - public Builder putEnvironmentVariables( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putEnvironmentVariables(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableEnvironmentVariables().getMutableMap() - .put(key, value); + internalGetMutableEnvironmentVariables().getMutableMap().put(key, value); return this; } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 17; */ - public Builder putAllEnvironmentVariables( java.util.Map values) { - internalGetMutableEnvironmentVariables().getMutableMap() - .putAll(values); + internalGetMutableEnvironmentVariables().getMutableMap().putAll(values); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> buildEnvironmentVariables_; private com.google.protobuf.MapField - internalGetBuildEnvironmentVariables() { + buildEnvironmentVariables_; + + private com.google.protobuf.MapField + internalGetBuildEnvironmentVariables() { if (buildEnvironmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry); } return buildEnvironmentVariables_; } + private com.google.protobuf.MapField - internalGetMutableBuildEnvironmentVariables() { - onChanged();; + internalGetMutableBuildEnvironmentVariables() { + onChanged(); + ; if (buildEnvironmentVariables_ == null) { - buildEnvironmentVariables_ = com.google.protobuf.MapField.newMapField( - BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry); + buildEnvironmentVariables_ = + com.google.protobuf.MapField.newMapField( + BuildEnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!buildEnvironmentVariables_.isMutable()) { buildEnvironmentVariables_ = buildEnvironmentVariables_.copy(); @@ -5952,28 +6570,30 @@ public int getBuildEnvironmentVariablesCount() { return internalGetBuildEnvironmentVariables().getMap().size(); } /** + * + * *
                                    * Build environment variables that shall be available during build time.
                                    * 
                              * * map<string, string> build_environment_variables = 28; */ - @java.lang.Override - public boolean containsBuildEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsBuildEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetBuildEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getBuildEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getBuildEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getBuildEnvironmentVariables() { return getBuildEnvironmentVariablesMap(); } /** + * + * *
                                    * Build environment variables that shall be available during build time.
                                    * 
                              @@ -5981,11 +6601,12 @@ public java.util.Map getBuildEnvironmentVari * map<string, string> build_environment_variables = 28; */ @java.lang.Override - public java.util.Map getBuildEnvironmentVariablesMap() { return internalGetBuildEnvironmentVariables().getMap(); } /** + * + * *
                                    * Build environment variables that shall be available during build time.
                                    * 
                              @@ -5993,16 +6614,18 @@ public java.util.Map getBuildEnvironmentVari * map<string, string> build_environment_variables = 28; */ @java.lang.Override - public java.lang.String getBuildEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetBuildEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                    * Build environment variables that shall be available during build time.
                                    * 
                              @@ -6010,10 +6633,10 @@ public java.lang.String getBuildEnvironmentVariablesOrDefault( * map<string, string> build_environment_variables = 28; */ @java.lang.Override - - public java.lang.String getBuildEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getBuildEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetBuildEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -6023,69 +6646,69 @@ public java.lang.String getBuildEnvironmentVariablesOrThrow( } public Builder clearBuildEnvironmentVariables() { - internalGetMutableBuildEnvironmentVariables().getMutableMap() - .clear(); + internalGetMutableBuildEnvironmentVariables().getMutableMap().clear(); return this; } /** + * + * *
                                    * Build environment variables that shall be available during build time.
                                    * 
                              * * map<string, string> build_environment_variables = 28; */ - - public Builder removeBuildEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableBuildEnvironmentVariables().getMutableMap() - .remove(key); + public Builder removeBuildEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableBuildEnvironmentVariables().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableBuildEnvironmentVariables() { + public java.util.Map getMutableBuildEnvironmentVariables() { return internalGetMutableBuildEnvironmentVariables().getMutableMap(); } /** + * + * *
                                    * Build environment variables that shall be available during build time.
                                    * 
                              * * map<string, string> build_environment_variables = 28; */ - public Builder putBuildEnvironmentVariables( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putBuildEnvironmentVariables(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableBuildEnvironmentVariables().getMutableMap() - .put(key, value); + internalGetMutableBuildEnvironmentVariables().getMutableMap().put(key, value); return this; } /** + * + * *
                                    * Build environment variables that shall be available during build time.
                                    * 
                              * * map<string, string> build_environment_variables = 28; */ - public Builder putAllBuildEnvironmentVariables( java.util.Map values) { - internalGetMutableBuildEnvironmentVariables().getMutableMap() - .putAll(values); + internalGetMutableBuildEnvironmentVariables().getMutableMap().putAll(values); return this; } private java.lang.Object network_ = ""; /** + * + * *
                                    * The VPC Network that this cloud function can connect to. It can be
                                    * either the fully-qualified URI, or the short name of the network resource.
                              @@ -6102,13 +6725,13 @@ public Builder putAllBuildEnvironmentVariables(
                                    * 
                              * * string network = 18; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -6117,6 +6740,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
                                    * The VPC Network that this cloud function can connect to. It can be
                                    * either the fully-qualified URI, or the short name of the network resource.
                              @@ -6133,15 +6758,14 @@ public java.lang.String getNetwork() {
                                    * 
                              * * string network = 18; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -6149,6 +6773,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
                                    * The VPC Network that this cloud function can connect to. It can be
                                    * either the fully-qualified URI, or the short name of the network resource.
                              @@ -6165,20 +6791,22 @@ public java.lang.String getNetwork() {
                                    * 
                              * * string network = 18; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
                                    * The VPC Network that this cloud function can connect to. It can be
                                    * either the fully-qualified URI, or the short name of the network resource.
                              @@ -6195,15 +6823,18 @@ public Builder setNetwork(
                                    * 
                              * * string network = 18; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
                                    * The VPC Network that this cloud function can connect to. It can be
                                    * either the fully-qualified URI, or the short name of the network resource.
                              @@ -6220,23 +6851,25 @@ public Builder clearNetwork() {
                                    * 
                              * * string network = 18; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; } - private int maxInstances_ ; + private int maxInstances_; /** + * + * *
                                    * The limit on the maximum number of function instances that may coexist at a
                                    * given time.
                              @@ -6251,6 +6884,7 @@ public Builder setNetworkBytes(
                                    * 
                              * * int32 max_instances = 20; + * * @return The maxInstances. */ @java.lang.Override @@ -6258,6 +6892,8 @@ public int getMaxInstances() { return maxInstances_; } /** + * + * *
                                    * The limit on the maximum number of function instances that may coexist at a
                                    * given time.
                              @@ -6272,16 +6908,19 @@ public int getMaxInstances() {
                                    * 
                              * * int32 max_instances = 20; + * * @param value The maxInstances to set. * @return This builder for chaining. */ public Builder setMaxInstances(int value) { - + maxInstances_ = value; onChanged(); return this; } /** + * + * *
                                    * The limit on the maximum number of function instances that may coexist at a
                                    * given time.
                              @@ -6296,23 +6935,27 @@ public Builder setMaxInstances(int value) {
                                    * 
                              * * int32 max_instances = 20; + * * @return This builder for chaining. */ public Builder clearMaxInstances() { - + maxInstances_ = 0; onChanged(); return this; } - private int minInstances_ ; + private int minInstances_; /** + * + * *
                                    * A lower bound for the number function instances that may coexist at a
                                    * given time.
                                    * 
                              * * int32 min_instances = 32; + * * @return The minInstances. */ @java.lang.Override @@ -6320,32 +6963,38 @@ public int getMinInstances() { return minInstances_; } /** + * + * *
                                    * A lower bound for the number function instances that may coexist at a
                                    * given time.
                                    * 
                              * * int32 min_instances = 32; + * * @param value The minInstances to set. * @return This builder for chaining. */ public Builder setMinInstances(int value) { - + minInstances_ = value; onChanged(); return this; } /** + * + * *
                                    * A lower bound for the number function instances that may coexist at a
                                    * given time.
                                    * 
                              * * int32 min_instances = 32; + * * @return This builder for chaining. */ public Builder clearMinInstances() { - + minInstances_ = 0; onChanged(); return this; @@ -6353,6 +7002,8 @@ public Builder clearMinInstances() { private java.lang.Object vpcConnector_ = ""; /** + * + * *
                                    * The VPC Network Connector that this cloud function can connect to. It can
                                    * be either the fully-qualified URI, or the short name of the network
                              @@ -6365,13 +7016,13 @@ public Builder clearMinInstances() {
                                    * 
                              * * string vpc_connector = 22; + * * @return The vpcConnector. */ public java.lang.String getVpcConnector() { java.lang.Object ref = vpcConnector_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; @@ -6380,6 +7031,8 @@ public java.lang.String getVpcConnector() { } } /** + * + * *
                                    * The VPC Network Connector that this cloud function can connect to. It can
                                    * be either the fully-qualified URI, or the short name of the network
                              @@ -6392,15 +7045,14 @@ public java.lang.String getVpcConnector() {
                                    * 
                              * * string vpc_connector = 22; + * * @return The bytes for vpcConnector. */ - public com.google.protobuf.ByteString - getVpcConnectorBytes() { + public com.google.protobuf.ByteString getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -6408,6 +7060,8 @@ public java.lang.String getVpcConnector() { } } /** + * + * *
                                    * The VPC Network Connector that this cloud function can connect to. It can
                                    * be either the fully-qualified URI, or the short name of the network
                              @@ -6420,20 +7074,22 @@ public java.lang.String getVpcConnector() {
                                    * 
                              * * string vpc_connector = 22; + * * @param value The vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnector( - java.lang.String value) { + public Builder setVpcConnector(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vpcConnector_ = value; onChanged(); return this; } /** + * + * *
                                    * The VPC Network Connector that this cloud function can connect to. It can
                                    * be either the fully-qualified URI, or the short name of the network
                              @@ -6446,15 +7102,18 @@ public Builder setVpcConnector(
                                    * 
                              * * string vpc_connector = 22; + * * @return This builder for chaining. */ public Builder clearVpcConnector() { - + vpcConnector_ = getDefaultInstance().getVpcConnector(); onChanged(); return this; } /** + * + * *
                                    * The VPC Network Connector that this cloud function can connect to. It can
                                    * be either the fully-qualified URI, or the short name of the network
                              @@ -6467,16 +7126,16 @@ public Builder clearVpcConnector() {
                                    * 
                              * * string vpc_connector = 22; + * * @param value The bytes for vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnectorBytes( - com.google.protobuf.ByteString value) { + public Builder setVpcConnectorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcConnector_ = value; onChanged(); return this; @@ -6484,78 +7143,110 @@ public Builder setVpcConnectorBytes( private int vpcConnectorEgressSettings_ = 0; /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override + public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * * @param value The enum numeric value on the wire for vpcConnectorEgressSettings to set. * @return This builder for chaining. */ public Builder setVpcConnectorEgressSettingsValue(int value) { - + vpcConnectorEgressSettings_ = value; onChanged(); return this; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * * @return The vpcConnectorEgressSettings. */ @java.lang.Override - public com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { + public com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings + getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings result = com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); - return result == null ? com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings result = + com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.valueOf( + vpcConnectorEgressSettings_); + return result == null + ? com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings.UNRECOGNIZED + : result; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * * @param value The vpcConnectorEgressSettings to set. * @return This builder for chaining. */ - public Builder setVpcConnectorEgressSettings(com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings value) { + public Builder setVpcConnectorEgressSettings( + com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings value) { if (value == null) { throw new NullPointerException(); } - + vpcConnectorEgressSettings_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * * @return This builder for chaining. */ public Builder clearVpcConnectorEgressSettings() { - + vpcConnectorEgressSettings_ = 0; onChanged(); return this; @@ -6563,78 +7254,98 @@ public Builder clearVpcConnectorEgressSettings() { private int ingressSettings_ = 0; /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; + * * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override public int getIngressSettingsValue() { + @java.lang.Override + public int getIngressSettingsValue() { return ingressSettings_; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; + * * @param value The enum numeric value on the wire for ingressSettings to set. * @return This builder for chaining. */ public Builder setIngressSettingsValue(int value) { - + ingressSettings_ = value; onChanged(); return this; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; + * * @return The ingressSettings. */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunction.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunction.IngressSettings result = com.google.cloud.functions.v1.CloudFunction.IngressSettings.valueOf(ingressSettings_); - return result == null ? com.google.cloud.functions.v1.CloudFunction.IngressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v1.CloudFunction.IngressSettings result = + com.google.cloud.functions.v1.CloudFunction.IngressSettings.valueOf(ingressSettings_); + return result == null + ? com.google.cloud.functions.v1.CloudFunction.IngressSettings.UNRECOGNIZED + : result; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; + * * @param value The ingressSettings to set. * @return This builder for chaining. */ - public Builder setIngressSettings(com.google.cloud.functions.v1.CloudFunction.IngressSettings value) { + public Builder setIngressSettings( + com.google.cloud.functions.v1.CloudFunction.IngressSettings value) { if (value == null) { throw new NullPointerException(); } - + ingressSettings_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; + * * @return This builder for chaining. */ public Builder clearIngressSettings() { - + ingressSettings_ = 0; onChanged(); return this; @@ -6642,6 +7353,8 @@ public Builder clearIngressSettings() { private java.lang.Object kmsKeyName_ = ""; /** + * + * *
                                    * Resource name of a KMS crypto key (managed by the user) used to
                                    * encrypt/decrypt function resources.
                              @@ -6670,13 +7383,13 @@ public Builder clearIngressSettings() {
                                    * 
                              * * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -6685,6 +7398,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
                                    * Resource name of a KMS crypto key (managed by the user) used to
                                    * encrypt/decrypt function resources.
                              @@ -6713,15 +7428,14 @@ public java.lang.String getKmsKeyName() {
                                    * 
                              * * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -6729,6 +7443,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
                                    * Resource name of a KMS crypto key (managed by the user) used to
                                    * encrypt/decrypt function resources.
                              @@ -6757,20 +7473,22 @@ public java.lang.String getKmsKeyName() {
                                    * 
                              * * 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) { + public Builder setKmsKeyName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** + * + * *
                                    * Resource name of a KMS crypto key (managed by the user) used to
                                    * encrypt/decrypt function resources.
                              @@ -6799,15 +7517,18 @@ public Builder setKmsKeyName(
                                    * 
                              * * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** + * + * *
                                    * Resource name of a KMS crypto key (managed by the user) used to
                                    * encrypt/decrypt function resources.
                              @@ -6836,16 +7557,16 @@ public Builder clearKmsKeyName() {
                                    * 
                              * * 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) { + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; @@ -6853,6 +7574,8 @@ public Builder setKmsKeyNameBytes( private java.lang.Object buildWorkerPool_ = ""; /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -6868,13 +7591,13 @@ public Builder setKmsKeyNameBytes(
                                    * 
                              * * string build_worker_pool = 26; + * * @return The buildWorkerPool. */ public java.lang.String getBuildWorkerPool() { java.lang.Object ref = buildWorkerPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildWorkerPool_ = s; return s; @@ -6883,6 +7606,8 @@ public java.lang.String getBuildWorkerPool() { } } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -6898,15 +7623,14 @@ public java.lang.String getBuildWorkerPool() {
                                    * 
                              * * string build_worker_pool = 26; + * * @return The bytes for buildWorkerPool. */ - public com.google.protobuf.ByteString - getBuildWorkerPoolBytes() { + public com.google.protobuf.ByteString getBuildWorkerPoolBytes() { java.lang.Object ref = buildWorkerPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); buildWorkerPool_ = b; return b; } else { @@ -6914,6 +7638,8 @@ public java.lang.String getBuildWorkerPool() { } } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -6929,20 +7655,22 @@ public java.lang.String getBuildWorkerPool() {
                                    * 
                              * * string build_worker_pool = 26; + * * @param value The buildWorkerPool to set. * @return This builder for chaining. */ - public Builder setBuildWorkerPool( - java.lang.String value) { + public Builder setBuildWorkerPool(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + buildWorkerPool_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -6958,15 +7686,18 @@ public Builder setBuildWorkerPool(
                                    * 
                              * * string build_worker_pool = 26; + * * @return This builder for chaining. */ public Builder clearBuildWorkerPool() { - + buildWorkerPool_ = getDefaultInstance().getBuildWorkerPool(); onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -6982,16 +7713,16 @@ public Builder clearBuildWorkerPool() {
                                    * 
                              * * string build_worker_pool = 26; + * * @param value The bytes for buildWorkerPool to set. * @return This builder for chaining. */ - public Builder setBuildWorkerPoolBytes( - com.google.protobuf.ByteString value) { + public Builder setBuildWorkerPoolBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + buildWorkerPool_ = value; onChanged(); return this; @@ -6999,19 +7730,21 @@ public Builder setBuildWorkerPoolBytes( private java.lang.Object buildId_ = ""; /** + * + * *
                                    * Output only. The Cloud Build ID of the latest successful deployment of the
                                    * function.
                                    * 
                              * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The buildId. */ public java.lang.String getBuildId() { java.lang.Object ref = buildId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildId_ = s; return s; @@ -7020,21 +7753,22 @@ public java.lang.String getBuildId() { } } /** + * + * *
                                    * Output only. The Cloud Build ID of the latest successful deployment of the
                                    * function.
                                    * 
                              * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for buildId. */ - public com.google.protobuf.ByteString - getBuildIdBytes() { + public com.google.protobuf.ByteString getBuildIdBytes() { java.lang.Object ref = buildId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); buildId_ = b; return b; } else { @@ -7042,57 +7776,64 @@ public java.lang.String getBuildId() { } } /** + * + * *
                                    * Output only. The Cloud Build ID of the latest successful deployment of the
                                    * function.
                                    * 
                              * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The buildId to set. * @return This builder for chaining. */ - public Builder setBuildId( - java.lang.String value) { + public Builder setBuildId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + buildId_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. The Cloud Build ID of the latest successful deployment of the
                                    * function.
                                    * 
                              * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearBuildId() { - + buildId_ = getDefaultInstance().getBuildId(); onChanged(); return this; } /** + * + * *
                                    * Output only. The Cloud Build ID of the latest successful deployment of the
                                    * function.
                                    * 
                              * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for buildId to set. * @return This builder for chaining. */ - public Builder setBuildIdBytes( - com.google.protobuf.ByteString value) { + public Builder setBuildIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + buildId_ = value; onChanged(); return this; @@ -7100,19 +7841,21 @@ public Builder setBuildIdBytes( private java.lang.Object buildName_ = ""; /** + * + * *
                                    * Output only. The Cloud Build Name of the function deployment.
                                    * `projects/<project-number>/locations/<region>/builds/<build-id>`.
                                    * 
                              * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The buildName. */ public java.lang.String getBuildName() { java.lang.Object ref = buildName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildName_ = s; return s; @@ -7121,21 +7864,22 @@ public java.lang.String getBuildName() { } } /** + * + * *
                                    * Output only. The Cloud Build Name of the function deployment.
                                    * `projects/<project-number>/locations/<region>/builds/<build-id>`.
                                    * 
                              * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for buildName. */ - public com.google.protobuf.ByteString - getBuildNameBytes() { + public com.google.protobuf.ByteString getBuildNameBytes() { java.lang.Object ref = buildName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); buildName_ = b; return b; } else { @@ -7143,82 +7887,99 @@ public java.lang.String getBuildName() { } } /** + * + * *
                                    * Output only. The Cloud Build Name of the function deployment.
                                    * `projects/<project-number>/locations/<region>/builds/<build-id>`.
                                    * 
                              * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The buildName to set. * @return This builder for chaining. */ - public Builder setBuildName( - java.lang.String value) { + public Builder setBuildName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + buildName_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. The Cloud Build Name of the function deployment.
                                    * `projects/<project-number>/locations/<region>/builds/<build-id>`.
                                    * 
                              * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearBuildName() { - + buildName_ = getDefaultInstance().getBuildName(); onChanged(); return this; } /** + * + * *
                                    * Output only. The Cloud Build Name of the function deployment.
                                    * `projects/<project-number>/locations/<region>/builds/<build-id>`.
                                    * 
                              * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for buildName to set. * @return This builder for chaining. */ - public Builder setBuildNameBytes( - com.google.protobuf.ByteString value) { + public Builder setBuildNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + buildName_ = value; onChanged(); return this; } private java.util.List secretEnvironmentVariables_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSecretEnvironmentVariablesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - secretEnvironmentVariables_ = new java.util.ArrayList(secretEnvironmentVariables_); + secretEnvironmentVariables_ = + new java.util.ArrayList( + secretEnvironmentVariables_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretEnvVar, com.google.cloud.functions.v1.SecretEnvVar.Builder, com.google.cloud.functions.v1.SecretEnvVarOrBuilder> secretEnvironmentVariablesBuilder_; + com.google.cloud.functions.v1.SecretEnvVar, + com.google.cloud.functions.v1.SecretEnvVar.Builder, + com.google.cloud.functions.v1.SecretEnvVarOrBuilder> + secretEnvironmentVariablesBuilder_; /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ - public java.util.List getSecretEnvironmentVariablesList() { + public java.util.List + getSecretEnvironmentVariablesList() { if (secretEnvironmentVariablesBuilder_ == null) { return java.util.Collections.unmodifiableList(secretEnvironmentVariables_); } else { @@ -7226,11 +7987,14 @@ public java.util.List getSecretEnvir } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ public int getSecretEnvironmentVariablesCount() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -7240,11 +8004,14 @@ public int getSecretEnvironmentVariablesCount() { } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ public com.google.cloud.functions.v1.SecretEnvVar getSecretEnvironmentVariables(int index) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -7254,11 +8021,14 @@ public com.google.cloud.functions.v1.SecretEnvVar getSecretEnvironmentVariables( } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v1.SecretEnvVar value) { @@ -7275,11 +8045,14 @@ public Builder setSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v1.SecretEnvVar.Builder builderForValue) { @@ -7293,11 +8066,14 @@ public Builder setSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ public Builder addSecretEnvironmentVariables(com.google.cloud.functions.v1.SecretEnvVar value) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -7313,11 +8089,14 @@ public Builder addSecretEnvironmentVariables(com.google.cloud.functions.v1.Secre return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v1.SecretEnvVar value) { @@ -7334,11 +8113,14 @@ public Builder addSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ public Builder addSecretEnvironmentVariables( com.google.cloud.functions.v1.SecretEnvVar.Builder builderForValue) { @@ -7352,11 +8134,14 @@ public Builder addSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v1.SecretEnvVar.Builder builderForValue) { @@ -7370,18 +8155,20 @@ public Builder addSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ public Builder addAllSecretEnvironmentVariables( java.lang.Iterable values) { if (secretEnvironmentVariablesBuilder_ == null) { ensureSecretEnvironmentVariablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, secretEnvironmentVariables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretEnvironmentVariables_); onChanged(); } else { secretEnvironmentVariablesBuilder_.addAllMessages(values); @@ -7389,11 +8176,14 @@ public Builder addAllSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ public Builder clearSecretEnvironmentVariables() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -7406,11 +8196,14 @@ public Builder clearSecretEnvironmentVariables() { return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ public Builder removeSecretEnvironmentVariables(int index) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -7423,39 +8216,49 @@ public Builder removeSecretEnvironmentVariables(int index) { return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ public com.google.cloud.functions.v1.SecretEnvVar.Builder getSecretEnvironmentVariablesBuilder( int index) { return getSecretEnvironmentVariablesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ - public com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( - int index) { + public com.google.cloud.functions.v1.SecretEnvVarOrBuilder + getSecretEnvironmentVariablesOrBuilder(int index) { if (secretEnvironmentVariablesBuilder_ == null) { - return secretEnvironmentVariables_.get(index); } else { + return secretEnvironmentVariables_.get(index); + } else { return secretEnvironmentVariablesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ - public java.util.List - getSecretEnvironmentVariablesOrBuilderList() { + public java.util.List + getSecretEnvironmentVariablesOrBuilderList() { if (secretEnvironmentVariablesBuilder_ != null) { return secretEnvironmentVariablesBuilder_.getMessageOrBuilderList(); } else { @@ -7463,45 +8266,61 @@ public com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentV } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ - public com.google.cloud.functions.v1.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder() { - return getSecretEnvironmentVariablesFieldBuilder().addBuilder( - com.google.cloud.functions.v1.SecretEnvVar.getDefaultInstance()); + public com.google.cloud.functions.v1.SecretEnvVar.Builder + addSecretEnvironmentVariablesBuilder() { + return getSecretEnvironmentVariablesFieldBuilder() + .addBuilder(com.google.cloud.functions.v1.SecretEnvVar.getDefaultInstance()); } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ public com.google.cloud.functions.v1.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder( int index) { - return getSecretEnvironmentVariablesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v1.SecretEnvVar.getDefaultInstance()); + return getSecretEnvironmentVariablesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v1.SecretEnvVar.getDefaultInstance()); } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ - public java.util.List - getSecretEnvironmentVariablesBuilderList() { + public java.util.List + getSecretEnvironmentVariablesBuilderList() { return getSecretEnvironmentVariablesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretEnvVar, com.google.cloud.functions.v1.SecretEnvVar.Builder, com.google.cloud.functions.v1.SecretEnvVarOrBuilder> + com.google.cloud.functions.v1.SecretEnvVar, + com.google.cloud.functions.v1.SecretEnvVar.Builder, + com.google.cloud.functions.v1.SecretEnvVarOrBuilder> getSecretEnvironmentVariablesFieldBuilder() { if (secretEnvironmentVariablesBuilder_ == null) { - secretEnvironmentVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretEnvVar, com.google.cloud.functions.v1.SecretEnvVar.Builder, com.google.cloud.functions.v1.SecretEnvVarOrBuilder>( + secretEnvironmentVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v1.SecretEnvVar, + com.google.cloud.functions.v1.SecretEnvVar.Builder, + com.google.cloud.functions.v1.SecretEnvVarOrBuilder>( secretEnvironmentVariables_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -7512,18 +8331,25 @@ public com.google.cloud.functions.v1.SecretEnvVar.Builder addSecretEnvironmentVa } private java.util.List secretVolumes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSecretVolumesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - secretVolumes_ = new java.util.ArrayList(secretVolumes_); + secretVolumes_ = + new java.util.ArrayList(secretVolumes_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretVolume, com.google.cloud.functions.v1.SecretVolume.Builder, com.google.cloud.functions.v1.SecretVolumeOrBuilder> secretVolumesBuilder_; + com.google.cloud.functions.v1.SecretVolume, + com.google.cloud.functions.v1.SecretVolume.Builder, + com.google.cloud.functions.v1.SecretVolumeOrBuilder> + secretVolumesBuilder_; /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -7538,6 +8364,8 @@ public java.util.List getSecretVolum } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -7552,6 +8380,8 @@ public int getSecretVolumesCount() { } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -7566,14 +8396,15 @@ public com.google.cloud.functions.v1.SecretVolume getSecretVolumes(int index) { } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - public Builder setSecretVolumes( - int index, com.google.cloud.functions.v1.SecretVolume value) { + public Builder setSecretVolumes(int index, com.google.cloud.functions.v1.SecretVolume value) { if (secretVolumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7587,6 +8418,8 @@ public Builder setSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -7605,6 +8438,8 @@ public Builder setSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -7625,14 +8460,15 @@ public Builder addSecretVolumes(com.google.cloud.functions.v1.SecretVolume value return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - public Builder addSecretVolumes( - int index, com.google.cloud.functions.v1.SecretVolume value) { + public Builder addSecretVolumes(int index, com.google.cloud.functions.v1.SecretVolume value) { if (secretVolumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7646,6 +8482,8 @@ public Builder addSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -7664,6 +8502,8 @@ public Builder addSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -7682,6 +8522,8 @@ public Builder addSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -7692,8 +8534,7 @@ public Builder addAllSecretVolumes( java.lang.Iterable values) { if (secretVolumesBuilder_ == null) { ensureSecretVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, secretVolumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretVolumes_); onChanged(); } else { secretVolumesBuilder_.addAllMessages(values); @@ -7701,6 +8542,8 @@ public Builder addAllSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -7718,6 +8561,8 @@ public Builder clearSecretVolumes() { return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -7735,17 +8580,20 @@ public Builder removeSecretVolumes(int index) { return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - public com.google.cloud.functions.v1.SecretVolume.Builder getSecretVolumesBuilder( - int index) { + public com.google.cloud.functions.v1.SecretVolume.Builder getSecretVolumesBuilder(int index) { return getSecretVolumesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -7755,19 +8603,22 @@ public com.google.cloud.functions.v1.SecretVolume.Builder getSecretVolumesBuilde public com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder( int index) { if (secretVolumesBuilder_ == null) { - return secretVolumes_.get(index); } else { + return secretVolumes_.get(index); + } else { return secretVolumesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - public java.util.List - getSecretVolumesOrBuilderList() { + public java.util.List + getSecretVolumesOrBuilderList() { if (secretVolumesBuilder_ != null) { return secretVolumesBuilder_.getMessageOrBuilderList(); } else { @@ -7775,6 +8626,8 @@ public com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBui } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -7782,38 +8635,47 @@ public com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBui * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ public com.google.cloud.functions.v1.SecretVolume.Builder addSecretVolumesBuilder() { - return getSecretVolumesFieldBuilder().addBuilder( - com.google.cloud.functions.v1.SecretVolume.getDefaultInstance()); + return getSecretVolumesFieldBuilder() + .addBuilder(com.google.cloud.functions.v1.SecretVolume.getDefaultInstance()); } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - public com.google.cloud.functions.v1.SecretVolume.Builder addSecretVolumesBuilder( - int index) { - return getSecretVolumesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v1.SecretVolume.getDefaultInstance()); + public com.google.cloud.functions.v1.SecretVolume.Builder addSecretVolumesBuilder(int index) { + return getSecretVolumesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v1.SecretVolume.getDefaultInstance()); } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - public java.util.List - getSecretVolumesBuilderList() { + public java.util.List + getSecretVolumesBuilderList() { return getSecretVolumesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretVolume, com.google.cloud.functions.v1.SecretVolume.Builder, com.google.cloud.functions.v1.SecretVolumeOrBuilder> + com.google.cloud.functions.v1.SecretVolume, + com.google.cloud.functions.v1.SecretVolume.Builder, + com.google.cloud.functions.v1.SecretVolumeOrBuilder> getSecretVolumesFieldBuilder() { if (secretVolumesBuilder_ == null) { - secretVolumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretVolume, com.google.cloud.functions.v1.SecretVolume.Builder, com.google.cloud.functions.v1.SecretVolumeOrBuilder>( + secretVolumesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v1.SecretVolume, + com.google.cloud.functions.v1.SecretVolume.Builder, + com.google.cloud.functions.v1.SecretVolumeOrBuilder>( secretVolumes_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), @@ -7825,19 +8687,21 @@ public com.google.cloud.functions.v1.SecretVolume.Builder addSecretVolumesBuilde private java.lang.Object sourceToken_ = ""; /** + * + * *
                                    * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
                                    * supported for Firebase function deployments.
                                    * 
                              * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The sourceToken. */ public java.lang.String getSourceToken() { java.lang.Object ref = sourceToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; @@ -7846,21 +8710,22 @@ public java.lang.String getSourceToken() { } } /** + * + * *
                                    * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
                                    * supported for Firebase function deployments.
                                    * 
                              * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for sourceToken. */ - public com.google.protobuf.ByteString - getSourceTokenBytes() { + public com.google.protobuf.ByteString getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -7868,57 +8733,64 @@ public java.lang.String getSourceToken() { } } /** + * + * *
                                    * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
                                    * supported for Firebase function deployments.
                                    * 
                              * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceToken( - java.lang.String value) { + public Builder setSourceToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceToken_ = value; onChanged(); return this; } /** + * + * *
                                    * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
                                    * supported for Firebase function deployments.
                                    * 
                              * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSourceToken() { - + sourceToken_ = getDefaultInstance().getSourceToken(); onChanged(); return this; } /** + * + * *
                                    * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
                                    * supported for Firebase function deployments.
                                    * 
                              * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceToken_ = value; onChanged(); return this; @@ -7926,6 +8798,8 @@ public Builder setSourceTokenBytes( private java.lang.Object dockerRepository_ = ""; /** + * + * *
                                    * User managed repository created in Artifact Registry optionally with a
                                    * customer managed encryption key. If specified, deployments will use
                              @@ -7941,13 +8815,13 @@ public Builder setSourceTokenBytes(
                                    * 
                              * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } + * * @return The dockerRepository. */ public java.lang.String getDockerRepository() { java.lang.Object ref = dockerRepository_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; @@ -7956,6 +8830,8 @@ public java.lang.String getDockerRepository() { } } /** + * + * *
                                    * User managed repository created in Artifact Registry optionally with a
                                    * customer managed encryption key. If specified, deployments will use
                              @@ -7971,15 +8847,14 @@ public java.lang.String getDockerRepository() {
                                    * 
                              * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } + * * @return The bytes for dockerRepository. */ - public com.google.protobuf.ByteString - getDockerRepositoryBytes() { + public com.google.protobuf.ByteString getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -7987,6 +8862,8 @@ public java.lang.String getDockerRepository() { } } /** + * + * *
                                    * User managed repository created in Artifact Registry optionally with a
                                    * customer managed encryption key. If specified, deployments will use
                              @@ -8002,20 +8879,22 @@ public java.lang.String getDockerRepository() {
                                    * 
                              * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } + * * @param value The dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepository( - java.lang.String value) { + public Builder setDockerRepository(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dockerRepository_ = value; onChanged(); return this; } /** + * + * *
                                    * User managed repository created in Artifact Registry optionally with a
                                    * customer managed encryption key. If specified, deployments will use
                              @@ -8031,15 +8910,18 @@ public Builder setDockerRepository(
                                    * 
                              * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearDockerRepository() { - + dockerRepository_ = getDefaultInstance().getDockerRepository(); onChanged(); return this; } /** + * + * *
                                    * User managed repository created in Artifact Registry optionally with a
                                    * customer managed encryption key. If specified, deployments will use
                              @@ -8055,16 +8937,16 @@ public Builder clearDockerRepository() {
                                    * 
                              * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepositoryBytes( - com.google.protobuf.ByteString value) { + public Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dockerRepository_ = value; onChanged(); return this; @@ -8072,6 +8954,8 @@ public Builder setDockerRepositoryBytes( private int dockerRegistry_ = 0; /** + * + * *
                                    * Docker Registry to use for this deployment.
                                    * If `docker_repository` field is specified, this field will be automatically
                              @@ -8081,12 +8965,16 @@ public Builder setDockerRepositoryBytes(
                                    * 
                              * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; + * * @return The enum numeric value on the wire for dockerRegistry. */ - @java.lang.Override public int getDockerRegistryValue() { + @java.lang.Override + public int getDockerRegistryValue() { return dockerRegistry_; } /** + * + * *
                                    * Docker Registry to use for this deployment.
                                    * If `docker_repository` field is specified, this field will be automatically
                              @@ -8096,16 +8984,19 @@ public Builder setDockerRepositoryBytes(
                                    * 
                              * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; + * * @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; onChanged(); return this; } /** + * + * *
                                    * Docker Registry to use for this deployment.
                                    * If `docker_repository` field is specified, this field will be automatically
                              @@ -8115,15 +9006,21 @@ public Builder setDockerRegistryValue(int value) {
                                    * 
                              * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; + * * @return The dockerRegistry. */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunction.DockerRegistry getDockerRegistry() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.CloudFunction.DockerRegistry result = com.google.cloud.functions.v1.CloudFunction.DockerRegistry.valueOf(dockerRegistry_); - return result == null ? com.google.cloud.functions.v1.CloudFunction.DockerRegistry.UNRECOGNIZED : result; + com.google.cloud.functions.v1.CloudFunction.DockerRegistry result = + com.google.cloud.functions.v1.CloudFunction.DockerRegistry.valueOf(dockerRegistry_); + return result == null + ? com.google.cloud.functions.v1.CloudFunction.DockerRegistry.UNRECOGNIZED + : result; } /** + * + * *
                                    * Docker Registry to use for this deployment.
                                    * If `docker_repository` field is specified, this field will be automatically
                              @@ -8133,19 +9030,23 @@ public com.google.cloud.functions.v1.CloudFunction.DockerRegistry getDockerRegis
                                    * 
                              * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; + * * @param value The dockerRegistry to set. * @return This builder for chaining. */ - public Builder setDockerRegistry(com.google.cloud.functions.v1.CloudFunction.DockerRegistry value) { + public Builder setDockerRegistry( + com.google.cloud.functions.v1.CloudFunction.DockerRegistry value) { if (value == null) { throw new NullPointerException(); } - + dockerRegistry_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Docker Registry to use for this deployment.
                                    * If `docker_repository` field is specified, this field will be automatically
                              @@ -8155,17 +9056,18 @@ public Builder setDockerRegistry(com.google.cloud.functions.v1.CloudFunction.Doc
                                    * 
                              * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; + * * @return This builder for chaining. */ public Builder clearDockerRegistry() { - + dockerRegistry_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8175,12 +9077,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.CloudFunction) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.CloudFunction) private static final com.google.cloud.functions.v1.CloudFunction DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.CloudFunction(); } @@ -8189,16 +9091,16 @@ public static com.google.cloud.functions.v1.CloudFunction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudFunction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudFunction(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudFunction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudFunction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8213,6 +9115,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.CloudFunction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java similarity index 86% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java index a4f4f4a4..d0182ca1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java @@ -1,107 +1,149 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface CloudFunctionOrBuilder extends +public interface CloudFunctionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.CloudFunction) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
                                  * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
                                  * archive which contains the function.
                                  * 
                              * * string source_archive_url = 3; + * * @return Whether the sourceArchiveUrl field is set. */ boolean hasSourceArchiveUrl(); /** + * + * *
                                  * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
                                  * archive which contains the function.
                                  * 
                              * * string source_archive_url = 3; + * * @return The sourceArchiveUrl. */ java.lang.String getSourceArchiveUrl(); /** + * + * *
                                  * The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
                                  * archive which contains the function.
                                  * 
                              * * string source_archive_url = 3; + * * @return The bytes for sourceArchiveUrl. */ - com.google.protobuf.ByteString - getSourceArchiveUrlBytes(); + com.google.protobuf.ByteString getSourceArchiveUrlBytes(); /** + * + * *
                                  * **Beta Feature**
                                  * The source repository where a function is hosted.
                                  * 
                              * * .google.cloud.functions.v1.SourceRepository source_repository = 4; + * * @return Whether the sourceRepository field is set. */ boolean hasSourceRepository(); /** + * + * *
                                  * **Beta Feature**
                                  * The source repository where a function is hosted.
                                  * 
                              * * .google.cloud.functions.v1.SourceRepository source_repository = 4; + * * @return The sourceRepository. */ com.google.cloud.functions.v1.SourceRepository getSourceRepository(); /** + * + * *
                                  * **Beta Feature**
                                  * The source repository where a function is hosted.
                              @@ -112,6 +154,8 @@ public interface CloudFunctionOrBuilder extends
                                 com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceRepositoryOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The Google Cloud Storage signed URL used for source uploading, generated
                                  * by calling [google.cloud.functions.v1.GenerateUploadUrl].
                              @@ -121,10 +165,13 @@ public interface CloudFunctionOrBuilder extends
                                  * 
                              * * string source_upload_url = 16; + * * @return Whether the sourceUploadUrl field is set. */ boolean hasSourceUploadUrl(); /** + * + * *
                                  * The Google Cloud Storage signed URL used for source uploading, generated
                                  * by calling [google.cloud.functions.v1.GenerateUploadUrl].
                              @@ -134,10 +181,13 @@ public interface CloudFunctionOrBuilder extends
                                  * 
                              * * string source_upload_url = 16; + * * @return The sourceUploadUrl. */ java.lang.String getSourceUploadUrl(); /** + * + * *
                                  * The Google Cloud Storage signed URL used for source uploading, generated
                                  * by calling [google.cloud.functions.v1.GenerateUploadUrl].
                              @@ -147,30 +197,38 @@ public interface CloudFunctionOrBuilder extends
                                  * 
                              * * string source_upload_url = 16; + * * @return The bytes for sourceUploadUrl. */ - com.google.protobuf.ByteString - getSourceUploadUrlBytes(); + com.google.protobuf.ByteString getSourceUploadUrlBytes(); /** + * + * *
                                  * An HTTPS endpoint type of source that can be triggered via URL.
                                  * 
                              * * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; + * * @return Whether the httpsTrigger field is set. */ boolean hasHttpsTrigger(); /** + * + * *
                                  * An HTTPS endpoint type of source that can be triggered via URL.
                                  * 
                              * * .google.cloud.functions.v1.HttpsTrigger https_trigger = 5; + * * @return The httpsTrigger. */ com.google.cloud.functions.v1.HttpsTrigger getHttpsTrigger(); /** + * + * *
                                  * An HTTPS endpoint type of source that can be triggered via URL.
                                  * 
                              @@ -180,24 +238,32 @@ public interface CloudFunctionOrBuilder extends com.google.cloud.functions.v1.HttpsTriggerOrBuilder getHttpsTriggerOrBuilder(); /** + * + * *
                                  * A source that fires events in response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v1.EventTrigger event_trigger = 6; + * * @return Whether the eventTrigger field is set. */ boolean hasEventTrigger(); /** + * + * *
                                  * A source that fires events in response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v1.EventTrigger event_trigger = 6; + * * @return The eventTrigger. */ com.google.cloud.functions.v1.EventTrigger getEventTrigger(); /** + * + * *
                                  * A source that fires events in response to a condition in another service.
                                  * 
                              @@ -207,25 +273,37 @@ public interface CloudFunctionOrBuilder extends com.google.cloud.functions.v1.EventTriggerOrBuilder getEventTriggerOrBuilder(); /** + * + * *
                                  * Output only. Status of the function deployment.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** + * + * *
                                  * Output only. Status of the function deployment.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v1.CloudFunctionStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ com.google.cloud.functions.v1.CloudFunctionStatus getStatus(); /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -236,10 +314,13 @@ public interface CloudFunctionOrBuilder extends
                                  * 
                              * * string entry_point = 8; + * * @return The entryPoint. */ java.lang.String getEntryPoint(); /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -250,12 +331,14 @@ public interface CloudFunctionOrBuilder extends
                                  * 
                              * * string entry_point = 8; + * * @return The bytes for entryPoint. */ - com.google.protobuf.ByteString - getEntryPointBytes(); + com.google.protobuf.ByteString getEntryPointBytes(); /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -265,10 +348,13 @@ public interface CloudFunctionOrBuilder extends
                                  * 
                              * * string runtime = 19; + * * @return The runtime. */ java.lang.String getRuntime(); /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -278,12 +364,14 @@ public interface CloudFunctionOrBuilder extends
                                  * 
                              * * string runtime = 19; + * * @return The bytes for runtime. */ - com.google.protobuf.ByteString - getRuntimeBytes(); + com.google.protobuf.ByteString getRuntimeBytes(); /** + * + * *
                                  * The function execution timeout. Execution is considered failed and
                                  * can be terminated if the function is not completed at the end of the
                              @@ -291,10 +379,13 @@ public interface CloudFunctionOrBuilder extends
                                  * 
                              * * .google.protobuf.Duration timeout = 9; + * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** + * + * *
                                  * The function execution timeout. Execution is considered failed and
                                  * can be terminated if the function is not completed at the end of the
                              @@ -302,10 +393,13 @@ public interface CloudFunctionOrBuilder extends
                                  * 
                              * * .google.protobuf.Duration timeout = 9; + * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** + * + * *
                                  * The function execution timeout. Execution is considered failed and
                                  * can be terminated if the function is not completed at the end of the
                              @@ -317,77 +411,101 @@ public interface CloudFunctionOrBuilder extends
                                 com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The amount of memory in MB available for a function.
                                  * Defaults to 256MB.
                                  * 
                              * * int32 available_memory_mb = 10; + * * @return The availableMemoryMb. */ int getAvailableMemoryMb(); /** + * + * *
                                  * The email of the function's service account. If empty, defaults to
                                  * `{project_id}@appspot.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 11; + * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** + * + * *
                                  * The email of the function's service account. If empty, defaults to
                                  * `{project_id}@appspot.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 11; + * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString - getServiceAccountEmailBytes(); + com.google.protobuf.ByteString getServiceAccountEmailBytes(); /** + * + * *
                                  * Output only. The last update timestamp of a Cloud Function.
                                  * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
                                  * Output only. The last update timestamp of a Cloud Function.
                                  * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
                                  * Output only. The last update timestamp of a Cloud Function.
                                  * 
                              * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
                                  * Output only. The version identifier of the Cloud Function. Each deployment attempt
                                  * results in a new version of a function being created.
                                  * 
                              * * int64 version_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The versionId. */ long getVersionId(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -396,30 +514,31 @@ public interface CloudFunctionOrBuilder extends */ int getLabelsCount(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 15; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 15; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -428,22 +547,24 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 15; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -452,30 +573,31 @@ java.lang.String getLabelsOrThrow( */ int getEnvironmentVariablesCount(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 17; */ - boolean containsEnvironmentVariables( - java.lang.String key); - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + boolean containsEnvironmentVariables(java.lang.String key); + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getEnvironmentVariables(); + java.util.Map getEnvironmentVariables(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 17; */ - java.util.Map - getEnvironmentVariablesMap(); + java.util.Map getEnvironmentVariablesMap(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -484,22 +606,24 @@ boolean containsEnvironmentVariables( */ /* nullable */ -java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 17; */ - - java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key); + java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key); /** + * + * *
                                  * Build environment variables that shall be available during build time.
                                  * 
                              @@ -508,30 +632,31 @@ java.lang.String getEnvironmentVariablesOrThrow( */ int getBuildEnvironmentVariablesCount(); /** + * + * *
                                  * Build environment variables that shall be available during build time.
                                  * 
                              * * map<string, string> build_environment_variables = 28; */ - boolean containsBuildEnvironmentVariables( - java.lang.String key); - /** - * Use {@link #getBuildEnvironmentVariablesMap()} instead. - */ + boolean containsBuildEnvironmentVariables(java.lang.String key); + /** Use {@link #getBuildEnvironmentVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getBuildEnvironmentVariables(); + java.util.Map getBuildEnvironmentVariables(); /** + * + * *
                                  * Build environment variables that shall be available during build time.
                                  * 
                              * * map<string, string> build_environment_variables = 28; */ - java.util.Map - getBuildEnvironmentVariablesMap(); + java.util.Map getBuildEnvironmentVariablesMap(); /** + * + * *
                                  * Build environment variables that shall be available during build time.
                                  * 
                              @@ -540,22 +665,24 @@ boolean containsBuildEnvironmentVariables( */ /* nullable */ -java.lang.String getBuildEnvironmentVariablesOrDefault( + java.lang.String getBuildEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
                                  * Build environment variables that shall be available during build time.
                                  * 
                              * * map<string, string> build_environment_variables = 28; */ - - java.lang.String getBuildEnvironmentVariablesOrThrow( - java.lang.String key); + java.lang.String getBuildEnvironmentVariablesOrThrow(java.lang.String key); /** + * + * *
                                  * The VPC Network that this cloud function can connect to. It can be
                                  * either the fully-qualified URI, or the short name of the network resource.
                              @@ -572,10 +699,13 @@ java.lang.String getBuildEnvironmentVariablesOrThrow(
                                  * 
                              * * string network = 18; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
                                  * The VPC Network that this cloud function can connect to. It can be
                                  * either the fully-qualified URI, or the short name of the network resource.
                              @@ -592,12 +722,14 @@ java.lang.String getBuildEnvironmentVariablesOrThrow(
                                  * 
                              * * string network = 18; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
                                  * The limit on the maximum number of function instances that may coexist at a
                                  * given time.
                              @@ -612,22 +744,28 @@ java.lang.String getBuildEnvironmentVariablesOrThrow(
                                  * 
                              * * int32 max_instances = 20; + * * @return The maxInstances. */ int getMaxInstances(); /** + * + * *
                                  * A lower bound for the number function instances that may coexist at a
                                  * given time.
                                  * 
                              * * int32 min_instances = 32; + * * @return The minInstances. */ int getMinInstances(); /** + * + * *
                                  * The VPC Network Connector that this cloud function can connect to. It can
                                  * be either the fully-qualified URI, or the short name of the network
                              @@ -640,10 +778,13 @@ java.lang.String getBuildEnvironmentVariablesOrThrow(
                                  * 
                              * * string vpc_connector = 22; + * * @return The vpcConnector. */ java.lang.String getVpcConnector(); /** + * + * *
                                  * The VPC Network Connector that this cloud function can connect to. It can
                                  * be either the fully-qualified URI, or the short name of the network
                              @@ -656,54 +797,73 @@ java.lang.String getBuildEnvironmentVariablesOrThrow(
                                  * 
                              * * string vpc_connector = 22; + * * @return The bytes for vpcConnector. */ - com.google.protobuf.ByteString - getVpcConnectorBytes(); + com.google.protobuf.ByteString getVpcConnectorBytes(); /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ int getVpcConnectorEgressSettingsValue(); /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * .google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings vpc_connector_egress_settings = 23; + * + * * @return The vpcConnectorEgressSettings. */ - com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings getVpcConnectorEgressSettings(); + com.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings + getVpcConnectorEgressSettings(); /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; + * * @return The enum numeric value on the wire for ingressSettings. */ int getIngressSettingsValue(); /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * * .google.cloud.functions.v1.CloudFunction.IngressSettings ingress_settings = 24; + * * @return The ingressSettings. */ com.google.cloud.functions.v1.CloudFunction.IngressSettings getIngressSettings(); /** + * + * *
                                  * Resource name of a KMS crypto key (managed by the user) used to
                                  * encrypt/decrypt function resources.
                              @@ -732,10 +892,13 @@ java.lang.String getBuildEnvironmentVariablesOrThrow(
                                  * 
                              * * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
                                  * Resource name of a KMS crypto key (managed by the user) used to
                                  * encrypt/decrypt function resources.
                              @@ -764,12 +927,14 @@ java.lang.String getBuildEnvironmentVariablesOrThrow(
                                  * 
                              * * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -785,10 +950,13 @@ java.lang.String getBuildEnvironmentVariablesOrThrow(
                                  * 
                              * * string build_worker_pool = 26; + * * @return The buildWorkerPool. */ java.lang.String getBuildWorkerPool(); /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -804,109 +972,136 @@ java.lang.String getBuildEnvironmentVariablesOrThrow(
                                  * 
                              * * string build_worker_pool = 26; + * * @return The bytes for buildWorkerPool. */ - com.google.protobuf.ByteString - getBuildWorkerPoolBytes(); + com.google.protobuf.ByteString getBuildWorkerPoolBytes(); /** + * + * *
                                  * Output only. The Cloud Build ID of the latest successful deployment of the
                                  * function.
                                  * 
                              * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The buildId. */ java.lang.String getBuildId(); /** + * + * *
                                  * Output only. The Cloud Build ID of the latest successful deployment of the
                                  * function.
                                  * 
                              * * string build_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for buildId. */ - com.google.protobuf.ByteString - getBuildIdBytes(); + com.google.protobuf.ByteString getBuildIdBytes(); /** + * + * *
                                  * Output only. The Cloud Build Name of the function deployment.
                                  * `projects/<project-number>/locations/<region>/builds/<build-id>`.
                                  * 
                              * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The buildName. */ java.lang.String getBuildName(); /** + * + * *
                                  * Output only. The Cloud Build Name of the function deployment.
                                  * `projects/<project-number>/locations/<region>/builds/<build-id>`.
                                  * 
                              * * string build_name = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for buildName. */ - com.google.protobuf.ByteString - getBuildNameBytes(); + com.google.protobuf.ByteString getBuildNameBytes(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ - java.util.List - getSecretEnvironmentVariablesList(); + java.util.List getSecretEnvironmentVariablesList(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ com.google.cloud.functions.v1.SecretEnvVar getSecretEnvironmentVariables(int index); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ int getSecretEnvironmentVariablesCount(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ - java.util.List + java.util.List getSecretEnvironmentVariablesOrBuilderList(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * repeated .google.cloud.functions.v1.SecretEnvVar secret_environment_variables = 29; + * */ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( int index); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - java.util.List - getSecretVolumesList(); + java.util.List getSecretVolumesList(); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -915,6 +1110,8 @@ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariable */ com.google.cloud.functions.v1.SecretVolume getSecretVolumes(int index); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -923,47 +1120,57 @@ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariable */ int getSecretVolumesCount(); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - java.util.List + java.util.List getSecretVolumesOrBuilderList(); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              * * repeated .google.cloud.functions.v1.SecretVolume secret_volumes = 30; */ - com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder( - int index); + com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index); /** + * + * *
                                  * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
                                  * supported for Firebase function deployments.
                                  * 
                              * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The sourceToken. */ java.lang.String getSourceToken(); /** + * + * *
                                  * Input only. An identifier for Firebase function sources. Disclaimer: This field is only
                                  * supported for Firebase function deployments.
                                  * 
                              * * string source_token = 31 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for sourceToken. */ - com.google.protobuf.ByteString - getSourceTokenBytes(); + com.google.protobuf.ByteString getSourceTokenBytes(); /** + * + * *
                                  * User managed repository created in Artifact Registry optionally with a
                                  * customer managed encryption key. If specified, deployments will use
                              @@ -979,10 +1186,13 @@ com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder(
                                  * 
                              * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } + * * @return The dockerRepository. */ java.lang.String getDockerRepository(); /** + * + * *
                                  * User managed repository created in Artifact Registry optionally with a
                                  * customer managed encryption key. If specified, deployments will use
                              @@ -998,12 +1208,14 @@ com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder(
                                  * 
                              * * string docker_repository = 34 [(.google.api.resource_reference) = { ... } + * * @return The bytes for dockerRepository. */ - com.google.protobuf.ByteString - getDockerRepositoryBytes(); + com.google.protobuf.ByteString getDockerRepositoryBytes(); /** + * + * *
                                  * Docker Registry to use for this deployment.
                                  * If `docker_repository` field is specified, this field will be automatically
                              @@ -1013,10 +1225,13 @@ com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder(
                                  * 
                              * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; + * * @return The enum numeric value on the wire for dockerRegistry. */ int getDockerRegistryValue(); /** + * + * *
                                  * Docker Registry to use for this deployment.
                                  * If `docker_repository` field is specified, this field will be automatically
                              @@ -1026,6 +1241,7 @@ com.google.cloud.functions.v1.SecretVolumeOrBuilder getSecretVolumesOrBuilder(
                                  * 
                              * * .google.cloud.functions.v1.CloudFunction.DockerRegistry docker_registry = 35; + * * @return The dockerRegistry. */ com.google.cloud.functions.v1.CloudFunction.DockerRegistry getDockerRegistry(); diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java index eca4b4ee..fcca5fb1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionStatus.java @@ -1,18 +1,36 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Describes the current stage of a deployment.
                                * 
                              * * Protobuf enum {@code google.cloud.functions.v1.CloudFunctionStatus} */ -public enum CloudFunctionStatus - implements com.google.protobuf.ProtocolMessageEnum { +public enum CloudFunctionStatus implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                  * Not specified. Invalid state.
                                  * 
                              @@ -21,6 +39,8 @@ public enum CloudFunctionStatus */ CLOUD_FUNCTION_STATUS_UNSPECIFIED(0), /** + * + * *
                                  * Function has been successfully deployed and is serving.
                                  * 
                              @@ -29,6 +49,8 @@ public enum CloudFunctionStatus */ ACTIVE(1), /** + * + * *
                                  * Function deployment failed and the function isn’t serving.
                                  * 
                              @@ -37,6 +59,8 @@ public enum CloudFunctionStatus */ OFFLINE(2), /** + * + * *
                                  * Function is being created or updated.
                                  * 
                              @@ -45,6 +69,8 @@ public enum CloudFunctionStatus */ DEPLOY_IN_PROGRESS(3), /** + * + * *
                                  * Function is being deleted.
                                  * 
                              @@ -53,6 +79,8 @@ public enum CloudFunctionStatus */ DELETE_IN_PROGRESS(4), /** + * + * *
                                  * Function deployment failed and the function serving state is undefined.
                                  * The function should be updated or deleted to move it out of this state.
                              @@ -65,6 +93,8 @@ public enum CloudFunctionStatus
                                 ;
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Not specified. Invalid state.
                                  * 
                              @@ -73,6 +103,8 @@ public enum CloudFunctionStatus */ public static final int CLOUD_FUNCTION_STATUS_UNSPECIFIED_VALUE = 0; /** + * + * *
                                  * Function has been successfully deployed and is serving.
                                  * 
                              @@ -81,6 +113,8 @@ public enum CloudFunctionStatus */ public static final int ACTIVE_VALUE = 1; /** + * + * *
                                  * Function deployment failed and the function isn’t serving.
                                  * 
                              @@ -89,6 +123,8 @@ public enum CloudFunctionStatus */ public static final int OFFLINE_VALUE = 2; /** + * + * *
                                  * Function is being created or updated.
                                  * 
                              @@ -97,6 +133,8 @@ public enum CloudFunctionStatus */ public static final int DEPLOY_IN_PROGRESS_VALUE = 3; /** + * + * *
                                  * Function is being deleted.
                                  * 
                              @@ -105,6 +143,8 @@ public enum CloudFunctionStatus */ public static final int DELETE_IN_PROGRESS_VALUE = 4; /** + * + * *
                                  * Function deployment failed and the function serving state is undefined.
                                  * The function should be updated or deleted to move it out of this state.
                              @@ -114,7 +154,6 @@ public enum CloudFunctionStatus
                                  */
                                 public static final int UNKNOWN_VALUE = 5;
                               
                              -
                                 public final int getNumber() {
                                   if (this == UNRECOGNIZED) {
                                     throw new java.lang.IllegalArgumentException(
                              @@ -139,13 +178,20 @@ public static CloudFunctionStatus valueOf(int value) {
                                  */
                                 public static CloudFunctionStatus forNumber(int value) {
                                   switch (value) {
                              -      case 0: return CLOUD_FUNCTION_STATUS_UNSPECIFIED;
                              -      case 1: return ACTIVE;
                              -      case 2: return OFFLINE;
                              -      case 3: return DEPLOY_IN_PROGRESS;
                              -      case 4: return DELETE_IN_PROGRESS;
                              -      case 5: return UNKNOWN;
                              -      default: return null;
                              +      case 0:
                              +        return CLOUD_FUNCTION_STATUS_UNSPECIFIED;
                              +      case 1:
                              +        return ACTIVE;
                              +      case 2:
                              +        return OFFLINE;
                              +      case 3:
                              +        return DEPLOY_IN_PROGRESS;
                              +      case 4:
                              +        return DELETE_IN_PROGRESS;
                              +      case 5:
                              +        return UNKNOWN;
                              +      default:
                              +        return null;
                                   }
                                 }
                               
                              @@ -153,28 +199,28 @@ public static CloudFunctionStatus forNumber(int value) {
                                     internalGetValueMap() {
                                   return internalValueMap;
                                 }
                              -  private static final com.google.protobuf.Internal.EnumLiteMap<
                              -      CloudFunctionStatus> internalValueMap =
                              -        new com.google.protobuf.Internal.EnumLiteMap() {
                              -          public CloudFunctionStatus findValueByNumber(int number) {
                              -            return CloudFunctionStatus.forNumber(number);
                              -          }
                              -        };
                              -
                              -  public final com.google.protobuf.Descriptors.EnumValueDescriptor
                              -      getValueDescriptor() {
                              +
                              +  private static final com.google.protobuf.Internal.EnumLiteMap
                              +      internalValueMap =
                              +          new com.google.protobuf.Internal.EnumLiteMap() {
                              +            public CloudFunctionStatus findValueByNumber(int number) {
                              +              return CloudFunctionStatus.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() {
                              +
                              +  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                                   return getDescriptor();
                                 }
                              -  public static final com.google.protobuf.Descriptors.EnumDescriptor
                              -      getDescriptor() {
                              +
                              +  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                                   return com.google.cloud.functions.v1.FunctionsProto.getDescriptor().getEnumTypes().get(0);
                                 }
                               
                              @@ -183,8 +229,7 @@ public CloudFunctionStatus findValueByNumber(int number) {
                                 public static CloudFunctionStatus valueOf(
                                     com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                                   if (desc.getType() != getDescriptor()) {
                              -      throw new java.lang.IllegalArgumentException(
                              -        "EnumValueDescriptor is not for this type.");
                              +      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                                   }
                                   if (desc.getIndex() == -1) {
                                     return UNRECOGNIZED;
                              @@ -200,4 +245,3 @@ private CloudFunctionStatus(int value) {
                               
                                 // @@protoc_insertion_point(enum_scope:google.cloud.functions.v1.CloudFunctionStatus)
                               }
                              -
                              diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java
                              similarity index 62%
                              rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java
                              rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java
                              index 28a868ff..4524013c 100644
                              --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java
                              +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java
                              @@ -1,40 +1,57 @@
                              +/*
                              + * 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/v1/functions.proto
                               
                               package com.google.cloud.functions.v1;
                               
                               /**
                              + *
                              + *
                                * 
                                * Request for the `CreateFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.CreateFunctionRequest} */ -public final class CreateFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.CreateFunctionRequest) CreateFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateFunctionRequest.newBuilder() to construct. private CreateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateFunctionRequest() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private CreateFunctionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; - } - case 18: { - com.google.cloud.functions.v1.CloudFunction.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); + location_ = s; + break; } - function_ = input.readMessage(com.google.cloud.functions.v1.CloudFunction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.functions.v1.CloudFunction.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); + } + function_ = + input.readMessage( + com.google.cloud.functions.v1.CloudFunction.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +107,42 @@ private CreateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.CreateFunctionRequest.class, com.google.cloud.functions.v1.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v1.CreateFunctionRequest.class, + com.google.cloud.functions.v1.CreateFunctionRequest.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** + * + * *
                                  * Required. The project and location in which the function should be created, specified
                                  * in the format `projects/*/locations/*`
                                  * 
                              * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The location. */ @java.lang.Override @@ -123,30 +151,32 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
                                  * Required. The project and location in which the function should be created, specified
                                  * in the format `projects/*/locations/*`
                                  * 
                              * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -157,11 +187,16 @@ public java.lang.String getLocation() { public static final int FUNCTION_FIELD_NUMBER = 2; private com.google.cloud.functions.v1.CloudFunction function_; /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ @java.lang.Override @@ -169,23 +204,34 @@ public boolean hasFunction() { return function_ != null; } /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunction getFunction() { - return function_ == null ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() + : function_; } /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder() { @@ -193,6 +239,7 @@ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +251,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -225,8 +271,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); } if (function_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFunction()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFunction()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,19 +281,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.CreateFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.CreateFunctionRequest other = (com.google.cloud.functions.v1.CreateFunctionRequest) obj; + com.google.cloud.functions.v1.CreateFunctionRequest other = + (com.google.cloud.functions.v1.CreateFunctionRequest) obj; - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; if (hasFunction() != other.hasFunction()) return false; if (hasFunction()) { - if (!getFunction() - .equals(other.getFunction())) return false; + if (!getFunction().equals(other.getFunction())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +317,126 @@ public int hashCode() { } public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.CreateFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.CreateFunctionRequest 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.v1.CreateFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.CreateFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.CreateFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.CreateFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.CreateFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.CreateFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `CreateFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.CreateFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.CreateFunctionRequest) com.google.cloud.functions.v1.CreateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.CreateFunctionRequest.class, com.google.cloud.functions.v1.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v1.CreateFunctionRequest.class, + com.google.cloud.functions.v1.CreateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.CreateFunctionRequest.newBuilder() @@ -391,16 +444,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +468,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; } @java.lang.Override @@ -437,7 +489,8 @@ public com.google.cloud.functions.v1.CreateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v1.CreateFunctionRequest buildPartial() { - com.google.cloud.functions.v1.CreateFunctionRequest result = new com.google.cloud.functions.v1.CreateFunctionRequest(this); + com.google.cloud.functions.v1.CreateFunctionRequest result = + new com.google.cloud.functions.v1.CreateFunctionRequest(this); result.location_ = location_; if (functionBuilder_ == null) { result.function_ = function_; @@ -452,38 +505,39 @@ public com.google.cloud.functions.v1.CreateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.CreateFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v1.CreateFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -491,7 +545,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.CreateFunctionRequest other) { - if (other == com.google.cloud.functions.v1.CreateFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.CreateFunctionRequest.getDefaultInstance()) + return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -518,7 +573,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v1.CreateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v1.CreateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +586,23 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** + * + * *
                                    * Required. The project and location in which the function should be created, specified
                                    * in the format `projects/*/locations/*`
                                    * 
                              * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -551,21 +611,24 @@ public java.lang.String getLocation() { } } /** + * + * *
                                    * Required. The project and location in which the function should be created, specified
                                    * in the format `projects/*/locations/*`
                                    * 
                              * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -573,57 +636,70 @@ public java.lang.String getLocation() { } } /** + * + * *
                                    * Required. The project and location in which the function should be created, specified
                                    * in the format `projects/*/locations/*`
                                    * 
                              * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The project and location in which the function should be created, specified
                                    * in the format `projects/*/locations/*`
                                    * 
                              * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
                                    * Required. The project and location in which the function should be created, specified
                                    * in the format `projects/*/locations/*`
                                    * 
                              * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; @@ -631,39 +707,58 @@ public Builder setLocationBytes( private com.google.cloud.functions.v1.CloudFunction function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder> functionBuilder_; + com.google.cloud.functions.v1.CloudFunction, + com.google.cloud.functions.v1.CloudFunction.Builder, + com.google.cloud.functions.v1.CloudFunctionOrBuilder> + functionBuilder_; /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ public com.google.cloud.functions.v1.CloudFunction getFunction() { if (functionBuilder_ == null) { - return function_ == null ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() + : function_; } else { return functionBuilder_.getMessage(); } } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFunction(com.google.cloud.functions.v1.CloudFunction value) { if (functionBuilder_ == null) { @@ -679,11 +774,15 @@ public Builder setFunction(com.google.cloud.functions.v1.CloudFunction value) { return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFunction( com.google.cloud.functions.v1.CloudFunction.Builder builderForValue) { @@ -697,17 +796,23 @@ public Builder setFunction( return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFunction(com.google.cloud.functions.v1.CloudFunction value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v1.CloudFunction.newBuilder(function_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v1.CloudFunction.newBuilder(function_) + .mergeFrom(value) + .buildPartial(); } else { function_ = value; } @@ -719,11 +824,15 @@ public Builder mergeFunction(com.google.cloud.functions.v1.CloudFunction value) return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -737,55 +846,71 @@ public Builder clearFunction() { return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v1.CloudFunction.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null ? - com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() + : function_; } } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder> + com.google.cloud.functions.v1.CloudFunction, + com.google.cloud.functions.v1.CloudFunction.Builder, + com.google.cloud.functions.v1.CloudFunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder>( - getFunction(), - getParentForChildren(), - isClean()); + functionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v1.CloudFunction, + com.google.cloud.functions.v1.CloudFunction.Builder, + com.google.cloud.functions.v1.CloudFunctionOrBuilder>( + getFunction(), getParentForChildren(), isClean()); function_ = null; } return functionBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,12 +920,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.CreateFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.CreateFunctionRequest) private static final com.google.cloud.functions.v1.CreateFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.CreateFunctionRequest(); } @@ -809,16 +934,16 @@ public static com.google.cloud.functions.v1.CreateFunctionRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +958,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.CreateFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java new file mode 100644 index 00000000..af0e14ef --- /dev/null +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/v1/functions.proto + +package com.google.cloud.functions.v1; + +public interface CreateFunctionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.CreateFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * Required. The project and location in which the function should be created, specified
                              +   * in the format `projects/*/locations/*`
                              +   * 
                              + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
                              +   * Required. The project and location in which the function should be created, specified
                              +   * in the format `projects/*/locations/*`
                              +   * 
                              + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
                              +   * Required. Function to be created.
                              +   * 
                              + * + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the function field is set. + */ + boolean hasFunction(); + /** + * + * + *
                              +   * Required. Function to be created.
                              +   * 
                              + * + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The function. + */ + com.google.cloud.functions.v1.CloudFunction getFunction(); + /** + * + * + *
                              +   * Required. Function to be created.
                              +   * 
                              + * + * + * .google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java index af4bc62c..4367a195 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java @@ -1,40 +1,57 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Request for the `DeleteFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.DeleteFunctionRequest} */ -public final class DeleteFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.DeleteFunctionRequest) DeleteFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteFunctionRequest.newBuilder() to construct. private DeleteFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteFunctionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private DeleteFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.DeleteFunctionRequest.class, com.google.cloud.functions.v1.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v1.DeleteFunctionRequest.class, + com.google.cloud.functions.v1.DeleteFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
                                  * Required. The name of the function which should be deleted.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -109,29 +134,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * Required. The name of the function which should be deleted.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.DeleteFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.DeleteFunctionRequest other = (com.google.cloud.functions.v1.DeleteFunctionRequest) obj; + com.google.cloud.functions.v1.DeleteFunctionRequest other = + (com.google.cloud.functions.v1.DeleteFunctionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,126 @@ public int hashCode() { } public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.DeleteFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.DeleteFunctionRequest 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.v1.DeleteFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.DeleteFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.DeleteFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.DeleteFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.DeleteFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.DeleteFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `DeleteFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.DeleteFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.DeleteFunctionRequest) com.google.cloud.functions.v1.DeleteFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.DeleteFunctionRequest.class, com.google.cloud.functions.v1.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v1.DeleteFunctionRequest.class, + com.google.cloud.functions.v1.DeleteFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.DeleteFunctionRequest.newBuilder() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; } @java.lang.Override @@ -362,7 +397,8 @@ public com.google.cloud.functions.v1.DeleteFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v1.DeleteFunctionRequest buildPartial() { - com.google.cloud.functions.v1.DeleteFunctionRequest result = new com.google.cloud.functions.v1.DeleteFunctionRequest(this); + com.google.cloud.functions.v1.DeleteFunctionRequest result = + new com.google.cloud.functions.v1.DeleteFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.cloud.functions.v1.DeleteFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.DeleteFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v1.DeleteFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.DeleteFunctionRequest other) { - if (other == com.google.cloud.functions.v1.DeleteFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.DeleteFunctionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +473,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v1.DeleteFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v1.DeleteFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +486,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -467,20 +510,23 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -488,61 +534,74 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +611,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.DeleteFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.DeleteFunctionRequest) private static final com.google.cloud.functions.v1.DeleteFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.DeleteFunctionRequest(); } @@ -566,16 +625,16 @@ public static com.google.cloud.functions.v1.DeleteFunctionRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.DeleteFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java new file mode 100644 index 00000000..fe29335b --- /dev/null +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/v1/functions.proto + +package com.google.cloud.functions.v1; + +public interface DeleteFunctionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.DeleteFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * Required. The name of the function which should be deleted.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                              +   * Required. The name of the function which should be deleted.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java index 4cb185d5..a68d9845 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java @@ -1,9 +1,26 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Describes EventTrigger, used to request events be sent from another
                                * service.
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v1.EventTrigger}
                                */
                              -public final class EventTrigger extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class EventTrigger extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.EventTrigger)
                                   EventTriggerOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use EventTrigger.newBuilder() to construct.
                                 private EventTrigger(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private EventTrigger() {
                                   eventType_ = "";
                                   resource_ = "";
                              @@ -28,16 +46,15 @@ private EventTrigger() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new EventTrigger();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private EventTrigger(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -56,44 +73,50 @@ private EventTrigger(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            eventType_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            resource_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              eventType_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            service_ = s;
                              -            break;
                              -          }
                              -          case 42: {
                              -            com.google.cloud.functions.v1.FailurePolicy.Builder subBuilder = null;
                              -            if (failurePolicy_ != null) {
                              -              subBuilder = failurePolicy_.toBuilder();
                              +              resource_ = s;
                              +              break;
                                           }
                              -            failurePolicy_ = input.readMessage(com.google.cloud.functions.v1.FailurePolicy.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(failurePolicy_);
                              -              failurePolicy_ = subBuilder.buildPartial();
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                              +
                              +              service_ = s;
                              +              break;
                                           }
                              +          case 42:
                              +            {
                              +              com.google.cloud.functions.v1.FailurePolicy.Builder subBuilder = null;
                              +              if (failurePolicy_ != null) {
                              +                subBuilder = failurePolicy_.toBuilder();
                              +              }
                              +              failurePolicy_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v1.FailurePolicy.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(failurePolicy_);
                              +                failurePolicy_ = subBuilder.buildPartial();
                              +              }
                               
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -101,29 +124,33 @@ private EventTrigger(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     this.unknownFields = unknownFields.build();
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_EventTrigger_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v1.FunctionsProto
                              +        .internal_static_google_cloud_functions_v1_EventTrigger_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable
                              +    return com.google.cloud.functions.v1.FunctionsProto
                              +        .internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v1.EventTrigger.class, com.google.cloud.functions.v1.EventTrigger.Builder.class);
                              +            com.google.cloud.functions.v1.EventTrigger.class,
                              +            com.google.cloud.functions.v1.EventTrigger.Builder.class);
                                 }
                               
                                 public static final int EVENT_TYPE_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object eventType_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Required. The type of event to observe. For example:
                                  * `providers/cloud.storage/eventTypes/object.change` and
                              @@ -140,6 +167,7 @@ private EventTrigger(
                                  * 
                              * * string event_type = 1; + * * @return The eventType. */ @java.lang.Override @@ -148,14 +176,15 @@ public java.lang.String getEventType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; } } /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `providers/cloud.storage/eventTypes/object.change` and
                              @@ -172,16 +201,15 @@ public java.lang.String getEventType() {
                                  * 
                              * * string event_type = 1; + * * @return The bytes for eventType. */ @java.lang.Override - public com.google.protobuf.ByteString - getEventTypeBytes() { + public com.google.protobuf.ByteString getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventType_ = b; return b; } else { @@ -192,6 +220,8 @@ public java.lang.String getEventType() { public static final int RESOURCE_FIELD_NUMBER = 2; private volatile java.lang.Object resource_; /** + * + * *
                                  * Required. The resource(s) from which to observe events, for example,
                                  * `projects/_/buckets/myBucket`.
                              @@ -211,6 +241,7 @@ public java.lang.String getEventType() {
                                  * 
                              * * string resource = 2; + * * @return The resource. */ @java.lang.Override @@ -219,14 +250,15 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
                                  * Required. The resource(s) from which to observe events, for example,
                                  * `projects/_/buckets/myBucket`.
                              @@ -246,16 +278,15 @@ public java.lang.String getResource() {
                                  * 
                              * * string resource = 2; + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -266,6 +297,8 @@ public java.lang.String getResource() { public static final int SERVICE_FIELD_NUMBER = 3; private volatile java.lang.Object service_; /** + * + * *
                                  * The hostname of the service that should be observed.
                                  * If no string is provided, the default service implementing the API will
                              @@ -274,6 +307,7 @@ public java.lang.String getResource() {
                                  * 
                              * * string service = 3; + * * @return The service. */ @java.lang.Override @@ -282,14 +316,15 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** + * + * *
                                  * The hostname of the service that should be observed.
                                  * If no string is provided, the default service implementing the API will
                              @@ -298,16 +333,15 @@ public java.lang.String getService() {
                                  * 
                              * * string service = 3; + * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -318,11 +352,14 @@ public java.lang.String getService() { public static final int FAILURE_POLICY_FIELD_NUMBER = 5; private com.google.cloud.functions.v1.FailurePolicy failurePolicy_; /** + * + * *
                                  * Specifies policy for failed executions.
                                  * 
                              * * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; + * * @return Whether the failurePolicy field is set. */ @java.lang.Override @@ -330,18 +367,25 @@ public boolean hasFailurePolicy() { return failurePolicy_ != null; } /** + * + * *
                                  * Specifies policy for failed executions.
                                  * 
                              * * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; + * * @return The failurePolicy. */ @java.lang.Override public com.google.cloud.functions.v1.FailurePolicy getFailurePolicy() { - return failurePolicy_ == null ? com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance() : failurePolicy_; + return failurePolicy_ == null + ? com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance() + : failurePolicy_; } /** + * + * *
                                  * Specifies policy for failed executions.
                                  * 
                              @@ -354,6 +398,7 @@ public com.google.cloud.functions.v1.FailurePolicyOrBuilder getFailurePolicyOrBu } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -365,8 +410,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventType_); } @@ -398,8 +442,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, service_); } if (failurePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getFailurePolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFailurePolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -409,23 +452,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.EventTrigger)) { return super.equals(obj); } - com.google.cloud.functions.v1.EventTrigger other = (com.google.cloud.functions.v1.EventTrigger) obj; + com.google.cloud.functions.v1.EventTrigger other = + (com.google.cloud.functions.v1.EventTrigger) obj; - if (!getEventType() - .equals(other.getEventType())) return false; - if (!getResource() - .equals(other.getResource())) return false; - if (!getService() - .equals(other.getService())) return false; + if (!getEventType().equals(other.getEventType())) return false; + if (!getResource().equals(other.getResource())) return false; + if (!getService().equals(other.getService())) return false; if (hasFailurePolicy() != other.hasFailurePolicy()) return false; if (hasFailurePolicy()) { - if (!getFailurePolicy() - .equals(other.getFailurePolicy())) return false; + if (!getFailurePolicy().equals(other.getFailurePolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -453,97 +493,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.EventTrigger parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.EventTrigger parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.EventTrigger parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.EventTrigger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.EventTrigger 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.v1.EventTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.EventTrigger parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v1.EventTrigger parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.EventTrigger parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.EventTrigger parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.EventTrigger parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.EventTrigger parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.EventTrigger parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.EventTrigger parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.EventTrigger prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes EventTrigger, used to request events be sent from another
                                  * service.
                              @@ -551,21 +598,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v1.EventTrigger}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.EventTrigger)
                                     com.google.cloud.functions.v1.EventTriggerOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_EventTrigger_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_EventTrigger_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v1.EventTrigger.class, com.google.cloud.functions.v1.EventTrigger.Builder.class);
                              +              com.google.cloud.functions.v1.EventTrigger.class,
                              +              com.google.cloud.functions.v1.EventTrigger.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v1.EventTrigger.newBuilder()
                              @@ -573,16 +622,15 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              -      }
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -602,9 +650,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_EventTrigger_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_EventTrigger_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -623,7 +671,8 @@ public com.google.cloud.functions.v1.EventTrigger build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v1.EventTrigger buildPartial() {
                              -      com.google.cloud.functions.v1.EventTrigger result = new com.google.cloud.functions.v1.EventTrigger(this);
                              +      com.google.cloud.functions.v1.EventTrigger result =
                              +          new com.google.cloud.functions.v1.EventTrigger(this);
                                     result.eventType_ = eventType_;
                                     result.resource_ = resource_;
                                     result.service_ = service_;
                              @@ -640,38 +689,39 @@ public com.google.cloud.functions.v1.EventTrigger buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v1.EventTrigger)other);
                              +        return mergeFrom((com.google.cloud.functions.v1.EventTrigger) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -726,6 +776,8 @@ public Builder mergeFrom(
                               
                                   private java.lang.Object eventType_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Required. The type of event to observe. For example:
                                    * `providers/cloud.storage/eventTypes/object.change` and
                              @@ -742,13 +794,13 @@ public Builder mergeFrom(
                                    * 
                              * * string event_type = 1; + * * @return The eventType. */ public java.lang.String getEventType() { java.lang.Object ref = eventType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; @@ -757,6 +809,8 @@ public java.lang.String getEventType() { } } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `providers/cloud.storage/eventTypes/object.change` and
                              @@ -773,15 +827,14 @@ public java.lang.String getEventType() {
                                    * 
                              * * string event_type = 1; + * * @return The bytes for eventType. */ - public com.google.protobuf.ByteString - getEventTypeBytes() { + public com.google.protobuf.ByteString getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventType_ = b; return b; } else { @@ -789,6 +842,8 @@ public java.lang.String getEventType() { } } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `providers/cloud.storage/eventTypes/object.change` and
                              @@ -805,20 +860,22 @@ public java.lang.String getEventType() {
                                    * 
                              * * string event_type = 1; + * * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType( - java.lang.String value) { + public Builder setEventType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + eventType_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `providers/cloud.storage/eventTypes/object.change` and
                              @@ -835,15 +892,18 @@ public Builder setEventType(
                                    * 
                              * * string event_type = 1; + * * @return This builder for chaining. */ public Builder clearEventType() { - + eventType_ = getDefaultInstance().getEventType(); onChanged(); return this; } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `providers/cloud.storage/eventTypes/object.change` and
                              @@ -860,16 +920,16 @@ public Builder clearEventType() {
                                    * 
                              * * string event_type = 1; + * * @param value The bytes for eventType to set. * @return This builder for chaining. */ - public Builder setEventTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventType_ = value; onChanged(); return this; @@ -877,6 +937,8 @@ public Builder setEventTypeBytes( private java.lang.Object resource_ = ""; /** + * + * *
                                    * Required. The resource(s) from which to observe events, for example,
                                    * `projects/_/buckets/myBucket`.
                              @@ -896,13 +958,13 @@ public Builder setEventTypeBytes(
                                    * 
                              * * string resource = 2; + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -911,6 +973,8 @@ public java.lang.String getResource() { } } /** + * + * *
                                    * Required. The resource(s) from which to observe events, for example,
                                    * `projects/_/buckets/myBucket`.
                              @@ -930,15 +994,14 @@ public java.lang.String getResource() {
                                    * 
                              * * string resource = 2; + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -946,6 +1009,8 @@ public java.lang.String getResource() { } } /** + * + * *
                                    * Required. The resource(s) from which to observe events, for example,
                                    * `projects/_/buckets/myBucket`.
                              @@ -965,20 +1030,22 @@ public java.lang.String getResource() {
                                    * 
                              * * string resource = 2; + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The resource(s) from which to observe events, for example,
                                    * `projects/_/buckets/myBucket`.
                              @@ -998,15 +1065,18 @@ public Builder setResource(
                                    * 
                              * * string resource = 2; + * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
                                    * Required. The resource(s) from which to observe events, for example,
                                    * `projects/_/buckets/myBucket`.
                              @@ -1026,16 +1096,16 @@ public Builder clearResource() {
                                    * 
                              * * string resource = 2; + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -1043,6 +1113,8 @@ public Builder setResourceBytes( private java.lang.Object service_ = ""; /** + * + * *
                                    * The hostname of the service that should be observed.
                                    * If no string is provided, the default service implementing the API will
                              @@ -1051,13 +1123,13 @@ public Builder setResourceBytes(
                                    * 
                              * * string service = 3; + * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -1066,6 +1138,8 @@ 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
                              @@ -1074,15 +1148,14 @@ public java.lang.String getService() {
                                    * 
                              * * string service = 3; + * * @return The bytes for service. */ - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -1090,6 +1163,8 @@ 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
                              @@ -1098,20 +1173,22 @@ public java.lang.String getService() {
                                    * 
                              * * string service = 3; + * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService( - java.lang.String value) { + public Builder setService(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + service_ = value; onChanged(); return this; } /** + * + * *
                                    * The hostname of the service that should be observed.
                                    * If no string is provided, the default service implementing the API will
                              @@ -1120,15 +1197,18 @@ public Builder setService(
                                    * 
                              * * string service = 3; + * * @return This builder for chaining. */ public Builder clearService() { - + service_ = getDefaultInstance().getService(); onChanged(); return this; } /** + * + * *
                                    * The hostname of the service that should be observed.
                                    * If no string is provided, the default service implementing the API will
                              @@ -1137,16 +1217,16 @@ public Builder clearService() {
                                    * 
                              * * string service = 3; + * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; onChanged(); return this; @@ -1154,34 +1234,47 @@ public Builder setServiceBytes( private com.google.cloud.functions.v1.FailurePolicy failurePolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.FailurePolicy, com.google.cloud.functions.v1.FailurePolicy.Builder, com.google.cloud.functions.v1.FailurePolicyOrBuilder> failurePolicyBuilder_; + com.google.cloud.functions.v1.FailurePolicy, + com.google.cloud.functions.v1.FailurePolicy.Builder, + com.google.cloud.functions.v1.FailurePolicyOrBuilder> + failurePolicyBuilder_; /** + * + * *
                                    * Specifies policy for failed executions.
                                    * 
                              * * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; + * * @return Whether the failurePolicy field is set. */ public boolean hasFailurePolicy() { return failurePolicyBuilder_ != null || failurePolicy_ != null; } /** + * + * *
                                    * Specifies policy for failed executions.
                                    * 
                              * * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; + * * @return The failurePolicy. */ public com.google.cloud.functions.v1.FailurePolicy getFailurePolicy() { if (failurePolicyBuilder_ == null) { - return failurePolicy_ == null ? com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance() : failurePolicy_; + return failurePolicy_ == null + ? com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance() + : failurePolicy_; } else { return failurePolicyBuilder_.getMessage(); } } /** + * + * *
                                    * Specifies policy for failed executions.
                                    * 
                              @@ -1202,6 +1295,8 @@ public Builder setFailurePolicy(com.google.cloud.functions.v1.FailurePolicy valu return this; } /** + * + * *
                                    * Specifies policy for failed executions.
                                    * 
                              @@ -1220,6 +1315,8 @@ public Builder setFailurePolicy( return this; } /** + * + * *
                                    * Specifies policy for failed executions.
                                    * 
                              @@ -1230,7 +1327,9 @@ public Builder mergeFailurePolicy(com.google.cloud.functions.v1.FailurePolicy va if (failurePolicyBuilder_ == null) { if (failurePolicy_ != null) { failurePolicy_ = - com.google.cloud.functions.v1.FailurePolicy.newBuilder(failurePolicy_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v1.FailurePolicy.newBuilder(failurePolicy_) + .mergeFrom(value) + .buildPartial(); } else { failurePolicy_ = value; } @@ -1242,6 +1341,8 @@ public Builder mergeFailurePolicy(com.google.cloud.functions.v1.FailurePolicy va return this; } /** + * + * *
                                    * Specifies policy for failed executions.
                                    * 
                              @@ -1260,6 +1361,8 @@ public Builder clearFailurePolicy() { return this; } /** + * + * *
                                    * Specifies policy for failed executions.
                                    * 
                              @@ -1267,11 +1370,13 @@ public Builder clearFailurePolicy() { * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; */ public com.google.cloud.functions.v1.FailurePolicy.Builder getFailurePolicyBuilder() { - + onChanged(); return getFailurePolicyFieldBuilder().getBuilder(); } /** + * + * *
                                    * Specifies policy for failed executions.
                                    * 
                              @@ -1282,11 +1387,14 @@ public com.google.cloud.functions.v1.FailurePolicyOrBuilder getFailurePolicyOrBu if (failurePolicyBuilder_ != null) { return failurePolicyBuilder_.getMessageOrBuilder(); } else { - return failurePolicy_ == null ? - com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance() : failurePolicy_; + return failurePolicy_ == null + ? com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance() + : failurePolicy_; } } /** + * + * *
                                    * Specifies policy for failed executions.
                                    * 
                              @@ -1294,21 +1402,24 @@ public com.google.cloud.functions.v1.FailurePolicyOrBuilder getFailurePolicyOrBu * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.FailurePolicy, com.google.cloud.functions.v1.FailurePolicy.Builder, com.google.cloud.functions.v1.FailurePolicyOrBuilder> + com.google.cloud.functions.v1.FailurePolicy, + com.google.cloud.functions.v1.FailurePolicy.Builder, + com.google.cloud.functions.v1.FailurePolicyOrBuilder> getFailurePolicyFieldBuilder() { if (failurePolicyBuilder_ == null) { - failurePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.FailurePolicy, com.google.cloud.functions.v1.FailurePolicy.Builder, com.google.cloud.functions.v1.FailurePolicyOrBuilder>( - getFailurePolicy(), - getParentForChildren(), - isClean()); + failurePolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v1.FailurePolicy, + com.google.cloud.functions.v1.FailurePolicy.Builder, + com.google.cloud.functions.v1.FailurePolicyOrBuilder>( + getFailurePolicy(), getParentForChildren(), isClean()); failurePolicy_ = null; } return failurePolicyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1318,12 +1429,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.EventTrigger) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.EventTrigger) private static final com.google.cloud.functions.v1.EventTrigger DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.EventTrigger(); } @@ -1332,16 +1443,16 @@ public static com.google.cloud.functions.v1.EventTrigger getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventTrigger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventTrigger(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventTrigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventTrigger(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1356,6 +1467,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.EventTrigger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java index 9fd0888b..48b6347b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface EventTriggerOrBuilder extends +public interface EventTriggerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.EventTrigger) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `providers/cloud.storage/eventTypes/object.change` and
                              @@ -24,10 +42,13 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string event_type = 1; + * * @return The eventType. */ java.lang.String getEventType(); /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `providers/cloud.storage/eventTypes/object.change` and
                              @@ -44,12 +65,14 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string event_type = 1; + * * @return The bytes for eventType. */ - com.google.protobuf.ByteString - getEventTypeBytes(); + com.google.protobuf.ByteString getEventTypeBytes(); /** + * + * *
                                  * Required. The resource(s) from which to observe events, for example,
                                  * `projects/_/buckets/myBucket`.
                              @@ -69,10 +92,13 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string resource = 2; + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
                                  * Required. The resource(s) from which to observe events, for example,
                                  * `projects/_/buckets/myBucket`.
                              @@ -92,12 +118,14 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string resource = 2; + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + 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
                              @@ -106,10 +134,13 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string service = 3; + * * @return The service. */ 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
                              @@ -118,30 +149,38 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string service = 3; + * * @return The bytes for service. */ - com.google.protobuf.ByteString - getServiceBytes(); + com.google.protobuf.ByteString getServiceBytes(); /** + * + * *
                                  * Specifies policy for failed executions.
                                  * 
                              * * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; + * * @return Whether the failurePolicy field is set. */ boolean hasFailurePolicy(); /** + * + * *
                                  * Specifies policy for failed executions.
                                  * 
                              * * .google.cloud.functions.v1.FailurePolicy failure_policy = 5; + * * @return The failurePolicy. */ com.google.cloud.functions.v1.FailurePolicy getFailurePolicy(); /** + * + * *
                                  * Specifies policy for failed executions.
                                  * 
                              diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java index 0602ea1c..aa52cb70 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java @@ -1,9 +1,26 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Describes the policy in case of function's execution failure.
                                * If empty, then defaults to ignoring failures (i.e. not retrying them).
                              @@ -11,30 +28,29 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v1.FailurePolicy}
                                */
                              -public final class FailurePolicy extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class FailurePolicy extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.FailurePolicy)
                                   FailurePolicyOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use FailurePolicy.newBuilder() to construct.
                                 private FailurePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              -  private FailurePolicy() {
                              -  }
                              +
                              +  private FailurePolicy() {}
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new FailurePolicy();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private FailurePolicy(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -53,27 +69,31 @@ private FailurePolicy(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            com.google.cloud.functions.v1.FailurePolicy.Retry.Builder subBuilder = null;
                              -            if (actionCase_ == 1) {
                              -              subBuilder = ((com.google.cloud.functions.v1.FailurePolicy.Retry) action_).toBuilder();
                              -            }
                              -            action_ =
                              -                input.readMessage(com.google.cloud.functions.v1.FailurePolicy.Retry.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom((com.google.cloud.functions.v1.FailurePolicy.Retry) action_);
                              -              action_ = subBuilder.buildPartial();
                              +          case 10:
                              +            {
                              +              com.google.cloud.functions.v1.FailurePolicy.Retry.Builder subBuilder = null;
                              +              if (actionCase_ == 1) {
                              +                subBuilder =
                              +                    ((com.google.cloud.functions.v1.FailurePolicy.Retry) action_).toBuilder();
                              +              }
                              +              action_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v1.FailurePolicy.Retry.parser(),
                              +                      extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom((com.google.cloud.functions.v1.FailurePolicy.Retry) action_);
                              +                action_ = subBuilder.buildPartial();
                              +              }
                              +              actionCase_ = 1;
                              +              break;
                                           }
                              -            actionCase_ = 1;
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -81,31 +101,35 @@ private FailurePolicy(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     this.unknownFields = unknownFields.build();
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v1.FunctionsProto
                              +        .internal_static_google_cloud_functions_v1_FailurePolicy_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable
                              +    return com.google.cloud.functions.v1.FunctionsProto
                              +        .internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v1.FailurePolicy.class, com.google.cloud.functions.v1.FailurePolicy.Builder.class);
                              +            com.google.cloud.functions.v1.FailurePolicy.class,
                              +            com.google.cloud.functions.v1.FailurePolicy.Builder.class);
                                 }
                               
                              -  public interface RetryOrBuilder extends
                              +  public interface RetryOrBuilder
                              +      extends
                                     // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.FailurePolicy.Retry)
                              -      com.google.protobuf.MessageOrBuilder {
                              -  }
                              +      com.google.protobuf.MessageOrBuilder {}
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Describes the retry policy in case of function's execution failure.
                                  * A function execution will be retried on any failure.
                              @@ -116,30 +140,29 @@ public interface RetryOrBuilder extends
                                  *
                                  * Protobuf type {@code google.cloud.functions.v1.FailurePolicy.Retry}
                                  */
                              -  public static final class Retry extends
                              -      com.google.protobuf.GeneratedMessageV3 implements
                              +  public static final class Retry extends com.google.protobuf.GeneratedMessageV3
                              +      implements
                                     // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.FailurePolicy.Retry)
                                     RetryOrBuilder {
                              -  private static final long serialVersionUID = 0L;
                              +    private static final long serialVersionUID = 0L;
                                   // Use Retry.newBuilder() to construct.
                                   private Retry(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                     super(builder);
                                   }
                              -    private Retry() {
                              -    }
                              +
                              +    private Retry() {}
                               
                                   @java.lang.Override
                                   @SuppressWarnings({"unused"})
                              -    protected java.lang.Object newInstance(
                              -        UnusedPrivateParameter unused) {
                              +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                     return new Retry();
                                   }
                               
                                   @java.lang.Override
                              -    public final com.google.protobuf.UnknownFieldSet
                              -    getUnknownFields() {
                              +    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                     return this.unknownFields;
                                   }
                              +
                                   private Retry(
                                       com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -158,13 +181,13 @@ private Retry(
                                           case 0:
                                             done = true;
                                             break;
                              -            default: {
                              -              if (!parseUnknownField(
                              -                  input, unknownFields, extensionRegistry, tag)) {
                              -                done = true;
                              +            default:
                              +              {
                              +                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                  done = true;
                              +                }
                              +                break;
                                             }
                              -              break;
                              -            }
                                         }
                                       }
                                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -172,27 +195,30 @@ private Retry(
                                     } catch (com.google.protobuf.UninitializedMessageException e) {
                                       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                     } catch (java.io.IOException e) {
                              -        throw new com.google.protobuf.InvalidProtocolBufferException(
                              -            e).setUnfinishedMessage(this);
                              +        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                     } finally {
                                       this.unknownFields = unknownFields.build();
                                       makeExtensionsImmutable();
                                     }
                                   }
                              -    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;
                              +
                              +    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;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v1.FailurePolicy.Retry.class, com.google.cloud.functions.v1.FailurePolicy.Retry.Builder.class);
                              +              com.google.cloud.functions.v1.FailurePolicy.Retry.class,
                              +              com.google.cloud.functions.v1.FailurePolicy.Retry.Builder.class);
                                   }
                               
                                   private byte memoizedIsInitialized = -1;
                              +
                                   @java.lang.Override
                                   public final boolean isInitialized() {
                                     byte isInitialized = memoizedIsInitialized;
                              @@ -204,8 +230,7 @@ public final boolean isInitialized() {
                                   }
                               
                                   @java.lang.Override
                              -    public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                        throws java.io.IOException {
                              +    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                     unknownFields.writeTo(output);
                                   }
                               
                              @@ -223,12 +248,13 @@ public int getSerializedSize() {
                                   @java.lang.Override
                                   public boolean equals(final java.lang.Object obj) {
                                     if (obj == this) {
                              -       return true;
                              +        return true;
                                     }
                                     if (!(obj instanceof com.google.cloud.functions.v1.FailurePolicy.Retry)) {
                                       return super.equals(obj);
                                     }
                              -      com.google.cloud.functions.v1.FailurePolicy.Retry other = (com.google.cloud.functions.v1.FailurePolicy.Retry) obj;
                              +      com.google.cloud.functions.v1.FailurePolicy.Retry other =
                              +          (com.google.cloud.functions.v1.FailurePolicy.Retry) obj;
                               
                                     if (!unknownFields.equals(other.unknownFields)) return false;
                                     return true;
                              @@ -247,87 +273,93 @@ public int hashCode() {
                                   }
                               
                                   public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
                              -        java.nio.ByteBuffer data)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              +        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
                                     return PARSER.parseFrom(data);
                                   }
                              +
                                   public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
                              -        java.nio.ByteBuffer data,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +        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.v1.FailurePolicy.Retry parseFrom(
                                       com.google.protobuf.ByteString data)
                                       throws com.google.protobuf.InvalidProtocolBufferException {
                                     return PARSER.parseFrom(data);
                                   }
                              +
                                   public static com.google.cloud.functions.v1.FailurePolicy.Retry 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.v1.FailurePolicy.Retry parseFrom(byte[] data)
                                       throws com.google.protobuf.InvalidProtocolBufferException {
                                     return PARSER.parseFrom(data);
                                   }
                              +
                                   public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
                              -        byte[] data,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException {
                                     return PARSER.parseFrom(data, extensionRegistry);
                                   }
                              -    public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(java.io.InputStream input)
                              -        throws java.io.IOException {
                              -      return com.google.protobuf.GeneratedMessageV3
                              -          .parseWithIOException(PARSER, input);
                              +
                              +    public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
                              +        java.io.InputStream input) throws java.io.IOException {
                              +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                   }
                              +
                                   public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
                              -        java.io.InputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException {
                              -      return com.google.protobuf.GeneratedMessageV3
                              -          .parseWithIOException(PARSER, input, extensionRegistry);
                              +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +          PARSER, input, extensionRegistry);
                                   }
                              -    public static com.google.cloud.functions.v1.FailurePolicy.Retry parseDelimitedFrom(java.io.InputStream input)
                              -        throws java.io.IOException {
                              -      return com.google.protobuf.GeneratedMessageV3
                              -          .parseDelimitedWithIOException(PARSER, input);
                              +
                              +    public static com.google.cloud.functions.v1.FailurePolicy.Retry parseDelimitedFrom(
                              +        java.io.InputStream input) throws java.io.IOException {
                              +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                   }
                              +
                                   public static com.google.cloud.functions.v1.FailurePolicy.Retry parseDelimitedFrom(
                              -        java.io.InputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException {
                              -      return com.google.protobuf.GeneratedMessageV3
                              -          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +          PARSER, input, extensionRegistry);
                                   }
                              +
                                   public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
                              -        com.google.protobuf.CodedInputStream input)
                              -        throws java.io.IOException {
                              -      return com.google.protobuf.GeneratedMessageV3
                              -          .parseWithIOException(PARSER, input);
                              +        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                   }
                              +
                                   public static com.google.cloud.functions.v1.FailurePolicy.Retry parseFrom(
                                       com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException {
                              -      return com.google.protobuf.GeneratedMessageV3
                              -          .parseWithIOException(PARSER, input, extensionRegistry);
                              +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +          PARSER, input, extensionRegistry);
                                   }
                               
                                   @java.lang.Override
                              -    public Builder newBuilderForType() { return newBuilder(); }
                              +    public Builder newBuilderForType() {
                              +      return newBuilder();
                              +    }
                              +
                                   public static Builder newBuilder() {
                                     return DEFAULT_INSTANCE.toBuilder();
                                   }
                              +
                                   public static Builder newBuilder(com.google.cloud.functions.v1.FailurePolicy.Retry prototype) {
                                     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                   }
                              +
                                   @java.lang.Override
                                   public Builder toBuilder() {
                              -      return this == DEFAULT_INSTANCE
                              -          ? new Builder() : new Builder().mergeFrom(this);
                              +      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                   }
                               
                                   @java.lang.Override
                              @@ -337,6 +369,8 @@ protected Builder newBuilderForType(
                                     return builder;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the retry policy in case of function's execution failure.
                                    * A function execution will be retried on any failure.
                              @@ -347,21 +381,24 @@ protected Builder newBuilderForType(
                                    *
                                    * Protobuf type {@code google.cloud.functions.v1.FailurePolicy.Retry}
                                    */
                              -    public static final class Builder extends
                              -        com.google.protobuf.GeneratedMessageV3.Builder implements
                              +    public static final class Builder
                              +        extends com.google.protobuf.GeneratedMessageV3.Builder
                              +        implements
                                       // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.FailurePolicy.Retry)
                                       com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder {
                              -      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;
                              +      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;
                                     }
                               
                                     @java.lang.Override
                                     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                         internalGetFieldAccessorTable() {
                              -        return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable
                              +        return com.google.cloud.functions.v1.FunctionsProto
                              +            .internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable
                                           .ensureFieldAccessorsInitialized(
                              -                com.google.cloud.functions.v1.FailurePolicy.Retry.class, com.google.cloud.functions.v1.FailurePolicy.Retry.Builder.class);
                              +                com.google.cloud.functions.v1.FailurePolicy.Retry.class,
                              +                com.google.cloud.functions.v1.FailurePolicy.Retry.Builder.class);
                                     }
                               
                                     // Construct using com.google.cloud.functions.v1.FailurePolicy.Retry.newBuilder()
                              @@ -369,16 +406,15 @@ private Builder() {
                                       maybeForceBuilderInitialization();
                                     }
                               
                              -      private Builder(
                              -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                       super(parent);
                                       maybeForceBuilderInitialization();
                                     }
                              +
                                     private void maybeForceBuilderInitialization() {
                              -        if (com.google.protobuf.GeneratedMessageV3
                              -                .alwaysUseFieldBuilders) {
                              -        }
                              +        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                     }
                              +
                                     @java.lang.Override
                                     public Builder clear() {
                                       super.clear();
                              @@ -386,9 +422,9 @@ public Builder clear() {
                                     }
                               
                                     @java.lang.Override
                              -      public com.google.protobuf.Descriptors.Descriptor
                              -          getDescriptorForType() {
                              -        return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor;
                              +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +        return com.google.cloud.functions.v1.FunctionsProto
                              +            .internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor;
                                     }
                               
                                     @java.lang.Override
                              @@ -407,7 +443,8 @@ public com.google.cloud.functions.v1.FailurePolicy.Retry build() {
                               
                                     @java.lang.Override
                                     public com.google.cloud.functions.v1.FailurePolicy.Retry buildPartial() {
                              -        com.google.cloud.functions.v1.FailurePolicy.Retry result = new com.google.cloud.functions.v1.FailurePolicy.Retry(this);
                              +        com.google.cloud.functions.v1.FailurePolicy.Retry result =
                              +            new com.google.cloud.functions.v1.FailurePolicy.Retry(this);
                                       onBuilt();
                                       return result;
                                     }
                              @@ -416,38 +453,41 @@ public com.google.cloud.functions.v1.FailurePolicy.Retry buildPartial() {
                                     public Builder clone() {
                                       return super.clone();
                                     }
                              +
                                     @java.lang.Override
                                     public Builder setField(
                              -          com.google.protobuf.Descriptors.FieldDescriptor field,
                              -          java.lang.Object value) {
                              +          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) {
                              +      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) {
                              +      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) {
                              +          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) {
                              +          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) {
                              -          return mergeFrom((com.google.cloud.functions.v1.FailurePolicy.Retry)other);
                              +          return mergeFrom((com.google.cloud.functions.v1.FailurePolicy.Retry) other);
                                       } else {
                                         super.mergeFrom(other);
                                         return this;
                              @@ -455,7 +495,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                                     }
                               
                                     public Builder mergeFrom(com.google.cloud.functions.v1.FailurePolicy.Retry other) {
                              -        if (other == com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance()) return this;
                              +        if (other == com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance())
                              +          return this;
                                       this.mergeUnknownFields(other.unknownFields);
                                       onChanged();
                                       return this;
                              @@ -475,7 +516,8 @@ public Builder mergeFrom(
                                       try {
                                         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                                       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              -          parsedMessage = (com.google.cloud.functions.v1.FailurePolicy.Retry) e.getUnfinishedMessage();
                              +          parsedMessage =
                              +              (com.google.cloud.functions.v1.FailurePolicy.Retry) e.getUnfinishedMessage();
                                         throw e.unwrapIOException();
                                       } finally {
                                         if (parsedMessage != null) {
                              @@ -484,6 +526,7 @@ public Builder mergeFrom(
                                       }
                                       return this;
                                     }
                              +
                                     @java.lang.Override
                                     public final Builder setUnknownFields(
                                         final com.google.protobuf.UnknownFieldSet unknownFields) {
                              @@ -496,12 +539,12 @@ public final Builder mergeUnknownFields(
                                       return super.mergeUnknownFields(unknownFields);
                                     }
                               
                              -
                                     // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.FailurePolicy.Retry)
                                   }
                               
                                   // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.FailurePolicy.Retry)
                                   private static final com.google.cloud.functions.v1.FailurePolicy.Retry DEFAULT_INSTANCE;
                              +
                                   static {
                                     DEFAULT_INSTANCE = new com.google.cloud.functions.v1.FailurePolicy.Retry();
                                   }
                              @@ -510,16 +553,16 @@ public static com.google.cloud.functions.v1.FailurePolicy.Retry getDefaultInstan
                                     return DEFAULT_INSTANCE;
                                   }
                               
                              -    private static final com.google.protobuf.Parser
                              -        PARSER = new com.google.protobuf.AbstractParser() {
                              -      @java.lang.Override
                              -      public Retry parsePartialFrom(
                              -          com.google.protobuf.CodedInputStream input,
                              -          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -          throws com.google.protobuf.InvalidProtocolBufferException {
                              -        return new Retry(input, extensionRegistry);
                              -      }
                              -    };
                              +    private static final com.google.protobuf.Parser PARSER =
                              +        new com.google.protobuf.AbstractParser() {
                              +          @java.lang.Override
                              +          public Retry parsePartialFrom(
                              +              com.google.protobuf.CodedInputStream input,
                              +              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +              throws com.google.protobuf.InvalidProtocolBufferException {
                              +            return new Retry(input, extensionRegistry);
                              +          }
                              +        };
                               
                                   public static com.google.protobuf.Parser parser() {
                                     return PARSER;
                              @@ -534,17 +577,19 @@ public com.google.protobuf.Parser getParserForType() {
                                   public com.google.cloud.functions.v1.FailurePolicy.Retry getDefaultInstanceForType() {
                                     return DEFAULT_INSTANCE;
                                   }
                              -
                                 }
                               
                                 private int actionCase_ = 0;
                                 private java.lang.Object action_;
                              +
                                 public enum ActionCase
                              -      implements com.google.protobuf.Internal.EnumLite,
                              +      implements
                              +          com.google.protobuf.Internal.EnumLite,
                                         com.google.protobuf.AbstractMessage.InternalOneOfEnum {
                                   RETRY(1),
                                   ACTION_NOT_SET(0);
                                   private final int value;
                              +
                                   private ActionCase(int value) {
                                     this.value = value;
                                   }
                              @@ -560,29 +605,34 @@ public static ActionCase valueOf(int value) {
                               
                                   public static ActionCase forNumber(int value) {
                                     switch (value) {
                              -        case 1: return RETRY;
                              -        case 0: return ACTION_NOT_SET;
                              -        default: return null;
                              +        case 1:
                              +          return RETRY;
                              +        case 0:
                              +          return ACTION_NOT_SET;
                              +        default:
                              +          return null;
                                     }
                                   }
                              +
                                   public int getNumber() {
                                     return this.value;
                                   }
                                 };
                               
                              -  public ActionCase
                              -  getActionCase() {
                              -    return ActionCase.forNumber(
                              -        actionCase_);
                              +  public ActionCase getActionCase() {
                              +    return ActionCase.forNumber(actionCase_);
                                 }
                               
                                 public static final int RETRY_FIELD_NUMBER = 1;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * If specified, then the function will be retried in case of a failure.
                                  * 
                              * * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; + * * @return Whether the retry field is set. */ @java.lang.Override @@ -590,21 +640,26 @@ public boolean hasRetry() { return actionCase_ == 1; } /** + * + * *
                                  * If specified, then the function will be retried in case of a failure.
                                  * 
                              * * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; + * * @return The retry. */ @java.lang.Override public com.google.cloud.functions.v1.FailurePolicy.Retry getRetry() { if (actionCase_ == 1) { - return (com.google.cloud.functions.v1.FailurePolicy.Retry) action_; + return (com.google.cloud.functions.v1.FailurePolicy.Retry) action_; } return com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance(); } /** + * + * *
                                  * If specified, then the function will be retried in case of a failure.
                                  * 
                              @@ -614,12 +669,13 @@ public com.google.cloud.functions.v1.FailurePolicy.Retry getRetry() { @java.lang.Override public com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder getRetryOrBuilder() { if (actionCase_ == 1) { - return (com.google.cloud.functions.v1.FailurePolicy.Retry) action_; + return (com.google.cloud.functions.v1.FailurePolicy.Retry) action_; } return com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -631,8 +687,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (actionCase_ == 1) { output.writeMessage(1, (com.google.cloud.functions.v1.FailurePolicy.Retry) action_); } @@ -646,8 +701,9 @@ public int getSerializedSize() { size = 0; if (actionCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.functions.v1.FailurePolicy.Retry) action_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.functions.v1.FailurePolicy.Retry) action_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -657,18 +713,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.FailurePolicy)) { return super.equals(obj); } - com.google.cloud.functions.v1.FailurePolicy other = (com.google.cloud.functions.v1.FailurePolicy) obj; + com.google.cloud.functions.v1.FailurePolicy other = + (com.google.cloud.functions.v1.FailurePolicy) obj; if (!getActionCase().equals(other.getActionCase())) return false; switch (actionCase_) { case 1: - if (!getRetry() - .equals(other.getRetry())) return false; + if (!getRetry().equals(other.getRetry())) return false; break; case 0: default: @@ -697,97 +753,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.FailurePolicy parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.FailurePolicy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.FailurePolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.FailurePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.FailurePolicy 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.v1.FailurePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.FailurePolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v1.FailurePolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.FailurePolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.FailurePolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.FailurePolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.FailurePolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.FailurePolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.FailurePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.FailurePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes the policy in case of function's execution failure.
                                  * If empty, then defaults to ignoring failures (i.e. not retrying them).
                              @@ -795,21 +858,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v1.FailurePolicy}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.FailurePolicy)
                                     com.google.cloud.functions.v1.FailurePolicyOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_FailurePolicy_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v1.FailurePolicy.class, com.google.cloud.functions.v1.FailurePolicy.Builder.class);
                              +              com.google.cloud.functions.v1.FailurePolicy.class,
                              +              com.google.cloud.functions.v1.FailurePolicy.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v1.FailurePolicy.newBuilder()
                              @@ -817,16 +882,15 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              -      }
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -836,9 +900,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_FailurePolicy_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_FailurePolicy_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -857,7 +921,8 @@ public com.google.cloud.functions.v1.FailurePolicy build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v1.FailurePolicy buildPartial() {
                              -      com.google.cloud.functions.v1.FailurePolicy result = new com.google.cloud.functions.v1.FailurePolicy(this);
                              +      com.google.cloud.functions.v1.FailurePolicy result =
                              +          new com.google.cloud.functions.v1.FailurePolicy(this);
                                     if (actionCase_ == 1) {
                                       if (retryBuilder_ == null) {
                                         result.action_ = action_;
                              @@ -874,38 +939,39 @@ public com.google.cloud.functions.v1.FailurePolicy buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v1.FailurePolicy)other);
                              +        return mergeFrom((com.google.cloud.functions.v1.FailurePolicy) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -915,13 +981,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                                   public Builder mergeFrom(com.google.cloud.functions.v1.FailurePolicy other) {
                                     if (other == com.google.cloud.functions.v1.FailurePolicy.getDefaultInstance()) return this;
                                     switch (other.getActionCase()) {
                              -        case RETRY: {
                              -          mergeRetry(other.getRetry());
                              -          break;
                              -        }
                              -        case ACTION_NOT_SET: {
                              -          break;
                              -        }
                              +        case RETRY:
                              +          {
                              +            mergeRetry(other.getRetry());
                              +            break;
                              +          }
                              +        case ACTION_NOT_SET:
                              +          {
                              +            break;
                              +          }
                                     }
                                     this.mergeUnknownFields(other.unknownFields);
                                     onChanged();
                              @@ -951,12 +1019,12 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int actionCase_ = 0;
                                   private java.lang.Object action_;
                              -    public ActionCase
                              -        getActionCase() {
                              -      return ActionCase.forNumber(
                              -          actionCase_);
                              +
                              +    public ActionCase getActionCase() {
                              +      return ActionCase.forNumber(actionCase_);
                                   }
                               
                                   public Builder clearAction() {
                              @@ -966,15 +1034,20 @@ public Builder clearAction() {
                                     return this;
                                   }
                               
                              -
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v1.FailurePolicy.Retry, com.google.cloud.functions.v1.FailurePolicy.Retry.Builder, com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder> retryBuilder_;
                              +            com.google.cloud.functions.v1.FailurePolicy.Retry,
                              +            com.google.cloud.functions.v1.FailurePolicy.Retry.Builder,
                              +            com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder>
                              +        retryBuilder_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If specified, then the function will be retried in case of a failure.
                                    * 
                              * * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; + * * @return Whether the retry field is set. */ @java.lang.Override @@ -982,11 +1055,14 @@ public boolean hasRetry() { return actionCase_ == 1; } /** + * + * *
                                    * If specified, then the function will be retried in case of a failure.
                                    * 
                              * * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; + * * @return The retry. */ @java.lang.Override @@ -1004,6 +1080,8 @@ public com.google.cloud.functions.v1.FailurePolicy.Retry getRetry() { } } /** + * + * *
                                    * If specified, then the function will be retried in case of a failure.
                                    * 
                              @@ -1024,6 +1102,8 @@ public Builder setRetry(com.google.cloud.functions.v1.FailurePolicy.Retry value) return this; } /** + * + * *
                                    * If specified, then the function will be retried in case of a failure.
                                    * 
                              @@ -1042,6 +1122,8 @@ public Builder setRetry( return this; } /** + * + * *
                                    * If specified, then the function will be retried in case of a failure.
                                    * 
                              @@ -1050,10 +1132,13 @@ public Builder setRetry( */ public Builder mergeRetry(com.google.cloud.functions.v1.FailurePolicy.Retry value) { if (retryBuilder_ == null) { - if (actionCase_ == 1 && - action_ != com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance()) { - action_ = com.google.cloud.functions.v1.FailurePolicy.Retry.newBuilder((com.google.cloud.functions.v1.FailurePolicy.Retry) action_) - .mergeFrom(value).buildPartial(); + if (actionCase_ == 1 + && action_ != com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance()) { + action_ = + com.google.cloud.functions.v1.FailurePolicy.Retry.newBuilder( + (com.google.cloud.functions.v1.FailurePolicy.Retry) action_) + .mergeFrom(value) + .buildPartial(); } else { action_ = value; } @@ -1069,6 +1154,8 @@ public Builder mergeRetry(com.google.cloud.functions.v1.FailurePolicy.Retry valu return this; } /** + * + * *
                                    * If specified, then the function will be retried in case of a failure.
                                    * 
                              @@ -1092,6 +1179,8 @@ public Builder clearRetry() { return this; } /** + * + * *
                                    * If specified, then the function will be retried in case of a failure.
                                    * 
                              @@ -1102,6 +1191,8 @@ public com.google.cloud.functions.v1.FailurePolicy.Retry.Builder getRetryBuilder return getRetryFieldBuilder().getBuilder(); } /** + * + * *
                                    * If specified, then the function will be retried in case of a failure.
                                    * 
                              @@ -1120,6 +1211,8 @@ public com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder getRetryOrBuil } } /** + * + * *
                                    * If specified, then the function will be retried in case of a failure.
                                    * 
                              @@ -1127,26 +1220,32 @@ public com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder getRetryOrBuil * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.FailurePolicy.Retry, com.google.cloud.functions.v1.FailurePolicy.Retry.Builder, com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder> + com.google.cloud.functions.v1.FailurePolicy.Retry, + com.google.cloud.functions.v1.FailurePolicy.Retry.Builder, + com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder> getRetryFieldBuilder() { if (retryBuilder_ == null) { if (!(actionCase_ == 1)) { action_ = com.google.cloud.functions.v1.FailurePolicy.Retry.getDefaultInstance(); } - retryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.FailurePolicy.Retry, com.google.cloud.functions.v1.FailurePolicy.Retry.Builder, com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder>( + retryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v1.FailurePolicy.Retry, + com.google.cloud.functions.v1.FailurePolicy.Retry.Builder, + com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder>( (com.google.cloud.functions.v1.FailurePolicy.Retry) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 1; - onChanged();; + onChanged(); + ; return retryBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1156,12 +1255,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.FailurePolicy) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.FailurePolicy) private static final com.google.cloud.functions.v1.FailurePolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.FailurePolicy(); } @@ -1170,16 +1269,16 @@ public static com.google.cloud.functions.v1.FailurePolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FailurePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FailurePolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailurePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FailurePolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1194,6 +1293,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.FailurePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java index c0981d1d..d5beae9d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface FailurePolicyOrBuilder extends +public interface FailurePolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.FailurePolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * If specified, then the function will be retried in case of a failure.
                                  * 
                              * * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; + * * @return Whether the retry field is set. */ boolean hasRetry(); /** + * + * *
                                  * If specified, then the function will be retried in case of a failure.
                                  * 
                              * * .google.cloud.functions.v1.FailurePolicy.Retry retry = 1; + * * @return The retry. */ com.google.cloud.functions.v1.FailurePolicy.Retry getRetry(); /** + * + * *
                                  * If specified, then the function will be retried in case of a failure.
                                  * 
                              diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java new file mode 100644 index 00000000..4606d134 --- /dev/null +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsOperationsProto.java @@ -0,0 +1,87 @@ +/* + * 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/v1/operations.proto + +package com.google.cloud.functions.v1; + +public final class FunctionsOperationsProto { + private FunctionsOperationsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/functions/v1/operations.p" + + "roto\022\031google.cloud.functions.v1\032\031google/" + + "protobuf/any.proto\032\037google/protobuf/time" + + "stamp.proto\"\205\002\n\023OperationMetadataV1\022\016\n\006t" + + "arget\030\001 \001(\t\0226\n\004type\030\002 \001(\0162(.google.cloud" + + ".functions.v1.OperationType\022%\n\007request\030\003" + + " \001(\0132\024.google.protobuf.Any\022\022\n\nversion_id" + + "\030\004 \001(\003\022/\n\013update_time\030\005 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022\020\n\010build_id\030\006 \001(\t\022\024\n\014sou" + + "rce_token\030\007 \001(\t\022\022\n\nbuild_name\030\010 \001(\t*i\n\rO" + + "perationType\022\031\n\025OPERATION_UNSPECIFIED\020\000\022" + + "\023\n\017CREATE_FUNCTION\020\001\022\023\n\017UPDATE_FUNCTION\020" + + "\002\022\023\n\017DELETE_FUNCTION\020\003B\177\n\035com.google.clo" + + "ud.functions.v1B\030FunctionsOperationsProt" + + "oP\001ZBgoogle.golang.org/genproto/googleap" + + "is/cloud/functions/v1;functionsb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor, + new java.lang.String[] { + "Target", + "Type", + "Request", + "VersionId", + "UpdateTime", + "BuildId", + "SourceToken", + "BuildName", + }); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java new file mode 100644 index 00000000..e299f42c --- /dev/null +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java @@ -0,0 +1,585 @@ +/* + * 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/v1/functions.proto + +package com.google.cloud.functions.v1; + +public final class FunctionsProto { + private FunctionsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CloudFunction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_SourceRepository_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_EventTrigger_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_FailurePolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_SecretVolume_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/functions/v1/functions.pr" + + "oto\022\031google.cloud.functions.v1\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032\036google/iam/v1" + + "/iam_policy.proto\032\032google/iam/v1/policy." + + "proto\032#google/longrunning/operations.pro" + + "to\032\036google/protobuf/duration.proto\032 goog" + + "le/protobuf/field_mask.proto\032\037google/pro" + + "tobuf/timestamp.proto\"\347\021\n\rCloudFunction\022" + + "\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\034\n\022so" + + "urce_archive_url\030\003 \001(\tH\000\022H\n\021source_repos" + + "itory\030\004 \001(\0132+.google.cloud.functions.v1." + + "SourceRepositoryH\000\022\033\n\021source_upload_url\030" + + "\020 \001(\tH\000\022@\n\rhttps_trigger\030\005 \001(\0132\'.google." + + "cloud.functions.v1.HttpsTriggerH\001\022@\n\reve" + + "nt_trigger\030\006 \001(\0132\'.google.cloud.function" + + "s.v1.EventTriggerH\001\022C\n\006status\030\007 \001(\0162..go" + + "ogle.cloud.functions.v1.CloudFunctionSta" + + "tusB\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.protobu" + + "f.Duration\022\033\n\023available_memory_mb\030\n \001(\005\022" + + "\035\n\025service_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.CloudF" + + "unction.LabelsEntry\022a\n\025environment_varia" + + "bles\030\021 \003(\0132B.google.cloud.functions.v1.C" + + "loudFunction.EnvironmentVariablesEntry\022l" + + "\n\033build_environment_variables\030\034 \003(\0132G.go" + + "ogle.cloud.functions.v1.CloudFunction.Bu" + + "ildEnvironmentVariablesEntry\022\017\n\007network\030" + + "\022 \001(\t\022\025\n\rmax_instances\030\024 \001(\005\022\025\n\rmin_inst" + + "ances\030 \001(\005\022\025\n\rvpc_connector\030\026 \001(\t\022j\n\035vp" + + "c_connector_egress_settings\030\027 \001(\0162C.goog" + + "le.cloud.functions.v1.CloudFunction.VpcC" + + "onnectorEgressSettings\022R\n\020ingress_settin" + + "gs\030\030 \001(\01628.google.cloud.functions.v1.Clo" + + "udFunction.IngressSettings\022<\n\014kms_key_na" + + "me\030\031 \001(\tB&\372A#\n!cloudkms.googleapis.com/C" + + "ryptoKey\022\031\n\021build_worker_pool\030\032 \001(\t\022\025\n\010b" + + "uild_id\030\033 \001(\tB\003\340A\003\022\027\n\nbuild_name\030! \001(\tB\003" + + "\340A\003\022M\n\034secret_environment_variables\030\035 \003(" + + "\0132\'.google.cloud.functions.v1.SecretEnvV" + + "ar\022?\n\016secret_volumes\030\036 \003(\0132\'.google.clou" + + "d.functions.v1.SecretVolume\022\031\n\014source_to" + + "ken\030\037 \001(\tB\003\340A\004\022J\n\021docker_repository\030\" \001(" + + "\tB/\372A,\n*artifactregistry.googleapis.com/" + + "Repository\022P\n\017docker_registry\030# \001(\01627.go" + + "ogle.cloud.functions.v1.CloudFunction.Do" + + "ckerRegistry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\032;\n\031EnvironmentVariab" + + "lesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\032@\n\036BuildEnvironmentVariablesEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\032VpcConnect" + + "orEgressSettings\022-\n)VPC_CONNECTOR_EGRESS" + + "_SETTINGS_UNSPECIFIED\020\000\022\027\n\023PRIVATE_RANGE" + + "S_ONLY\020\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n\017IngressSett" + + "ings\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\016DockerReg" + + "istry\022\037\n\033DOCKER_REGISTRY_UNSPECIFIED\020\000\022\026" + + "\n\022CONTAINER_REGISTRY\020\001\022\025\n\021ARTIFACT_REGIS" + + "TRY\020\002:n\352Ak\n+cloudfunctions.googleapis.co" + + "m/CloudFunction\022\n\032GenerateD" + + "ownloadUrlRequest\022\014\n\004name\030\001 \001(\t\022\022\n\nversi" + + "on_id\030\002 \001(\004\"3\n\033GenerateDownloadUrlRespon" + + "se\022\024\n\014download_url\030\001 \001(\t*\222\001\n\023CloudFuncti" + + "onStatus\022%\n!CLOUD_FUNCTION_STATUS_UNSPEC" + + "IFIED\020\000\022\n\n\006ACTIVE\020\001\022\013\n\007OFFLINE\020\002\022\026\n\022DEPL" + + "OY_IN_PROGRESS\020\003\022\026\n\022DELETE_IN_PROGRESS\020\004" + + "\022\013\n\007UNKNOWN\020\0052\227\021\n\025CloudFunctionsService\022" + + "\251\001\n\rListFunctions\022/.google.cloud.functio" + + "ns.v1.ListFunctionsRequest\0320.google.clou" + + "d.functions.v1.ListFunctionsResponse\"5\202\323" + + "\344\223\002/\022-/v1/{parent=projects/*/locations/*" + + "}/functions\022\244\001\n\013GetFunction\022-.google.clo" + + "ud.functions.v1.GetFunctionRequest\032(.goo" + + "gle.cloud.functions.v1.CloudFunction\"<\202\323" + + "\344\223\002/\022-/v1/{name=projects/*/locations/*/f" + + "unctions/*}\332A\004name\022\337\001\n\016CreateFunction\0220." + + "google.cloud.functions.v1.CreateFunction" + + "Request\032\035.google.longrunning.Operation\"|" + + "\202\323\344\223\002;\"//v1/{location=projects/*/locatio" + + "ns/*}/functions:\010function\332A\021location,fun" + + "ction\312A$\n\rCloudFunction\022\023OperationMetada" + + "taV1\022\335\001\n\016UpdateFunction\0220.google.cloud.f" + + "unctions.v1.UpdateFunctionRequest\032\035.goog" + + "le.longrunning.Operation\"z\202\323\344\223\002B26/v1/{f" + + "unction.name=projects/*/locations/*/func" + + "tions/*}:\010function\332A\010function\312A$\n\rCloudF" + + "unction\022\023OperationMetadataV1\022\316\001\n\016DeleteF" + + "unction\0220.google.cloud.functions.v1.Dele" + + "teFunctionRequest\032\035.google.longrunning.O" + + "peration\"k\202\323\344\223\002/*-/v1/{name=projects/*/l" + + "ocations/*/functions/*}\332A\004name\312A,\n\025googl" + + "e.protobuf.Empty\022\023OperationMetadataV1\022\272\001" + + "\n\014CallFunction\022..google.cloud.functions." + + "v1.CallFunctionRequest\032/.google.cloud.fu" + + "nctions.v1.CallFunctionResponse\"I\202\323\344\223\0027\"" + + "2/v1/{name=projects/*/locations/*/functi" + + "ons/*}:call:\001*\332A\tname,data\022\312\001\n\021GenerateU" + + "ploadUrl\0223.google.cloud.functions.v1.Gen" + + "erateUploadUrlRequest\0324.google.cloud.fun" + + "ctions.v1.GenerateUploadUrlResponse\"J\202\323\344" + + "\223\002D\"?/v1/{parent=projects/*/locations/*}" + + "/functions:generateUploadUrl:\001*\022\322\001\n\023Gene" + + "rateDownloadUrl\0225.google.cloud.functions" + + ".v1.GenerateDownloadUrlRequest\0326.google." + + "cloud.functions.v1.GenerateDownloadUrlRe" + + "sponse\"L\202\323\344\223\002F\"A/v1/{name=projects/*/loc" + + "ations/*/functions/*}:generateDownloadUr" + + "l:\001*\022\224\001\n\014SetIamPolicy\022\".google.iam.v1.Se" + + "tIamPolicyRequest\032\025.google.iam.v1.Policy" + + "\"I\202\323\344\223\002C\">/v1/{resource=projects/*/locat" + + "ions/*/functions/*}:setIamPolicy:\001*\022\221\001\n\014" + + "GetIamPolicy\022\".google.iam.v1.GetIamPolic" + + "yRequest\032\025.google.iam.v1.Policy\"F\202\323\344\223\002@\022" + + ">/v1/{resource=projects/*/locations/*/fu" + + "nctions/*}:getIamPolicy\022\272\001\n\022TestIamPermi" + + "ssions\022(.google.iam.v1.TestIamPermission" + + "sRequest\032).google.iam.v1.TestIamPermissi" + + "onsResponse\"O\202\323\344\223\002I\"D/v1/{resource=proje" + + "cts/*/locations/*/functions/*}:testIamPe" + + "rmissions:\001*\032Q\312A\035cloudfunctions.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\350\002\n\035com.google.cloud.fun" + + "ctions.v1B\016FunctionsProtoP\001ZBgoogle.gola" + + "ng.org/genproto/googleapis/cloud/functio" + + "ns/v1;functions\242\002\003GCF\352Ao\n*artifactregist" + + "ry.googleapis.com/Repository\022Aprojects/{" + + "project}/locations/{location}/repositori" + + "es/{repository}\352Ax\n!cloudkms.googleapis." + + "com/CryptoKey\022Sprojects/{project}/locati" + + "ons/{location}/keyRings/{key_ring}/crypt" + + "oKeys/{crypto_key}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_functions_v1_CloudFunction_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_functions_v1_CloudFunction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CloudFunction_descriptor, + new java.lang.String[] { + "Name", + "Description", + "SourceArchiveUrl", + "SourceRepository", + "SourceUploadUrl", + "HttpsTrigger", + "EventTrigger", + "Status", + "EntryPoint", + "Runtime", + "Timeout", + "AvailableMemoryMb", + "ServiceAccountEmail", + "UpdateTime", + "VersionId", + "Labels", + "EnvironmentVariables", + "BuildEnvironmentVariables", + "Network", + "MaxInstances", + "MinInstances", + "VpcConnector", + "VpcConnectorEgressSettings", + "IngressSettings", + "KmsKeyName", + "BuildWorkerPool", + "BuildId", + "BuildName", + "SecretEnvironmentVariables", + "SecretVolumes", + "SourceToken", + "DockerRepository", + "DockerRegistry", + "SourceCode", + "Trigger", + }); + internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor = + internal_static_google_cloud_functions_v1_CloudFunction_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CloudFunction_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v1_CloudFunction_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CloudFunction_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v1_CloudFunction_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CloudFunction_BuildEnvironmentVariablesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_functions_v1_SourceRepository_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_SourceRepository_descriptor, + new java.lang.String[] { + "Url", "DeployedUrl", + }); + internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor, + new java.lang.String[] { + "Url", "SecurityLevel", + }); + internal_static_google_cloud_functions_v1_EventTrigger_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_functions_v1_EventTrigger_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_EventTrigger_descriptor, + new java.lang.String[] { + "EventType", "Resource", "Service", "FailurePolicy", + }); + internal_static_google_cloud_functions_v1_FailurePolicy_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_functions_v1_FailurePolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_FailurePolicy_descriptor, + new java.lang.String[] { + "Retry", "Action", + }); + internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor = + internal_static_google_cloud_functions_v1_FailurePolicy_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v1_FailurePolicy_Retry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor, + new java.lang.String[] { + "Key", "ProjectId", "Secret", "Version", + }); + internal_static_google_cloud_functions_v1_SecretVolume_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_SecretVolume_descriptor, + new java.lang.String[] { + "MountPath", "ProjectId", "Secret", "Versions", + }); + internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor = + internal_static_google_cloud_functions_v1_SecretVolume_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor, + new java.lang.String[] { + "Version", "Path", + }); + internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_functions_v1_CreateFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor, + new java.lang.String[] { + "Location", "Function", + }); + internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor, + new java.lang.String[] { + "Function", "UpdateMask", + }); + internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor, + new java.lang.String[] { + "Functions", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_functions_v1_DeleteFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_functions_v1_CallFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor, + new java.lang.String[] { + "Name", "Data", + }); + internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_functions_v1_CallFunctionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor, + new java.lang.String[] { + "ExecutionId", "Result", "Error", + }); + internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor, + new java.lang.String[] { + "Parent", "KmsKeyName", + }); + internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor, + new java.lang.String[] { + "UploadUrl", + }); + internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor, + new java.lang.String[] { + "Name", "VersionId", + }); + internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor, + new java.lang.String[] { + "DownloadUrl", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java index 90909e8e..6d2617ce 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java @@ -1,40 +1,57 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Request of `GenerateDownloadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.GenerateDownloadUrlRequest} */ -public final class GenerateDownloadUrlRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateDownloadUrlRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.GenerateDownloadUrlRequest) GenerateDownloadUrlRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlRequest.newBuilder() to construct. private GenerateDownloadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateDownloadUrlRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateDownloadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,24 +70,25 @@ private GenerateDownloadUrlRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - versionId_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + case 16: + { + versionId_ = input.readUInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -78,35 +96,40 @@ private GenerateDownloadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v1.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v1.GenerateDownloadUrlRequest.class, + com.google.cloud.functions.v1.GenerateDownloadUrlRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
                                  * The name of function for which source code Google Cloud Storage signed
                                  * URL should be generated.
                                  * 
                              * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -115,30 +138,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * The name of function for which source code Google Cloud Storage signed
                                  * URL should be generated.
                                  * 
                              * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -149,12 +172,15 @@ public java.lang.String getName() { public static final int VERSION_ID_FIELD_NUMBER = 2; private long versionId_; /** + * + * *
                                  * The optional version of function. If not set, default, current version
                                  * is used.
                                  * 
                              * * uint64 version_id = 2; + * * @return The versionId. */ @java.lang.Override @@ -163,6 +189,7 @@ public long getVersionId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -195,8 +221,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (versionId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, versionId_); + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, versionId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -206,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.GenerateDownloadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.GenerateDownloadUrlRequest other = (com.google.cloud.functions.v1.GenerateDownloadUrlRequest) obj; + com.google.cloud.functions.v1.GenerateDownloadUrlRequest other = + (com.google.cloud.functions.v1.GenerateDownloadUrlRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getVersionId() - != other.getVersionId()) return false; + if (!getName().equals(other.getName())) return false; + if (getVersionId() != other.getVersionId()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,125 +255,134 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersionId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersionId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest 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.v1.GenerateDownloadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.GenerateDownloadUrlRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v1.GenerateDownloadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request of `GenerateDownloadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.GenerateDownloadUrlRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.GenerateDownloadUrlRequest) com.google.cloud.functions.v1.GenerateDownloadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v1.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v1.GenerateDownloadUrlRequest.class, + com.google.cloud.functions.v1.GenerateDownloadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.GenerateDownloadUrlRequest.newBuilder() @@ -357,16 +390,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override @@ -399,7 +431,8 @@ public com.google.cloud.functions.v1.GenerateDownloadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v1.GenerateDownloadUrlRequest buildPartial() { - com.google.cloud.functions.v1.GenerateDownloadUrlRequest result = new com.google.cloud.functions.v1.GenerateDownloadUrlRequest(this); + com.google.cloud.functions.v1.GenerateDownloadUrlRequest result = + new com.google.cloud.functions.v1.GenerateDownloadUrlRequest(this); result.name_ = name_; result.versionId_ = versionId_; onBuilt(); @@ -410,38 +443,39 @@ public com.google.cloud.functions.v1.GenerateDownloadUrlRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.GenerateDownloadUrlRequest)other); + return mergeFrom((com.google.cloud.functions.v1.GenerateDownloadUrlRequest) other); } else { super.mergeFrom(other); return this; @@ -449,7 +483,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.GenerateDownloadUrlRequest other) { - if (other == com.google.cloud.functions.v1.GenerateDownloadUrlRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.GenerateDownloadUrlRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,7 +511,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v1.GenerateDownloadUrlRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v1.GenerateDownloadUrlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,19 +524,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                                    * The name of function for which source code Google Cloud Storage signed
                                    * URL should be generated.
                                    * 
                              * * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -509,21 +547,22 @@ public java.lang.String getName() { } } /** + * + * *
                                    * The name of function for which source code Google Cloud Storage signed
                                    * URL should be generated.
                                    * 
                              * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -531,70 +570,80 @@ public java.lang.String getName() { } } /** + * + * *
                                    * The name of function for which source code Google Cloud Storage signed
                                    * URL should be generated.
                                    * 
                              * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * The name of function for which source code Google Cloud Storage signed
                                    * URL should be generated.
                                    * 
                              * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * The name of function for which source code Google Cloud Storage signed
                                    * URL should be generated.
                                    * 
                              * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private long versionId_ ; + private long versionId_; /** + * + * *
                                    * The optional version of function. If not set, default, current version
                                    * is used.
                                    * 
                              * * uint64 version_id = 2; + * * @return The versionId. */ @java.lang.Override @@ -602,39 +651,45 @@ public long getVersionId() { return versionId_; } /** + * + * *
                                    * The optional version of function. If not set, default, current version
                                    * is used.
                                    * 
                              * * uint64 version_id = 2; + * * @param value The versionId to set. * @return This builder for chaining. */ public Builder setVersionId(long value) { - + versionId_ = value; onChanged(); return this; } /** + * + * *
                                    * The optional version of function. If not set, default, current version
                                    * is used.
                                    * 
                              * * uint64 version_id = 2; + * * @return This builder for chaining. */ public Builder clearVersionId() { - + versionId_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -644,12 +699,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.GenerateDownloadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.GenerateDownloadUrlRequest) private static final com.google.cloud.functions.v1.GenerateDownloadUrlRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.GenerateDownloadUrlRequest(); } @@ -658,16 +713,16 @@ public static com.google.cloud.functions.v1.GenerateDownloadUrlRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -682,6 +737,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.functions.v1.GenerateDownloadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java index af9d5f5c..280969eb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequestOrBuilder.java @@ -1,41 +1,65 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface GenerateDownloadUrlRequestOrBuilder extends +public interface GenerateDownloadUrlRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.GenerateDownloadUrlRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The name of function for which source code Google Cloud Storage signed
                                  * URL should be generated.
                                  * 
                              * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
                                  * The name of function for which source code Google Cloud Storage signed
                                  * URL should be generated.
                                  * 
                              * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                                  * The optional version of function. If not set, default, current version
                                  * is used.
                                  * 
                              * * uint64 version_id = 2; + * * @return The versionId. */ long getVersionId(); diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java index 62510b71..81310f6d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java @@ -1,40 +1,57 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Response of `GenerateDownloadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.GenerateDownloadUrlResponse} */ -public final class GenerateDownloadUrlResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateDownloadUrlResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.GenerateDownloadUrlResponse) GenerateDownloadUrlResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlResponse.newBuilder() to construct. private GenerateDownloadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateDownloadUrlResponse() { downloadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateDownloadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GenerateDownloadUrlResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - downloadUrl_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + downloadUrl_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private GenerateDownloadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v1.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v1.GenerateDownloadUrlResponse.class, + com.google.cloud.functions.v1.GenerateDownloadUrlResponse.Builder.class); } public static final int DOWNLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object downloadUrl_; /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The downloadUrl. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getDownloadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; } } /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The bytes for downloadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getDownloadUrlBytes() { + public com.google.protobuf.ByteString getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getDownloadUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(downloadUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, downloadUrl_); } @@ -178,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.GenerateDownloadUrlResponse)) { return super.equals(obj); } - com.google.cloud.functions.v1.GenerateDownloadUrlResponse other = (com.google.cloud.functions.v1.GenerateDownloadUrlResponse) obj; + com.google.cloud.functions.v1.GenerateDownloadUrlResponse other = + (com.google.cloud.functions.v1.GenerateDownloadUrlResponse) obj; - if (!getDownloadUrl() - .equals(other.getDownloadUrl())) return false; + if (!getDownloadUrl().equals(other.getDownloadUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +229,127 @@ public int hashCode() { } public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse 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.v1.GenerateDownloadUrlResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.GenerateDownloadUrlResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v1.GenerateDownloadUrlResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Response of `GenerateDownloadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.GenerateDownloadUrlResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.GenerateDownloadUrlResponse) com.google.cloud.functions.v1.GenerateDownloadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v1.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v1.GenerateDownloadUrlResponse.class, + com.google.cloud.functions.v1.GenerateDownloadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v1.GenerateDownloadUrlResponse.newBuilder() @@ -324,16 +357,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override @@ -364,7 +396,8 @@ public com.google.cloud.functions.v1.GenerateDownloadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v1.GenerateDownloadUrlResponse buildPartial() { - com.google.cloud.functions.v1.GenerateDownloadUrlResponse result = new com.google.cloud.functions.v1.GenerateDownloadUrlResponse(this); + com.google.cloud.functions.v1.GenerateDownloadUrlResponse result = + new com.google.cloud.functions.v1.GenerateDownloadUrlResponse(this); result.downloadUrl_ = downloadUrl_; onBuilt(); return result; @@ -374,38 +407,39 @@ public com.google.cloud.functions.v1.GenerateDownloadUrlResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.GenerateDownloadUrlResponse)other); + return mergeFrom((com.google.cloud.functions.v1.GenerateDownloadUrlResponse) other); } else { super.mergeFrom(other); return this; @@ -413,7 +447,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.GenerateDownloadUrlResponse other) { - if (other == com.google.cloud.functions.v1.GenerateDownloadUrlResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.GenerateDownloadUrlResponse.getDefaultInstance()) + return this; if (!other.getDownloadUrl().isEmpty()) { downloadUrl_ = other.downloadUrl_; onChanged(); @@ -437,7 +472,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v1.GenerateDownloadUrlResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v1.GenerateDownloadUrlResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +485,21 @@ public Builder mergeFrom( private java.lang.Object downloadUrl_ = ""; /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @return The downloadUrl. */ public java.lang.String getDownloadUrl() { java.lang.Object ref = downloadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; @@ -470,21 +508,22 @@ public java.lang.String getDownloadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @return The bytes for downloadUrl. */ - public com.google.protobuf.ByteString - getDownloadUrlBytes() { + public com.google.protobuf.ByteString getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -492,64 +531,71 @@ public java.lang.String getDownloadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @param value The downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrl( - java.lang.String value) { + public Builder setDownloadUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + downloadUrl_ = value; onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @return This builder for chaining. */ public Builder clearDownloadUrl() { - + downloadUrl_ = getDefaultInstance().getDownloadUrl(); onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @param value The bytes for downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setDownloadUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + downloadUrl_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +605,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.GenerateDownloadUrlResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.GenerateDownloadUrlResponse) private static final com.google.cloud.functions.v1.GenerateDownloadUrlResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.GenerateDownloadUrlResponse(); } @@ -573,16 +619,16 @@ public static com.google.cloud.functions.v1.GenerateDownloadUrlResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +643,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.functions.v1.GenerateDownloadUrlResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java similarity index 51% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java index 8fdf0708..3adfa02f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponseOrBuilder.java @@ -1,31 +1,52 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface GenerateDownloadUrlResponseOrBuilder extends +public interface GenerateDownloadUrlResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.GenerateDownloadUrlResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The downloadUrl. */ java.lang.String getDownloadUrl(); /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The bytes for downloadUrl. */ - com.google.protobuf.ByteString - getDownloadUrlBytes(); + com.google.protobuf.ByteString getDownloadUrlBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java index 706d8ba7..acb370b5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java @@ -1,24 +1,42 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Request of `GenerateSourceUploadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.GenerateUploadUrlRequest} */ -public final class GenerateUploadUrlRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateUploadUrlRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.GenerateUploadUrlRequest) GenerateUploadUrlRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateUploadUrlRequest.newBuilder() to construct. private GenerateUploadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateUploadUrlRequest() { parent_ = ""; kmsKeyName_ = ""; @@ -26,16 +44,15 @@ private GenerateUploadUrlRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateUploadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateUploadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private GenerateUploadUrlRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - kmsKeyName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + kmsKeyName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,35 +99,40 @@ private GenerateUploadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateUploadUrlRequest.class, com.google.cloud.functions.v1.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v1.GenerateUploadUrlRequest.class, + com.google.cloud.functions.v1.GenerateUploadUrlRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * The project and location in which the Google Cloud Storage signed URL
                                  * should be generated, specified in the format `projects/*/locations/*`.
                                  * 
                              * * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -117,30 +141,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * The project and location in which the Google Cloud Storage signed URL
                                  * should be generated, specified in the format `projects/*/locations/*`.
                                  * 
                              * * string parent = 1; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -151,6 +175,8 @@ public java.lang.String getParent() { public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object kmsKeyName_; /** + * + * *
                                  * Resource name of a KMS crypto key (managed by the user) used to
                                  * encrypt/decrypt function source code objects in staging Cloud Storage
                              @@ -170,6 +196,7 @@ public java.lang.String getParent() {
                                  * 
                              * * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyName. */ @java.lang.Override @@ -178,14 +205,15 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** + * + * *
                                  * Resource name of a KMS crypto key (managed by the user) used to
                                  * encrypt/decrypt function source code objects in staging Cloud Storage
                              @@ -205,16 +233,15 @@ public java.lang.String getKmsKeyName() {
                                  * 
                              * * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -223,6 +250,7 @@ public java.lang.String getKmsKeyName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -265,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.GenerateUploadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.GenerateUploadUrlRequest other = (com.google.cloud.functions.v1.GenerateUploadUrlRequest) obj; + com.google.cloud.functions.v1.GenerateUploadUrlRequest other = + (com.google.cloud.functions.v1.GenerateUploadUrlRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -297,117 +323,127 @@ public int hashCode() { } public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GenerateUploadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GenerateUploadUrlRequest 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.v1.GenerateUploadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GenerateUploadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.GenerateUploadUrlRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v1.GenerateUploadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request of `GenerateSourceUploadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.GenerateUploadUrlRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.GenerateUploadUrlRequest) com.google.cloud.functions.v1.GenerateUploadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateUploadUrlRequest.class, com.google.cloud.functions.v1.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v1.GenerateUploadUrlRequest.class, + com.google.cloud.functions.v1.GenerateUploadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.GenerateUploadUrlRequest.newBuilder() @@ -415,16 +451,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -436,9 +471,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor; } @java.lang.Override @@ -457,7 +492,8 @@ public com.google.cloud.functions.v1.GenerateUploadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v1.GenerateUploadUrlRequest buildPartial() { - com.google.cloud.functions.v1.GenerateUploadUrlRequest result = new com.google.cloud.functions.v1.GenerateUploadUrlRequest(this); + com.google.cloud.functions.v1.GenerateUploadUrlRequest result = + new com.google.cloud.functions.v1.GenerateUploadUrlRequest(this); result.parent_ = parent_; result.kmsKeyName_ = kmsKeyName_; onBuilt(); @@ -468,38 +504,39 @@ public com.google.cloud.functions.v1.GenerateUploadUrlRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.GenerateUploadUrlRequest)other); + return mergeFrom((com.google.cloud.functions.v1.GenerateUploadUrlRequest) other); } else { super.mergeFrom(other); return this; @@ -507,7 +544,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.GenerateUploadUrlRequest other) { - if (other == com.google.cloud.functions.v1.GenerateUploadUrlRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.GenerateUploadUrlRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -535,7 +573,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v1.GenerateUploadUrlRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v1.GenerateUploadUrlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -547,19 +586,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * The project and location in which the Google Cloud Storage signed URL
                                    * should be generated, specified in the format `projects/*/locations/*`.
                                    * 
                              * * string parent = 1; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -568,21 +609,22 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * The project and location in which the Google Cloud Storage signed URL
                                    * should be generated, specified in the format `projects/*/locations/*`.
                                    * 
                              * * string parent = 1; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -590,57 +632,64 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * The project and location in which the Google Cloud Storage signed URL
                                    * should be generated, specified in the format `projects/*/locations/*`.
                                    * 
                              * * string parent = 1; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * The project and location in which the Google Cloud Storage signed URL
                                    * should be generated, specified in the format `projects/*/locations/*`.
                                    * 
                              * * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * The project and location in which the Google Cloud Storage signed URL
                                    * should be generated, specified in the format `projects/*/locations/*`.
                                    * 
                              * * string parent = 1; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -648,6 +697,8 @@ public Builder setParentBytes( private java.lang.Object kmsKeyName_ = ""; /** + * + * *
                                    * Resource name of a KMS crypto key (managed by the user) used to
                                    * encrypt/decrypt function source code objects in staging Cloud Storage
                              @@ -667,13 +718,13 @@ public Builder setParentBytes(
                                    * 
                              * * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -682,6 +733,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
                                    * Resource name of a KMS crypto key (managed by the user) used to
                                    * encrypt/decrypt function source code objects in staging Cloud Storage
                              @@ -701,15 +754,14 @@ public java.lang.String getKmsKeyName() {
                                    * 
                              * * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -717,6 +769,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
                                    * Resource name of a KMS crypto key (managed by the user) used to
                                    * encrypt/decrypt function source code objects in staging Cloud Storage
                              @@ -736,20 +790,22 @@ public java.lang.String getKmsKeyName() {
                                    * 
                              * * 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) { + public Builder setKmsKeyName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** + * + * *
                                    * Resource name of a KMS crypto key (managed by the user) used to
                                    * encrypt/decrypt function source code objects in staging Cloud Storage
                              @@ -769,15 +825,18 @@ public Builder setKmsKeyName(
                                    * 
                              * * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** + * + * *
                                    * Resource name of a KMS crypto key (managed by the user) used to
                                    * encrypt/decrypt function source code objects in staging Cloud Storage
                              @@ -797,23 +856,23 @@ public Builder clearKmsKeyName() {
                                    * 
                              * * 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) { + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -823,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.GenerateUploadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.GenerateUploadUrlRequest) private static final com.google.cloud.functions.v1.GenerateUploadUrlRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.GenerateUploadUrlRequest(); } @@ -837,16 +896,16 @@ public static com.google.cloud.functions.v1.GenerateUploadUrlRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateUploadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateUploadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateUploadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateUploadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -861,6 +920,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.GenerateUploadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java index 1ec1384a..3de6432b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface GenerateUploadUrlRequestOrBuilder extends +public interface GenerateUploadUrlRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.GenerateUploadUrlRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The project and location in which the Google Cloud Storage signed URL
                                  * should be generated, specified in the format `projects/*/locations/*`.
                                  * 
                              * * string parent = 1; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
                                  * The project and location in which the Google Cloud Storage signed URL
                                  * should be generated, specified in the format `projects/*/locations/*`.
                                  * 
                              * * string parent = 1; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
                                  * Resource name of a KMS crypto key (managed by the user) used to
                                  * encrypt/decrypt function source code objects in staging Cloud Storage
                              @@ -49,10 +72,13 @@ public interface GenerateUploadUrlRequestOrBuilder extends
                                  * 
                              * * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
                                  * Resource name of a KMS crypto key (managed by the user) used to
                                  * encrypt/decrypt function source code objects in staging Cloud Storage
                              @@ -72,8 +98,8 @@ public interface GenerateUploadUrlRequestOrBuilder extends
                                  * 
                              * * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java index 0cab847a..cd64f9e9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java @@ -1,40 +1,57 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Response of `GenerateSourceUploadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.GenerateUploadUrlResponse} */ -public final class GenerateUploadUrlResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateUploadUrlResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.GenerateUploadUrlResponse) GenerateUploadUrlResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateUploadUrlResponse.newBuilder() to construct. private GenerateUploadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateUploadUrlResponse() { uploadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateUploadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateUploadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GenerateUploadUrlResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uploadUrl_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uploadUrl_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GenerateUploadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateUploadUrlResponse.class, com.google.cloud.functions.v1.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v1.GenerateUploadUrlResponse.class, + com.google.cloud.functions.v1.GenerateUploadUrlResponse.Builder.class); } public static final int UPLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object uploadUrl_; /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -103,6 +125,7 @@ private GenerateUploadUrlResponse(
                                  * 
                              * * string upload_url = 1; + * * @return The uploadUrl. */ @java.lang.Override @@ -111,14 +134,15 @@ public java.lang.String getUploadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; } } /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -126,16 +150,15 @@ public java.lang.String getUploadUrl() {
                                  * 
                              * * string upload_url = 1; + * * @return The bytes for uploadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getUploadUrlBytes() { + public com.google.protobuf.ByteString getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -144,6 +167,7 @@ public java.lang.String getUploadUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadUrl_); } @@ -180,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.GenerateUploadUrlResponse)) { return super.equals(obj); } - com.google.cloud.functions.v1.GenerateUploadUrlResponse other = (com.google.cloud.functions.v1.GenerateUploadUrlResponse) obj; + com.google.cloud.functions.v1.GenerateUploadUrlResponse other = + (com.google.cloud.functions.v1.GenerateUploadUrlResponse) obj; - if (!getUploadUrl() - .equals(other.getUploadUrl())) return false; + if (!getUploadUrl().equals(other.getUploadUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GenerateUploadUrlResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GenerateUploadUrlResponse 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.v1.GenerateUploadUrlResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GenerateUploadUrlResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.GenerateUploadUrlResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v1.GenerateUploadUrlResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Response of `GenerateSourceUploadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.GenerateUploadUrlResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.GenerateUploadUrlResponse) com.google.cloud.functions.v1.GenerateUploadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GenerateUploadUrlResponse.class, com.google.cloud.functions.v1.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v1.GenerateUploadUrlResponse.class, + com.google.cloud.functions.v1.GenerateUploadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v1.GenerateUploadUrlResponse.newBuilder() @@ -326,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor; } @java.lang.Override @@ -366,7 +398,8 @@ public com.google.cloud.functions.v1.GenerateUploadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v1.GenerateUploadUrlResponse buildPartial() { - com.google.cloud.functions.v1.GenerateUploadUrlResponse result = new com.google.cloud.functions.v1.GenerateUploadUrlResponse(this); + com.google.cloud.functions.v1.GenerateUploadUrlResponse result = + new com.google.cloud.functions.v1.GenerateUploadUrlResponse(this); result.uploadUrl_ = uploadUrl_; onBuilt(); return result; @@ -376,38 +409,39 @@ public com.google.cloud.functions.v1.GenerateUploadUrlResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.GenerateUploadUrlResponse)other); + return mergeFrom((com.google.cloud.functions.v1.GenerateUploadUrlResponse) other); } else { super.mergeFrom(other); return this; @@ -415,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.GenerateUploadUrlResponse other) { - if (other == com.google.cloud.functions.v1.GenerateUploadUrlResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.GenerateUploadUrlResponse.getDefaultInstance()) + return this; if (!other.getUploadUrl().isEmpty()) { uploadUrl_ = other.uploadUrl_; onChanged(); @@ -439,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v1.GenerateUploadUrlResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v1.GenerateUploadUrlResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,6 +487,8 @@ public Builder mergeFrom( private java.lang.Object uploadUrl_ = ""; /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -458,13 +496,13 @@ public Builder mergeFrom(
                                    * 
                              * * string upload_url = 1; + * * @return The uploadUrl. */ public java.lang.String getUploadUrl() { java.lang.Object ref = uploadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; @@ -473,6 +511,8 @@ public java.lang.String getUploadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -480,15 +520,14 @@ public java.lang.String getUploadUrl() {
                                    * 
                              * * string upload_url = 1; + * * @return The bytes for uploadUrl. */ - public com.google.protobuf.ByteString - getUploadUrlBytes() { + public com.google.protobuf.ByteString getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -496,6 +535,8 @@ public java.lang.String getUploadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -503,20 +544,22 @@ public java.lang.String getUploadUrl() {
                                    * 
                              * * string upload_url = 1; + * * @param value The uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrl( - java.lang.String value) { + public Builder setUploadUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uploadUrl_ = value; onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -524,15 +567,18 @@ public Builder setUploadUrl(
                                    * 
                              * * string upload_url = 1; + * * @return This builder for chaining. */ public Builder clearUploadUrl() { - + uploadUrl_ = getDefaultInstance().getUploadUrl(); onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -540,23 +586,23 @@ public Builder clearUploadUrl() {
                                    * 
                              * * string upload_url = 1; + * * @param value The bytes for uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uploadUrl_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.GenerateUploadUrlResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.GenerateUploadUrlResponse) private static final com.google.cloud.functions.v1.GenerateUploadUrlResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.GenerateUploadUrlResponse(); } @@ -580,16 +626,16 @@ public static com.google.cloud.functions.v1.GenerateUploadUrlResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateUploadUrlResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateUploadUrlResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateUploadUrlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateUploadUrlResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.functions.v1.GenerateUploadUrlResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java index 723f04fe..221db44e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface GenerateUploadUrlResponseOrBuilder extends +public interface GenerateUploadUrlResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.GenerateUploadUrlResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -15,10 +33,13 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * string upload_url = 1; + * * @return The uploadUrl. */ java.lang.String getUploadUrl(); /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -26,8 +47,8 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * string upload_url = 1; + * * @return The bytes for uploadUrl. */ - com.google.protobuf.ByteString - getUploadUrlBytes(); + com.google.protobuf.ByteString getUploadUrlBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java index dc8c18f0..bb09005c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java @@ -1,40 +1,57 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Request for the `GetFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.GetFunctionRequest} */ -public final class GetFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.GetFunctionRequest) GetFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetFunctionRequest.newBuilder() to construct. private GetFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetFunctionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GetFunctionRequest.class, com.google.cloud.functions.v1.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v1.GetFunctionRequest.class, + com.google.cloud.functions.v1.GetFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
                                  * Required. The name of the function which details should be obtained.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -109,29 +134,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * Required. The name of the function which details should be obtained.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.GetFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.GetFunctionRequest other = (com.google.cloud.functions.v1.GetFunctionRequest) obj; + com.google.cloud.functions.v1.GetFunctionRequest other = + (com.google.cloud.functions.v1.GetFunctionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +230,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.GetFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GetFunctionRequest 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.v1.GetFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.GetFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.GetFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GetFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.GetFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.GetFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `GetFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.GetFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.GetFunctionRequest) com.google.cloud.functions.v1.GetFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.GetFunctionRequest.class, com.google.cloud.functions.v1.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v1.GetFunctionRequest.class, + com.google.cloud.functions.v1.GetFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.GetFunctionRequest.newBuilder() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor; } @java.lang.Override @@ -362,7 +397,8 @@ public com.google.cloud.functions.v1.GetFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v1.GetFunctionRequest buildPartial() { - com.google.cloud.functions.v1.GetFunctionRequest result = new com.google.cloud.functions.v1.GetFunctionRequest(this); + com.google.cloud.functions.v1.GetFunctionRequest result = + new com.google.cloud.functions.v1.GetFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.cloud.functions.v1.GetFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.GetFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v1.GetFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.GetFunctionRequest other) { - if (other == com.google.cloud.functions.v1.GetFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.GetFunctionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -447,18 +485,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -467,20 +509,23 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -488,61 +533,74 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +610,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.GetFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.GetFunctionRequest) private static final com.google.cloud.functions.v1.GetFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.GetFunctionRequest(); } @@ -566,16 +624,16 @@ public static com.google.cloud.functions.v1.GetFunctionRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.GetFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java new file mode 100644 index 00000000..8993bd6e --- /dev/null +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/v1/functions.proto + +package com.google.cloud.functions.v1; + +public interface GetFunctionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.GetFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * Required. The name of the function which details should be obtained.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                              +   * Required. The name of the function which details should be obtained.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java index 5f3ef22c..523b34a7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java @@ -1,24 +1,42 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Describes HttpsTrigger, could be used to connect web hooks to function.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.HttpsTrigger} */ -public final class HttpsTrigger extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HttpsTrigger extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.HttpsTrigger) HttpsTriggerOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HttpsTrigger.newBuilder() to construct. private HttpsTrigger(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HttpsTrigger() { url_ = ""; securityLevel_ = 0; @@ -26,16 +44,15 @@ private HttpsTrigger() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HttpsTrigger(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HttpsTrigger( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private HttpsTrigger( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - url_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + url_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - securityLevel_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + securityLevel_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,27 +99,31 @@ private HttpsTrigger( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.HttpsTrigger.class, com.google.cloud.functions.v1.HttpsTrigger.Builder.class); + com.google.cloud.functions.v1.HttpsTrigger.class, + com.google.cloud.functions.v1.HttpsTrigger.Builder.class); } /** + * + * *
                                  * Available security level settings.
                                  * This controls the methods to enforce security (HTTPS) on a URL.
                              @@ -109,9 +132,10 @@ private HttpsTrigger(
                                  *
                                  * Protobuf enum {@code google.cloud.functions.v1.HttpsTrigger.SecurityLevel}
                                  */
                              -  public enum SecurityLevel
                              -      implements com.google.protobuf.ProtocolMessageEnum {
                              +  public enum SecurityLevel implements com.google.protobuf.ProtocolMessageEnum {
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -120,6 +144,8 @@ public enum SecurityLevel */ 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
                              @@ -130,6 +156,8 @@ public enum SecurityLevel
                                    */
                                   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
                              @@ -143,6 +171,8 @@ public enum SecurityLevel
                                   ;
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -151,6 +181,8 @@ public enum SecurityLevel */ 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
                              @@ -161,6 +193,8 @@ public enum SecurityLevel
                                    */
                                   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
                              @@ -171,7 +205,6 @@ public enum SecurityLevel
                                    */
                                   public static final int SECURE_OPTIONAL_VALUE = 2;
                               
                              -
                                   public final int getNumber() {
                                     if (this == UNRECOGNIZED) {
                                       throw new java.lang.IllegalArgumentException(
                              @@ -196,49 +229,49 @@ public static SecurityLevel valueOf(int 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;
                              +        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() {
                              +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
                                     return internalValueMap;
                                   }
                              -    private static final com.google.protobuf.Internal.EnumLiteMap<
                              -        SecurityLevel> internalValueMap =
                              -          new com.google.protobuf.Internal.EnumLiteMap() {
                              -            public SecurityLevel findValueByNumber(int number) {
                              -              return SecurityLevel.forNumber(number);
                              -            }
                              -          };
                               
                              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
                              -        getValueDescriptor() {
                              +    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() {
                              +
                              +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                                     return getDescriptor();
                                   }
                              -    public static final com.google.protobuf.Descriptors.EnumDescriptor
                              -        getDescriptor() {
                              +
                              +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                                     return com.google.cloud.functions.v1.HttpsTrigger.getDescriptor().getEnumTypes().get(0);
                                   }
                               
                                   private static final SecurityLevel[] VALUES = values();
                               
                              -    public static SecurityLevel valueOf(
                              -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                              +    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.");
                              +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                                     }
                                     if (desc.getIndex() == -1) {
                                       return UNRECOGNIZED;
                              @@ -258,11 +291,14 @@ private SecurityLevel(int value) {
                                 public static final int URL_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object url_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Output only. The deployed url for the function.
                                  * 
                              * * string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The url. */ @java.lang.Override @@ -271,29 +307,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -304,31 +340,43 @@ public java.lang.String getUrl() { public static final int SECURITY_LEVEL_FIELD_NUMBER = 2; private int securityLevel_; /** + * + * *
                                  * The security level for the function.
                                  * 
                              * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; + * * @return The enum numeric value on the wire for securityLevel. */ - @java.lang.Override public int getSecurityLevelValue() { + @java.lang.Override + public int getSecurityLevelValue() { return securityLevel_; } /** + * + * *
                                  * The security level for the function.
                                  * 
                              * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; + * * @return The securityLevel. */ - @java.lang.Override public com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel getSecurityLevel() { + @java.lang.Override + public com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel getSecurityLevel() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel result = com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.valueOf(securityLevel_); - return result == null ? com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.UNRECOGNIZED : result; + com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel result = + com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.valueOf(securityLevel_); + return result == null + ? com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -340,12 +388,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } - if (securityLevel_ != com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.SECURITY_LEVEL_UNSPECIFIED.getNumber()) { + if (securityLevel_ + != com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.SECURITY_LEVEL_UNSPECIFIED + .getNumber()) { output.writeEnum(2, securityLevel_); } unknownFields.writeTo(output); @@ -360,9 +409,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } - if (securityLevel_ != com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.SECURITY_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, securityLevel_); + if (securityLevel_ + != com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.SECURITY_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, securityLevel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -372,15 +422,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.HttpsTrigger)) { return super.equals(obj); } - com.google.cloud.functions.v1.HttpsTrigger other = (com.google.cloud.functions.v1.HttpsTrigger) obj; + com.google.cloud.functions.v1.HttpsTrigger other = + (com.google.cloud.functions.v1.HttpsTrigger) obj; - if (!getUrl() - .equals(other.getUrl())) return false; + if (!getUrl().equals(other.getUrl())) return false; if (securityLevel_ != other.securityLevel_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -402,118 +452,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.HttpsTrigger parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.HttpsTrigger parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.HttpsTrigger parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.HttpsTrigger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.HttpsTrigger 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.v1.HttpsTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.HttpsTrigger parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v1.HttpsTrigger parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.HttpsTrigger parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.HttpsTrigger parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.HttpsTrigger parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.HttpsTrigger parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.HttpsTrigger parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.HttpsTrigger parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.HttpsTrigger prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes HttpsTrigger, could be used to connect web hooks to function.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.HttpsTrigger} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.HttpsTrigger) com.google.cloud.functions.v1.HttpsTriggerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_HttpsTrigger_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.HttpsTrigger.class, com.google.cloud.functions.v1.HttpsTrigger.Builder.class); + com.google.cloud.functions.v1.HttpsTrigger.class, + com.google.cloud.functions.v1.HttpsTrigger.Builder.class); } // Construct using com.google.cloud.functions.v1.HttpsTrigger.newBuilder() @@ -521,16 +580,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -542,9 +600,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor; } @java.lang.Override @@ -563,7 +621,8 @@ public com.google.cloud.functions.v1.HttpsTrigger build() { @java.lang.Override public com.google.cloud.functions.v1.HttpsTrigger buildPartial() { - com.google.cloud.functions.v1.HttpsTrigger result = new com.google.cloud.functions.v1.HttpsTrigger(this); + com.google.cloud.functions.v1.HttpsTrigger result = + new com.google.cloud.functions.v1.HttpsTrigger(this); result.url_ = url_; result.securityLevel_ = securityLevel_; onBuilt(); @@ -574,38 +633,39 @@ public com.google.cloud.functions.v1.HttpsTrigger buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.HttpsTrigger)other); + return mergeFrom((com.google.cloud.functions.v1.HttpsTrigger) other); } else { super.mergeFrom(other); return this; @@ -652,18 +712,20 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** + * + * *
                                    * Output only. The deployed url for the function.
                                    * 
                              * * string url = 1 [(.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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -672,20 +734,21 @@ public java.lang.String getUrl() { } } /** + * + * *
                                    * Output only. The deployed url for the function.
                                    * 
                              * * string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -693,54 +756,61 @@ public java.lang.String getUrl() { } } /** + * + * *
                                    * Output only. The deployed url for the function.
                                    * 
                              * * string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. The deployed url for the function.
                                    * 
                              * * string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
                                    * Output only. The deployed url for the function.
                                    * 
                              * * string url = 1 [(.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) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; @@ -748,80 +818,100 @@ public Builder setUrlBytes( private int securityLevel_ = 0; /** + * + * *
                                    * The security level for the function.
                                    * 
                              * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; + * * @return The enum numeric value on the wire for securityLevel. */ - @java.lang.Override public int getSecurityLevelValue() { + @java.lang.Override + public int getSecurityLevelValue() { return securityLevel_; } /** + * + * *
                                    * The security level for the function.
                                    * 
                              * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; + * * @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; onChanged(); return this; } /** + * + * *
                                    * The security level for the function.
                                    * 
                              * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; + * * @return The securityLevel. */ @java.lang.Override public com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel getSecurityLevel() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel result = com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.valueOf(securityLevel_); - return result == null ? com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.UNRECOGNIZED : result; + com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel result = + com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.valueOf(securityLevel_); + return result == null + ? com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel.UNRECOGNIZED + : result; } /** + * + * *
                                    * The security level for the function.
                                    * 
                              * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; + * * @param value The securityLevel to set. * @return This builder for chaining. */ - public Builder setSecurityLevel(com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel value) { + public Builder setSecurityLevel( + com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel value) { if (value == null) { throw new NullPointerException(); } - + securityLevel_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * The security level for the function.
                                    * 
                              * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; + * * @return This builder for chaining. */ public Builder clearSecurityLevel() { - + securityLevel_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -831,12 +921,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.HttpsTrigger) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.HttpsTrigger) private static final com.google.cloud.functions.v1.HttpsTrigger DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.HttpsTrigger(); } @@ -845,16 +935,16 @@ public static com.google.cloud.functions.v1.HttpsTrigger getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpsTrigger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpsTrigger(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpsTrigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpsTrigger(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,6 +959,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.HttpsTrigger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java index d2e59b17..6b44c857 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTriggerOrBuilder.java @@ -1,47 +1,74 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface HttpsTriggerOrBuilder extends +public interface HttpsTriggerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.HttpsTrigger) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Output only. The deployed url for the function.
                                  * 
                              * * string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
                                  * Output only. The deployed url for the function.
                                  * 
                              * * string url = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
                                  * The security level for the function.
                                  * 
                              * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; + * * @return The enum numeric value on the wire for securityLevel. */ int getSecurityLevelValue(); /** + * + * *
                                  * The security level for the function.
                                  * 
                              * * .google.cloud.functions.v1.HttpsTrigger.SecurityLevel security_level = 2; + * * @return The securityLevel. */ com.google.cloud.functions.v1.HttpsTrigger.SecurityLevel getSecurityLevel(); diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java index 1ee9c136..34ca7d20 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java @@ -1,24 +1,42 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Request for the `ListFunctions` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.ListFunctionsRequest} */ -public final class ListFunctionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFunctionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.ListFunctionsRequest) ListFunctionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFunctionsRequest.newBuilder() to construct. private ListFunctionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFunctionsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListFunctionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFunctionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListFunctionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,29 +104,33 @@ private ListFunctionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.ListFunctionsRequest.class, com.google.cloud.functions.v1.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v1.ListFunctionsRequest.class, + com.google.cloud.functions.v1.ListFunctionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -118,6 +141,7 @@ private ListFunctionsRequest(
                                  * 
                              * * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ @java.lang.Override @@ -126,14 +150,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -144,16 +169,15 @@ public java.lang.String getParent() {
                                  * 
                              * * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,11 +188,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
                                  * Maximum number of functions to return per call.
                                  * 
                              * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -179,6 +206,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -187,6 +216,7 @@ public int getPageSize() {
                                  * 
                              * * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -195,14 +225,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -211,16 +242,15 @@ public java.lang.String getPageToken() {
                                  * 
                              * * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -229,6 +259,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,8 +271,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -264,8 +294,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -278,19 +307,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.ListFunctionsRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.ListFunctionsRequest other = (com.google.cloud.functions.v1.ListFunctionsRequest) obj; + com.google.cloud.functions.v1.ListFunctionsRequest other = + (com.google.cloud.functions.v1.ListFunctionsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -314,117 +341,126 @@ public int hashCode() { } public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListFunctionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.ListFunctionsRequest 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.v1.ListFunctionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.ListFunctionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.ListFunctionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.ListFunctionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.ListFunctionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.ListFunctionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `ListFunctions` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.ListFunctionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.ListFunctionsRequest) com.google.cloud.functions.v1.ListFunctionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.ListFunctionsRequest.class, com.google.cloud.functions.v1.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v1.ListFunctionsRequest.class, + com.google.cloud.functions.v1.ListFunctionsRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.ListFunctionsRequest.newBuilder() @@ -432,16 +468,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -455,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; } @java.lang.Override @@ -476,7 +511,8 @@ public com.google.cloud.functions.v1.ListFunctionsRequest build() { @java.lang.Override public com.google.cloud.functions.v1.ListFunctionsRequest buildPartial() { - com.google.cloud.functions.v1.ListFunctionsRequest result = new com.google.cloud.functions.v1.ListFunctionsRequest(this); + com.google.cloud.functions.v1.ListFunctionsRequest result = + new com.google.cloud.functions.v1.ListFunctionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -488,38 +524,39 @@ public com.google.cloud.functions.v1.ListFunctionsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.ListFunctionsRequest)other); + return mergeFrom((com.google.cloud.functions.v1.ListFunctionsRequest) other); } else { super.mergeFrom(other); return this; @@ -527,7 +564,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.ListFunctionsRequest other) { - if (other == com.google.cloud.functions.v1.ListFunctionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.ListFunctionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -558,7 +596,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v1.ListFunctionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v1.ListFunctionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -570,6 +609,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -580,13 +621,13 @@ public Builder mergeFrom(
                                    * 
                              * * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -595,6 +636,8 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -605,15 +648,14 @@ public java.lang.String getParent() {
                                    * 
                              * * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -621,6 +663,8 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -631,20 +675,22 @@ public java.lang.String getParent() {
                                    * 
                              * * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -655,15 +701,18 @@ public Builder setParent(
                                    * 
                              * * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -674,28 +723,31 @@ public Builder clearParent() {
                                    * 
                              * * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
                                    * Maximum number of functions to return per call.
                                    * 
                              * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -703,30 +755,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
                                    * Maximum number of functions to return per call.
                                    * 
                              * * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
                                    * Maximum number of functions to return per call.
                                    * 
                              * * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -734,6 +792,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -742,13 +802,13 @@ public Builder clearPageSize() {
                                    * 
                              * * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -757,6 +817,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -765,15 +827,14 @@ public java.lang.String getPageToken() {
                                    * 
                              * * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -781,6 +842,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -789,20 +852,22 @@ public java.lang.String getPageToken() {
                                    * 
                              * * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -811,15 +876,18 @@ public Builder setPageToken(
                                    * 
                              * * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -828,23 +896,23 @@ public Builder clearPageToken() {
                                    * 
                              * * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -854,12 +922,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.ListFunctionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.ListFunctionsRequest) private static final com.google.cloud.functions.v1.ListFunctionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.ListFunctionsRequest(); } @@ -868,16 +936,16 @@ public static com.google.cloud.functions.v1.ListFunctionsRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -892,6 +960,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.ListFunctionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java index 7a3e7009..b1f834f8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface ListFunctionsRequestOrBuilder extends +public interface ListFunctionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.ListFunctionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -18,10 +36,13 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
                                  * The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -32,22 +53,27 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
                                  * Maximum number of functions to return per call.
                                  * 
                              * * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -56,10 +82,13 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -68,8 +97,8 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java index 91a1d1a5..47650bc0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java @@ -1,24 +1,42 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Response for the `ListFunctions` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.ListFunctionsResponse} */ -public final class ListFunctionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFunctionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.ListFunctionsResponse) ListFunctionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFunctionsResponse.newBuilder() to construct. private ListFunctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFunctionsResponse() { functions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListFunctionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFunctionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListFunctionsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - functions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + functions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + functions_.add( + input.readMessage( + com.google.cloud.functions.v1.CloudFunction.parser(), extensionRegistry)); + break; } - functions_.add( - input.readMessage(com.google.cloud.functions.v1.CloudFunction.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListFunctionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { functions_ = java.util.Collections.unmodifiableList(functions_); @@ -107,22 +127,27 @@ private ListFunctionsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.ListFunctionsResponse.class, com.google.cloud.functions.v1.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v1.ListFunctionsResponse.class, + com.google.cloud.functions.v1.ListFunctionsResponse.Builder.class); } public static final int FUNCTIONS_FIELD_NUMBER = 1; private java.util.List functions_; /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -134,6 +159,8 @@ public java.util.List getFunctionsL return functions_; } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -141,11 +168,13 @@ public java.util.List getFunctionsL * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFunctionsOrBuilderList() { return functions_; } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -157,6 +186,8 @@ public int getFunctionsCount() { return functions_.size(); } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -168,6 +199,8 @@ public com.google.cloud.functions.v1.CloudFunction getFunctions(int index) { return functions_.get(index); } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -175,14 +208,15 @@ public com.google.cloud.functions.v1.CloudFunction getFunctions(int index) { * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ @java.lang.Override - public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder( - int index) { + public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder(int index) { return functions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
                                  * If not empty, indicates that there may be more functions that match
                                  * the request; this value should be passed in a new
                              @@ -191,6 +225,7 @@ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilde
                                  * 
                              * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -199,14 +234,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
                                  * If not empty, indicates that there may be more functions that match
                                  * the request; this value should be passed in a new
                              @@ -215,16 +251,15 @@ public java.lang.String getNextPageToken() {
                                  * 
                              * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -235,37 +270,45 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -273,21 +316,24 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,8 +345,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < functions_.size(); i++) { output.writeMessage(1, functions_.get(i)); } @@ -320,8 +365,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < functions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, functions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, functions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -342,19 +386,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.ListFunctionsResponse)) { return super.equals(obj); } - com.google.cloud.functions.v1.ListFunctionsResponse other = (com.google.cloud.functions.v1.ListFunctionsResponse) obj; + com.google.cloud.functions.v1.ListFunctionsResponse other = + (com.google.cloud.functions.v1.ListFunctionsResponse) obj; - if (!getFunctionsList() - .equals(other.getFunctionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getFunctionsList().equals(other.getFunctionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -382,117 +424,126 @@ public int hashCode() { } public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.ListFunctionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.ListFunctionsResponse 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.v1.ListFunctionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.ListFunctionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.ListFunctionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.ListFunctionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.ListFunctionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.ListFunctionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Response for the `ListFunctions` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.ListFunctionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.ListFunctionsResponse) com.google.cloud.functions.v1.ListFunctionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.ListFunctionsResponse.class, com.google.cloud.functions.v1.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v1.ListFunctionsResponse.class, + com.google.cloud.functions.v1.ListFunctionsResponse.Builder.class); } // Construct using com.google.cloud.functions.v1.ListFunctionsResponse.newBuilder() @@ -500,17 +551,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFunctionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -528,9 +579,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; } @java.lang.Override @@ -549,7 +600,8 @@ public com.google.cloud.functions.v1.ListFunctionsResponse build() { @java.lang.Override public com.google.cloud.functions.v1.ListFunctionsResponse buildPartial() { - com.google.cloud.functions.v1.ListFunctionsResponse result = new com.google.cloud.functions.v1.ListFunctionsResponse(this); + com.google.cloud.functions.v1.ListFunctionsResponse result = + new com.google.cloud.functions.v1.ListFunctionsResponse(this); int from_bitField0_ = bitField0_; if (functionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -574,38 +626,39 @@ public com.google.cloud.functions.v1.ListFunctionsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListFunctionsResponse) { - return mergeFrom((com.google.cloud.functions.v1.ListFunctionsResponse)other); + return mergeFrom((com.google.cloud.functions.v1.ListFunctionsResponse) other); } else { super.mergeFrom(other); return this; @@ -613,7 +666,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.ListFunctionsResponse other) { - if (other == com.google.cloud.functions.v1.ListFunctionsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.ListFunctionsResponse.getDefaultInstance()) + return this; if (functionsBuilder_ == null) { if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { @@ -632,9 +686,10 @@ public Builder mergeFrom(com.google.cloud.functions.v1.ListFunctionsResponse oth functionsBuilder_ = null; functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000001); - functionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFunctionsFieldBuilder() : null; + functionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFunctionsFieldBuilder() + : null; } else { functionsBuilder_.addAllMessages(other.functions_); } @@ -673,7 +728,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v1.ListFunctionsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v1.ListFunctionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -682,21 +738,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List functions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFunctionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - functions_ = new java.util.ArrayList(functions_); + functions_ = + new java.util.ArrayList(functions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder> functionsBuilder_; + com.google.cloud.functions.v1.CloudFunction, + com.google.cloud.functions.v1.CloudFunction.Builder, + com.google.cloud.functions.v1.CloudFunctionOrBuilder> + functionsBuilder_; /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -711,6 +775,8 @@ public java.util.List getFunctionsL } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -725,6 +791,8 @@ public int getFunctionsCount() { } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -739,14 +807,15 @@ public com.google.cloud.functions.v1.CloudFunction getFunctions(int index) { } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public Builder setFunctions( - int index, com.google.cloud.functions.v1.CloudFunction value) { + public Builder setFunctions(int index, com.google.cloud.functions.v1.CloudFunction value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -760,6 +829,8 @@ public Builder setFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -778,6 +849,8 @@ public Builder setFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -798,14 +871,15 @@ public Builder addFunctions(com.google.cloud.functions.v1.CloudFunction value) { return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public Builder addFunctions( - int index, com.google.cloud.functions.v1.CloudFunction value) { + public Builder addFunctions(int index, com.google.cloud.functions.v1.CloudFunction value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -819,6 +893,8 @@ public Builder addFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -837,6 +913,8 @@ public Builder addFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -855,6 +933,8 @@ public Builder addFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -865,8 +945,7 @@ public Builder addAllFunctions( java.lang.Iterable values) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, functions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, functions_); onChanged(); } else { functionsBuilder_.addAllMessages(values); @@ -874,6 +953,8 @@ public Builder addAllFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -891,6 +972,8 @@ public Builder clearFunctions() { return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -908,39 +991,44 @@ public Builder removeFunctions(int index) { return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public com.google.cloud.functions.v1.CloudFunction.Builder getFunctionsBuilder( - int index) { + public com.google.cloud.functions.v1.CloudFunction.Builder getFunctionsBuilder(int index) { return getFunctionsFieldBuilder().getBuilder(index); } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder( - int index) { + public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder(int index) { if (functionsBuilder_ == null) { - return functions_.get(index); } else { + return functions_.get(index); + } else { return functionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public java.util.List - getFunctionsOrBuilderList() { + public java.util.List + getFunctionsOrBuilderList() { if (functionsBuilder_ != null) { return functionsBuilder_.getMessageOrBuilderList(); } else { @@ -948,6 +1036,8 @@ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilde } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -955,42 +1045,48 @@ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilde * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ public com.google.cloud.functions.v1.CloudFunction.Builder addFunctionsBuilder() { - return getFunctionsFieldBuilder().addBuilder( - com.google.cloud.functions.v1.CloudFunction.getDefaultInstance()); + return getFunctionsFieldBuilder() + .addBuilder(com.google.cloud.functions.v1.CloudFunction.getDefaultInstance()); } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public com.google.cloud.functions.v1.CloudFunction.Builder addFunctionsBuilder( - int index) { - return getFunctionsFieldBuilder().addBuilder( - index, com.google.cloud.functions.v1.CloudFunction.getDefaultInstance()); + public com.google.cloud.functions.v1.CloudFunction.Builder addFunctionsBuilder(int index) { + return getFunctionsFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v1.CloudFunction.getDefaultInstance()); } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - public java.util.List - getFunctionsBuilderList() { + public java.util.List + getFunctionsBuilderList() { return getFunctionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder> + com.google.cloud.functions.v1.CloudFunction, + com.google.cloud.functions.v1.CloudFunction.Builder, + com.google.cloud.functions.v1.CloudFunctionOrBuilder> getFunctionsFieldBuilder() { if (functionsBuilder_ == null) { - functionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder>( - functions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + functionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v1.CloudFunction, + com.google.cloud.functions.v1.CloudFunction.Builder, + com.google.cloud.functions.v1.CloudFunctionOrBuilder>( + functions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); functions_ = null; } return functionsBuilder_; @@ -998,6 +1094,8 @@ public com.google.cloud.functions.v1.CloudFunction.Builder addFunctionsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
                                    * If not empty, indicates that there may be more functions that match
                                    * the request; this value should be passed in a new
                              @@ -1006,13 +1104,13 @@ public com.google.cloud.functions.v1.CloudFunction.Builder addFunctionsBuilder(
                                    * 
                              * * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1021,6 +1119,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                                    * If not empty, indicates that there may be more functions that match
                                    * the request; this value should be passed in a new
                              @@ -1029,15 +1129,14 @@ public java.lang.String getNextPageToken() {
                                    * 
                              * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1045,6 +1144,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                                    * If not empty, indicates that there may be more functions that match
                                    * the request; this value should be passed in a new
                              @@ -1053,20 +1154,22 @@ public java.lang.String getNextPageToken() {
                                    * 
                              * * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
                                    * If not empty, indicates that there may be more functions that match
                                    * the request; this value should be passed in a new
                              @@ -1075,15 +1178,18 @@ public Builder setNextPageToken(
                                    * 
                              * * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
                                    * If not empty, indicates that there may be more functions that match
                                    * the request; this value should be passed in a new
                              @@ -1092,60 +1198,70 @@ public Builder clearNextPageToken() {
                                    * 
                              * * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1153,85 +1269,95 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1241,29 +1367,31 @@ public Builder clearUnreachable() { return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1273,12 +1401,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.ListFunctionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.ListFunctionsResponse) private static final com.google.cloud.functions.v1.ListFunctionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.ListFunctionsResponse(); } @@ -1287,16 +1415,16 @@ public static com.google.cloud.functions.v1.ListFunctionsResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1311,6 +1439,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.ListFunctionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java index 3b6ce8ff..1557cf8c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface ListFunctionsResponseOrBuilder extends +public interface ListFunctionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.ListFunctionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The functions that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - java.util.List - getFunctionsList(); + java.util.List getFunctionsList(); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -25,6 +44,8 @@ public interface ListFunctionsResponseOrBuilder extends */ com.google.cloud.functions.v1.CloudFunction getFunctions(int index); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -33,25 +54,30 @@ public interface ListFunctionsResponseOrBuilder extends */ int getFunctionsCount(); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - java.util.List + java.util.List getFunctionsOrBuilderList(); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v1.CloudFunction functions = 1; */ - com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder( - int index); + com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder(int index); /** + * + * *
                                  * If not empty, indicates that there may be more functions that match
                                  * the request; this value should be passed in a new
                              @@ -60,10 +86,13 @@ com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder(
                                  * 
                              * * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
                                  * If not empty, indicates that there may be more functions that match
                                  * the request; this value should be passed in a new
                              @@ -72,53 +101,63 @@ com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionsOrBuilder(
                                  * 
                              * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/LocationName.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/LocationName.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java index 47eb9943..834c9473 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java @@ -1,24 +1,42 @@ +/* + * 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/v1/operations.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Metadata describing an [Operation][google.longrunning.Operation]
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.OperationMetadataV1} */ -public final class OperationMetadataV1 extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadataV1 extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.OperationMetadataV1) OperationMetadataV1OrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadataV1.newBuilder() to construct. private OperationMetadataV1(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadataV1() { target_ = ""; type_ = 0; @@ -29,16 +47,15 @@ private OperationMetadataV1() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadataV1(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadataV1( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,74 +74,82 @@ private OperationMetadataV1( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + target_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 26: { - com.google.protobuf.Any.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); + type_ = rawValue; + break; } - request_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Any.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 32: { - - versionId_ = input.readInt64(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 32: + { + versionId_ = input.readInt64(); + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - buildId_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + buildId_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceToken_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + sourceToken_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - buildName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + buildName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -132,35 +157,40 @@ private OperationMetadataV1( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsOperationsProto.internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsOperationsProto + .internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsOperationsProto.internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsOperationsProto + .internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.OperationMetadataV1.class, com.google.cloud.functions.v1.OperationMetadataV1.Builder.class); + com.google.cloud.functions.v1.OperationMetadataV1.class, + com.google.cloud.functions.v1.OperationMetadataV1.Builder.class); } public static final int TARGET_FIELD_NUMBER = 1; private volatile java.lang.Object target_; /** + * + * *
                                  * Target of the operation - for example
                                  * `projects/project-1/locations/region-1/functions/function-1`
                                  * 
                              * * string target = 1; + * * @return The target. */ @java.lang.Override @@ -169,30 +199,30 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
                                  * Target of the operation - for example
                                  * `projects/project-1/locations/region-1/functions/function-1`
                                  * 
                              * * string target = 1; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -203,38 +233,50 @@ public java.lang.String getTarget() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
                                  * Type of operation.
                                  * 
                              * * .google.cloud.functions.v1.OperationType type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
                                  * Type of operation.
                                  * 
                              * * .google.cloud.functions.v1.OperationType type = 2; + * * @return The type. */ - @java.lang.Override public com.google.cloud.functions.v1.OperationType getType() { + @java.lang.Override + public com.google.cloud.functions.v1.OperationType getType() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.OperationType result = com.google.cloud.functions.v1.OperationType.valueOf(type_); + com.google.cloud.functions.v1.OperationType result = + com.google.cloud.functions.v1.OperationType.valueOf(type_); return result == null ? com.google.cloud.functions.v1.OperationType.UNRECOGNIZED : result; } public static final int REQUEST_FIELD_NUMBER = 3; private com.google.protobuf.Any request_; /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request = 3; + * * @return Whether the request field is set. */ @java.lang.Override @@ -242,11 +284,14 @@ public boolean hasRequest() { return request_ != null; } /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request = 3; + * * @return The request. */ @java.lang.Override @@ -254,6 +299,8 @@ public com.google.protobuf.Any getRequest() { return request_ == null ? com.google.protobuf.Any.getDefaultInstance() : request_; } /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              @@ -268,12 +315,15 @@ public com.google.protobuf.AnyOrBuilder getRequestOrBuilder() { public static final int VERSION_ID_FIELD_NUMBER = 4; private long versionId_; /** + * + * *
                                  * Version id of the function created or updated by an API call.
                                  * This field is only populated for Create and Update operations.
                                  * 
                              * * int64 version_id = 4; + * * @return The versionId. */ @java.lang.Override @@ -284,11 +334,14 @@ public long getVersionId() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
                                  * The last update timestamp of the operation.
                                  * 
                              * * .google.protobuf.Timestamp update_time = 5; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -296,11 +349,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
                                  * The last update timestamp of the operation.
                                  * 
                              * * .google.protobuf.Timestamp update_time = 5; + * * @return The updateTime. */ @java.lang.Override @@ -308,6 +364,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
                                  * The last update timestamp of the operation.
                                  * 
                              @@ -322,12 +380,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int BUILD_ID_FIELD_NUMBER = 6; private volatile java.lang.Object buildId_; /** + * + * *
                                  * The Cloud Build ID of the function created or updated by an API call.
                                  * This field is only populated for Create and Update operations.
                                  * 
                              * * string build_id = 6; + * * @return The buildId. */ @java.lang.Override @@ -336,30 +397,30 @@ public java.lang.String getBuildId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildId_ = s; return s; } } /** + * + * *
                                  * The Cloud Build ID of the function created or updated by an API call.
                                  * This field is only populated for Create and Update operations.
                                  * 
                              * * string build_id = 6; + * * @return The bytes for buildId. */ @java.lang.Override - public com.google.protobuf.ByteString - getBuildIdBytes() { + public com.google.protobuf.ByteString getBuildIdBytes() { java.lang.Object ref = buildId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); buildId_ = b; return b; } else { @@ -370,12 +431,15 @@ public java.lang.String getBuildId() { public static final int SOURCE_TOKEN_FIELD_NUMBER = 7; private volatile java.lang.Object sourceToken_; /** + * + * *
                                  * An identifier for Firebase function sources. Disclaimer: This field is only
                                  * supported for Firebase function deployments.
                                  * 
                              * * string source_token = 7; + * * @return The sourceToken. */ @java.lang.Override @@ -384,30 +448,30 @@ public java.lang.String getSourceToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; } } /** + * + * *
                                  * An identifier for Firebase function sources. Disclaimer: This field is only
                                  * supported for Firebase function deployments.
                                  * 
                              * * string source_token = 7; + * * @return The bytes for sourceToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceTokenBytes() { + public com.google.protobuf.ByteString getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -418,6 +482,8 @@ public java.lang.String getSourceToken() { public static final int BUILD_NAME_FIELD_NUMBER = 8; private volatile java.lang.Object buildName_; /** + * + * *
                                  * The Cloud Build Name of the function deployment.
                                  * This field is only populated for Create and Update operations.
                              @@ -425,6 +491,7 @@ public java.lang.String getSourceToken() {
                                  * 
                              * * string build_name = 8; + * * @return The buildName. */ @java.lang.Override @@ -433,14 +500,15 @@ public java.lang.String getBuildName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildName_ = s; return s; } } /** + * + * *
                                  * The Cloud Build Name of the function deployment.
                                  * This field is only populated for Create and Update operations.
                              @@ -448,16 +516,15 @@ public java.lang.String getBuildName() {
                                  * 
                              * * string build_name = 8; + * * @return The bytes for buildName. */ @java.lang.Override - public com.google.protobuf.ByteString - getBuildNameBytes() { + public com.google.protobuf.ByteString getBuildNameBytes() { java.lang.Object ref = buildName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); buildName_ = b; return b; } else { @@ -466,6 +533,7 @@ public java.lang.String getBuildName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -477,8 +545,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, target_); } @@ -516,20 +583,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, target_); } if (type_ != com.google.cloud.functions.v1.OperationType.OPERATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (request_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRequest()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequest()); } if (versionId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, versionId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, versionId_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, buildId_); @@ -548,34 +611,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.OperationMetadataV1)) { return super.equals(obj); } - com.google.cloud.functions.v1.OperationMetadataV1 other = (com.google.cloud.functions.v1.OperationMetadataV1) obj; + com.google.cloud.functions.v1.OperationMetadataV1 other = + (com.google.cloud.functions.v1.OperationMetadataV1) obj; - if (!getTarget() - .equals(other.getTarget())) return false; + if (!getTarget().equals(other.getTarget())) return false; if (type_ != other.type_) return false; if (hasRequest() != other.hasRequest()) return false; if (hasRequest()) { - if (!getRequest() - .equals(other.getRequest())) return false; + if (!getRequest().equals(other.getRequest())) return false; } - if (getVersionId() - != other.getVersionId()) return false; + if (getVersionId() != other.getVersionId()) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getBuildId() - .equals(other.getBuildId())) return false; - if (!getSourceToken() - .equals(other.getSourceToken())) return false; - if (!getBuildName() - .equals(other.getBuildName())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getBuildId().equals(other.getBuildId())) return false; + if (!getSourceToken().equals(other.getSourceToken())) return false; + if (!getBuildName().equals(other.getBuildName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -596,8 +653,7 @@ public int hashCode() { hash = (53 * hash) + getRequest().hashCode(); } hash = (37 * hash) + VERSION_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersionId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersionId()); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); @@ -614,117 +670,126 @@ public int hashCode() { } public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.OperationMetadataV1 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.OperationMetadataV1 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.v1.OperationMetadataV1 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.OperationMetadataV1 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.OperationMetadataV1 parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.OperationMetadataV1 parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.OperationMetadataV1 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.OperationMetadataV1 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Metadata describing an [Operation][google.longrunning.Operation]
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.OperationMetadataV1} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.OperationMetadataV1) com.google.cloud.functions.v1.OperationMetadataV1OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsOperationsProto.internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsOperationsProto + .internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsOperationsProto.internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsOperationsProto + .internal_static_google_cloud_functions_v1_OperationMetadataV1_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.OperationMetadataV1.class, com.google.cloud.functions.v1.OperationMetadataV1.Builder.class); + com.google.cloud.functions.v1.OperationMetadataV1.class, + com.google.cloud.functions.v1.OperationMetadataV1.Builder.class); } // Construct using com.google.cloud.functions.v1.OperationMetadataV1.newBuilder() @@ -732,16 +797,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -773,9 +837,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsOperationsProto.internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsOperationsProto + .internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; } @java.lang.Override @@ -794,7 +858,8 @@ public com.google.cloud.functions.v1.OperationMetadataV1 build() { @java.lang.Override public com.google.cloud.functions.v1.OperationMetadataV1 buildPartial() { - com.google.cloud.functions.v1.OperationMetadataV1 result = new com.google.cloud.functions.v1.OperationMetadataV1(this); + com.google.cloud.functions.v1.OperationMetadataV1 result = + new com.google.cloud.functions.v1.OperationMetadataV1(this); result.target_ = target_; result.type_ = type_; if (requestBuilder_ == null) { @@ -819,38 +884,39 @@ public com.google.cloud.functions.v1.OperationMetadataV1 buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.OperationMetadataV1)other); + return mergeFrom((com.google.cloud.functions.v1.OperationMetadataV1) other); } else { super.mergeFrom(other); return this; @@ -858,7 +924,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.OperationMetadataV1 other) { - if (other == com.google.cloud.functions.v1.OperationMetadataV1.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.OperationMetadataV1.getDefaultInstance()) + return this; if (!other.getTarget().isEmpty()) { target_ = other.target_; onChanged(); @@ -906,7 +973,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v1.OperationMetadataV1) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v1.OperationMetadataV1) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -918,19 +986,21 @@ public Builder mergeFrom( private java.lang.Object target_ = ""; /** + * + * *
                                    * Target of the operation - for example
                                    * `projects/project-1/locations/region-1/functions/function-1`
                                    * 
                              * * string target = 1; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -939,21 +1009,22 @@ public java.lang.String getTarget() { } } /** + * + * *
                                    * Target of the operation - for example
                                    * `projects/project-1/locations/region-1/functions/function-1`
                                    * 
                              * * string target = 1; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -961,57 +1032,64 @@ public java.lang.String getTarget() { } } /** + * + * *
                                    * Target of the operation - for example
                                    * `projects/project-1/locations/region-1/functions/function-1`
                                    * 
                              * * string target = 1; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
                                    * Target of the operation - for example
                                    * `projects/project-1/locations/region-1/functions/function-1`
                                    * 
                              * * string target = 1; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
                                    * Target of the operation - for example
                                    * `projects/project-1/locations/region-1/functions/function-1`
                                    * 
                              * * string target = 1; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1019,51 +1097,65 @@ public Builder setTargetBytes( private int type_ = 0; /** + * + * *
                                    * Type of operation.
                                    * 
                              * * .google.cloud.functions.v1.OperationType type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
                                    * Type of operation.
                                    * 
                              * * .google.cloud.functions.v1.OperationType type = 2; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
                                    * Type of operation.
                                    * 
                              * * .google.cloud.functions.v1.OperationType type = 2; + * * @return The type. */ @java.lang.Override public com.google.cloud.functions.v1.OperationType getType() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v1.OperationType result = com.google.cloud.functions.v1.OperationType.valueOf(type_); + com.google.cloud.functions.v1.OperationType result = + com.google.cloud.functions.v1.OperationType.valueOf(type_); return result == null ? com.google.cloud.functions.v1.OperationType.UNRECOGNIZED : result; } /** + * + * *
                                    * Type of operation.
                                    * 
                              * * .google.cloud.functions.v1.OperationType type = 2; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1071,21 +1163,24 @@ public Builder setType(com.google.cloud.functions.v1.OperationType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Type of operation.
                                    * 
                              * * .google.cloud.functions.v1.OperationType type = 2; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1093,24 +1188,33 @@ public Builder clearType() { private com.google.protobuf.Any request_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> requestBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + requestBuilder_; /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              * * .google.protobuf.Any request = 3; + * * @return Whether the request field is set. */ public boolean hasRequest() { return requestBuilder_ != null || request_ != null; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              * * .google.protobuf.Any request = 3; + * * @return The request. */ public com.google.protobuf.Any getRequest() { @@ -1121,6 +1225,8 @@ public com.google.protobuf.Any getRequest() { } } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1141,14 +1247,15 @@ public Builder setRequest(com.google.protobuf.Any value) { return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              * * .google.protobuf.Any request = 3; */ - public Builder setRequest( - com.google.protobuf.Any.Builder builderForValue) { + public Builder setRequest(com.google.protobuf.Any.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); onChanged(); @@ -1159,6 +1266,8 @@ public Builder setRequest( return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1168,8 +1277,7 @@ public Builder setRequest( public Builder mergeRequest(com.google.protobuf.Any value) { if (requestBuilder_ == null) { if (request_ != null) { - request_ = - com.google.protobuf.Any.newBuilder(request_).mergeFrom(value).buildPartial(); + request_ = com.google.protobuf.Any.newBuilder(request_).mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -1181,6 +1289,8 @@ public Builder mergeRequest(com.google.protobuf.Any value) { return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1199,6 +1309,8 @@ public Builder clearRequest() { return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1206,11 +1318,13 @@ public Builder clearRequest() { * .google.protobuf.Any request = 3; */ public com.google.protobuf.Any.Builder getRequestBuilder() { - + onChanged(); return getRequestFieldBuilder().getBuilder(); } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1221,11 +1335,12 @@ public com.google.protobuf.AnyOrBuilder getRequestOrBuilder() { if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { - return request_ == null ? - com.google.protobuf.Any.getDefaultInstance() : request_; + return request_ == null ? com.google.protobuf.Any.getDefaultInstance() : request_; } } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1233,27 +1348,32 @@ public com.google.protobuf.AnyOrBuilder getRequestOrBuilder() { * .google.protobuf.Any request = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { - requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getRequest(), - getParentForChildren(), - isClean()); + requestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder>(getRequest(), getParentForChildren(), isClean()); request_ = null; } return requestBuilder_; } - private long versionId_ ; + private long versionId_; /** + * + * *
                                    * Version id of the function created or updated by an API call.
                                    * This field is only populated for Create and Update operations.
                                    * 
                              * * int64 version_id = 4; + * * @return The versionId. */ @java.lang.Override @@ -1261,32 +1381,38 @@ public long getVersionId() { return versionId_; } /** + * + * *
                                    * Version id of the function created or updated by an API call.
                                    * This field is only populated for Create and Update operations.
                                    * 
                              * * int64 version_id = 4; + * * @param value The versionId to set. * @return This builder for chaining. */ public Builder setVersionId(long value) { - + versionId_ = value; onChanged(); return this; } /** + * + * *
                                    * Version id of the function created or updated by an API call.
                                    * This field is only populated for Create and Update operations.
                                    * 
                              * * int64 version_id = 4; + * * @return This builder for chaining. */ public Builder clearVersionId() { - + versionId_ = 0L; onChanged(); return this; @@ -1294,34 +1420,47 @@ public Builder clearVersionId() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
                                    * The last update timestamp of the operation.
                                    * 
                              * * .google.protobuf.Timestamp update_time = 5; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
                                    * The last update timestamp of the operation.
                                    * 
                              * * .google.protobuf.Timestamp update_time = 5; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
                                    * The last update timestamp of the operation.
                                    * 
                              @@ -1342,14 +1481,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The last update timestamp of the operation.
                                    * 
                              * * .google.protobuf.Timestamp update_time = 5; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1360,6 +1500,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
                                    * The last update timestamp of the operation.
                                    * 
                              @@ -1370,7 +1512,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1382,6 +1524,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The last update timestamp of the operation.
                                    * 
                              @@ -1400,6 +1544,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
                                    * The last update timestamp of the operation.
                                    * 
                              @@ -1407,11 +1553,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 5; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
                                    * The last update timestamp of the operation.
                                    * 
                              @@ -1422,11 +1570,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
                                    * The last update timestamp of the operation.
                                    * 
                              @@ -1434,14 +1585,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1449,19 +1603,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object buildId_ = ""; /** + * + * *
                                    * The Cloud Build ID of the function created or updated by an API call.
                                    * This field is only populated for Create and Update operations.
                                    * 
                              * * string build_id = 6; + * * @return The buildId. */ public java.lang.String getBuildId() { java.lang.Object ref = buildId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildId_ = s; return s; @@ -1470,21 +1626,22 @@ public java.lang.String getBuildId() { } } /** + * + * *
                                    * The Cloud Build ID of the function created or updated by an API call.
                                    * This field is only populated for Create and Update operations.
                                    * 
                              * * string build_id = 6; + * * @return The bytes for buildId. */ - public com.google.protobuf.ByteString - getBuildIdBytes() { + public com.google.protobuf.ByteString getBuildIdBytes() { java.lang.Object ref = buildId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); buildId_ = b; return b; } else { @@ -1492,57 +1649,64 @@ public java.lang.String getBuildId() { } } /** + * + * *
                                    * The Cloud Build ID of the function created or updated by an API call.
                                    * This field is only populated for Create and Update operations.
                                    * 
                              * * string build_id = 6; + * * @param value The buildId to set. * @return This builder for chaining. */ - public Builder setBuildId( - java.lang.String value) { + public Builder setBuildId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + buildId_ = value; onChanged(); return this; } /** + * + * *
                                    * The Cloud Build ID of the function created or updated by an API call.
                                    * This field is only populated for Create and Update operations.
                                    * 
                              * * string build_id = 6; + * * @return This builder for chaining. */ public Builder clearBuildId() { - + buildId_ = getDefaultInstance().getBuildId(); onChanged(); return this; } /** + * + * *
                                    * The Cloud Build ID of the function created or updated by an API call.
                                    * This field is only populated for Create and Update operations.
                                    * 
                              * * string build_id = 6; + * * @param value The bytes for buildId to set. * @return This builder for chaining. */ - public Builder setBuildIdBytes( - com.google.protobuf.ByteString value) { + public Builder setBuildIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + buildId_ = value; onChanged(); return this; @@ -1550,19 +1714,21 @@ public Builder setBuildIdBytes( private java.lang.Object sourceToken_ = ""; /** + * + * *
                                    * An identifier for Firebase function sources. Disclaimer: This field is only
                                    * supported for Firebase function deployments.
                                    * 
                              * * string source_token = 7; + * * @return The sourceToken. */ public java.lang.String getSourceToken() { java.lang.Object ref = sourceToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; @@ -1571,21 +1737,22 @@ public java.lang.String getSourceToken() { } } /** + * + * *
                                    * An identifier for Firebase function sources. Disclaimer: This field is only
                                    * supported for Firebase function deployments.
                                    * 
                              * * string source_token = 7; + * * @return The bytes for sourceToken. */ - public com.google.protobuf.ByteString - getSourceTokenBytes() { + public com.google.protobuf.ByteString getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -1593,57 +1760,64 @@ public java.lang.String getSourceToken() { } } /** + * + * *
                                    * An identifier for Firebase function sources. Disclaimer: This field is only
                                    * supported for Firebase function deployments.
                                    * 
                              * * string source_token = 7; + * * @param value The sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceToken( - java.lang.String value) { + public Builder setSourceToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceToken_ = value; onChanged(); return this; } /** + * + * *
                                    * An identifier for Firebase function sources. Disclaimer: This field is only
                                    * supported for Firebase function deployments.
                                    * 
                              * * string source_token = 7; + * * @return This builder for chaining. */ public Builder clearSourceToken() { - + sourceToken_ = getDefaultInstance().getSourceToken(); onChanged(); return this; } /** + * + * *
                                    * An identifier for Firebase function sources. Disclaimer: This field is only
                                    * supported for Firebase function deployments.
                                    * 
                              * * string source_token = 7; + * * @param value The bytes for sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceToken_ = value; onChanged(); return this; @@ -1651,6 +1825,8 @@ public Builder setSourceTokenBytes( private java.lang.Object buildName_ = ""; /** + * + * *
                                    * The Cloud Build Name of the function deployment.
                                    * This field is only populated for Create and Update operations.
                              @@ -1658,13 +1834,13 @@ public Builder setSourceTokenBytes(
                                    * 
                              * * string build_name = 8; + * * @return The buildName. */ public java.lang.String getBuildName() { java.lang.Object ref = buildName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildName_ = s; return s; @@ -1673,6 +1849,8 @@ public java.lang.String getBuildName() { } } /** + * + * *
                                    * The Cloud Build Name of the function deployment.
                                    * This field is only populated for Create and Update operations.
                              @@ -1680,15 +1858,14 @@ public java.lang.String getBuildName() {
                                    * 
                              * * string build_name = 8; + * * @return The bytes for buildName. */ - public com.google.protobuf.ByteString - getBuildNameBytes() { + public com.google.protobuf.ByteString getBuildNameBytes() { java.lang.Object ref = buildName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); buildName_ = b; return b; } else { @@ -1696,6 +1873,8 @@ public java.lang.String getBuildName() { } } /** + * + * *
                                    * The Cloud Build Name of the function deployment.
                                    * This field is only populated for Create and Update operations.
                              @@ -1703,20 +1882,22 @@ public java.lang.String getBuildName() {
                                    * 
                              * * string build_name = 8; + * * @param value The buildName to set. * @return This builder for chaining. */ - public Builder setBuildName( - java.lang.String value) { + public Builder setBuildName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + buildName_ = value; onChanged(); return this; } /** + * + * *
                                    * The Cloud Build Name of the function deployment.
                                    * This field is only populated for Create and Update operations.
                              @@ -1724,15 +1905,18 @@ public Builder setBuildName(
                                    * 
                              * * string build_name = 8; + * * @return This builder for chaining. */ public Builder clearBuildName() { - + buildName_ = getDefaultInstance().getBuildName(); onChanged(); return this; } /** + * + * *
                                    * The Cloud Build Name of the function deployment.
                                    * This field is only populated for Create and Update operations.
                              @@ -1740,23 +1924,23 @@ public Builder clearBuildName() {
                                    * 
                              * * string build_name = 8; + * * @param value The bytes for buildName to set. * @return This builder for chaining. */ - public Builder setBuildNameBytes( - com.google.protobuf.ByteString value) { + public Builder setBuildNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + buildName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1766,12 +1950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.OperationMetadataV1) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.OperationMetadataV1) private static final com.google.cloud.functions.v1.OperationMetadataV1 DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.OperationMetadataV1(); } @@ -1780,16 +1964,16 @@ public static com.google.cloud.functions.v1.OperationMetadataV1 getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadataV1 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadataV1(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadataV1 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadataV1(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1804,6 +1988,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.OperationMetadataV1 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java index 80a23193..ded4fd8f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1OrBuilder.java @@ -1,72 +1,107 @@ +/* + * 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/v1/operations.proto package com.google.cloud.functions.v1; -public interface OperationMetadataV1OrBuilder extends +public interface OperationMetadataV1OrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.OperationMetadataV1) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Target of the operation - for example
                                  * `projects/project-1/locations/region-1/functions/function-1`
                                  * 
                              * * string target = 1; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
                                  * Target of the operation - for example
                                  * `projects/project-1/locations/region-1/functions/function-1`
                                  * 
                              * * string target = 1; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
                                  * Type of operation.
                                  * 
                              * * .google.cloud.functions.v1.OperationType type = 2; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
                                  * Type of operation.
                                  * 
                              * * .google.cloud.functions.v1.OperationType type = 2; + * * @return The type. */ com.google.cloud.functions.v1.OperationType getType(); /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request = 3; + * * @return Whether the request field is set. */ boolean hasRequest(); /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request = 3; + * * @return The request. */ com.google.protobuf.Any getRequest(); /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              @@ -76,35 +111,46 @@ public interface OperationMetadataV1OrBuilder extends com.google.protobuf.AnyOrBuilder getRequestOrBuilder(); /** + * + * *
                                  * Version id of the function created or updated by an API call.
                                  * This field is only populated for Create and Update operations.
                                  * 
                              * * int64 version_id = 4; + * * @return The versionId. */ long getVersionId(); /** + * + * *
                                  * The last update timestamp of the operation.
                                  * 
                              * * .google.protobuf.Timestamp update_time = 5; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
                                  * The last update timestamp of the operation.
                                  * 
                              * * .google.protobuf.Timestamp update_time = 5; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
                                  * The last update timestamp of the operation.
                                  * 
                              @@ -114,50 +160,62 @@ public interface OperationMetadataV1OrBuilder extends com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
                                  * The Cloud Build ID of the function created or updated by an API call.
                                  * This field is only populated for Create and Update operations.
                                  * 
                              * * string build_id = 6; + * * @return The buildId. */ java.lang.String getBuildId(); /** + * + * *
                                  * The Cloud Build ID of the function created or updated by an API call.
                                  * This field is only populated for Create and Update operations.
                                  * 
                              * * string build_id = 6; + * * @return The bytes for buildId. */ - com.google.protobuf.ByteString - getBuildIdBytes(); + com.google.protobuf.ByteString getBuildIdBytes(); /** + * + * *
                                  * An identifier for Firebase function sources. Disclaimer: This field is only
                                  * supported for Firebase function deployments.
                                  * 
                              * * string source_token = 7; + * * @return The sourceToken. */ java.lang.String getSourceToken(); /** + * + * *
                                  * An identifier for Firebase function sources. Disclaimer: This field is only
                                  * supported for Firebase function deployments.
                                  * 
                              * * string source_token = 7; + * * @return The bytes for sourceToken. */ - com.google.protobuf.ByteString - getSourceTokenBytes(); + com.google.protobuf.ByteString getSourceTokenBytes(); /** + * + * *
                                  * The Cloud Build Name of the function deployment.
                                  * This field is only populated for Create and Update operations.
                              @@ -165,10 +223,13 @@ public interface OperationMetadataV1OrBuilder extends
                                  * 
                              * * string build_name = 8; + * * @return The buildName. */ java.lang.String getBuildName(); /** + * + * *
                                  * The Cloud Build Name of the function deployment.
                                  * This field is only populated for Create and Update operations.
                              @@ -176,8 +237,8 @@ public interface OperationMetadataV1OrBuilder extends
                                  * 
                              * * string build_name = 8; + * * @return The bytes for buildName. */ - com.google.protobuf.ByteString - getBuildNameBytes(); + com.google.protobuf.ByteString getBuildNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationType.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationType.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationType.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationType.java index d2ee7a30..69f5376e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationType.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationType.java @@ -1,18 +1,36 @@ +/* + * 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/v1/operations.proto package com.google.cloud.functions.v1; /** + * + * *
                                * A type of an operation.
                                * 
                              * * Protobuf enum {@code google.cloud.functions.v1.OperationType} */ -public enum OperationType - implements com.google.protobuf.ProtocolMessageEnum { +public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                  * Unknown operation type.
                                  * 
                              @@ -21,6 +39,8 @@ public enum OperationType */ OPERATION_UNSPECIFIED(0), /** + * + * *
                                  * Triggered by CreateFunction call
                                  * 
                              @@ -29,6 +49,8 @@ public enum OperationType */ CREATE_FUNCTION(1), /** + * + * *
                                  * Triggered by UpdateFunction call
                                  * 
                              @@ -37,6 +59,8 @@ public enum OperationType */ UPDATE_FUNCTION(2), /** + * + * *
                                  * Triggered by DeleteFunction call.
                                  * 
                              @@ -48,6 +72,8 @@ public enum OperationType ; /** + * + * *
                                  * Unknown operation type.
                                  * 
                              @@ -56,6 +82,8 @@ public enum OperationType */ public static final int OPERATION_UNSPECIFIED_VALUE = 0; /** + * + * *
                                  * Triggered by CreateFunction call
                                  * 
                              @@ -64,6 +92,8 @@ public enum OperationType */ public static final int CREATE_FUNCTION_VALUE = 1; /** + * + * *
                                  * Triggered by UpdateFunction call
                                  * 
                              @@ -72,6 +102,8 @@ public enum OperationType */ public static final int UPDATE_FUNCTION_VALUE = 2; /** + * + * *
                                  * Triggered by DeleteFunction call.
                                  * 
                              @@ -80,7 +112,6 @@ public enum OperationType */ public static final int DELETE_FUNCTION_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -105,50 +136,53 @@ public static OperationType valueOf(int value) { */ public static OperationType forNumber(int value) { switch (value) { - case 0: return OPERATION_UNSPECIFIED; - case 1: return CREATE_FUNCTION; - case 2: return UPDATE_FUNCTION; - case 3: return DELETE_FUNCTION; - default: return null; + case 0: + return OPERATION_UNSPECIFIED; + case 1: + return CREATE_FUNCTION; + case 2: + return UPDATE_FUNCTION; + case 3: + return DELETE_FUNCTION; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - OperationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OperationType findValueByNumber(int number) { - return OperationType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperationType findValueByNumber(int number) { + return OperationType.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsOperationsProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsOperationsProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final OperationType[] VALUES = values(); - public static OperationType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static OperationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -164,4 +198,3 @@ private OperationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.functions.v1.OperationType) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java index ec0aa53f..2d15134c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java @@ -1,9 +1,26 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Configuration for a secret environment variable. It has the information
                                * necessary to fetch the secret value from secret manager and expose it as an
                              @@ -12,15 +29,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v1.SecretEnvVar}
                                */
                              -public final class SecretEnvVar extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class SecretEnvVar extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.SecretEnvVar)
                                   SecretEnvVarOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use SecretEnvVar.newBuilder() to construct.
                                 private SecretEnvVar(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private SecretEnvVar() {
                                   key_ = "";
                                   projectId_ = "";
                              @@ -30,16 +48,15 @@ private SecretEnvVar() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new SecretEnvVar();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private SecretEnvVar(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -58,37 +75,41 @@ private SecretEnvVar(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            key_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              key_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            projectId_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              projectId_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            secret_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              secret_ = s;
                              +              break;
                              +            }
                              +          case 34:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            version_ = s;
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              version_ = s;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -96,34 +117,39 @@ private SecretEnvVar(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     this.unknownFields = unknownFields.build();
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v1.FunctionsProto
                              +        .internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable
                              +    return com.google.cloud.functions.v1.FunctionsProto
                              +        .internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v1.SecretEnvVar.class, com.google.cloud.functions.v1.SecretEnvVar.Builder.class);
                              +            com.google.cloud.functions.v1.SecretEnvVar.class,
                              +            com.google.cloud.functions.v1.SecretEnvVar.Builder.class);
                                 }
                               
                                 public static final int KEY_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object key_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The key. */ @java.lang.Override @@ -132,29 +158,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -165,6 +191,8 @@ public java.lang.String getKey() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** + * + * *
                                  * Project identifier (preferrably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it will be
                              @@ -173,6 +201,7 @@ public java.lang.String getKey() {
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -181,14 +210,15 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
                                  * Project identifier (preferrably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it will be
                              @@ -197,16 +227,15 @@ public java.lang.String getProjectId() {
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -217,11 +246,14 @@ public java.lang.String getProjectId() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ @java.lang.Override @@ -230,29 +262,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -263,6 +295,8 @@ public java.lang.String getSecret() { public static final int VERSION_FIELD_NUMBER = 4; private volatile java.lang.Object version_; /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -270,6 +304,7 @@ public java.lang.String getSecret() {
                                  * 
                              * * string version = 4; + * * @return The version. */ @java.lang.Override @@ -278,14 +313,15 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -293,16 +329,15 @@ public java.lang.String getVersion() {
                                  * 
                              * * string version = 4; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -311,6 +346,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,8 +358,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -365,21 +400,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.SecretEnvVar)) { return super.equals(obj); } - com.google.cloud.functions.v1.SecretEnvVar other = (com.google.cloud.functions.v1.SecretEnvVar) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getSecret() - .equals(other.getSecret())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; + com.google.cloud.functions.v1.SecretEnvVar other = + (com.google.cloud.functions.v1.SecretEnvVar) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getSecret().equals(other.getSecret())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -404,97 +436,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.SecretEnvVar parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.SecretEnvVar parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.SecretEnvVar parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.SecretEnvVar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.SecretEnvVar 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.v1.SecretEnvVar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.SecretEnvVar parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v1.SecretEnvVar parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.SecretEnvVar parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.SecretEnvVar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.SecretEnvVar parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.SecretEnvVar parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.SecretEnvVar parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.SecretEnvVar parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.SecretEnvVar prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Configuration for a secret environment variable. It has the information
                                  * necessary to fetch the secret value from secret manager and expose it as an
                              @@ -503,21 +542,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v1.SecretEnvVar}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.SecretEnvVar)
                                     com.google.cloud.functions.v1.SecretEnvVarOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_SecretEnvVar_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v1.SecretEnvVar.class, com.google.cloud.functions.v1.SecretEnvVar.Builder.class);
                              +              com.google.cloud.functions.v1.SecretEnvVar.class,
                              +              com.google.cloud.functions.v1.SecretEnvVar.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v1.SecretEnvVar.newBuilder()
                              @@ -525,16 +566,15 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              -      }
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -550,9 +590,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -571,7 +611,8 @@ public com.google.cloud.functions.v1.SecretEnvVar build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v1.SecretEnvVar buildPartial() {
                              -      com.google.cloud.functions.v1.SecretEnvVar result = new com.google.cloud.functions.v1.SecretEnvVar(this);
                              +      com.google.cloud.functions.v1.SecretEnvVar result =
                              +          new com.google.cloud.functions.v1.SecretEnvVar(this);
                                     result.key_ = key_;
                                     result.projectId_ = projectId_;
                                     result.secret_ = secret_;
                              @@ -584,38 +625,39 @@ public com.google.cloud.functions.v1.SecretEnvVar buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v1.SecretEnvVar)other);
                              +        return mergeFrom((com.google.cloud.functions.v1.SecretEnvVar) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -671,18 +713,20 @@ public Builder mergeFrom(
                               
                                   private java.lang.Object key_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -691,20 +735,21 @@ public java.lang.String getKey() { } } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -712,54 +757,61 @@ public java.lang.String getKey() { } } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -767,6 +819,8 @@ public Builder setKeyBytes( private java.lang.Object projectId_ = ""; /** + * + * *
                                    * Project identifier (preferrably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it will be
                              @@ -775,13 +829,13 @@ public Builder setKeyBytes(
                                    * 
                              * * string project_id = 2; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -790,6 +844,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferrably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it will be
                              @@ -798,15 +854,14 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -814,6 +869,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferrably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it will be
                              @@ -822,20 +879,22 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferrably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it will be
                              @@ -844,15 +903,18 @@ public Builder setProjectId(
                                    * 
                              * * string project_id = 2; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferrably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it will be
                              @@ -861,16 +923,16 @@ public Builder clearProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -878,18 +940,20 @@ public Builder setProjectIdBytes( private java.lang.Object secret_ = ""; /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -898,20 +962,21 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -919,54 +984,61 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret( - java.lang.String value) { + public Builder setSecret(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes( - com.google.protobuf.ByteString value) { + public Builder setSecretBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; @@ -974,6 +1046,8 @@ public Builder setSecretBytes( private java.lang.Object version_ = ""; /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -981,13 +1055,13 @@ public Builder setSecretBytes(
                                    * 
                              * * string version = 4; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -996,6 +1070,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1003,15 +1079,14 @@ public java.lang.String getVersion() {
                                    * 
                              * * string version = 4; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -1019,6 +1094,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1026,20 +1103,22 @@ public java.lang.String getVersion() {
                                    * 
                              * * string version = 4; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1047,15 +1126,18 @@ public Builder setVersion(
                                    * 
                              * * string version = 4; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1063,23 +1145,23 @@ public Builder clearVersion() {
                                    * 
                              * * string version = 4; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1089,12 +1171,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.SecretEnvVar) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.SecretEnvVar) private static final com.google.cloud.functions.v1.SecretEnvVar DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.SecretEnvVar(); } @@ -1103,16 +1185,16 @@ public static com.google.cloud.functions.v1.SecretEnvVar getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretEnvVar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretEnvVar(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretEnvVar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretEnvVar(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1127,6 +1209,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.SecretEnvVar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java index 582dd501..0d77c938 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVarOrBuilder.java @@ -1,33 +1,56 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface SecretEnvVarOrBuilder extends +public interface SecretEnvVarOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.SecretEnvVar) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
                                  * Project identifier (preferrably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it will be
                              @@ -36,10 +59,13 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
                                  * Project identifier (preferrably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it will be
                              @@ -48,32 +74,39 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ java.lang.String getSecret(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - com.google.protobuf.ByteString - getSecretBytes(); + com.google.protobuf.ByteString getSecretBytes(); /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -81,10 +114,13 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string version = 4; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -92,8 +128,8 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string version = 4; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java index feac160b..ea376595 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java @@ -1,9 +1,26 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Configuration for a secret volume. It has the information necessary to fetch
                                * the secret value from secret manager and make it available as files mounted
                              @@ -14,15 +31,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v1.SecretVolume}
                                */
                              -public final class SecretVolume extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class SecretVolume extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.SecretVolume)
                                   SecretVolumeOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use SecretVolume.newBuilder() to construct.
                                 private SecretVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private SecretVolume() {
                                   mountPath_ = "";
                                   projectId_ = "";
                              @@ -32,16 +50,15 @@ private SecretVolume() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new SecretVolume();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private SecretVolume(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -61,40 +78,48 @@ private SecretVolume(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            mountPath_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              mountPath_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            projectId_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              projectId_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            secret_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              versions_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000001;
                              +              secret_ = s;
                              +              break;
                                           }
                              -            versions_.add(
                              -                input.readMessage(com.google.cloud.functions.v1.SecretVolume.SecretVersion.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +          case 34:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                versions_ =
                              +                    new java.util.ArrayList<
                              +                        com.google.cloud.functions.v1.SecretVolume.SecretVersion>();
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              versions_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v1.SecretVolume.SecretVersion.parser(),
                              +                      extensionRegistry));
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -102,8 +127,7 @@ private SecretVolume(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000001) != 0)) {
                                       versions_ = java.util.Collections.unmodifiableList(versions_);
                              @@ -112,24 +136,30 @@ private SecretVolume(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v1.FunctionsProto
                              +        .internal_static_google_cloud_functions_v1_SecretVolume_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable
                              +    return com.google.cloud.functions.v1.FunctionsProto
                              +        .internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v1.SecretVolume.class, com.google.cloud.functions.v1.SecretVolume.Builder.class);
                              +            com.google.cloud.functions.v1.SecretVolume.class,
                              +            com.google.cloud.functions.v1.SecretVolume.Builder.class);
                                 }
                               
                              -  public interface SecretVersionOrBuilder extends
                              +  public interface SecretVersionOrBuilder
                              +      extends
                                     // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.SecretVolume.SecretVersion)
                                     com.google.protobuf.MessageOrBuilder {
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferrable to use `latest` version with secret volumes as secret value
                              @@ -137,10 +167,13 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferrable to use `latest` version with secret volumes as secret value
                              @@ -148,12 +181,14 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -162,10 +197,13 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string path = 2; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -174,27 +212,30 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string path = 2; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); } /** + * + * *
                                  * Configuration for a single version.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.SecretVolume.SecretVersion} */ - public static final class SecretVersion extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SecretVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.SecretVolume.SecretVersion) SecretVersionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SecretVersion.newBuilder() to construct. private SecretVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SecretVersion() { version_ = ""; path_ = ""; @@ -202,16 +243,15 @@ private SecretVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecretVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SecretVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -230,25 +270,27 @@ private SecretVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + version_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - path_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + path_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -256,29 +298,33 @@ private SecretVersion( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; + + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.SecretVolume.SecretVersion.class, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v1.SecretVolume.SecretVersion.class, + com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferrable to use `latest` version with secret volumes as secret value
                              @@ -286,6 +332,7 @@ private SecretVersion(
                                    * 
                              * * string version = 1; + * * @return The version. */ @java.lang.Override @@ -294,14 +341,15 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferrable to use `latest` version with secret volumes as secret value
                              @@ -309,16 +357,15 @@ public java.lang.String getVersion() {
                                    * 
                              * * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -329,6 +376,8 @@ public java.lang.String getVersion() { public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -337,6 +386,7 @@ public java.lang.String getVersion() {
                                    * 
                              * * string path = 2; + * * @return The path. */ @java.lang.Override @@ -345,14 +395,15 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -361,16 +412,15 @@ public java.lang.String getPath() {
                                    * 
                              * * string path = 2; + * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -379,6 +429,7 @@ public java.lang.String getPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -390,8 +441,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } @@ -421,17 +471,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.SecretVolume.SecretVersion)) { return super.equals(obj); } - com.google.cloud.functions.v1.SecretVolume.SecretVersion other = (com.google.cloud.functions.v1.SecretVolume.SecretVersion) obj; + com.google.cloud.functions.v1.SecretVolume.SecretVersion other = + (com.google.cloud.functions.v1.SecretVolume.SecretVersion) obj; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getPath() - .equals(other.getPath())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getPath().equals(other.getPath())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -453,87 +502,94 @@ public int hashCode() { } public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.SecretVolume.SecretVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.SecretVolume.SecretVersion 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.v1.SecretVolume.SecretVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.SecretVolume.SecretVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v1.SecretVolume.SecretVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v1.SecretVolume.SecretVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -543,27 +599,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                                    * Configuration for a single version.
                                    * 
                              * * Protobuf type {@code google.cloud.functions.v1.SecretVolume.SecretVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.SecretVolume.SecretVersion) com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder { - 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; + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.SecretVolume.SecretVersion.class, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v1.SecretVolume.SecretVersion.class, + com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder.class); } // Construct using com.google.cloud.functions.v1.SecretVolume.SecretVersion.newBuilder() @@ -571,16 +632,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -592,9 +652,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor; } @java.lang.Override @@ -613,7 +673,8 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion build() { @java.lang.Override public com.google.cloud.functions.v1.SecretVolume.SecretVersion buildPartial() { - com.google.cloud.functions.v1.SecretVolume.SecretVersion result = new com.google.cloud.functions.v1.SecretVolume.SecretVersion(this); + com.google.cloud.functions.v1.SecretVolume.SecretVersion result = + new com.google.cloud.functions.v1.SecretVolume.SecretVersion(this); result.version_ = version_; result.path_ = path_; onBuilt(); @@ -624,38 +685,41 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.SecretVolume.SecretVersion)other); + return mergeFrom((com.google.cloud.functions.v1.SecretVolume.SecretVersion) other); } else { super.mergeFrom(other); return this; @@ -663,7 +727,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.SecretVolume.SecretVersion other) { - if (other == com.google.cloud.functions.v1.SecretVolume.SecretVersion.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.SecretVolume.SecretVersion.getDefaultInstance()) + return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -691,7 +756,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v1.SecretVolume.SecretVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v1.SecretVolume.SecretVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -703,6 +769,8 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferrable to use `latest` version with secret volumes as secret value
                              @@ -710,13 +778,13 @@ public Builder mergeFrom(
                                      * 
                              * * string version = 1; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -725,6 +793,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferrable to use `latest` version with secret volumes as secret value
                              @@ -732,15 +802,14 @@ public java.lang.String getVersion() {
                                      * 
                              * * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -748,6 +817,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferrable to use `latest` version with secret volumes as secret value
                              @@ -755,20 +826,22 @@ public java.lang.String getVersion() {
                                      * 
                              * * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferrable to use `latest` version with secret volumes as secret value
                              @@ -776,15 +849,18 @@ public Builder setVersion(
                                      * 
                              * * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferrable to use `latest` version with secret volumes as secret value
                              @@ -792,16 +868,16 @@ public Builder clearVersion() {
                                      * 
                              * * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -809,6 +885,8 @@ public Builder setVersionBytes( private java.lang.Object path_ = ""; /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -817,13 +895,13 @@ public Builder setVersionBytes(
                                      * 
                              * * string path = 2; + * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -832,6 +910,8 @@ public java.lang.String getPath() { } } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -840,15 +920,14 @@ public java.lang.String getPath() {
                                      * 
                              * * string path = 2; + * * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -856,6 +935,8 @@ public java.lang.String getPath() { } } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -864,20 +945,22 @@ public java.lang.String getPath() {
                                      * 
                              * * string path = 2; + * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath( - java.lang.String value) { + public Builder setPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -886,15 +969,18 @@ public Builder setPath(
                                      * 
                              * * string path = 2; + * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -903,20 +989,21 @@ public Builder clearPath() {
                                      * 
                              * * string path = 2; + * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { + public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -929,12 +1016,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.SecretVolume.SecretVersion) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.SecretVolume.SecretVersion) private static final com.google.cloud.functions.v1.SecretVolume.SecretVersion DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.SecretVolume.SecretVersion(); } @@ -943,16 +1030,16 @@ public static com.google.cloud.functions.v1.SecretVolume.SecretVersion getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -967,12 +1054,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.SecretVolume.SecretVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int MOUNT_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object mountPath_; /** + * + * *
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -983,6 +1071,7 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion getDefaultInstan
                                  * 
                              * * string mount_path = 1; + * * @return The mountPath. */ @java.lang.Override @@ -991,14 +1080,15 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** + * + * *
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1009,16 +1099,15 @@ public java.lang.String getMountPath() {
                                  * 
                              * * string mount_path = 1; + * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1029,6 +1118,8 @@ public java.lang.String getMountPath() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** + * + * *
                                  * Project identifier (preferrably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it will be
                              @@ -1037,6 +1128,7 @@ public java.lang.String getMountPath() {
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -1045,14 +1137,15 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
                                  * Project identifier (preferrably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it will be
                              @@ -1061,16 +1154,15 @@ public java.lang.String getProjectId() {
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1081,11 +1173,14 @@ public java.lang.String getProjectId() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ @java.lang.Override @@ -1094,29 +1189,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -1127,6 +1222,8 @@ public java.lang.String getSecret() { public static final int VERSIONS_FIELD_NUMBER = 4; private java.util.List versions_; /** + * + * *
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1136,10 +1233,13 @@ public java.lang.String getSecret() {
                                  * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
                                  */
                                 @java.lang.Override
                              -  public java.util.List getVersionsList() {
                              +  public java.util.List
                              +      getVersionsList() {
                                   return versions_;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1149,11 +1249,13 @@ public java.util.List
                                  * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
                                  */
                                 @java.lang.Override
                              -  public java.util.List 
                              +  public java.util.List
                                     getVersionsOrBuilderList() {
                                   return versions_;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1167,6 +1269,8 @@ public int getVersionsCount() {
                                   return versions_.size();
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1180,6 +1284,8 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion getVersions(int
                                   return versions_.get(index);
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1195,6 +1301,7 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVers
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -1206,8 +1313,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) {
                                     com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_);
                                   }
                              @@ -1239,8 +1345,7 @@ public int getSerializedSize() {
                                     size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secret_);
                                   }
                                   for (int i = 0; i < versions_.size(); i++) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(4, versions_.get(i));
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, versions_.get(i));
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -1250,21 +1355,18 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v1.SecretVolume)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v1.SecretVolume other = (com.google.cloud.functions.v1.SecretVolume) obj;
                              +    com.google.cloud.functions.v1.SecretVolume other =
                              +        (com.google.cloud.functions.v1.SecretVolume) obj;
                               
                              -    if (!getMountPath()
                              -        .equals(other.getMountPath())) return false;
                              -    if (!getProjectId()
                              -        .equals(other.getProjectId())) return false;
                              -    if (!getSecret()
                              -        .equals(other.getSecret())) return false;
                              -    if (!getVersionsList()
                              -        .equals(other.getVersionsList())) return false;
                              +    if (!getMountPath().equals(other.getMountPath())) return false;
                              +    if (!getProjectId().equals(other.getProjectId())) return false;
                              +    if (!getSecret().equals(other.getSecret())) return false;
                              +    if (!getVersionsList().equals(other.getVersionsList())) return false;
                                   if (!unknownFields.equals(other.unknownFields)) return false;
                                   return true;
                                 }
                              @@ -1291,97 +1393,104 @@ public int hashCode() {
                                   return hash;
                                 }
                               
                              -  public static com.google.cloud.functions.v1.SecretVolume parseFrom(
                              -      java.nio.ByteBuffer data)
                              +  public static com.google.cloud.functions.v1.SecretVolume parseFrom(java.nio.ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v1.SecretVolume parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.v1.SecretVolume parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v1.SecretVolume 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.v1.SecretVolume parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v1.SecretVolume parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v1.SecretVolume parseFrom(java.io.InputStream input)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v1.SecretVolume parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v1.SecretVolume parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v1.SecretVolume parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v1.SecretVolume parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v1.SecretVolume parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v1.SecretVolume parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              +
                                 public static Builder newBuilder(com.google.cloud.functions.v1.SecretVolume prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Configuration for a secret volume. It has the information necessary to fetch
                                  * the secret value from secret manager and make it available as files mounted
                              @@ -1392,21 +1501,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v1.SecretVolume}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.SecretVolume)
                                     com.google.cloud.functions.v1.SecretVolumeOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_SecretVolume_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_SecretVolume_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v1.SecretVolume.class, com.google.cloud.functions.v1.SecretVolume.Builder.class);
                              +              com.google.cloud.functions.v1.SecretVolume.class,
                              +              com.google.cloud.functions.v1.SecretVolume.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v1.SecretVolume.newBuilder()
                              @@ -1414,17 +1525,17 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getVersionsFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -1444,9 +1555,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SecretVolume_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_SecretVolume_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -1465,7 +1576,8 @@ public com.google.cloud.functions.v1.SecretVolume build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v1.SecretVolume buildPartial() {
                              -      com.google.cloud.functions.v1.SecretVolume result = new com.google.cloud.functions.v1.SecretVolume(this);
                              +      com.google.cloud.functions.v1.SecretVolume result =
                              +          new com.google.cloud.functions.v1.SecretVolume(this);
                                     int from_bitField0_ = bitField0_;
                                     result.mountPath_ = mountPath_;
                                     result.projectId_ = projectId_;
                              @@ -1487,38 +1599,39 @@ public com.google.cloud.functions.v1.SecretVolume buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v1.SecretVolume)other);
                              +        return mergeFrom((com.google.cloud.functions.v1.SecretVolume) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1557,9 +1670,10 @@ public Builder mergeFrom(com.google.cloud.functions.v1.SecretVolume other) {
                                           versionsBuilder_ = null;
                                           versions_ = other.versions_;
                                           bitField0_ = (bitField0_ & ~0x00000001);
                              -            versionsBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getVersionsFieldBuilder() : null;
                              +            versionsBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getVersionsFieldBuilder()
                              +                    : null;
                                         } else {
                                           versionsBuilder_.addAllMessages(other.versions_);
                                         }
                              @@ -1593,10 +1707,13 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object mountPath_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1607,13 +1724,13 @@ public Builder mergeFrom(
                                    * 
                              * * string mount_path = 1; + * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -1622,6 +1739,8 @@ public java.lang.String getMountPath() { } } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1632,15 +1751,14 @@ public java.lang.String getMountPath() {
                                    * 
                              * * string mount_path = 1; + * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1648,6 +1766,8 @@ public java.lang.String getMountPath() { } } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1658,20 +1778,22 @@ public java.lang.String getMountPath() {
                                    * 
                              * * string mount_path = 1; + * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath( - java.lang.String value) { + public Builder setMountPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mountPath_ = value; onChanged(); return this; } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1682,15 +1804,18 @@ public Builder setMountPath(
                                    * 
                              * * string mount_path = 1; + * * @return This builder for chaining. */ public Builder clearMountPath() { - + mountPath_ = getDefaultInstance().getMountPath(); onChanged(); return this; } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1701,16 +1826,16 @@ public Builder clearMountPath() {
                                    * 
                              * * string mount_path = 1; + * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes( - com.google.protobuf.ByteString value) { + public Builder setMountPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mountPath_ = value; onChanged(); return this; @@ -1718,6 +1843,8 @@ public Builder setMountPathBytes( private java.lang.Object projectId_ = ""; /** + * + * *
                                    * Project identifier (preferrably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it will be
                              @@ -1726,13 +1853,13 @@ public Builder setMountPathBytes(
                                    * 
                              * * string project_id = 2; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1741,6 +1868,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferrably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it will be
                              @@ -1749,15 +1878,14 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1765,6 +1893,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferrably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it will be
                              @@ -1773,20 +1903,22 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferrably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it will be
                              @@ -1795,15 +1927,18 @@ public Builder setProjectId(
                                    * 
                              * * string project_id = 2; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferrably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it will be
                              @@ -1812,16 +1947,16 @@ public Builder clearProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1829,18 +1964,20 @@ public Builder setProjectIdBytes( private java.lang.Object secret_ = ""; /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -1849,20 +1986,21 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -1870,72 +2008,87 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret( - java.lang.String value) { + public Builder setSecret(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes( - com.google.protobuf.ByteString value) { + public Builder setSecretBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; } private java.util.List versions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - versions_ = new java.util.ArrayList(versions_); + versions_ = + new java.util.ArrayList( + versions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v1.SecretVolume.SecretVersion, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder> versionsBuilder_; + com.google.cloud.functions.v1.SecretVolume.SecretVersion, + com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder, + com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder> + versionsBuilder_; /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -1944,7 +2097,8 @@ private void ensureVersionsIsMutable() {
                                    *
                                    * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
                                    */
                              -    public java.util.List getVersionsList() {
                              +    public java.util.List
                              +        getVersionsList() {
                                     if (versionsBuilder_ == null) {
                                       return java.util.Collections.unmodifiableList(versions_);
                                     } else {
                              @@ -1952,6 +2106,8 @@ public java.util.List
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -1968,6 +2124,8 @@ public int getVersionsCount() {
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -1984,6 +2142,8 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion getVersions(int
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2007,6 +2167,8 @@ public Builder setVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2016,7 +2178,8 @@ public Builder setVersions(
                                    * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
                                    */
                                   public Builder setVersions(
                              -        int index, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder builderForValue) {
                              +        int index,
                              +        com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder builderForValue) {
                                     if (versionsBuilder_ == null) {
                                       ensureVersionsIsMutable();
                                       versions_.set(index, builderForValue.build());
                              @@ -2027,6 +2190,8 @@ public Builder setVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2049,6 +2214,8 @@ public Builder addVersions(com.google.cloud.functions.v1.SecretVolume.SecretVers
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2072,6 +2239,8 @@ public Builder addVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2092,6 +2261,8 @@ public Builder addVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2101,7 +2272,8 @@ public Builder addVersions(
                                    * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
                                    */
                                   public Builder addVersions(
                              -        int index, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder builderForValue) {
                              +        int index,
                              +        com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder builderForValue) {
                                     if (versionsBuilder_ == null) {
                                       ensureVersionsIsMutable();
                                       versions_.add(index, builderForValue.build());
                              @@ -2112,6 +2284,8 @@ public Builder addVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2121,11 +2295,11 @@ public Builder addVersions(
                                    * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
                                    */
                                   public Builder addAllVersions(
                              -        java.lang.Iterable values) {
                              +        java.lang.Iterable
                              +            values) {
                                     if (versionsBuilder_ == null) {
                                       ensureVersionsIsMutable();
                              -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
                              -            values, versions_);
                              +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versions_);
                                       onChanged();
                                     } else {
                                       versionsBuilder_.addAllMessages(values);
                              @@ -2133,6 +2307,8 @@ public Builder addAllVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2152,6 +2328,8 @@ public Builder clearVersions() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2171,6 +2349,8 @@ public Builder removeVersions(int index) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2184,6 +2364,8 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder getVersi
                                     return getVersionsFieldBuilder().getBuilder(index);
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2195,11 +2377,14 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder getVersi
                                   public com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(
                                       int index) {
                                     if (versionsBuilder_ == null) {
                              -        return versions_.get(index);  } else {
                              +        return versions_.get(index);
                              +      } else {
                                       return versionsBuilder_.getMessageOrBuilder(index);
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2208,8 +2393,9 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVers
                                    *
                                    * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
                                    */
                              -    public java.util.List 
                              -         getVersionsOrBuilderList() {
                              +    public java.util.List<
                              +            ? extends com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder>
                              +        getVersionsOrBuilderList() {
                                     if (versionsBuilder_ != null) {
                                       return versionsBuilder_.getMessageOrBuilderList();
                                     } else {
                              @@ -2217,6 +2403,8 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVers
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2226,10 +2414,13 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVers
                                    * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
                                    */
                                   public com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder addVersionsBuilder() {
                              -      return getVersionsFieldBuilder().addBuilder(
                              -          com.google.cloud.functions.v1.SecretVolume.SecretVersion.getDefaultInstance());
                              +      return getVersionsFieldBuilder()
                              +          .addBuilder(
                              +              com.google.cloud.functions.v1.SecretVolume.SecretVersion.getDefaultInstance());
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2240,10 +2431,13 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder addVersi
                                    */
                                   public com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder addVersionsBuilder(
                                       int index) {
                              -      return getVersionsFieldBuilder().addBuilder(
                              -          index, com.google.cloud.functions.v1.SecretVolume.SecretVersion.getDefaultInstance());
                              +      return getVersionsFieldBuilder()
                              +          .addBuilder(
                              +              index, com.google.cloud.functions.v1.SecretVolume.SecretVersion.getDefaultInstance());
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2252,27 +2446,30 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder addVersi
                                    *
                                    * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
                                    */
                              -    public java.util.List 
                              -         getVersionsBuilderList() {
                              +    public java.util.List
                              +        getVersionsBuilderList() {
                                     return getVersionsFieldBuilder().getBuilderList();
                                   }
                              +
                                   private com.google.protobuf.RepeatedFieldBuilderV3<
                              -        com.google.cloud.functions.v1.SecretVolume.SecretVersion, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder> 
                              +            com.google.cloud.functions.v1.SecretVolume.SecretVersion,
                              +            com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder,
                              +            com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder>
                                       getVersionsFieldBuilder() {
                                     if (versionsBuilder_ == null) {
                              -        versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
                              -            com.google.cloud.functions.v1.SecretVolume.SecretVersion, com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder>(
                              -                versions_,
                              -                ((bitField0_ & 0x00000001) != 0),
                              -                getParentForChildren(),
                              -                isClean());
                              +        versionsBuilder_ =
                              +            new com.google.protobuf.RepeatedFieldBuilderV3<
                              +                com.google.cloud.functions.v1.SecretVolume.SecretVersion,
                              +                com.google.cloud.functions.v1.SecretVolume.SecretVersion.Builder,
                              +                com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder>(
                              +                versions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
                                       versions_ = null;
                                     }
                                     return versionsBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -2282,12 +2479,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.SecretVolume)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.SecretVolume)
                                 private static final com.google.cloud.functions.v1.SecretVolume DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v1.SecretVolume();
                                 }
                              @@ -2296,16 +2493,16 @@ public static com.google.cloud.functions.v1.SecretVolume getDefaultInstance() {
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public SecretVolume parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new SecretVolume(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public SecretVolume parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new SecretVolume(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -2320,6 +2517,4 @@ public com.google.protobuf.Parser getParserForType() {
                                 public com.google.cloud.functions.v1.SecretVolume getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java
                              similarity index 81%
                              rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java
                              rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java
                              index 84403738..1b656146 100644
                              --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java
                              +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java
                              @@ -1,13 +1,31 @@
                              +/*
                              + * 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/v1/functions.proto
                               
                               package com.google.cloud.functions.v1;
                               
                              -public interface SecretVolumeOrBuilder extends
                              +public interface SecretVolumeOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.SecretVolume)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -18,10 +36,13 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string mount_path = 1; + * * @return The mountPath. */ java.lang.String getMountPath(); /** + * + * *
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -32,12 +53,14 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string mount_path = 1; + * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString - getMountPathBytes(); + com.google.protobuf.ByteString getMountPathBytes(); /** + * + * *
                                  * Project identifier (preferrably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it will be
                              @@ -46,10 +69,13 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
                                  * Project identifier (preferrably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it will be
                              @@ -58,32 +84,39 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ java.lang.String getSecret(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - com.google.protobuf.ByteString - getSecretBytes(); + com.google.protobuf.ByteString getSecretBytes(); /** + * + * *
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -92,9 +125,10 @@ public interface SecretVolumeOrBuilder extends
                                  *
                                  * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
                                  */
                              -  java.util.List 
                              -      getVersionsList();
                              +  java.util.List getVersionsList();
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -105,6 +139,8 @@ public interface SecretVolumeOrBuilder extends
                                  */
                                 com.google.cloud.functions.v1.SecretVolume.SecretVersion getVersions(int index);
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -115,6 +151,8 @@ public interface SecretVolumeOrBuilder extends
                                  */
                                 int getVersionsCount();
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -123,9 +161,11 @@ public interface SecretVolumeOrBuilder extends
                                  *
                                  * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
                                  */
                              -  java.util.List 
                              +  java.util.List
                                     getVersionsOrBuilderList();
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -134,6 +174,5 @@ public interface SecretVolumeOrBuilder extends
                                  *
                                  * repeated .google.cloud.functions.v1.SecretVolume.SecretVersion versions = 4;
                                  */
                              -  com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(
                              -      int index);
                              +  com.google.cloud.functions.v1.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(int index);
                               }
                              diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java
                              similarity index 76%
                              rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java
                              rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java
                              index b678592a..fb2f4c39 100644
                              --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java
                              +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java
                              @@ -1,9 +1,26 @@
                              +/*
                              + * 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/v1/functions.proto
                               
                               package com.google.cloud.functions.v1;
                               
                               /**
                              + *
                              + *
                                * 
                                * Describes SourceRepository, used to represent parameters related to
                                * source repository where a function is hosted.
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v1.SourceRepository}
                                */
                              -public final class SourceRepository extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class SourceRepository extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.SourceRepository)
                                   SourceRepositoryOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use SourceRepository.newBuilder() to construct.
                                 private SourceRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private SourceRepository() {
                                   url_ = "";
                                   deployedUrl_ = "";
                              @@ -27,16 +45,15 @@ private SourceRepository() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new SourceRepository();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private SourceRepository(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -55,25 +72,27 @@ private SourceRepository(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            url_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              url_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            deployedUrl_ = s;
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              deployedUrl_ = s;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -81,29 +100,33 @@ private SourceRepository(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     this.unknownFields = unknownFields.build();
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v1.FunctionsProto
                              +        .internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable
                              +    return com.google.cloud.functions.v1.FunctionsProto
                              +        .internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v1.SourceRepository.class, com.google.cloud.functions.v1.SourceRepository.Builder.class);
                              +            com.google.cloud.functions.v1.SourceRepository.class,
                              +            com.google.cloud.functions.v1.SourceRepository.Builder.class);
                                 }
                               
                                 public static final int URL_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object url_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The URL pointing to the hosted repository where the function is defined.
                                  * There are supported Cloud Source Repository URLs in the following
                              @@ -119,6 +142,7 @@ private SourceRepository(
                                  * 
                              * * string url = 1; + * * @return The url. */ @java.lang.Override @@ -127,14 +151,15 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
                                  * The URL pointing to the hosted repository where the function is defined.
                                  * There are supported Cloud Source Repository URLs in the following
                              @@ -150,16 +175,15 @@ public java.lang.String getUrl() {
                                  * 
                              * * string url = 1; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -170,6 +194,8 @@ public java.lang.String getUrl() { public static final int DEPLOYED_URL_FIELD_NUMBER = 2; private volatile java.lang.Object deployedUrl_; /** + * + * *
                                  * Output only. The URL pointing to the hosted repository where the function
                                  * were defined at the time of deployment. It always points to a specific
                              @@ -177,6 +203,7 @@ public java.lang.String getUrl() {
                                  * 
                              * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The deployedUrl. */ @java.lang.Override @@ -185,14 +212,15 @@ public java.lang.String getDeployedUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deployedUrl_ = s; return s; } } /** + * + * *
                                  * Output only. The URL pointing to the hosted repository where the function
                                  * were defined at the time of deployment. It always points to a specific
                              @@ -200,16 +228,15 @@ public java.lang.String getDeployedUrl() {
                                  * 
                              * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for deployedUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getDeployedUrlBytes() { + public com.google.protobuf.ByteString getDeployedUrlBytes() { java.lang.Object ref = deployedUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); deployedUrl_ = b; return b; } else { @@ -218,6 +245,7 @@ public java.lang.String getDeployedUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +257,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } @@ -260,17 +287,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.SourceRepository)) { return super.equals(obj); } - com.google.cloud.functions.v1.SourceRepository other = (com.google.cloud.functions.v1.SourceRepository) obj; + com.google.cloud.functions.v1.SourceRepository other = + (com.google.cloud.functions.v1.SourceRepository) obj; - if (!getUrl() - .equals(other.getUrl())) return false; - if (!getDeployedUrl() - .equals(other.getDeployedUrl())) return false; + if (!getUrl().equals(other.getUrl())) return false; + if (!getDeployedUrl().equals(other.getDeployedUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,97 +317,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v1.SourceRepository parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v1.SourceRepository parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.SourceRepository parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.SourceRepository parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.SourceRepository 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.v1.SourceRepository parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.SourceRepository parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v1.SourceRepository parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.SourceRepository parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.SourceRepository parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.SourceRepository parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.SourceRepository parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.SourceRepository parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.SourceRepository parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.SourceRepository prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes SourceRepository, used to represent parameters related to
                                  * source repository where a function is hosted.
                              @@ -389,21 +422,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v1.SourceRepository}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.SourceRepository)
                                     com.google.cloud.functions.v1.SourceRepositoryOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v1.SourceRepository.class, com.google.cloud.functions.v1.SourceRepository.Builder.class);
                              +              com.google.cloud.functions.v1.SourceRepository.class,
                              +              com.google.cloud.functions.v1.SourceRepository.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v1.SourceRepository.newBuilder()
                              @@ -411,16 +446,15 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              -      }
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -432,9 +466,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v1.FunctionsProto
                              +          .internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -453,7 +487,8 @@ public com.google.cloud.functions.v1.SourceRepository build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v1.SourceRepository buildPartial() {
                              -      com.google.cloud.functions.v1.SourceRepository result = new com.google.cloud.functions.v1.SourceRepository(this);
                              +      com.google.cloud.functions.v1.SourceRepository result =
                              +          new com.google.cloud.functions.v1.SourceRepository(this);
                                     result.url_ = url_;
                                     result.deployedUrl_ = deployedUrl_;
                                     onBuilt();
                              @@ -464,38 +499,39 @@ public com.google.cloud.functions.v1.SourceRepository buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v1.SourceRepository)other);
                              +        return mergeFrom((com.google.cloud.functions.v1.SourceRepository) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -543,6 +579,8 @@ public Builder mergeFrom(
                               
                                   private java.lang.Object url_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The URL pointing to the hosted repository where the function is defined.
                                    * There are supported Cloud Source Repository URLs in the following
                              @@ -558,13 +596,13 @@ public Builder mergeFrom(
                                    * 
                              * * string url = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -573,6 +611,8 @@ 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
                              @@ -588,15 +628,14 @@ public java.lang.String getUrl() {
                                    * 
                              * * string url = 1; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -604,6 +643,8 @@ 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
                              @@ -619,20 +660,22 @@ public java.lang.String getUrl() {
                                    * 
                              * * string url = 1; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
                                    * The URL pointing to the hosted repository where the function is defined.
                                    * There are supported Cloud Source Repository URLs in the following
                              @@ -648,15 +691,18 @@ public Builder setUrl(
                                    * 
                              * * string url = 1; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
                                    * The URL pointing to the hosted repository where the function is defined.
                                    * There are supported Cloud Source Repository URLs in the following
                              @@ -672,16 +718,16 @@ public Builder clearUrl() {
                                    * 
                              * * string url = 1; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; @@ -689,6 +735,8 @@ public Builder setUrlBytes( private java.lang.Object deployedUrl_ = ""; /** + * + * *
                                    * Output only. The URL pointing to the hosted repository where the function
                                    * were defined at the time of deployment. It always points to a specific
                              @@ -696,13 +744,13 @@ public Builder setUrlBytes(
                                    * 
                              * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The deployedUrl. */ public java.lang.String getDeployedUrl() { java.lang.Object ref = deployedUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deployedUrl_ = s; return s; @@ -711,6 +759,8 @@ public java.lang.String getDeployedUrl() { } } /** + * + * *
                                    * Output only. The URL pointing to the hosted repository where the function
                                    * were defined at the time of deployment. It always points to a specific
                              @@ -718,15 +768,14 @@ public java.lang.String getDeployedUrl() {
                                    * 
                              * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for deployedUrl. */ - public com.google.protobuf.ByteString - getDeployedUrlBytes() { + public com.google.protobuf.ByteString getDeployedUrlBytes() { java.lang.Object ref = deployedUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); deployedUrl_ = b; return b; } else { @@ -734,6 +783,8 @@ public java.lang.String getDeployedUrl() { } } /** + * + * *
                                    * Output only. The URL pointing to the hosted repository where the function
                                    * were defined at the time of deployment. It always points to a specific
                              @@ -741,20 +792,22 @@ public java.lang.String getDeployedUrl() {
                                    * 
                              * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The deployedUrl to set. * @return This builder for chaining. */ - public Builder setDeployedUrl( - java.lang.String value) { + public Builder setDeployedUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deployedUrl_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. The URL pointing to the hosted repository where the function
                                    * were defined at the time of deployment. It always points to a specific
                              @@ -762,15 +815,18 @@ public Builder setDeployedUrl(
                                    * 
                              * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDeployedUrl() { - + deployedUrl_ = getDefaultInstance().getDeployedUrl(); onChanged(); return this; } /** + * + * *
                                    * Output only. The URL pointing to the hosted repository where the function
                                    * were defined at the time of deployment. It always points to a specific
                              @@ -778,23 +834,23 @@ public Builder clearDeployedUrl() {
                                    * 
                              * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for deployedUrl to set. * @return This builder for chaining. */ - public Builder setDeployedUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setDeployedUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deployedUrl_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -804,12 +860,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.SourceRepository) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.SourceRepository) private static final com.google.cloud.functions.v1.SourceRepository DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.SourceRepository(); } @@ -818,16 +874,16 @@ public static com.google.cloud.functions.v1.SourceRepository getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceRepository parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SourceRepository(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceRepository parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SourceRepository(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -842,6 +898,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.SourceRepository getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java index 458ec63a..9cd5604d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface SourceRepositoryOrBuilder extends +public interface SourceRepositoryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.SourceRepository) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The URL pointing to the hosted repository where the function is defined.
                                  * There are supported Cloud Source Repository URLs in the following
                              @@ -23,10 +41,13 @@ public interface SourceRepositoryOrBuilder extends
                                  * 
                              * * string url = 1; + * * @return The url. */ 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
                              @@ -42,12 +63,14 @@ public interface SourceRepositoryOrBuilder extends
                                  * 
                              * * string url = 1; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
                                  * Output only. The URL pointing to the hosted repository where the function
                                  * were defined at the time of deployment. It always points to a specific
                              @@ -55,10 +78,13 @@ public interface SourceRepositoryOrBuilder extends
                                  * 
                              * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The deployedUrl. */ java.lang.String getDeployedUrl(); /** + * + * *
                                  * Output only. The URL pointing to the hosted repository where the function
                                  * were defined at the time of deployment. It always points to a specific
                              @@ -66,8 +92,8 @@ public interface SourceRepositoryOrBuilder extends
                                  * 
                              * * string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for deployedUrl. */ - com.google.protobuf.ByteString - getDeployedUrlBytes(); + com.google.protobuf.ByteString getDeployedUrlBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java index dd358632..cf6a6c63 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java @@ -1,39 +1,55 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; /** + * + * *
                                * Request for the `UpdateFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v1.UpdateFunctionRequest} */ -public final class UpdateFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.UpdateFunctionRequest) UpdateFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateFunctionRequest.newBuilder() to construct. private UpdateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFunctionRequest() { - } + + private UpdateFunctionRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateFunctionRequest( case 0: done = true; break; - case 10: { - com.google.cloud.functions.v1.CloudFunction.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); - } - function_ = input.readMessage(com.google.cloud.functions.v1.CloudFunction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.functions.v1.CloudFunction.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); + } + function_ = + input.readMessage( + com.google.cloud.functions.v1.CloudFunction.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,41 @@ private UpdateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.UpdateFunctionRequest.class, com.google.cloud.functions.v1.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v1.UpdateFunctionRequest.class, + com.google.cloud.functions.v1.UpdateFunctionRequest.Builder.class); } public static final int FUNCTION_FIELD_NUMBER = 1; private com.google.cloud.functions.v1.CloudFunction function_; /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ @java.lang.Override @@ -127,23 +155,34 @@ public boolean hasFunction() { return function_ != null; } /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunction getFunction() { - return function_ == null ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() + : function_; } /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder() { @@ -153,11 +192,14 @@ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
                                  * Required. The list of fields in `CloudFunction` that have to be updated.
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -165,11 +207,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
                                  * Required. The list of fields in `CloudFunction` that have to be updated.
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -177,6 +222,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
                                  * Required. The list of fields in `CloudFunction` that have to be updated.
                                  * 
                              @@ -189,6 +236,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +248,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (function_ != null) { output.writeMessage(1, getFunction()); } @@ -218,12 +265,10 @@ public int getSerializedSize() { size = 0; if (function_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFunction()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunction()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +278,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v1.UpdateFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v1.UpdateFunctionRequest other = (com.google.cloud.functions.v1.UpdateFunctionRequest) obj; + com.google.cloud.functions.v1.UpdateFunctionRequest other = + (com.google.cloud.functions.v1.UpdateFunctionRequest) obj; if (hasFunction() != other.hasFunction()) return false; if (hasFunction()) { - if (!getFunction() - .equals(other.getFunction())) return false; + if (!getFunction().equals(other.getFunction())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -275,117 +319,126 @@ public int hashCode() { } public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v1.UpdateFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.UpdateFunctionRequest 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.v1.UpdateFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v1.UpdateFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v1.UpdateFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.UpdateFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v1.UpdateFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v1.UpdateFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `UpdateFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v1.UpdateFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.UpdateFunctionRequest) com.google.cloud.functions.v1.UpdateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v1.UpdateFunctionRequest.class, com.google.cloud.functions.v1.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v1.UpdateFunctionRequest.class, + com.google.cloud.functions.v1.UpdateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v1.UpdateFunctionRequest.newBuilder() @@ -393,16 +446,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v1.FunctionsProto.internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v1.FunctionsProto + .internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; } @java.lang.Override @@ -443,7 +495,8 @@ public com.google.cloud.functions.v1.UpdateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v1.UpdateFunctionRequest buildPartial() { - com.google.cloud.functions.v1.UpdateFunctionRequest result = new com.google.cloud.functions.v1.UpdateFunctionRequest(this); + com.google.cloud.functions.v1.UpdateFunctionRequest result = + new com.google.cloud.functions.v1.UpdateFunctionRequest(this); if (functionBuilder_ == null) { result.function_ = function_; } else { @@ -462,38 +515,39 @@ public com.google.cloud.functions.v1.UpdateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v1.UpdateFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v1.UpdateFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -501,7 +555,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v1.UpdateFunctionRequest other) { - if (other == com.google.cloud.functions.v1.UpdateFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v1.UpdateFunctionRequest.getDefaultInstance()) + return this; if (other.hasFunction()) { mergeFunction(other.getFunction()); } @@ -527,7 +582,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v1.UpdateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v1.UpdateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,39 +595,58 @@ public Builder mergeFrom( private com.google.cloud.functions.v1.CloudFunction function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder> functionBuilder_; + com.google.cloud.functions.v1.CloudFunction, + com.google.cloud.functions.v1.CloudFunction.Builder, + com.google.cloud.functions.v1.CloudFunctionOrBuilder> + functionBuilder_; /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ public com.google.cloud.functions.v1.CloudFunction getFunction() { if (functionBuilder_ == null) { - return function_ == null ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() + : function_; } else { return functionBuilder_.getMessage(); } } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFunction(com.google.cloud.functions.v1.CloudFunction value) { if (functionBuilder_ == null) { @@ -587,11 +662,15 @@ public Builder setFunction(com.google.cloud.functions.v1.CloudFunction value) { return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFunction( com.google.cloud.functions.v1.CloudFunction.Builder builderForValue) { @@ -605,17 +684,23 @@ public Builder setFunction( return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFunction(com.google.cloud.functions.v1.CloudFunction value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v1.CloudFunction.newBuilder(function_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v1.CloudFunction.newBuilder(function_) + .mergeFrom(value) + .buildPartial(); } else { function_ = value; } @@ -627,11 +712,15 @@ public Builder mergeFunction(com.google.cloud.functions.v1.CloudFunction value) return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -645,48 +734,64 @@ public Builder clearFunction() { return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v1.CloudFunction.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null ? - com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v1.CloudFunction.getDefaultInstance() + : function_; } } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder> + com.google.cloud.functions.v1.CloudFunction, + com.google.cloud.functions.v1.CloudFunction.Builder, + com.google.cloud.functions.v1.CloudFunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v1.CloudFunction, com.google.cloud.functions.v1.CloudFunction.Builder, com.google.cloud.functions.v1.CloudFunctionOrBuilder>( - getFunction(), - getParentForChildren(), - isClean()); + functionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v1.CloudFunction, + com.google.cloud.functions.v1.CloudFunction.Builder, + com.google.cloud.functions.v1.CloudFunctionOrBuilder>( + getFunction(), getParentForChildren(), isClean()); function_ = null; } return functionBuilder_; @@ -694,34 +799,47 @@ public com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
                                    * Required. The list of fields in `CloudFunction` that have to be updated.
                                    * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
                                    * Required. The list of fields in `CloudFunction` that have to be updated.
                                    * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
                                    * Required. The list of fields in `CloudFunction` that have to be updated.
                                    * 
                              @@ -742,14 +860,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
                                    * Required. The list of fields in `CloudFunction` that have to be updated.
                                    * 
                              * * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -760,6 +879,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
                                    * Required. The list of fields in `CloudFunction` that have to be updated.
                                    * 
                              @@ -770,7 +891,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -782,6 +903,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
                                    * Required. The list of fields in `CloudFunction` that have to be updated.
                                    * 
                              @@ -800,6 +923,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
                                    * Required. The list of fields in `CloudFunction` that have to be updated.
                                    * 
                              @@ -807,11 +932,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
                                    * Required. The list of fields in `CloudFunction` that have to be updated.
                                    * 
                              @@ -822,11 +949,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
                                    * Required. The list of fields in `CloudFunction` that have to be updated.
                                    * 
                              @@ -834,21 +964,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -858,12 +991,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.UpdateFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.UpdateFunctionRequest) private static final com.google.cloud.functions.v1.UpdateFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v1.UpdateFunctionRequest(); } @@ -872,16 +1005,16 @@ public static com.google.cloud.functions.v1.UpdateFunctionRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +1029,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v1.UpdateFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java rename to proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java index 3be86e50..12f10a98 100644 --- a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java +++ b/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequestOrBuilder.java @@ -1,58 +1,96 @@ +/* + * 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/v1/functions.proto package com.google.cloud.functions.v1; -public interface UpdateFunctionRequestOrBuilder extends +public interface UpdateFunctionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v1.UpdateFunctionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ boolean hasFunction(); /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ com.google.cloud.functions.v1.CloudFunction getFunction(); /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v1.CloudFunction function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.functions.v1.CloudFunctionOrBuilder getFunctionOrBuilder(); /** + * + * *
                                  * Required. The list of fields in `CloudFunction` that have to be updated.
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
                                  * Required. The list of fields in `CloudFunction` that have to be updated.
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
                                  * Required. The list of fields in `CloudFunction` that have to be updated.
                                  * 
                              diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/functions.proto b/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/functions.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/functions.proto rename to proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/functions.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/operations.proto b/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/operations.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/operations.proto rename to proto-google-cloud-functions-v1/src/main/proto/google/cloud/functions/v1/operations.proto diff --git a/proto-google-cloud-functions-v2/clirr-ignored-differences.xml b/proto-google-cloud-functions-v2/clirr-ignored-differences.xml new file mode 100644 index 00000000..af1ad939 --- /dev/null +++ b/proto-google-cloud-functions-v2/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/functions/v2/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/functions/v2/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/functions/v2/*OrBuilder + boolean has*(*) + + diff --git a/proto-google-cloud-functions-v2/pom.xml b/proto-google-cloud-functions-v2/pom.xml new file mode 100644 index 00000000..20ace5d7 --- /dev/null +++ b/proto-google-cloud-functions-v2/pom.xml @@ -0,0 +1,46 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-functions-v2 + 2.4.3 + proto-google-cloud-functions-v2 + Proto library for google-cloud-functions + + com.google.cloud + google-cloud-functions-parent + 2.4.3 + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java index f335f8bb..3aafdfe0 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java @@ -1,9 +1,26 @@ +/* + * 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; /** + * + * *
                                * Describes the Build step of the function that builds a container from the
                                * given source.
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2.BuildConfig}
                                */
                              -public final class BuildConfig extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class BuildConfig extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.BuildConfig)
                                   BuildConfigOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use BuildConfig.newBuilder() to construct.
                                 private BuildConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private BuildConfig() {
                                   build_ = "";
                                   runtime_ = "";
                              @@ -30,16 +48,15 @@ private BuildConfig() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new BuildConfig();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private BuildConfig(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -59,82 +76,98 @@ private BuildConfig(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            build_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              build_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            runtime_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              runtime_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            entryPoint_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            com.google.cloud.functions.v2.Source.Builder subBuilder = null;
                              -            if (source_ != null) {
                              -              subBuilder = source_.toBuilder();
                              +              entryPoint_ = s;
                              +              break;
                                           }
                              -            source_ = input.readMessage(com.google.cloud.functions.v2.Source.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(source_);
                              -              source_ = subBuilder.buildPartial();
                              +          case 34:
                              +            {
                              +              com.google.cloud.functions.v2.Source.Builder subBuilder = null;
                              +              if (source_ != null) {
                              +                subBuilder = source_.toBuilder();
                              +              }
                              +              source_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2.Source.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(source_);
                              +                source_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              +          case 42:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            break;
                              -          }
                              -          case 42: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            workerPool_ = s;
                              -            break;
                              -          }
                              -          case 50: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              environmentVariables_ = com.google.protobuf.MapField.newMapField(
                              -                  EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              -              mutable_bitField0_ |= 0x00000001;
                              +              workerPool_ = s;
                              +              break;
                                           }
                              -            com.google.protobuf.MapEntry
                              -            environmentVariables__ = input.readMessage(
                              -                EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              -            environmentVariables_.getMutableMap().put(
                              -                environmentVariables__.getKey(), environmentVariables__.getValue());
                              -            break;
                              -          }
                              -          case 58: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 50:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                environmentVariables_ =
                              +                    com.google.protobuf.MapField.newMapField(
                              +                        EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              com.google.protobuf.MapEntry
                              +                  environmentVariables__ =
                              +                      input.readMessage(
                              +                          EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
                              +                          extensionRegistry);
                              +              environmentVariables_
                              +                  .getMutableMap()
                              +                  .put(environmentVariables__.getKey(), environmentVariables__.getValue());
                              +              break;
                              +            }
                              +          case 58:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            dockerRepository_ = s;
                              -            break;
                              -          }
                              -          case 66: {
                              -            com.google.cloud.functions.v2.SourceProvenance.Builder subBuilder = null;
                              -            if (sourceProvenance_ != null) {
                              -              subBuilder = sourceProvenance_.toBuilder();
                              +              dockerRepository_ = s;
                              +              break;
                                           }
                              -            sourceProvenance_ = input.readMessage(com.google.cloud.functions.v2.SourceProvenance.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(sourceProvenance_);
                              -              sourceProvenance_ = subBuilder.buildPartial();
                              +          case 66:
                              +            {
                              +              com.google.cloud.functions.v2.SourceProvenance.Builder subBuilder = null;
                              +              if (sourceProvenance_ != null) {
                              +                subBuilder = sourceProvenance_.toBuilder();
                              +              }
                              +              sourceProvenance_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2.SourceProvenance.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(sourceProvenance_);
                              +                sourceProvenance_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              -
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -142,47 +175,53 @@ private BuildConfig(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     this.unknownFields = unknownFields.build();
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_BuildConfig_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_BuildConfig_descriptor;
                                 }
                               
                                 @SuppressWarnings({"rawtypes"})
                                 @java.lang.Override
                              -  protected com.google.protobuf.MapField internalGetMapField(
                              -      int number) {
                              +  protected com.google.protobuf.MapField internalGetMapField(int number) {
                                   switch (number) {
                                     case 6:
                                       return internalGetEnvironmentVariables();
                                     default:
                              -        throw new RuntimeException(
                              -            "Invalid map field number: " + number);
                              +        throw new RuntimeException("Invalid map field number: " + number);
                                   }
                                 }
                              +
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_BuildConfig_fieldAccessorTable
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_BuildConfig_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2.BuildConfig.class, com.google.cloud.functions.v2.BuildConfig.Builder.class);
                              +            com.google.cloud.functions.v2.BuildConfig.class,
                              +            com.google.cloud.functions.v2.BuildConfig.Builder.class);
                                 }
                               
                                 public static final int BUILD_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object build_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ @java.lang.Override @@ -191,30 +230,32 @@ public java.lang.String getBuild() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ @java.lang.Override - public com.google.protobuf.ByteString - getBuildBytes() { + public com.google.protobuf.ByteString getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); build_ = b; return b; } else { @@ -225,6 +266,8 @@ public java.lang.String getBuild() { public static final int RUNTIME_FIELD_NUMBER = 2; private volatile java.lang.Object runtime_; /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -234,6 +277,7 @@ public java.lang.String getBuild() {
                                  * 
                              * * string runtime = 2; + * * @return The runtime. */ @java.lang.Override @@ -242,14 +286,15 @@ public java.lang.String getRuntime() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; } } /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -259,16 +304,15 @@ public java.lang.String getRuntime() {
                                  * 
                              * * string runtime = 2; + * * @return The bytes for runtime. */ @java.lang.Override - public com.google.protobuf.ByteString - getRuntimeBytes() { + public com.google.protobuf.ByteString getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtime_ = b; return b; } else { @@ -279,6 +323,8 @@ public java.lang.String getRuntime() { public static final int ENTRY_POINT_FIELD_NUMBER = 3; private volatile java.lang.Object entryPoint_; /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -289,6 +335,7 @@ public java.lang.String getRuntime() {
                                  * 
                              * * string entry_point = 3; + * * @return The entryPoint. */ @java.lang.Override @@ -297,14 +344,15 @@ public java.lang.String getEntryPoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; } } /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -315,16 +363,15 @@ public java.lang.String getEntryPoint() {
                                  * 
                              * * string entry_point = 3; + * * @return The bytes for entryPoint. */ @java.lang.Override - public com.google.protobuf.ByteString - getEntryPointBytes() { + public com.google.protobuf.ByteString getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -335,11 +382,14 @@ public java.lang.String getEntryPoint() { public static final int SOURCE_FIELD_NUMBER = 4; private com.google.cloud.functions.v2.Source source_; /** + * + * *
                                  * The location of the function source code.
                                  * 
                              * * .google.cloud.functions.v2.Source source = 4; + * * @return Whether the source field is set. */ @java.lang.Override @@ -347,11 +397,14 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
                                  * The location of the function source code.
                                  * 
                              * * .google.cloud.functions.v2.Source source = 4; + * * @return The source. */ @java.lang.Override @@ -359,6 +412,8 @@ public com.google.cloud.functions.v2.Source getSource() { return source_ == null ? com.google.cloud.functions.v2.Source.getDefaultInstance() : source_; } /** + * + * *
                                  * The location of the function source code.
                                  * 
                              @@ -373,11 +428,16 @@ public com.google.cloud.functions.v2.SourceOrBuilder getSourceOrBuilder() { public static final int SOURCE_PROVENANCE_FIELD_NUMBER = 8; private com.google.cloud.functions.v2.SourceProvenance sourceProvenance_; /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the sourceProvenance field is set. */ @java.lang.Override @@ -385,23 +445,34 @@ public boolean hasSourceProvenance() { return sourceProvenance_ != null; } /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceProvenance. */ @java.lang.Override public com.google.cloud.functions.v2.SourceProvenance getSourceProvenance() { - return sourceProvenance_ == null ? com.google.cloud.functions.v2.SourceProvenance.getDefaultInstance() : sourceProvenance_; + return sourceProvenance_ == null + ? com.google.cloud.functions.v2.SourceProvenance.getDefaultInstance() + : sourceProvenance_; } /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.functions.v2.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { @@ -411,6 +482,8 @@ public com.google.cloud.functions.v2.SourceProvenanceOrBuilder getSourceProvenan public static final int WORKER_POOL_FIELD_NUMBER = 5; private volatile java.lang.Object workerPool_; /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -426,6 +499,7 @@ public com.google.cloud.functions.v2.SourceProvenanceOrBuilder getSourceProvenan
                                  * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The workerPool. */ @java.lang.Override @@ -434,14 +508,15 @@ public java.lang.String getWorkerPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerPool_ = s; return s; } } /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -457,16 +532,15 @@ public java.lang.String getWorkerPool() {
                                  * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for workerPool. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkerPoolBytes() { + public com.google.protobuf.ByteString getWorkerPoolBytes() { java.lang.Object ref = workerPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workerPool_ = b; return b; } else { @@ -475,21 +549,22 @@ public java.lang.String getWorkerPool() { } public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 6; + private static final class EnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -501,28 +576,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              * * map<string, string> environment_variables = 6; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -530,11 +607,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -542,16 +620,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -559,10 +639,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 6; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -574,6 +654,8 @@ public java.lang.String getEnvironmentVariablesOrThrow( public static final int DOCKER_REPOSITORY_FIELD_NUMBER = 7; private volatile 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
                              @@ -587,7 +669,10 @@ public java.lang.String getEnvironmentVariablesOrThrow(
                                  * Repository format must be 'DOCKER'.
                                  * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The dockerRepository. */ @java.lang.Override @@ -596,14 +681,15 @@ public java.lang.String getDockerRepository() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; } } /** + * + * *
                                  * Optional. User managed repository created in Artifact Registry optionally with a
                                  * customer managed encryption key. This is the repository to which the
                              @@ -617,17 +703,18 @@ public java.lang.String getDockerRepository() {
                                  * Repository format must be 'DOCKER'.
                                  * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for dockerRepository. */ @java.lang.Override - public com.google.protobuf.ByteString - getDockerRepositoryBytes() { + public com.google.protobuf.ByteString getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -636,6 +723,7 @@ public java.lang.String getDockerRepository() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -647,8 +735,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(build_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, build_); } @@ -664,8 +751,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workerPool_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -695,28 +781,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entryPoint_); } if (source_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workerPool_); } - for (java.util.Map.Entry entry - : internalGetEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, environmentVariables__); + for (java.util.Map.Entry entry : + internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry environmentVariables__ = + EnvironmentVariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, environmentVariables__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dockerRepository_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, dockerRepository_); } if (sourceProvenance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSourceProvenance()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSourceProvenance()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -726,35 +810,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.BuildConfig)) { return super.equals(obj); } - com.google.cloud.functions.v2.BuildConfig other = (com.google.cloud.functions.v2.BuildConfig) obj; + com.google.cloud.functions.v2.BuildConfig other = + (com.google.cloud.functions.v2.BuildConfig) obj; - if (!getBuild() - .equals(other.getBuild())) return false; - if (!getRuntime() - .equals(other.getRuntime())) return false; - if (!getEntryPoint() - .equals(other.getEntryPoint())) return false; + if (!getBuild().equals(other.getBuild())) return false; + if (!getRuntime().equals(other.getRuntime())) return false; + if (!getEntryPoint().equals(other.getEntryPoint())) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource() - .equals(other.getSource())) return false; + if (!getSource().equals(other.getSource())) return false; } if (hasSourceProvenance() != other.hasSourceProvenance()) return false; if (hasSourceProvenance()) { - if (!getSourceProvenance() - .equals(other.getSourceProvenance())) return false; - } - if (!getWorkerPool() - .equals(other.getWorkerPool())) return false; - if (!internalGetEnvironmentVariables().equals( - other.internalGetEnvironmentVariables())) return false; - if (!getDockerRepository() - .equals(other.getDockerRepository())) return false; + if (!getSourceProvenance().equals(other.getSourceProvenance())) return false; + } + if (!getWorkerPool().equals(other.getWorkerPool())) return false; + if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) + return false; + if (!getDockerRepository().equals(other.getDockerRepository())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -793,97 +871,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2.BuildConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2.BuildConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.BuildConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.BuildConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.BuildConfig 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.BuildConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.BuildConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2.BuildConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.BuildConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.BuildConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.BuildConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.BuildConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.BuildConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.BuildConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.BuildConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                              @@ -891,43 +976,43 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2.BuildConfig}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.BuildConfig)
                                     com.google.cloud.functions.v2.BuildConfigOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_BuildConfig_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_BuildConfig_descriptor;
                                   }
                               
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMapField(int number) {
                                     switch (number) {
                                       case 6:
                                         return internalGetEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMutableMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
                                     switch (number) {
                                       case 6:
                                         return internalGetMutableEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_BuildConfig_fieldAccessorTable
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_BuildConfig_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2.BuildConfig.class, com.google.cloud.functions.v2.BuildConfig.Builder.class);
                              +              com.google.cloud.functions.v2.BuildConfig.class,
                              +              com.google.cloud.functions.v2.BuildConfig.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2.BuildConfig.newBuilder()
                              @@ -935,16 +1020,15 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              -      }
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -975,9 +1059,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_BuildConfig_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_BuildConfig_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -996,7 +1080,8 @@ public com.google.cloud.functions.v2.BuildConfig build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2.BuildConfig buildPartial() {
                              -      com.google.cloud.functions.v2.BuildConfig result = new com.google.cloud.functions.v2.BuildConfig(this);
                              +      com.google.cloud.functions.v2.BuildConfig result =
                              +          new com.google.cloud.functions.v2.BuildConfig(this);
                                     int from_bitField0_ = bitField0_;
                                     result.build_ = build_;
                                     result.runtime_ = runtime_;
                              @@ -1023,38 +1108,39 @@ public com.google.cloud.functions.v2.BuildConfig buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2.BuildConfig)other);
                              +        return mergeFrom((com.google.cloud.functions.v2.BuildConfig) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1085,8 +1171,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2.BuildConfig other) {
                                       workerPool_ = other.workerPool_;
                                       onChanged();
                                     }
                              -      internalGetMutableEnvironmentVariables().mergeFrom(
                              -          other.internalGetEnvironmentVariables());
                              +      internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables());
                                     if (!other.getDockerRepository().isEmpty()) {
                                       dockerRepository_ = other.dockerRepository_;
                                       onChanged();
                              @@ -1119,23 +1204,28 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object build_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ public java.lang.String getBuild() { java.lang.Object ref = build_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; @@ -1144,21 +1234,24 @@ public java.lang.String getBuild() { } } /** + * + * *
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ - public com.google.protobuf.ByteString - getBuildBytes() { + public com.google.protobuf.ByteString getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); build_ = b; return b; } else { @@ -1166,57 +1259,70 @@ public java.lang.String getBuild() { } } /** + * + * *
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The build to set. * @return This builder for chaining. */ - public Builder setBuild( - java.lang.String value) { + public Builder setBuild(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + build_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearBuild() { - + build_ = getDefaultInstance().getBuild(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for build to set. * @return This builder for chaining. */ - public Builder setBuildBytes( - com.google.protobuf.ByteString value) { + public Builder setBuildBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + build_ = value; onChanged(); return this; @@ -1224,6 +1330,8 @@ public Builder setBuildBytes( private java.lang.Object runtime_ = ""; /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1233,13 +1341,13 @@ public Builder setBuildBytes(
                                    * 
                              * * string runtime = 2; + * * @return The runtime. */ public java.lang.String getRuntime() { java.lang.Object ref = runtime_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; @@ -1248,6 +1356,8 @@ public java.lang.String getRuntime() { } } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1257,15 +1367,14 @@ public java.lang.String getRuntime() {
                                    * 
                              * * string runtime = 2; + * * @return The bytes for runtime. */ - public com.google.protobuf.ByteString - getRuntimeBytes() { + public com.google.protobuf.ByteString getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtime_ = b; return b; } else { @@ -1273,6 +1382,8 @@ public java.lang.String getRuntime() { } } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1282,20 +1393,22 @@ public java.lang.String getRuntime() {
                                    * 
                              * * string runtime = 2; + * * @param value The runtime to set. * @return This builder for chaining. */ - public Builder setRuntime( - java.lang.String value) { + public Builder setRuntime(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + runtime_ = value; onChanged(); return this; } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1305,15 +1418,18 @@ public Builder setRuntime(
                                    * 
                              * * string runtime = 2; + * * @return This builder for chaining. */ public Builder clearRuntime() { - + runtime_ = getDefaultInstance().getRuntime(); onChanged(); return this; } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1323,16 +1439,16 @@ public Builder clearRuntime() {
                                    * 
                              * * string runtime = 2; + * * @param value The bytes for runtime to set. * @return This builder for chaining. */ - public Builder setRuntimeBytes( - com.google.protobuf.ByteString value) { + public Builder setRuntimeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + runtime_ = value; onChanged(); return this; @@ -1340,6 +1456,8 @@ public Builder setRuntimeBytes( private java.lang.Object entryPoint_ = ""; /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1350,13 +1468,13 @@ public Builder setRuntimeBytes(
                                    * 
                              * * string entry_point = 3; + * * @return The entryPoint. */ public java.lang.String getEntryPoint() { java.lang.Object ref = entryPoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; @@ -1365,6 +1483,8 @@ public java.lang.String getEntryPoint() { } } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1375,15 +1495,14 @@ public java.lang.String getEntryPoint() {
                                    * 
                              * * string entry_point = 3; + * * @return The bytes for entryPoint. */ - public com.google.protobuf.ByteString - getEntryPointBytes() { + public com.google.protobuf.ByteString getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -1391,6 +1510,8 @@ public java.lang.String getEntryPoint() { } } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1401,20 +1522,22 @@ public java.lang.String getEntryPoint() {
                                    * 
                              * * string entry_point = 3; + * * @param value The entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPoint( - java.lang.String value) { + public Builder setEntryPoint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entryPoint_ = value; onChanged(); return this; } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1425,15 +1548,18 @@ public Builder setEntryPoint(
                                    * 
                              * * string entry_point = 3; + * * @return This builder for chaining. */ public Builder clearEntryPoint() { - + entryPoint_ = getDefaultInstance().getEntryPoint(); onChanged(); return this; } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1444,16 +1570,16 @@ public Builder clearEntryPoint() {
                                    * 
                              * * string entry_point = 3; + * * @param value The bytes for entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPointBytes( - com.google.protobuf.ByteString value) { + public Builder setEntryPointBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryPoint_ = value; onChanged(); return this; @@ -1461,34 +1587,47 @@ public Builder setEntryPointBytes( private com.google.cloud.functions.v2.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.Source, com.google.cloud.functions.v2.Source.Builder, com.google.cloud.functions.v2.SourceOrBuilder> sourceBuilder_; + com.google.cloud.functions.v2.Source, + com.google.cloud.functions.v2.Source.Builder, + com.google.cloud.functions.v2.SourceOrBuilder> + sourceBuilder_; /** + * + * *
                                    * The location of the function source code.
                                    * 
                              * * .google.cloud.functions.v2.Source source = 4; + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              * * .google.cloud.functions.v2.Source source = 4; + * * @return The source. */ public com.google.cloud.functions.v2.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.functions.v2.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.functions.v2.Source.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1509,14 +1648,15 @@ public Builder setSource(com.google.cloud.functions.v2.Source value) { return this; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              * * .google.cloud.functions.v2.Source source = 4; */ - public Builder setSource( - com.google.cloud.functions.v2.Source.Builder builderForValue) { + public Builder setSource(com.google.cloud.functions.v2.Source.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -1527,6 +1667,8 @@ public Builder setSource( return this; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1537,7 +1679,9 @@ public Builder mergeSource(com.google.cloud.functions.v2.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.functions.v2.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v2.Source.newBuilder(source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -1549,6 +1693,8 @@ public Builder mergeSource(com.google.cloud.functions.v2.Source value) { return this; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1567,6 +1713,8 @@ public Builder clearSource() { return this; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1574,11 +1722,13 @@ public Builder clearSource() { * .google.cloud.functions.v2.Source source = 4; */ public com.google.cloud.functions.v2.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1589,11 +1739,14 @@ public com.google.cloud.functions.v2.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null ? - com.google.cloud.functions.v2.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.functions.v2.Source.getDefaultInstance() + : source_; } } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1601,14 +1754,17 @@ public com.google.cloud.functions.v2.SourceOrBuilder getSourceOrBuilder() { * .google.cloud.functions.v2.Source source = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.Source, com.google.cloud.functions.v2.Source.Builder, com.google.cloud.functions.v2.SourceOrBuilder> + com.google.cloud.functions.v2.Source, + com.google.cloud.functions.v2.Source.Builder, + com.google.cloud.functions.v2.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.Source, com.google.cloud.functions.v2.Source.Builder, com.google.cloud.functions.v2.SourceOrBuilder>( - getSource(), - getParentForChildren(), - isClean()); + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.Source, + com.google.cloud.functions.v2.Source.Builder, + com.google.cloud.functions.v2.SourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; @@ -1616,39 +1772,58 @@ public com.google.cloud.functions.v2.SourceOrBuilder getSourceOrBuilder() { private com.google.cloud.functions.v2.SourceProvenance sourceProvenance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.SourceProvenance, com.google.cloud.functions.v2.SourceProvenance.Builder, com.google.cloud.functions.v2.SourceProvenanceOrBuilder> sourceProvenanceBuilder_; + com.google.cloud.functions.v2.SourceProvenance, + com.google.cloud.functions.v2.SourceProvenance.Builder, + com.google.cloud.functions.v2.SourceProvenanceOrBuilder> + sourceProvenanceBuilder_; /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the sourceProvenance field is set. */ public boolean hasSourceProvenance() { return sourceProvenanceBuilder_ != null || sourceProvenance_ != null; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceProvenance. */ public com.google.cloud.functions.v2.SourceProvenance getSourceProvenance() { if (sourceProvenanceBuilder_ == null) { - return sourceProvenance_ == null ? com.google.cloud.functions.v2.SourceProvenance.getDefaultInstance() : sourceProvenance_; + return sourceProvenance_ == null + ? com.google.cloud.functions.v2.SourceProvenance.getDefaultInstance() + : sourceProvenance_; } else { return sourceProvenanceBuilder_.getMessage(); } } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSourceProvenance(com.google.cloud.functions.v2.SourceProvenance value) { if (sourceProvenanceBuilder_ == null) { @@ -1664,11 +1839,15 @@ public Builder setSourceProvenance(com.google.cloud.functions.v2.SourceProvenanc return this; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSourceProvenance( com.google.cloud.functions.v2.SourceProvenance.Builder builderForValue) { @@ -1682,17 +1861,23 @@ public Builder setSourceProvenance( return this; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSourceProvenance(com.google.cloud.functions.v2.SourceProvenance value) { if (sourceProvenanceBuilder_ == null) { if (sourceProvenance_ != null) { sourceProvenance_ = - com.google.cloud.functions.v2.SourceProvenance.newBuilder(sourceProvenance_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v2.SourceProvenance.newBuilder(sourceProvenance_) + .mergeFrom(value) + .buildPartial(); } else { sourceProvenance_ = value; } @@ -1704,11 +1889,15 @@ public Builder mergeSourceProvenance(com.google.cloud.functions.v2.SourceProvena return this; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSourceProvenance() { if (sourceProvenanceBuilder_ == null) { @@ -1722,48 +1911,64 @@ public Builder clearSourceProvenance() { return this; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2.SourceProvenance.Builder getSourceProvenanceBuilder() { - + onChanged(); return getSourceProvenanceFieldBuilder().getBuilder(); } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { if (sourceProvenanceBuilder_ != null) { return sourceProvenanceBuilder_.getMessageOrBuilder(); } else { - return sourceProvenance_ == null ? - com.google.cloud.functions.v2.SourceProvenance.getDefaultInstance() : sourceProvenance_; + return sourceProvenance_ == null + ? com.google.cloud.functions.v2.SourceProvenance.getDefaultInstance() + : sourceProvenance_; } } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.SourceProvenance, com.google.cloud.functions.v2.SourceProvenance.Builder, com.google.cloud.functions.v2.SourceProvenanceOrBuilder> + com.google.cloud.functions.v2.SourceProvenance, + com.google.cloud.functions.v2.SourceProvenance.Builder, + com.google.cloud.functions.v2.SourceProvenanceOrBuilder> getSourceProvenanceFieldBuilder() { if (sourceProvenanceBuilder_ == null) { - sourceProvenanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.SourceProvenance, com.google.cloud.functions.v2.SourceProvenance.Builder, com.google.cloud.functions.v2.SourceProvenanceOrBuilder>( - getSourceProvenance(), - getParentForChildren(), - isClean()); + sourceProvenanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.SourceProvenance, + com.google.cloud.functions.v2.SourceProvenance.Builder, + com.google.cloud.functions.v2.SourceProvenanceOrBuilder>( + getSourceProvenance(), getParentForChildren(), isClean()); sourceProvenance_ = null; } return sourceProvenanceBuilder_; @@ -1771,6 +1976,8 @@ public com.google.cloud.functions.v2.SourceProvenanceOrBuilder getSourceProvenan private java.lang.Object workerPool_ = ""; /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1786,13 +1993,13 @@ public com.google.cloud.functions.v2.SourceProvenanceOrBuilder getSourceProvenan
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The workerPool. */ public java.lang.String getWorkerPool() { java.lang.Object ref = workerPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerPool_ = s; return s; @@ -1801,6 +2008,8 @@ public java.lang.String getWorkerPool() { } } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1816,15 +2025,14 @@ public java.lang.String getWorkerPool() {
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for workerPool. */ - public com.google.protobuf.ByteString - getWorkerPoolBytes() { + public com.google.protobuf.ByteString getWorkerPoolBytes() { java.lang.Object ref = workerPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workerPool_ = b; return b; } else { @@ -1832,6 +2040,8 @@ public java.lang.String getWorkerPool() { } } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1847,20 +2057,22 @@ public java.lang.String getWorkerPool() {
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @param value The workerPool to set. * @return This builder for chaining. */ - public Builder setWorkerPool( - java.lang.String value) { + public Builder setWorkerPool(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workerPool_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1876,15 +2088,18 @@ public Builder setWorkerPool(
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearWorkerPool() { - + workerPool_ = getDefaultInstance().getWorkerPool(); onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1900,37 +2115,40 @@ public Builder clearWorkerPool() {
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for workerPool to set. * @return This builder for chaining. */ - public Builder setWorkerPoolBytes( - com.google.protobuf.ByteString value) { + public Builder setWorkerPoolBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerPool_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } + private com.google.protobuf.MapField - internalGetMutableEnvironmentVariables() { - onChanged();; + internalGetMutableEnvironmentVariables() { + onChanged(); + ; if (environmentVariables_ == null) { - environmentVariables_ = com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); + environmentVariables_ = + com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); @@ -1942,28 +2160,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              * * map<string, string> environment_variables = 6; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              @@ -1971,11 +2191,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              @@ -1983,16 +2204,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              @@ -2000,10 +2223,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 6; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -2013,69 +2236,69 @@ public java.lang.String getEnvironmentVariablesOrThrow( } public Builder clearEnvironmentVariables() { - internalGetMutableEnvironmentVariables().getMutableMap() - .clear(); + internalGetMutableEnvironmentVariables().getMutableMap().clear(); return this; } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              * * map<string, string> environment_variables = 6; */ - - public Builder removeEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableEnvironmentVariables().getMutableMap() - .remove(key); + public Builder removeEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEnvironmentVariables().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableEnvironmentVariables() { + public java.util.Map getMutableEnvironmentVariables() { return internalGetMutableEnvironmentVariables().getMutableMap(); } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              * * map<string, string> environment_variables = 6; */ - public Builder putEnvironmentVariables( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putEnvironmentVariables(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableEnvironmentVariables().getMutableMap() - .put(key, value); + internalGetMutableEnvironmentVariables().getMutableMap().put(key, value); return this; } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              * * map<string, string> environment_variables = 6; */ - public Builder putAllEnvironmentVariables( java.util.Map values) { - internalGetMutableEnvironmentVariables().getMutableMap() - .putAll(values); + internalGetMutableEnvironmentVariables().getMutableMap().putAll(values); 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
                              @@ -2089,14 +2312,16 @@ public Builder putAllEnvironmentVariables(
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The dockerRepository. */ public java.lang.String getDockerRepository() { java.lang.Object ref = dockerRepository_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; @@ -2105,6 +2330,8 @@ 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
                              @@ -2118,16 +2345,17 @@ public java.lang.String getDockerRepository() {
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for dockerRepository. */ - public com.google.protobuf.ByteString - getDockerRepositoryBytes() { + public com.google.protobuf.ByteString getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -2135,6 +2363,8 @@ 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
                              @@ -2148,21 +2378,25 @@ public java.lang.String getDockerRepository() {
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepository( - java.lang.String value) { + public Builder setDockerRepository(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dockerRepository_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. User managed repository created in Artifact Registry optionally with a
                                    * customer managed encryption key. This is the repository to which the
                              @@ -2176,16 +2410,21 @@ public Builder setDockerRepository(
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearDockerRepository() { - + dockerRepository_ = getDefaultInstance().getDockerRepository(); onChanged(); return this; } /** + * + * *
                                    * Optional. User managed repository created in Artifact Registry optionally with a
                                    * customer managed encryption key. This is the repository to which the
                              @@ -2199,24 +2438,26 @@ public Builder clearDockerRepository() {
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepositoryBytes( - com.google.protobuf.ByteString value) { + public Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dockerRepository_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2226,12 +2467,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.BuildConfig) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.BuildConfig) private static final com.google.cloud.functions.v2.BuildConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.BuildConfig(); } @@ -2240,16 +2481,16 @@ public static com.google.cloud.functions.v2.BuildConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BuildConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BuildConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuildConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BuildConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2264,6 +2505,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.BuildConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java similarity index 75% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java index 74933010..b8c336d9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java @@ -1,35 +1,62 @@ +/* + * 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 BuildConfigOrBuilder extends +public interface BuildConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.BuildConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ java.lang.String getBuild(); /** + * + * *
                                  * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ - com.google.protobuf.ByteString - getBuildBytes(); + com.google.protobuf.ByteString getBuildBytes(); /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -39,10 +66,13 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string runtime = 2; + * * @return The runtime. */ java.lang.String getRuntime(); /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -52,12 +82,14 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string runtime = 2; + * * @return The bytes for runtime. */ - com.google.protobuf.ByteString - getRuntimeBytes(); + com.google.protobuf.ByteString getRuntimeBytes(); /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -68,10 +100,13 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string entry_point = 3; + * * @return The entryPoint. */ java.lang.String getEntryPoint(); /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -82,30 +117,38 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string entry_point = 3; + * * @return The bytes for entryPoint. */ - com.google.protobuf.ByteString - getEntryPointBytes(); + com.google.protobuf.ByteString getEntryPointBytes(); /** + * + * *
                                  * The location of the function source code.
                                  * 
                              * * .google.cloud.functions.v2.Source source = 4; + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
                                  * The location of the function source code.
                                  * 
                              * * .google.cloud.functions.v2.Source source = 4; + * * @return The source. */ com.google.cloud.functions.v2.Source getSource(); /** + * + * *
                                  * The location of the function source code.
                                  * 
                              @@ -115,33 +158,49 @@ public interface BuildConfigOrBuilder extends com.google.cloud.functions.v2.SourceOrBuilder getSourceOrBuilder(); /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the sourceProvenance field is set. */ boolean hasSourceProvenance(); /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceProvenance. */ com.google.cloud.functions.v2.SourceProvenance getSourceProvenance(); /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.functions.v2.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder(); /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -157,10 +216,13 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The workerPool. */ java.lang.String getWorkerPool(); /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -176,12 +238,14 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for workerPool. */ - com.google.protobuf.ByteString - getWorkerPoolBytes(); + com.google.protobuf.ByteString getWorkerPoolBytes(); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -190,30 +254,31 @@ public interface BuildConfigOrBuilder extends */ int getEnvironmentVariablesCount(); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              * * map<string, string> environment_variables = 6; */ - boolean containsEnvironmentVariables( - java.lang.String key); - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + boolean containsEnvironmentVariables(java.lang.String key); + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getEnvironmentVariables(); + java.util.Map getEnvironmentVariables(); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              * * map<string, string> environment_variables = 6; */ - java.util.Map - getEnvironmentVariablesMap(); + java.util.Map getEnvironmentVariablesMap(); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -222,22 +287,24 @@ boolean containsEnvironmentVariables( */ /* nullable */ -java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              * * map<string, string> environment_variables = 6; */ - - java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key); + 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
                              @@ -251,11 +318,16 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * Repository format must be 'DOCKER'.
                                  * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The dockerRepository. */ 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
                              @@ -269,9 +341,11 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * Repository format must be 'DOCKER'.
                                  * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for dockerRepository. */ - com.google.protobuf.ByteString - getDockerRepositoryBytes(); + com.google.protobuf.ByteString getDockerRepositoryBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java index 94828923..e294a693 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Request for the `CreateFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.CreateFunctionRequest} */ -public final class CreateFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.CreateFunctionRequest) CreateFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateFunctionRequest.newBuilder() to construct. private CreateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateFunctionRequest() { parent_ = ""; functionId_ = ""; @@ -26,16 +44,15 @@ private CreateFunctionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateFunctionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.functions.v2.Function.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); - } - function_ = input.readMessage(com.google.cloud.functions.v2.Function.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.functions.v2.Function.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); + } + function_ = + input.readMessage( + com.google.cloud.functions.v2.Function.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - functionId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + functionId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.CreateFunctionRequest.class, com.google.cloud.functions.v2.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v2.CreateFunctionRequest.class, + com.google.cloud.functions.v2.CreateFunctionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,30 +159,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,11 +195,16 @@ public java.lang.String getParent() { public static final int FUNCTION_FIELD_NUMBER = 2; private com.google.cloud.functions.v2.Function function_; /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ @java.lang.Override @@ -176,23 +212,34 @@ public boolean hasFunction() { return function_ != null; } /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ @java.lang.Override public com.google.cloud.functions.v2.Function getFunction() { - return function_ == null ? com.google.cloud.functions.v2.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2.Function.getDefaultInstance() + : function_; } /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() { @@ -202,6 +249,8 @@ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() { public static final int FUNCTION_ID_FIELD_NUMBER = 3; private volatile java.lang.Object functionId_; /** + * + * *
                                  * The ID to use for the function, which will become the final component of
                                  * the function's resource name.
                              @@ -210,6 +259,7 @@ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() {
                                  * 
                              * * string function_id = 3; + * * @return The functionId. */ @java.lang.Override @@ -218,14 +268,15 @@ public java.lang.String getFunctionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } } /** + * + * *
                                  * The ID to use for the function, which will become the final component of
                                  * the function's resource name.
                              @@ -234,16 +285,15 @@ public java.lang.String getFunctionId() {
                                  * 
                              * * string function_id = 3; + * * @return The bytes for functionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFunctionIdBytes() { + public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); functionId_ = b; return b; } else { @@ -252,6 +302,7 @@ public java.lang.String getFunctionId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +314,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,8 +337,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (function_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFunction()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFunction()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, functionId_); @@ -301,22 +350,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.CreateFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2.CreateFunctionRequest other = (com.google.cloud.functions.v2.CreateFunctionRequest) obj; + com.google.cloud.functions.v2.CreateFunctionRequest other = + (com.google.cloud.functions.v2.CreateFunctionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasFunction() != other.hasFunction()) return false; if (hasFunction()) { - if (!getFunction() - .equals(other.getFunction())) return false; + if (!getFunction().equals(other.getFunction())) return false; } - if (!getFunctionId() - .equals(other.getFunctionId())) return false; + if (!getFunctionId().equals(other.getFunctionId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,117 +389,126 @@ public int hashCode() { } public static com.google.cloud.functions.v2.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.CreateFunctionRequest 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.CreateFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.CreateFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2.CreateFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.CreateFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.CreateFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.CreateFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.CreateFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.CreateFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.CreateFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.CreateFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.CreateFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `CreateFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.CreateFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.CreateFunctionRequest) com.google.cloud.functions.v2.CreateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.CreateFunctionRequest.class, com.google.cloud.functions.v2.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v2.CreateFunctionRequest.class, + com.google.cloud.functions.v2.CreateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2.CreateFunctionRequest.newBuilder() @@ -460,16 +516,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +542,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor; } @java.lang.Override @@ -508,7 +563,8 @@ public com.google.cloud.functions.v2.CreateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2.CreateFunctionRequest buildPartial() { - com.google.cloud.functions.v2.CreateFunctionRequest result = new com.google.cloud.functions.v2.CreateFunctionRequest(this); + com.google.cloud.functions.v2.CreateFunctionRequest result = + new com.google.cloud.functions.v2.CreateFunctionRequest(this); result.parent_ = parent_; if (functionBuilder_ == null) { result.function_ = function_; @@ -524,38 +580,39 @@ public com.google.cloud.functions.v2.CreateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.CreateFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v2.CreateFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -563,7 +620,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.CreateFunctionRequest other) { - if (other == com.google.cloud.functions.v2.CreateFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.CreateFunctionRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -594,7 +652,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2.CreateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2.CreateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,19 +665,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -627,21 +690,24 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -649,57 +715,70 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -707,39 +786,58 @@ public Builder setParentBytes( private com.google.cloud.functions.v2.Function function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder> functionBuilder_; + com.google.cloud.functions.v2.Function, + com.google.cloud.functions.v2.Function.Builder, + com.google.cloud.functions.v2.FunctionOrBuilder> + functionBuilder_; /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ public com.google.cloud.functions.v2.Function getFunction() { if (functionBuilder_ == null) { - return function_ == null ? com.google.cloud.functions.v2.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2.Function.getDefaultInstance() + : function_; } else { return functionBuilder_.getMessage(); } } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFunction(com.google.cloud.functions.v2.Function value) { if (functionBuilder_ == null) { @@ -755,14 +853,17 @@ public Builder setFunction(com.google.cloud.functions.v2.Function value) { return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setFunction( - com.google.cloud.functions.v2.Function.Builder builderForValue) { + public Builder setFunction(com.google.cloud.functions.v2.Function.Builder builderForValue) { if (functionBuilder_ == null) { function_ = builderForValue.build(); onChanged(); @@ -773,17 +874,23 @@ public Builder setFunction( return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFunction(com.google.cloud.functions.v2.Function value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v2.Function.newBuilder(function_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v2.Function.newBuilder(function_) + .mergeFrom(value) + .buildPartial(); } else { function_ = value; } @@ -795,11 +902,15 @@ public Builder mergeFunction(com.google.cloud.functions.v2.Function value) { return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -813,48 +924,64 @@ public Builder clearFunction() { return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v2.Function.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null ? - com.google.cloud.functions.v2.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2.Function.getDefaultInstance() + : function_; } } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder> + com.google.cloud.functions.v2.Function, + com.google.cloud.functions.v2.Function.Builder, + com.google.cloud.functions.v2.FunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder>( - getFunction(), - getParentForChildren(), - isClean()); + functionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.Function, + com.google.cloud.functions.v2.Function.Builder, + com.google.cloud.functions.v2.FunctionOrBuilder>( + getFunction(), getParentForChildren(), isClean()); function_ = null; } return functionBuilder_; @@ -862,6 +989,8 @@ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() { private java.lang.Object functionId_ = ""; /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -870,13 +999,13 @@ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() {
                                    * 
                              * * string function_id = 3; + * * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; @@ -885,6 +1014,8 @@ public java.lang.String getFunctionId() { } } /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -893,15 +1024,14 @@ public java.lang.String getFunctionId() {
                                    * 
                              * * string function_id = 3; + * * @return The bytes for functionId. */ - public com.google.protobuf.ByteString - getFunctionIdBytes() { + public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); functionId_ = b; return b; } else { @@ -909,6 +1039,8 @@ public java.lang.String getFunctionId() { } } /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -917,20 +1049,22 @@ public java.lang.String getFunctionId() {
                                    * 
                              * * string function_id = 3; + * * @param value The functionId to set. * @return This builder for chaining. */ - public Builder setFunctionId( - java.lang.String value) { + public Builder setFunctionId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + functionId_ = value; onChanged(); return this; } /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -939,15 +1073,18 @@ public Builder setFunctionId(
                                    * 
                              * * string function_id = 3; + * * @return This builder for chaining. */ public Builder clearFunctionId() { - + functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -956,23 +1093,23 @@ public Builder clearFunctionId() {
                                    * 
                              * * string function_id = 3; + * * @param value The bytes for functionId to set. * @return This builder for chaining. */ - public Builder setFunctionIdBytes( - com.google.protobuf.ByteString value) { + public Builder setFunctionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + functionId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -982,12 +1119,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.CreateFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.CreateFunctionRequest) private static final com.google.cloud.functions.v2.CreateFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.CreateFunctionRequest(); } @@ -996,16 +1133,16 @@ public static com.google.cloud.functions.v2.CreateFunctionRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1020,6 +1157,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.CreateFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java index 50db5a6f..f287ab5e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * 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 CreateFunctionRequestOrBuilder extends +public interface CreateFunctionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.CreateFunctionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ boolean hasFunction(); /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ com.google.cloud.functions.v2.Function getFunction(); /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ 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.
                              @@ -65,10 +106,13 @@ public interface CreateFunctionRequestOrBuilder extends
                                  * 
                              * * string function_id = 3; + * * @return The functionId. */ java.lang.String getFunctionId(); /** + * + * *
                                  * The ID to use for the function, which will become the final component of
                                  * the function's resource name.
                              @@ -77,8 +121,8 @@ public interface CreateFunctionRequestOrBuilder extends
                                  * 
                              * * string function_id = 3; + * * @return The bytes for functionId. */ - com.google.protobuf.ByteString - getFunctionIdBytes(); + com.google.protobuf.ByteString getFunctionIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java index d2812091..f81ba572 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java @@ -1,40 +1,57 @@ +/* + * 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; /** + * + * *
                                * Request for the `DeleteFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.DeleteFunctionRequest} */ -public final class DeleteFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.DeleteFunctionRequest) DeleteFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteFunctionRequest.newBuilder() to construct. private DeleteFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteFunctionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private DeleteFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.DeleteFunctionRequest.class, com.google.cloud.functions.v2.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v2.DeleteFunctionRequest.class, + com.google.cloud.functions.v2.DeleteFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
                                  * Required. The name of the function which should be deleted.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -109,29 +134,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * Required. The name of the function which should be deleted.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.DeleteFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2.DeleteFunctionRequest other = (com.google.cloud.functions.v2.DeleteFunctionRequest) obj; + com.google.cloud.functions.v2.DeleteFunctionRequest other = + (com.google.cloud.functions.v2.DeleteFunctionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,126 @@ public int hashCode() { } public static com.google.cloud.functions.v2.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.DeleteFunctionRequest 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.DeleteFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.DeleteFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2.DeleteFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.DeleteFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.DeleteFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.DeleteFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.DeleteFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.DeleteFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.DeleteFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.DeleteFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.DeleteFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `DeleteFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.DeleteFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.DeleteFunctionRequest) com.google.cloud.functions.v2.DeleteFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.DeleteFunctionRequest.class, com.google.cloud.functions.v2.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v2.DeleteFunctionRequest.class, + com.google.cloud.functions.v2.DeleteFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2.DeleteFunctionRequest.newBuilder() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor; } @java.lang.Override @@ -362,7 +397,8 @@ public com.google.cloud.functions.v2.DeleteFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2.DeleteFunctionRequest buildPartial() { - com.google.cloud.functions.v2.DeleteFunctionRequest result = new com.google.cloud.functions.v2.DeleteFunctionRequest(this); + com.google.cloud.functions.v2.DeleteFunctionRequest result = + new com.google.cloud.functions.v2.DeleteFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.cloud.functions.v2.DeleteFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.DeleteFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v2.DeleteFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.DeleteFunctionRequest other) { - if (other == com.google.cloud.functions.v2.DeleteFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.DeleteFunctionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +473,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2.DeleteFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2.DeleteFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +486,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -467,20 +510,23 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -488,61 +534,74 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +611,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.DeleteFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.DeleteFunctionRequest) private static final com.google.cloud.functions.v2.DeleteFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.DeleteFunctionRequest(); } @@ -566,16 +625,16 @@ public static com.google.cloud.functions.v2.DeleteFunctionRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.DeleteFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequestOrBuilder.java new file mode 100644 index 00000000..a1e52167 --- /dev/null +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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 DeleteFunctionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.DeleteFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * Required. The name of the function which should be deleted.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                              +   * Required. The name of the function which should be deleted.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Environment.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Environment.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Environment.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Environment.java index 52c2b680..e91c37b6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Environment.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Environment.java @@ -1,18 +1,36 @@ +/* + * 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; /** + * + * *
                                * The environment the function is hosted on.
                                * 
                              * * Protobuf enum {@code google.cloud.functions.v2.Environment} */ -public enum Environment - implements com.google.protobuf.ProtocolMessageEnum { +public enum Environment implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                  * Unspecified
                                  * 
                              @@ -21,6 +39,8 @@ public enum Environment */ ENVIRONMENT_UNSPECIFIED(0), /** + * + * *
                                  * Gen 1
                                  * 
                              @@ -29,6 +49,8 @@ public enum Environment */ GEN_1(1), /** + * + * *
                                  * Gen 2
                                  * 
                              @@ -40,6 +62,8 @@ public enum Environment ; /** + * + * *
                                  * Unspecified
                                  * 
                              @@ -48,6 +72,8 @@ public enum Environment */ public static final int ENVIRONMENT_UNSPECIFIED_VALUE = 0; /** + * + * *
                                  * Gen 1
                                  * 
                              @@ -56,6 +82,8 @@ public enum Environment */ public static final int GEN_1_VALUE = 1; /** + * + * *
                                  * Gen 2
                                  * 
                              @@ -64,7 +92,6 @@ public enum Environment */ public static final int GEN_2_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,49 @@ public static Environment valueOf(int value) { */ public static Environment forNumber(int value) { switch (value) { - case 0: return ENVIRONMENT_UNSPECIFIED; - case 1: return GEN_1; - case 2: return GEN_2; - default: return null; + case 0: + return ENVIRONMENT_UNSPECIFIED; + case 1: + return GEN_1; + case 2: + return GEN_2; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Environment> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Environment findValueByNumber(int number) { - return Environment.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Environment findValueByNumber(int number) { + return Environment.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto.getDescriptor().getEnumTypes().get(0); } private static final Environment[] VALUES = values(); - public static Environment valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Environment valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +174,3 @@ private Environment(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2.Environment) } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java index ac083170..0da961ef 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Filters events based on exact matches on the CloudEvents attributes.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.EventFilter} */ -public final class EventFilter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EventFilter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.EventFilter) EventFilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EventFilter.newBuilder() to construct. private EventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EventFilter() { attribute_ = ""; value_ = ""; @@ -27,16 +45,15 @@ private EventFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventFilter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EventFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private EventFilter( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - attribute_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + attribute_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + value_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - operator_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + operator_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,34 +107,39 @@ private EventFilter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventFilter_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_EventFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventFilter_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_EventFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.EventFilter.class, com.google.cloud.functions.v2.EventFilter.Builder.class); + com.google.cloud.functions.v2.EventFilter.class, + com.google.cloud.functions.v2.EventFilter.Builder.class); } public static final int ATTRIBUTE_FIELD_NUMBER = 1; private volatile java.lang.Object attribute_; /** + * + * *
                                  * Required. The name of a CloudEvents attribute.
                                  * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attribute. */ @java.lang.Override @@ -123,29 +148,29 @@ public java.lang.String getAttribute() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; } } /** + * + * *
                                  * Required. The name of a CloudEvents attribute.
                                  * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attribute. */ @java.lang.Override - public com.google.protobuf.ByteString - getAttributeBytes() { + public com.google.protobuf.ByteString getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attribute_ = b; return b; } else { @@ -156,11 +181,14 @@ public java.lang.String getAttribute() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
                                  * Required. The value for the attribute.
                                  * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ @java.lang.Override @@ -169,29 +197,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
                                  * Required. The value for the attribute.
                                  * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -202,6 +230,8 @@ public java.lang.String getValue() { public static final int OPERATOR_FIELD_NUMBER = 3; private volatile java.lang.Object operator_; /** + * + * *
                                  * Optional. The operator used for matching the events with the value of the
                                  * filter. If not specified, only events that have an exact key-value pair
                              @@ -210,6 +240,7 @@ public java.lang.String getValue() {
                                  * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The operator. */ @java.lang.Override @@ -218,14 +249,15 @@ public java.lang.String getOperator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operator_ = s; return s; } } /** + * + * *
                                  * Optional. The operator used for matching the events with the value of the
                                  * filter. If not specified, only events that have an exact key-value pair
                              @@ -234,16 +266,15 @@ public java.lang.String getOperator() {
                                  * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for operator. */ @java.lang.Override - public com.google.protobuf.ByteString - getOperatorBytes() { + public com.google.protobuf.ByteString getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operator_ = b; return b; } else { @@ -252,6 +283,7 @@ public java.lang.String getOperator() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +295,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attribute_); } @@ -300,19 +331,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.EventFilter)) { return super.equals(obj); } - com.google.cloud.functions.v2.EventFilter other = (com.google.cloud.functions.v2.EventFilter) obj; + com.google.cloud.functions.v2.EventFilter other = + (com.google.cloud.functions.v2.EventFilter) obj; - if (!getAttribute() - .equals(other.getAttribute())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!getOperator() - .equals(other.getOperator())) return false; + if (!getAttribute().equals(other.getAttribute())) return false; + if (!getValue().equals(other.getValue())) return false; + if (!getOperator().equals(other.getOperator())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -335,118 +364,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2.EventFilter parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2.EventFilter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.EventFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.EventFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.EventFilter 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.EventFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.EventFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2.EventFilter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.EventFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.EventFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.EventFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.EventFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.EventFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.EventFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.EventFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Filters events based on exact matches on the CloudEvents attributes.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.EventFilter} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.EventFilter) com.google.cloud.functions.v2.EventFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_EventFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventFilter_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_EventFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.EventFilter.class, com.google.cloud.functions.v2.EventFilter.Builder.class); + com.google.cloud.functions.v2.EventFilter.class, + com.google.cloud.functions.v2.EventFilter.Builder.class); } // Construct using com.google.cloud.functions.v2.EventFilter.newBuilder() @@ -454,16 +492,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +514,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_EventFilter_descriptor; } @java.lang.Override @@ -498,7 +535,8 @@ public com.google.cloud.functions.v2.EventFilter build() { @java.lang.Override public com.google.cloud.functions.v2.EventFilter buildPartial() { - com.google.cloud.functions.v2.EventFilter result = new com.google.cloud.functions.v2.EventFilter(this); + com.google.cloud.functions.v2.EventFilter result = + new com.google.cloud.functions.v2.EventFilter(this); result.attribute_ = attribute_; result.value_ = value_; result.operator_ = operator_; @@ -510,38 +548,39 @@ public com.google.cloud.functions.v2.EventFilter buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.EventFilter)other); + return mergeFrom((com.google.cloud.functions.v2.EventFilter) other); } else { super.mergeFrom(other); return this; @@ -593,18 +632,20 @@ public Builder mergeFrom( private java.lang.Object attribute_ = ""; /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attribute. */ public java.lang.String getAttribute() { java.lang.Object ref = attribute_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; @@ -613,20 +654,21 @@ public java.lang.String getAttribute() { } } /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attribute. */ - public com.google.protobuf.ByteString - getAttributeBytes() { + public com.google.protobuf.ByteString getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attribute_ = b; return b; } else { @@ -634,54 +676,61 @@ public java.lang.String getAttribute() { } } /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The attribute to set. * @return This builder for chaining. */ - public Builder setAttribute( - java.lang.String value) { + public Builder setAttribute(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attribute_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAttribute() { - + attribute_ = getDefaultInstance().getAttribute(); onChanged(); return this; } /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for attribute to set. * @return This builder for chaining. */ - public Builder setAttributeBytes( - com.google.protobuf.ByteString value) { + public Builder setAttributeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attribute_ = value; onChanged(); return this; @@ -689,18 +738,20 @@ public Builder setAttributeBytes( private java.lang.Object value_ = ""; /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -709,20 +760,21 @@ public java.lang.String getValue() { } } /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -730,54 +782,61 @@ public java.lang.String getValue() { } } /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; @@ -785,6 +844,8 @@ public Builder setValueBytes( private java.lang.Object operator_ = ""; /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -793,13 +854,13 @@ public Builder setValueBytes(
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The operator. */ public java.lang.String getOperator() { java.lang.Object ref = operator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operator_ = s; return s; @@ -808,6 +869,8 @@ public java.lang.String getOperator() { } } /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -816,15 +879,14 @@ public java.lang.String getOperator() {
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for operator. */ - public com.google.protobuf.ByteString - getOperatorBytes() { + public com.google.protobuf.ByteString getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operator_ = b; return b; } else { @@ -832,6 +894,8 @@ public java.lang.String getOperator() { } } /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -840,20 +904,22 @@ public java.lang.String getOperator() {
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The operator to set. * @return This builder for chaining. */ - public Builder setOperator( - java.lang.String value) { + public Builder setOperator(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operator_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -862,15 +928,18 @@ public Builder setOperator(
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOperator() { - + operator_ = getDefaultInstance().getOperator(); onChanged(); return this; } /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -879,23 +948,23 @@ public Builder clearOperator() {
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for operator to set. * @return This builder for chaining. */ - public Builder setOperatorBytes( - com.google.protobuf.ByteString value) { + public Builder setOperatorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operator_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -905,12 +974,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.EventFilter) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.EventFilter) private static final com.google.cloud.functions.v2.EventFilter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.EventFilter(); } @@ -919,16 +988,16 @@ public static com.google.cloud.functions.v2.EventFilter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventFilter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventFilter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,6 +1012,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.EventFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilterOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilterOrBuilder.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilterOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilterOrBuilder.java index d374234d..0111e96c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilterOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilterOrBuilder.java @@ -1,53 +1,81 @@ +/* + * 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 EventFilterOrBuilder extends +public interface EventFilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.EventFilter) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Required. The name of a CloudEvents attribute.
                                  * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attribute. */ java.lang.String getAttribute(); /** + * + * *
                                  * Required. The name of a CloudEvents attribute.
                                  * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attribute. */ - com.google.protobuf.ByteString - getAttributeBytes(); + com.google.protobuf.ByteString getAttributeBytes(); /** + * + * *
                                  * Required. The value for the attribute.
                                  * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
                                  * Required. The value for the attribute.
                                  * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
                                  * Optional. The operator used for matching the events with the value of the
                                  * filter. If not specified, only events that have an exact key-value pair
                              @@ -56,10 +84,13 @@ public interface EventFilterOrBuilder extends
                                  * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The operator. */ java.lang.String getOperator(); /** + * + * *
                                  * Optional. The operator used for matching the events with the value of the
                                  * filter. If not specified, only events that have an exact key-value pair
                              @@ -68,8 +99,8 @@ public interface EventFilterOrBuilder extends
                                  * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for operator. */ - com.google.protobuf.ByteString - getOperatorBytes(); + com.google.protobuf.ByteString getOperatorBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java index 181df7a0..40613e1d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java @@ -1,9 +1,26 @@ +/* + * 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; /** + * + * *
                                * Describes EventTrigger, used to request events to be sent from another
                                * service.
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2.EventTrigger}
                                */
                              -public final class EventTrigger extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class EventTrigger extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.EventTrigger)
                                   EventTriggerOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use EventTrigger.newBuilder() to construct.
                                 private EventTrigger(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private EventTrigger() {
                                   trigger_ = "";
                                   triggerRegion_ = "";
                              @@ -33,16 +51,15 @@ private EventTrigger() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new EventTrigger();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private EventTrigger(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -62,64 +79,74 @@ private EventTrigger(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            trigger_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              trigger_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            triggerRegion_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              triggerRegion_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            eventType_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              eventFilters_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000001;
                              +              eventType_ = s;
                              +              break;
                                           }
                              -            eventFilters_.add(
                              -                input.readMessage(com.google.cloud.functions.v2.EventFilter.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          case 42: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 34:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                eventFilters_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              eventFilters_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2.EventFilter.parser(), extensionRegistry));
                              +              break;
                              +            }
                              +          case 42:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            pubsubTopic_ = s;
                              -            break;
                              -          }
                              -          case 50: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              pubsubTopic_ = s;
                              +              break;
                              +            }
                              +          case 50:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            serviceAccountEmail_ = s;
                              -            break;
                              -          }
                              -          case 56: {
                              -            int rawValue = input.readEnum();
                              +              serviceAccountEmail_ = s;
                              +              break;
                              +            }
                              +          case 56:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            retryPolicy_ = rawValue;
                              -            break;
                              -          }
                              -          case 66: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              retryPolicy_ = rawValue;
                              +              break;
                              +            }
                              +          case 66:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            channel_ = s;
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              channel_ = s;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -127,8 +154,7 @@ private EventTrigger(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000001) != 0)) {
                                       eventFilters_ = java.util.Collections.unmodifiableList(eventFilters_);
                              @@ -137,20 +163,25 @@ private EventTrigger(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventTrigger_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_EventTrigger_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventTrigger_fieldAccessorTable
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_EventTrigger_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2.EventTrigger.class, com.google.cloud.functions.v2.EventTrigger.Builder.class);
                              +            com.google.cloud.functions.v2.EventTrigger.class,
                              +            com.google.cloud.functions.v2.EventTrigger.Builder.class);
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Describes the retry policy in case of function's execution failure.
                                  * Retried execution is charged as any other execution.
                              @@ -158,9 +189,10 @@ private EventTrigger(
                                  *
                                  * Protobuf enum {@code google.cloud.functions.v2.EventTrigger.RetryPolicy}
                                  */
                              -  public enum RetryPolicy
                              -      implements com.google.protobuf.ProtocolMessageEnum {
                              +  public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum {
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Not specified.
                                    * 
                              @@ -169,6 +201,8 @@ public enum RetryPolicy */ RETRY_POLICY_UNSPECIFIED(0), /** + * + * *
                                    * Do not retry.
                                    * 
                              @@ -177,6 +211,8 @@ public enum RetryPolicy */ RETRY_POLICY_DO_NOT_RETRY(1), /** + * + * *
                                    * Retry on any failure, retry up to 7 days with an exponential backoff
                                    * (capped at 10 seconds).
                              @@ -189,6 +225,8 @@ public enum RetryPolicy
                                   ;
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Not specified.
                                    * 
                              @@ -197,6 +235,8 @@ public enum RetryPolicy */ public static final int RETRY_POLICY_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Do not retry.
                                    * 
                              @@ -205,6 +245,8 @@ public enum RetryPolicy */ public static final int RETRY_POLICY_DO_NOT_RETRY_VALUE = 1; /** + * + * *
                                    * Retry on any failure, retry up to 7 days with an exponential backoff
                                    * (capped at 10 seconds).
                              @@ -214,7 +256,6 @@ public enum RetryPolicy
                                    */
                                   public static final int RETRY_POLICY_RETRY_VALUE = 2;
                               
                              -
                                   public final int getNumber() {
                                     if (this == UNRECOGNIZED) {
                                       throw new java.lang.IllegalArgumentException(
                              @@ -239,49 +280,49 @@ public static RetryPolicy valueOf(int value) {
                                    */
                                   public static RetryPolicy forNumber(int value) {
                                     switch (value) {
                              -        case 0: return RETRY_POLICY_UNSPECIFIED;
                              -        case 1: return RETRY_POLICY_DO_NOT_RETRY;
                              -        case 2: return RETRY_POLICY_RETRY;
                              -        default: return null;
                              +        case 0:
                              +          return RETRY_POLICY_UNSPECIFIED;
                              +        case 1:
                              +          return RETRY_POLICY_DO_NOT_RETRY;
                              +        case 2:
                              +          return RETRY_POLICY_RETRY;
                              +        default:
                              +          return null;
                                     }
                                   }
                               
                              -    public static com.google.protobuf.Internal.EnumLiteMap
                              -        internalGetValueMap() {
                              +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
                                     return internalValueMap;
                                   }
                              -    private static final com.google.protobuf.Internal.EnumLiteMap<
                              -        RetryPolicy> internalValueMap =
                              -          new com.google.protobuf.Internal.EnumLiteMap() {
                              -            public RetryPolicy findValueByNumber(int number) {
                              -              return RetryPolicy.forNumber(number);
                              -            }
                              -          };
                               
                              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
                              -        getValueDescriptor() {
                              +    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
                              +        new com.google.protobuf.Internal.EnumLiteMap() {
                              +          public RetryPolicy findValueByNumber(int number) {
                              +            return RetryPolicy.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() {
                              +
                              +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                                     return getDescriptor();
                                   }
                              -    public static final com.google.protobuf.Descriptors.EnumDescriptor
                              -        getDescriptor() {
                              +
                              +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                                     return com.google.cloud.functions.v2.EventTrigger.getDescriptor().getEnumTypes().get(0);
                                   }
                               
                                   private static final RetryPolicy[] VALUES = values();
                               
                              -    public static RetryPolicy valueOf(
                              -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                              +    public static RetryPolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                                     if (desc.getType() != getDescriptor()) {
                              -        throw new java.lang.IllegalArgumentException(
                              -          "EnumValueDescriptor is not for this type.");
                              +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                                     }
                                     if (desc.getIndex() == -1) {
                                       return UNRECOGNIZED;
                              @@ -301,12 +342,17 @@ private RetryPolicy(int value) {
                                 public static final int TRIGGER_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The trigger. */ @java.lang.Override @@ -315,30 +361,32 @@ public java.lang.String getTrigger() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trigger_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for trigger. */ @java.lang.Override - public com.google.protobuf.ByteString - getTriggerBytes() { + public com.google.protobuf.ByteString getTriggerBytes() { java.lang.Object ref = trigger_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trigger_ = b; return b; } else { @@ -349,6 +397,8 @@ public java.lang.String getTrigger() { public static final int TRIGGER_REGION_FIELD_NUMBER = 2; private volatile java.lang.Object triggerRegion_; /** + * + * *
                                  * The region that the trigger will be in. The trigger will only receive
                                  * events originating in this region. It can be the same
                              @@ -357,6 +407,7 @@ public java.lang.String getTrigger() {
                                  * 
                              * * string trigger_region = 2; + * * @return The triggerRegion. */ @java.lang.Override @@ -365,14 +416,15 @@ public java.lang.String getTriggerRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); triggerRegion_ = s; return s; } } /** + * + * *
                                  * The region that the trigger will be in. The trigger will only receive
                                  * events originating in this region. It can be the same
                              @@ -381,16 +433,15 @@ public java.lang.String getTriggerRegion() {
                                  * 
                              * * string trigger_region = 2; + * * @return The bytes for triggerRegion. */ @java.lang.Override - public com.google.protobuf.ByteString - getTriggerRegionBytes() { + public com.google.protobuf.ByteString getTriggerRegionBytes() { java.lang.Object ref = triggerRegion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); triggerRegion_ = b; return b; } else { @@ -401,6 +452,8 @@ public java.lang.String getTriggerRegion() { public static final int EVENT_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object eventType_; /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `google.cloud.audit.log.v1.written` or
                              @@ -408,6 +461,7 @@ public java.lang.String getTriggerRegion() {
                                  * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The eventType. */ @java.lang.Override @@ -416,14 +470,15 @@ public java.lang.String getEventType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; } } /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `google.cloud.audit.log.v1.written` or
                              @@ -431,16 +486,15 @@ public java.lang.String getEventType() {
                                  * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for eventType. */ @java.lang.Override - public com.google.protobuf.ByteString - getEventTypeBytes() { + public com.google.protobuf.ByteString getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventType_ = b; return b; } else { @@ -451,6 +505,8 @@ public java.lang.String getEventType() { public static final int EVENT_FILTERS_FIELD_NUMBER = 4; private java.util.List eventFilters_; /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -462,6 +518,8 @@ public java.util.List getEventFilters return eventFilters_; } /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -469,11 +527,13 @@ public java.util.List getEventFilters * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; */ @java.lang.Override - public java.util.List + public java.util.List getEventFiltersOrBuilderList() { return eventFilters_; } /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -485,6 +545,8 @@ public int getEventFiltersCount() { return eventFilters_.size(); } /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -496,6 +558,8 @@ public com.google.cloud.functions.v2.EventFilter getEventFilters(int index) { return eventFilters_.get(index); } /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -503,14 +567,15 @@ public com.google.cloud.functions.v2.EventFilter getEventFilters(int index) { * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; */ @java.lang.Override - public com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuilder( - int index) { + public com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuilder(int index) { return eventFilters_.get(index); } public static final int PUBSUB_TOPIC_FIELD_NUMBER = 5; private volatile java.lang.Object pubsubTopic_; /** + * + * *
                                  * 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:
                              @@ -520,7 +585,10 @@ public com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuild
                                  * will not be deleted at function deletion.
                                  * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The pubsubTopic. */ @java.lang.Override @@ -529,14 +597,15 @@ public java.lang.String getPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; } } /** + * + * *
                                  * 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:
                              @@ -546,17 +615,18 @@ public java.lang.String getPubsubTopic() {
                                  * will not be deleted at function deletion.
                                  * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -567,6 +637,8 @@ public java.lang.String getPubsubTopic() { public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 6; private volatile java.lang.Object serviceAccountEmail_; /** + * + * *
                                  * Optional. The email of the trigger's service account. The service account must have
                                  * permission to invoke Cloud Run services, the permission is
                              @@ -576,6 +648,7 @@ public java.lang.String getPubsubTopic() {
                                  * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccountEmail. */ @java.lang.Override @@ -584,14 +657,15 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** + * + * *
                                  * Optional. The email of the trigger's service account. The service account must have
                                  * permission to invoke Cloud Run services, the permission is
                              @@ -601,16 +675,15 @@ public java.lang.String getServiceAccountEmail() {
                                  * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -621,40 +694,60 @@ public java.lang.String getServiceAccountEmail() { public static final int RETRY_POLICY_FIELD_NUMBER = 7; private int retryPolicy_; /** + * + * *
                                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                  * 
                              * - * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for retryPolicy. */ - @java.lang.Override public int getRetryPolicyValue() { + @java.lang.Override + public int getRetryPolicyValue() { return retryPolicy_; } /** + * + * *
                                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                  * 
                              * - * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The retryPolicy. */ - @java.lang.Override public com.google.cloud.functions.v2.EventTrigger.RetryPolicy getRetryPolicy() { + @java.lang.Override + public com.google.cloud.functions.v2.EventTrigger.RetryPolicy getRetryPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.EventTrigger.RetryPolicy result = com.google.cloud.functions.v2.EventTrigger.RetryPolicy.valueOf(retryPolicy_); - return result == null ? com.google.cloud.functions.v2.EventTrigger.RetryPolicy.UNRECOGNIZED : result; + com.google.cloud.functions.v2.EventTrigger.RetryPolicy result = + com.google.cloud.functions.v2.EventTrigger.RetryPolicy.valueOf(retryPolicy_); + return result == null + ? com.google.cloud.functions.v2.EventTrigger.RetryPolicy.UNRECOGNIZED + : result; } public static final int CHANNEL_FIELD_NUMBER = 8; private volatile java.lang.Object channel_; /** + * + * *
                                  * Optional. The name of the channel associated with the trigger in
                                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                                  * You must provide a channel to receive events from Eventarc SaaS partners.
                                  * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The channel. */ @java.lang.Override @@ -663,31 +756,33 @@ public java.lang.String getChannel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; } } /** + * + * *
                                  * Optional. The name of the channel associated with the trigger in
                                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                                  * You must provide a channel to receive events from Eventarc SaaS partners.
                                  * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for channel. */ @java.lang.Override - public com.google.protobuf.ByteString - getChannelBytes() { + public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); channel_ = b; return b; } else { @@ -696,6 +791,7 @@ public java.lang.String getChannel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -707,8 +803,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trigger_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trigger_); } @@ -727,7 +822,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAccountEmail_); } - if (retryPolicy_ != com.google.cloud.functions.v2.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED.getNumber()) { + if (retryPolicy_ + != com.google.cloud.functions.v2.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED + .getNumber()) { output.writeEnum(7, retryPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { @@ -752,8 +849,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, eventType_); } for (int i = 0; i < eventFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, eventFilters_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, eventFilters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pubsubTopic_); @@ -761,9 +857,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAccountEmail_); } - if (retryPolicy_ != com.google.cloud.functions.v2.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, retryPolicy_); + if (retryPolicy_ + != com.google.cloud.functions.v2.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, retryPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, channel_); @@ -776,28 +873,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.EventTrigger)) { return super.equals(obj); } - com.google.cloud.functions.v2.EventTrigger other = (com.google.cloud.functions.v2.EventTrigger) obj; - - if (!getTrigger() - .equals(other.getTrigger())) return false; - if (!getTriggerRegion() - .equals(other.getTriggerRegion())) return false; - if (!getEventType() - .equals(other.getEventType())) return false; - if (!getEventFiltersList() - .equals(other.getEventFiltersList())) return false; - if (!getPubsubTopic() - .equals(other.getPubsubTopic())) return false; - if (!getServiceAccountEmail() - .equals(other.getServiceAccountEmail())) return false; + com.google.cloud.functions.v2.EventTrigger other = + (com.google.cloud.functions.v2.EventTrigger) obj; + + if (!getTrigger().equals(other.getTrigger())) return false; + if (!getTriggerRegion().equals(other.getTriggerRegion())) return false; + if (!getEventType().equals(other.getEventType())) return false; + if (!getEventFiltersList().equals(other.getEventFiltersList())) return false; + if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (retryPolicy_ != other.retryPolicy_) return false; - if (!getChannel() - .equals(other.getChannel())) return false; + if (!getChannel().equals(other.getChannel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -832,97 +923,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2.EventTrigger parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2.EventTrigger parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.EventTrigger parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.EventTrigger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.EventTrigger 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.EventTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.EventTrigger parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2.EventTrigger parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.EventTrigger parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.EventTrigger parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.EventTrigger parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.EventTrigger parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.EventTrigger parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.EventTrigger parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.EventTrigger prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes EventTrigger, used to request events to be sent from another
                                  * service.
                              @@ -930,21 +1028,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2.EventTrigger}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.EventTrigger)
                                     com.google.cloud.functions.v2.EventTriggerOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventTrigger_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_EventTrigger_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventTrigger_fieldAccessorTable
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_EventTrigger_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2.EventTrigger.class, com.google.cloud.functions.v2.EventTrigger.Builder.class);
                              +              com.google.cloud.functions.v2.EventTrigger.class,
                              +              com.google.cloud.functions.v2.EventTrigger.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2.EventTrigger.newBuilder()
                              @@ -952,17 +1052,17 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getEventFiltersFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -990,9 +1090,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_EventTrigger_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_EventTrigger_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -1011,7 +1111,8 @@ public com.google.cloud.functions.v2.EventTrigger build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2.EventTrigger buildPartial() {
                              -      com.google.cloud.functions.v2.EventTrigger result = new com.google.cloud.functions.v2.EventTrigger(this);
                              +      com.google.cloud.functions.v2.EventTrigger result =
                              +          new com.google.cloud.functions.v2.EventTrigger(this);
                                     int from_bitField0_ = bitField0_;
                                     result.trigger_ = trigger_;
                                     result.triggerRegion_ = triggerRegion_;
                              @@ -1037,38 +1138,39 @@ public com.google.cloud.functions.v2.EventTrigger buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2.EventTrigger)other);
                              +        return mergeFrom((com.google.cloud.functions.v2.EventTrigger) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1107,9 +1209,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2.EventTrigger other) {
                                           eventFiltersBuilder_ = null;
                                           eventFilters_ = other.eventFilters_;
                                           bitField0_ = (bitField0_ & ~0x00000001);
                              -            eventFiltersBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getEventFiltersFieldBuilder() : null;
                              +            eventFiltersBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getEventFiltersFieldBuilder()
                              +                    : null;
                                         } else {
                                           eventFiltersBuilder_.addAllMessages(other.eventFilters_);
                                         }
                              @@ -1158,23 +1261,28 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The trigger. */ public java.lang.String getTrigger() { java.lang.Object ref = trigger_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trigger_ = s; return s; @@ -1183,21 +1291,24 @@ 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}`.
                                    * 
                              * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for trigger. */ - public com.google.protobuf.ByteString - getTriggerBytes() { + public com.google.protobuf.ByteString getTriggerBytes() { java.lang.Object ref = trigger_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trigger_ = b; return b; } else { @@ -1205,57 +1316,70 @@ 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}`.
                                    * 
                              * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The trigger to set. * @return This builder for chaining. */ - public Builder setTrigger( - java.lang.String value) { + public Builder setTrigger(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trigger_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTrigger() { - + trigger_ = getDefaultInstance().getTrigger(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for trigger to set. * @return This builder for chaining. */ - public Builder setTriggerBytes( - com.google.protobuf.ByteString value) { + public Builder setTriggerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trigger_ = value; onChanged(); return this; @@ -1263,6 +1387,8 @@ public Builder setTriggerBytes( private java.lang.Object triggerRegion_ = ""; /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1271,13 +1397,13 @@ public Builder setTriggerBytes(
                                    * 
                              * * string trigger_region = 2; + * * @return The triggerRegion. */ public java.lang.String getTriggerRegion() { java.lang.Object ref = triggerRegion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); triggerRegion_ = s; return s; @@ -1286,6 +1412,8 @@ public java.lang.String getTriggerRegion() { } } /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1294,15 +1422,14 @@ public java.lang.String getTriggerRegion() {
                                    * 
                              * * string trigger_region = 2; + * * @return The bytes for triggerRegion. */ - public com.google.protobuf.ByteString - getTriggerRegionBytes() { + public com.google.protobuf.ByteString getTriggerRegionBytes() { java.lang.Object ref = triggerRegion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); triggerRegion_ = b; return b; } else { @@ -1310,6 +1437,8 @@ public java.lang.String getTriggerRegion() { } } /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1318,20 +1447,22 @@ public java.lang.String getTriggerRegion() {
                                    * 
                              * * string trigger_region = 2; + * * @param value The triggerRegion to set. * @return This builder for chaining. */ - public Builder setTriggerRegion( - java.lang.String value) { + public Builder setTriggerRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + triggerRegion_ = value; onChanged(); return this; } /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1340,15 +1471,18 @@ public Builder setTriggerRegion(
                                    * 
                              * * string trigger_region = 2; + * * @return This builder for chaining. */ public Builder clearTriggerRegion() { - + triggerRegion_ = getDefaultInstance().getTriggerRegion(); onChanged(); return this; } /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1357,16 +1491,16 @@ public Builder clearTriggerRegion() {
                                    * 
                              * * string trigger_region = 2; + * * @param value The bytes for triggerRegion to set. * @return This builder for chaining. */ - public Builder setTriggerRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setTriggerRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + triggerRegion_ = value; onChanged(); return this; @@ -1374,6 +1508,8 @@ public Builder setTriggerRegionBytes( private java.lang.Object eventType_ = ""; /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1381,13 +1517,13 @@ public Builder setTriggerRegionBytes(
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The eventType. */ public java.lang.String getEventType() { java.lang.Object ref = eventType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; @@ -1396,6 +1532,8 @@ public java.lang.String getEventType() { } } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1403,15 +1541,14 @@ public java.lang.String getEventType() {
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for eventType. */ - public com.google.protobuf.ByteString - getEventTypeBytes() { + public com.google.protobuf.ByteString getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventType_ = b; return b; } else { @@ -1419,6 +1556,8 @@ public java.lang.String getEventType() { } } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1426,20 +1565,22 @@ public java.lang.String getEventType() {
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType( - java.lang.String value) { + public Builder setEventType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + eventType_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1447,15 +1588,18 @@ public Builder setEventType(
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearEventType() { - + eventType_ = getDefaultInstance().getEventType(); onChanged(); return this; } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1463,34 +1607,41 @@ public Builder clearEventType() {
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for eventType to set. * @return This builder for chaining. */ - public Builder setEventTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventType_ = value; onChanged(); return this; } private java.util.List eventFilters_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEventFiltersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - eventFilters_ = new java.util.ArrayList(eventFilters_); + eventFilters_ = + new java.util.ArrayList(eventFilters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.EventFilter, com.google.cloud.functions.v2.EventFilter.Builder, com.google.cloud.functions.v2.EventFilterOrBuilder> eventFiltersBuilder_; + com.google.cloud.functions.v2.EventFilter, + com.google.cloud.functions.v2.EventFilter.Builder, + com.google.cloud.functions.v2.EventFilterOrBuilder> + eventFiltersBuilder_; /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1505,6 +1656,8 @@ public java.util.List getEventFilters } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1519,6 +1672,8 @@ public int getEventFiltersCount() { } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1533,14 +1688,15 @@ public com.google.cloud.functions.v2.EventFilter getEventFilters(int index) { } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; */ - public Builder setEventFilters( - int index, com.google.cloud.functions.v2.EventFilter value) { + public Builder setEventFilters(int index, com.google.cloud.functions.v2.EventFilter value) { if (eventFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1554,6 +1710,8 @@ public Builder setEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1572,6 +1730,8 @@ public Builder setEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1592,14 +1752,15 @@ public Builder addEventFilters(com.google.cloud.functions.v2.EventFilter value) return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; */ - public Builder addEventFilters( - int index, com.google.cloud.functions.v2.EventFilter value) { + public Builder addEventFilters(int index, com.google.cloud.functions.v2.EventFilter value) { if (eventFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1613,6 +1774,8 @@ public Builder addEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1631,6 +1794,8 @@ public Builder addEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1649,6 +1814,8 @@ public Builder addEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1659,8 +1826,7 @@ public Builder addAllEventFilters( java.lang.Iterable values) { if (eventFiltersBuilder_ == null) { ensureEventFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, eventFilters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventFilters_); onChanged(); } else { eventFiltersBuilder_.addAllMessages(values); @@ -1668,6 +1834,8 @@ public Builder addAllEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1685,6 +1853,8 @@ public Builder clearEventFilters() { return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1702,39 +1872,44 @@ public Builder removeEventFilters(int index) { return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; */ - public com.google.cloud.functions.v2.EventFilter.Builder getEventFiltersBuilder( - int index) { + public com.google.cloud.functions.v2.EventFilter.Builder getEventFiltersBuilder(int index) { return getEventFiltersFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; */ - public com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuilder( - int index) { + public com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuilder(int index) { if (eventFiltersBuilder_ == null) { - return eventFilters_.get(index); } else { + return eventFilters_.get(index); + } else { return eventFiltersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; */ - public java.util.List - getEventFiltersOrBuilderList() { + public java.util.List + getEventFiltersOrBuilderList() { if (eventFiltersBuilder_ != null) { return eventFiltersBuilder_.getMessageOrBuilderList(); } else { @@ -1742,6 +1917,8 @@ public com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuild } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1749,42 +1926,48 @@ public com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuild * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; */ public com.google.cloud.functions.v2.EventFilter.Builder addEventFiltersBuilder() { - return getEventFiltersFieldBuilder().addBuilder( - com.google.cloud.functions.v2.EventFilter.getDefaultInstance()); + return getEventFiltersFieldBuilder() + .addBuilder(com.google.cloud.functions.v2.EventFilter.getDefaultInstance()); } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; */ - public com.google.cloud.functions.v2.EventFilter.Builder addEventFiltersBuilder( - int index) { - return getEventFiltersFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2.EventFilter.getDefaultInstance()); + public com.google.cloud.functions.v2.EventFilter.Builder addEventFiltersBuilder(int index) { + return getEventFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2.EventFilter.getDefaultInstance()); } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; */ - public java.util.List - getEventFiltersBuilderList() { + public java.util.List + getEventFiltersBuilderList() { return getEventFiltersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.EventFilter, com.google.cloud.functions.v2.EventFilter.Builder, com.google.cloud.functions.v2.EventFilterOrBuilder> + com.google.cloud.functions.v2.EventFilter, + com.google.cloud.functions.v2.EventFilter.Builder, + com.google.cloud.functions.v2.EventFilterOrBuilder> getEventFiltersFieldBuilder() { if (eventFiltersBuilder_ == null) { - eventFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.EventFilter, com.google.cloud.functions.v2.EventFilter.Builder, com.google.cloud.functions.v2.EventFilterOrBuilder>( - eventFilters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + eventFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.EventFilter, + com.google.cloud.functions.v2.EventFilter.Builder, + com.google.cloud.functions.v2.EventFilterOrBuilder>( + eventFilters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); eventFilters_ = null; } return eventFiltersBuilder_; @@ -1792,6 +1975,8 @@ public com.google.cloud.functions.v2.EventFilter.Builder addEventFiltersBuilder( private java.lang.Object pubsubTopic_ = ""; /** + * + * *
                                    * 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:
                              @@ -1801,14 +1986,16 @@ public com.google.cloud.functions.v2.EventFilter.Builder addEventFiltersBuilder(
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; @@ -1817,6 +2004,8 @@ 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:
                              @@ -1826,16 +2015,17 @@ public java.lang.String getPubsubTopic() {
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -1843,6 +2033,8 @@ 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:
                              @@ -1852,21 +2044,25 @@ public java.lang.String getPubsubTopic() {
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic( - java.lang.String value) { + public Builder setPubsubTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopic_ = value; onChanged(); return this; } /** + * + * *
                                    * 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:
                              @@ -1876,16 +2072,21 @@ public Builder setPubsubTopic(
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearPubsubTopic() { - + pubsubTopic_ = getDefaultInstance().getPubsubTopic(); onChanged(); return this; } /** + * + * *
                                    * 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:
                              @@ -1895,17 +2096,19 @@ public Builder clearPubsubTopic() {
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopic_ = value; onChanged(); return this; @@ -1913,6 +2116,8 @@ public Builder setPubsubTopicBytes( private java.lang.Object serviceAccountEmail_ = ""; /** + * + * *
                                    * Optional. The email of the trigger's service account. The service account must have
                                    * permission to invoke Cloud Run services, the permission is
                              @@ -1922,13 +2127,13 @@ public Builder setPubsubTopicBytes(
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -1937,6 +2142,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
                              @@ -1946,15 +2153,14 @@ public java.lang.String getServiceAccountEmail() {
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -1962,6 +2168,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
                              @@ -1971,20 +2179,22 @@ public java.lang.String getServiceAccountEmail() {
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail( - java.lang.String value) { + public Builder setServiceAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. The email of the trigger's service account. The service account must have
                                    * permission to invoke Cloud Run services, the permission is
                              @@ -1994,15 +2204,18 @@ public Builder setServiceAccountEmail(
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** + * + * *
                                    * Optional. The email of the trigger's service account. The service account must have
                                    * permission to invoke Cloud Run services, the permission is
                              @@ -2012,16 +2225,16 @@ public Builder clearServiceAccountEmail() {
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; @@ -2029,51 +2242,75 @@ public Builder setServiceAccountEmailBytes( private int retryPolicy_ = 0; /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for retryPolicy. */ - @java.lang.Override public int getRetryPolicyValue() { + @java.lang.Override + public int getRetryPolicyValue() { return retryPolicy_; } /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for retryPolicy to set. * @return This builder for chaining. */ public Builder setRetryPolicyValue(int value) { - + retryPolicy_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The retryPolicy. */ @java.lang.Override public com.google.cloud.functions.v2.EventTrigger.RetryPolicy getRetryPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.EventTrigger.RetryPolicy result = com.google.cloud.functions.v2.EventTrigger.RetryPolicy.valueOf(retryPolicy_); - return result == null ? com.google.cloud.functions.v2.EventTrigger.RetryPolicy.UNRECOGNIZED : result; + com.google.cloud.functions.v2.EventTrigger.RetryPolicy result = + com.google.cloud.functions.v2.EventTrigger.RetryPolicy.valueOf(retryPolicy_); + return result == null + ? com.google.cloud.functions.v2.EventTrigger.RetryPolicy.UNRECOGNIZED + : result; } /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The retryPolicy to set. * @return This builder for chaining. */ @@ -2081,21 +2318,26 @@ public Builder setRetryPolicy(com.google.cloud.functions.v2.EventTrigger.RetryPo if (value == null) { throw new NullPointerException(); } - + retryPolicy_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearRetryPolicy() { - + retryPolicy_ = 0; onChanged(); return this; @@ -2103,20 +2345,24 @@ public Builder clearRetryPolicy() { private java.lang.Object channel_ = ""; /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The channel. */ public java.lang.String getChannel() { java.lang.Object ref = channel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; @@ -2125,22 +2371,25 @@ public java.lang.String getChannel() { } } /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for channel. */ - public com.google.protobuf.ByteString - getChannelBytes() { + public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); channel_ = b; return b; } else { @@ -2148,67 +2397,80 @@ public java.lang.String getChannel() { } } /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The channel to set. * @return This builder for chaining. */ - public Builder setChannel( - java.lang.String value) { + public Builder setChannel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + channel_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearChannel() { - + channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for channel to set. * @return This builder for chaining. */ - public Builder setChannelBytes( - com.google.protobuf.ByteString value) { + public Builder setChannelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channel_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2218,12 +2480,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.EventTrigger) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.EventTrigger) private static final com.google.cloud.functions.v2.EventTrigger DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.EventTrigger(); } @@ -2232,16 +2494,16 @@ public static com.google.cloud.functions.v2.EventTrigger getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventTrigger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventTrigger(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventTrigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventTrigger(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2256,6 +2518,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.EventTrigger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java index e7630706..c7c5d1e5 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java @@ -1,35 +1,62 @@ +/* + * 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 EventTriggerOrBuilder extends +public interface EventTriggerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.EventTrigger) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The trigger. */ 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}`.
                                  * 
                              * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for trigger. */ - com.google.protobuf.ByteString - getTriggerBytes(); + com.google.protobuf.ByteString getTriggerBytes(); /** + * + * *
                                  * The region that the trigger will be in. The trigger will only receive
                                  * events originating in this region. It can be the same
                              @@ -38,10 +65,13 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string trigger_region = 2; + * * @return The triggerRegion. */ java.lang.String getTriggerRegion(); /** + * + * *
                                  * The region that the trigger will be in. The trigger will only receive
                                  * events originating in this region. It can be the same
                              @@ -50,12 +80,14 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string trigger_region = 2; + * * @return The bytes for triggerRegion. */ - com.google.protobuf.ByteString - getTriggerRegionBytes(); + com.google.protobuf.ByteString getTriggerRegionBytes(); /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `google.cloud.audit.log.v1.written` or
                              @@ -63,10 +95,13 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The eventType. */ java.lang.String getEventType(); /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `google.cloud.audit.log.v1.written` or
                              @@ -74,21 +109,24 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for eventType. */ - com.google.protobuf.ByteString - getEventTypeBytes(); + com.google.protobuf.ByteString getEventTypeBytes(); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              * * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; */ - java.util.List - getEventFiltersList(); + java.util.List getEventFiltersList(); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -97,6 +135,8 @@ public interface EventTriggerOrBuilder extends */ com.google.cloud.functions.v2.EventFilter getEventFilters(int index); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -105,25 +145,30 @@ public interface EventTriggerOrBuilder extends */ int getEventFiltersCount(); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              * * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; */ - java.util.List + java.util.List getEventFiltersOrBuilderList(); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              * * repeated .google.cloud.functions.v2.EventFilter event_filters = 4; */ - com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuilder( - int index); + com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuilder(int index); /** + * + * *
                                  * 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:
                              @@ -133,11 +178,16 @@ com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuilder(
                                  * will not be deleted at function deletion.
                                  * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The pubsubTopic. */ 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:
                              @@ -147,13 +197,17 @@ com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuilder(
                                  * will not be deleted at function deletion.
                                  * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString - getPubsubTopicBytes(); + 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
                              @@ -163,10 +217,13 @@ com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuilder(
                                  * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccountEmail. */ 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
                              @@ -176,51 +233,70 @@ com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuilder(
                                  * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString - getServiceAccountEmailBytes(); + com.google.protobuf.ByteString getServiceAccountEmailBytes(); /** + * + * *
                                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                  * 
                              * - * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for retryPolicy. */ int getRetryPolicyValue(); /** + * + * *
                                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                  * 
                              * - * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The retryPolicy. */ com.google.cloud.functions.v2.EventTrigger.RetryPolicy getRetryPolicy(); /** + * + * *
                                  * Optional. The name of the channel associated with the trigger in
                                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                                  * You must provide a channel to receive events from Eventarc SaaS partners.
                                  * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The channel. */ java.lang.String getChannel(); /** + * + * *
                                  * Optional. The name of the channel associated with the trigger in
                                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                                  * You must provide a channel to receive events from Eventarc SaaS partners.
                                  * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for channel. */ - com.google.protobuf.ByteString - getChannelBytes(); + com.google.protobuf.ByteString getChannelBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java index d616c3e9..8c0a8c92 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java @@ -1,9 +1,26 @@ +/* + * 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; /** + * + * *
                                * Describes a Cloud Function that contains user computation executed in
                                * response to an event. It encapsulates function and trigger configurations.
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2.Function}
                                */
                              -public final class Function extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class Function extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.Function)
                                   FunctionOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use Function.newBuilder() to construct.
                                 private Function(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private Function() {
                                   name_ = "";
                                   environment_ = 0;
                              @@ -30,16 +48,15 @@ private Function() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new Function();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private Function(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -59,111 +76,129 @@ private Function(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            name_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            description_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            com.google.cloud.functions.v2.BuildConfig.Builder subBuilder = null;
                              -            if (buildConfig_ != null) {
                              -              subBuilder = buildConfig_.toBuilder();
                              -            }
                              -            buildConfig_ = input.readMessage(com.google.cloud.functions.v2.BuildConfig.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(buildConfig_);
                              -              buildConfig_ = subBuilder.buildPartial();
                              +              name_ = s;
                              +              break;
                                           }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            break;
                              -          }
                              -          case 34: {
                              -            com.google.cloud.functions.v2.ServiceConfig.Builder subBuilder = null;
                              -            if (serviceConfig_ != null) {
                              -              subBuilder = serviceConfig_.toBuilder();
                              +              description_ = s;
                              +              break;
                                           }
                              -            serviceConfig_ = input.readMessage(com.google.cloud.functions.v2.ServiceConfig.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(serviceConfig_);
                              -              serviceConfig_ = subBuilder.buildPartial();
                              +          case 26:
                              +            {
                              +              com.google.cloud.functions.v2.BuildConfig.Builder subBuilder = null;
                              +              if (buildConfig_ != null) {
                              +                subBuilder = buildConfig_.toBuilder();
                              +              }
                              +              buildConfig_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2.BuildConfig.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(buildConfig_);
                              +                buildConfig_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              -
                              -            break;
                              -          }
                              -          case 42: {
                              -            com.google.cloud.functions.v2.EventTrigger.Builder subBuilder = null;
                              -            if (eventTrigger_ != null) {
                              -              subBuilder = eventTrigger_.toBuilder();
                              +          case 34:
                              +            {
                              +              com.google.cloud.functions.v2.ServiceConfig.Builder subBuilder = null;
                              +              if (serviceConfig_ != null) {
                              +                subBuilder = serviceConfig_.toBuilder();
                              +              }
                              +              serviceConfig_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2.ServiceConfig.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(serviceConfig_);
                              +                serviceConfig_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              -            eventTrigger_ = input.readMessage(com.google.cloud.functions.v2.EventTrigger.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(eventTrigger_);
                              -              eventTrigger_ = subBuilder.buildPartial();
                              +          case 42:
                              +            {
                              +              com.google.cloud.functions.v2.EventTrigger.Builder subBuilder = null;
                              +              if (eventTrigger_ != null) {
                              +                subBuilder = eventTrigger_.toBuilder();
                              +              }
                              +              eventTrigger_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2.EventTrigger.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(eventTrigger_);
                              +                eventTrigger_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              +          case 48:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            break;
                              -          }
                              -          case 48: {
                              -            int rawValue = input.readEnum();
                              -
                              -            state_ = rawValue;
                              -            break;
                              -          }
                              -          case 58: {
                              -            com.google.protobuf.Timestamp.Builder subBuilder = null;
                              -            if (updateTime_ != null) {
                              -              subBuilder = updateTime_.toBuilder();
                              +              state_ = rawValue;
                              +              break;
                                           }
                              -            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(updateTime_);
                              -              updateTime_ = subBuilder.buildPartial();
                              +          case 58:
                              +            {
                              +              com.google.protobuf.Timestamp.Builder subBuilder = null;
                              +              if (updateTime_ != null) {
                              +                subBuilder = updateTime_.toBuilder();
                              +              }
                              +              updateTime_ =
                              +                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(updateTime_);
                              +                updateTime_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              -
                              -            break;
                              -          }
                              -          case 66: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              labels_ = com.google.protobuf.MapField.newMapField(
                              -                  LabelsDefaultEntryHolder.defaultEntry);
                              -              mutable_bitField0_ |= 0x00000001;
                              +          case 66:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                labels_ =
                              +                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              com.google.protobuf.MapEntry labels__ =
                              +                  input.readMessage(
                              +                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              +              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
                              +              break;
                                           }
                              -            com.google.protobuf.MapEntry
                              -            labels__ = input.readMessage(
                              -                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              -            labels_.getMutableMap().put(
                              -                labels__.getKey(), labels__.getValue());
                              -            break;
                              -          }
                              -          case 74: {
                              -            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              -              stateMessages_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000002;
                              +          case 74:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              +                stateMessages_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000002;
                              +              }
                              +              stateMessages_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2.StateMessage.parser(), extensionRegistry));
                              +              break;
                                           }
                              -            stateMessages_.add(
                              -                input.readMessage(com.google.cloud.functions.v2.StateMessage.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          case 80: {
                              -            int rawValue = input.readEnum();
                              +          case 80:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            environment_ = rawValue;
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              environment_ = rawValue;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -171,8 +206,7 @@ private Function(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000002) != 0)) {
                                       stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_);
                              @@ -181,41 +215,46 @@ private Function(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Function_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_Function_descriptor;
                                 }
                               
                                 @SuppressWarnings({"rawtypes"})
                                 @java.lang.Override
                              -  protected com.google.protobuf.MapField internalGetMapField(
                              -      int number) {
                              +  protected com.google.protobuf.MapField internalGetMapField(int number) {
                                   switch (number) {
                                     case 8:
                                       return internalGetLabels();
                                     default:
                              -        throw new RuntimeException(
                              -            "Invalid map field number: " + number);
                              +        throw new RuntimeException("Invalid map field number: " + number);
                                   }
                                 }
                              +
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Function_fieldAccessorTable
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_Function_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2.Function.class, com.google.cloud.functions.v2.Function.Builder.class);
                              +            com.google.cloud.functions.v2.Function.class,
                              +            com.google.cloud.functions.v2.Function.Builder.class);
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Describes the current state of the function.
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2.Function.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified. Invalid state.
                                    * 
                              @@ -224,6 +263,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
                                    * Function has been successfully deployed and is serving.
                                    * 
                              @@ -232,6 +273,8 @@ public enum State */ ACTIVE(1), /** + * + * *
                                    * Function deployment failed and the function is not serving.
                                    * 
                              @@ -240,6 +283,8 @@ public enum State */ FAILED(2), /** + * + * *
                                    * Function is being created or updated.
                                    * 
                              @@ -248,6 +293,8 @@ public enum State */ DEPLOYING(3), /** + * + * *
                                    * Function is being deleted.
                                    * 
                              @@ -256,6 +303,8 @@ public enum State */ DELETING(4), /** + * + * *
                                    * Function deployment failed and the function serving state is undefined.
                                    * The function should be updated or deleted to move it out of this state.
                              @@ -268,6 +317,8 @@ public enum State
                                   ;
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Not specified. Invalid state.
                                    * 
                              @@ -276,6 +327,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Function has been successfully deployed and is serving.
                                    * 
                              @@ -284,6 +337,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
                                    * Function deployment failed and the function is not serving.
                                    * 
                              @@ -292,6 +347,8 @@ public enum State */ public static final int FAILED_VALUE = 2; /** + * + * *
                                    * Function is being created or updated.
                                    * 
                              @@ -300,6 +357,8 @@ public enum State */ public static final int DEPLOYING_VALUE = 3; /** + * + * *
                                    * Function is being deleted.
                                    * 
                              @@ -308,6 +367,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
                                    * Function deployment failed and the function serving state is undefined.
                                    * The function should be updated or deleted to move it out of this state.
                              @@ -317,7 +378,6 @@ public enum State
                                    */
                                   public static final int UNKNOWN_VALUE = 5;
                               
                              -
                                   public final int getNumber() {
                                     if (this == UNRECOGNIZED) {
                                       throw new java.lang.IllegalArgumentException(
                              @@ -342,52 +402,55 @@ public static State valueOf(int value) {
                                    */
                                   public static State forNumber(int value) {
                                     switch (value) {
                              -        case 0: return STATE_UNSPECIFIED;
                              -        case 1: return ACTIVE;
                              -        case 2: return FAILED;
                              -        case 3: return DEPLOYING;
                              -        case 4: return DELETING;
                              -        case 5: return UNKNOWN;
                              -        default: return null;
                              +        case 0:
                              +          return STATE_UNSPECIFIED;
                              +        case 1:
                              +          return ACTIVE;
                              +        case 2:
                              +          return FAILED;
                              +        case 3:
                              +          return DEPLOYING;
                              +        case 4:
                              +          return DELETING;
                              +        case 5:
                              +          return UNKNOWN;
                              +        default:
                              +          return null;
                                     }
                                   }
                               
                              -    public static com.google.protobuf.Internal.EnumLiteMap
                              -        internalGetValueMap() {
                              +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
                                     return internalValueMap;
                                   }
                              -    private static final com.google.protobuf.Internal.EnumLiteMap<
                              -        State> internalValueMap =
                              -          new com.google.protobuf.Internal.EnumLiteMap() {
                              -            public State findValueByNumber(int number) {
                              -              return State.forNumber(number);
                              -            }
                              -          };
                               
                              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
                              -        getValueDescriptor() {
                              +    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
                              +        new com.google.protobuf.Internal.EnumLiteMap() {
                              +          public State findValueByNumber(int number) {
                              +            return State.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() {
                              +
                              +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                                     return getDescriptor();
                                   }
                              -    public static final com.google.protobuf.Descriptors.EnumDescriptor
                              -        getDescriptor() {
                              +
                              +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                                     return com.google.cloud.functions.v2.Function.getDescriptor().getEnumTypes().get(0);
                                   }
                               
                                   private static final State[] VALUES = values();
                               
                              -    public static State valueOf(
                              -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                              +    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                                     if (desc.getType() != getDescriptor()) {
                              -        throw new java.lang.IllegalArgumentException(
                              -          "EnumValueDescriptor is not for this type.");
                              +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                                     }
                                     if (desc.getIndex() == -1) {
                                       return UNRECOGNIZED;
                              @@ -407,12 +470,15 @@ private State(int value) {
                                 public static final int NAME_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object name_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -421,30 +487,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -455,38 +521,50 @@ public java.lang.String getName() { public static final int ENVIRONMENT_FIELD_NUMBER = 10; private int environment_; /** + * + * *
                                  * Describe whether the function is gen1 or gen2.
                                  * 
                              * * .google.cloud.functions.v2.Environment environment = 10; + * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override public int getEnvironmentValue() { + @java.lang.Override + public int getEnvironmentValue() { return environment_; } /** + * + * *
                                  * Describe whether the function is gen1 or gen2.
                                  * 
                              * * .google.cloud.functions.v2.Environment environment = 10; + * * @return The environment. */ - @java.lang.Override public com.google.cloud.functions.v2.Environment getEnvironment() { + @java.lang.Override + public com.google.cloud.functions.v2.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.Environment result = com.google.cloud.functions.v2.Environment.valueOf(environment_); + com.google.cloud.functions.v2.Environment result = + com.google.cloud.functions.v2.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The description. */ @java.lang.Override @@ -495,29 +573,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -528,12 +606,15 @@ public java.lang.String getDescription() { public static final int BUILD_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.functions.v2.BuildConfig buildConfig_; /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                                  * 
                              * * .google.cloud.functions.v2.BuildConfig build_config = 3; + * * @return Whether the buildConfig field is set. */ @java.lang.Override @@ -541,19 +622,26 @@ public boolean hasBuildConfig() { return buildConfig_ != null; } /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                                  * 
                              * * .google.cloud.functions.v2.BuildConfig build_config = 3; + * * @return The buildConfig. */ @java.lang.Override public com.google.cloud.functions.v2.BuildConfig getBuildConfig() { - return buildConfig_ == null ? com.google.cloud.functions.v2.BuildConfig.getDefaultInstance() : buildConfig_; + return buildConfig_ == null + ? com.google.cloud.functions.v2.BuildConfig.getDefaultInstance() + : buildConfig_; } /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                              @@ -569,12 +657,15 @@ public com.google.cloud.functions.v2.BuildConfigOrBuilder getBuildConfigOrBuilde
                                 public static final int SERVICE_CONFIG_FIELD_NUMBER = 4;
                                 private com.google.cloud.functions.v2.ServiceConfig serviceConfig_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                                  * 
                              * * .google.cloud.functions.v2.ServiceConfig service_config = 4; + * * @return Whether the serviceConfig field is set. */ @java.lang.Override @@ -582,19 +673,26 @@ public boolean hasServiceConfig() { return serviceConfig_ != null; } /** + * + * *
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                                  * 
                              * * .google.cloud.functions.v2.ServiceConfig service_config = 4; + * * @return The serviceConfig. */ @java.lang.Override public com.google.cloud.functions.v2.ServiceConfig getServiceConfig() { - return serviceConfig_ == null ? com.google.cloud.functions.v2.ServiceConfig.getDefaultInstance() : serviceConfig_; + return serviceConfig_ == null + ? com.google.cloud.functions.v2.ServiceConfig.getDefaultInstance() + : serviceConfig_; } /** + * + * *
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                              @@ -610,12 +708,15 @@ public com.google.cloud.functions.v2.ServiceConfigOrBuilder getServiceConfigOrBu
                                 public static final int EVENT_TRIGGER_FIELD_NUMBER = 5;
                                 private com.google.cloud.functions.v2.EventTrigger eventTrigger_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + * * @return Whether the eventTrigger field is set. */ @java.lang.Override @@ -623,19 +724,26 @@ public boolean hasEventTrigger() { return eventTrigger_ != null; } /** + * + * *
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + * * @return The eventTrigger. */ @java.lang.Override public com.google.cloud.functions.v2.EventTrigger getEventTrigger() { - return eventTrigger_ == null ? com.google.cloud.functions.v2.EventTrigger.getDefaultInstance() : eventTrigger_; + return eventTrigger_ == null + ? com.google.cloud.functions.v2.EventTrigger.getDefaultInstance() + : eventTrigger_; } /** + * + * *
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                              @@ -651,38 +759,55 @@ public com.google.cloud.functions.v2.EventTriggerOrBuilder getEventTriggerOrBuil
                                 public static final int STATE_FIELD_NUMBER = 6;
                                 private int state_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Output only. State of the function.
                                  * 
                              * - * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
                                  * Output only. State of the function.
                                  * 
                              * - * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.functions.v2.Function.State getState() { + @java.lang.Override + public com.google.cloud.functions.v2.Function.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.Function.State result = com.google.cloud.functions.v2.Function.State.valueOf(state_); + com.google.cloud.functions.v2.Function.State result = + com.google.cloud.functions.v2.Function.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2.Function.State.UNRECOGNIZED : result; } public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
                                  * 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]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -690,11 +815,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
                                  * 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]; + * + * * @return The updateTime. */ @java.lang.Override @@ -702,11 +831,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
                                  * 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]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -714,24 +846,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Function_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_Function_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -740,28 +871,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 8; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -769,11 +902,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -781,16 +915,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -798,12 +932,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -813,64 +946,84 @@ public java.lang.String getLabelsOrThrow( public static final int STATE_MESSAGES_FIELD_NUMBER = 9; private java.util.List stateMessages_; /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getStateMessagesList() { return stateMessages_; } /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getStateMessagesOrBuilderList() { return stateMessages_; } /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getStateMessagesCount() { return stateMessages_.size(); } /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.functions.v2.StateMessage getStateMessages(int index) { return stateMessages_.get(index); } /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder( - int index) { + public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder(int index) { return stateMessages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -882,8 +1035,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -905,16 +1057,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(7, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); for (int i = 0; i < stateMessages_.size(); i++) { output.writeMessage(9, stateMessages_.get(i)); } - if (environment_ != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (environment_ + != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(10, environment_); } unknownFields.writeTo(output); @@ -933,42 +1082,36 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (buildConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBuildConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBuildConfig()); } if (serviceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getServiceConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceConfig()); } if (eventTrigger_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEventTrigger()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEventTrigger()); } if (state_ != com.google.cloud.functions.v2.Function.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); } for (int i = 0; i < stateMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, stateMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, stateMessages_.get(i)); } - if (environment_ != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, environment_); + if (environment_ + != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, environment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -978,43 +1121,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.Function)) { return super.equals(obj); } com.google.cloud.functions.v2.Function other = (com.google.cloud.functions.v2.Function) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (environment_ != other.environment_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasBuildConfig() != other.hasBuildConfig()) return false; if (hasBuildConfig()) { - if (!getBuildConfig() - .equals(other.getBuildConfig())) return false; + if (!getBuildConfig().equals(other.getBuildConfig())) return false; } if (hasServiceConfig() != other.hasServiceConfig()) return false; if (hasServiceConfig()) { - if (!getServiceConfig() - .equals(other.getServiceConfig())) return false; + if (!getServiceConfig().equals(other.getServiceConfig())) return false; } if (hasEventTrigger() != other.hasEventTrigger()) return false; if (hasEventTrigger()) { - if (!getEventTrigger() - .equals(other.getEventTrigger())) return false; + if (!getEventTrigger().equals(other.getEventTrigger())) return false; } if (state_ != other.state_) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getStateMessagesList() - .equals(other.getStateMessagesList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getStateMessagesList().equals(other.getStateMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1063,97 +1198,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2.Function parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2.Function parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.Function parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Function parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.Function 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.Function parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.Function parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2.Function parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.Function parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.Function parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.Function parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.Function parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.Function parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.Function prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes a Cloud Function that contains user computation executed in
                                  * response to an event. It encapsulates function and trigger configurations.
                              @@ -1161,43 +1303,43 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2.Function}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.Function)
                                     com.google.cloud.functions.v2.FunctionOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Function_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_Function_descriptor;
                                   }
                               
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMapField(int number) {
                                     switch (number) {
                                       case 8:
                                         return internalGetLabels();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMutableMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
                                     switch (number) {
                                       case 8:
                                         return internalGetMutableLabels();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Function_fieldAccessorTable
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_Function_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2.Function.class, com.google.cloud.functions.v2.Function.Builder.class);
                              +              com.google.cloud.functions.v2.Function.class,
                              +              com.google.cloud.functions.v2.Function.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2.Function.newBuilder()
                              @@ -1205,17 +1347,17 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getStateMessagesFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -1262,9 +1404,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Function_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_Function_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -1283,7 +1425,8 @@ public com.google.cloud.functions.v2.Function build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2.Function buildPartial() {
                              -      com.google.cloud.functions.v2.Function result = new com.google.cloud.functions.v2.Function(this);
                              +      com.google.cloud.functions.v2.Function result =
                              +          new com.google.cloud.functions.v2.Function(this);
                                     int from_bitField0_ = bitField0_;
                                     result.name_ = name_;
                                     result.environment_ = environment_;
                              @@ -1328,38 +1471,39 @@ public com.google.cloud.functions.v2.Function buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2.Function)other);
                              +        return mergeFrom((com.google.cloud.functions.v2.Function) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1394,8 +1538,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2.Function other) {
                                     if (other.hasUpdateTime()) {
                                       mergeUpdateTime(other.getUpdateTime());
                                     }
                              -      internalGetMutableLabels().mergeFrom(
                              -          other.internalGetLabels());
                              +      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
                                     if (stateMessagesBuilder_ == null) {
                                       if (!other.stateMessages_.isEmpty()) {
                                         if (stateMessages_.isEmpty()) {
                              @@ -1414,9 +1557,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2.Function other) {
                                           stateMessagesBuilder_ = null;
                                           stateMessages_ = other.stateMessages_;
                                           bitField0_ = (bitField0_ & ~0x00000002);
                              -            stateMessagesBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getStateMessagesFieldBuilder() : null;
                              +            stateMessagesBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getStateMessagesFieldBuilder()
                              +                    : null;
                                         } else {
                                           stateMessagesBuilder_.addAllMessages(other.stateMessages_);
                                         }
                              @@ -1450,23 +1594,26 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object name_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1475,21 +1622,22 @@ public java.lang.String getName() { } } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1497,57 +1645,64 @@ public java.lang.String getName() { } } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1555,51 +1710,65 @@ public Builder setNameBytes( private int environment_ = 0; /** + * + * *
                                    * Describe whether the function is gen1 or gen2.
                                    * 
                              * * .google.cloud.functions.v2.Environment environment = 10; + * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override public int getEnvironmentValue() { + @java.lang.Override + public int getEnvironmentValue() { return environment_; } /** + * + * *
                                    * Describe whether the function is gen1 or gen2.
                                    * 
                              * * .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; onChanged(); return this; } /** + * + * *
                                    * Describe whether the function is gen1 or gen2.
                                    * 
                              * * .google.cloud.functions.v2.Environment environment = 10; + * * @return The environment. */ @java.lang.Override public com.google.cloud.functions.v2.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.Environment result = com.google.cloud.functions.v2.Environment.valueOf(environment_); + com.google.cloud.functions.v2.Environment result = + com.google.cloud.functions.v2.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; } /** + * + * *
                                    * Describe whether the function is gen1 or gen2.
                                    * 
                              * * .google.cloud.functions.v2.Environment environment = 10; + * * @param value The environment to set. * @return This builder for chaining. */ @@ -1607,21 +1776,24 @@ public Builder setEnvironment(com.google.cloud.functions.v2.Environment value) { if (value == null) { throw new NullPointerException(); } - + environment_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Describe whether the function is gen1 or gen2.
                                    * 
                              * * .google.cloud.functions.v2.Environment environment = 10; + * * @return This builder for chaining. */ public Builder clearEnvironment() { - + environment_ = 0; onChanged(); return this; @@ -1629,18 +1801,20 @@ public Builder clearEnvironment() { 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1649,20 +1823,21 @@ public java.lang.String getDescription() { } } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1670,54 +1845,61 @@ public java.lang.String getDescription() { } } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1725,36 +1907,49 @@ public Builder setDescriptionBytes( private com.google.cloud.functions.v2.BuildConfig buildConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.BuildConfig, com.google.cloud.functions.v2.BuildConfig.Builder, com.google.cloud.functions.v2.BuildConfigOrBuilder> buildConfigBuilder_; + com.google.cloud.functions.v2.BuildConfig, + com.google.cloud.functions.v2.BuildConfig.Builder, + com.google.cloud.functions.v2.BuildConfigOrBuilder> + buildConfigBuilder_; /** + * + * *
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                                    * 
                              * * .google.cloud.functions.v2.BuildConfig build_config = 3; + * * @return Whether the buildConfig field is set. */ public boolean hasBuildConfig() { return buildConfigBuilder_ != null || buildConfig_ != null; } /** + * + * *
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                                    * 
                              * * .google.cloud.functions.v2.BuildConfig build_config = 3; + * * @return The buildConfig. */ public com.google.cloud.functions.v2.BuildConfig getBuildConfig() { if (buildConfigBuilder_ == null) { - return buildConfig_ == null ? com.google.cloud.functions.v2.BuildConfig.getDefaultInstance() : buildConfig_; + return buildConfig_ == null + ? com.google.cloud.functions.v2.BuildConfig.getDefaultInstance() + : buildConfig_; } else { return buildConfigBuilder_.getMessage(); } } /** + * + * *
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1776,6 +1971,8 @@ public Builder setBuildConfig(com.google.cloud.functions.v2.BuildConfig value) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1795,6 +1992,8 @@ public Builder setBuildConfig(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1806,7 +2005,9 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2.BuildConfig value)
                                     if (buildConfigBuilder_ == null) {
                                       if (buildConfig_ != null) {
                                         buildConfig_ =
                              -            com.google.cloud.functions.v2.BuildConfig.newBuilder(buildConfig_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2.BuildConfig.newBuilder(buildConfig_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         buildConfig_ = value;
                                       }
                              @@ -1818,6 +2019,8 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2.BuildConfig value)
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1837,6 +2040,8 @@ public Builder clearBuildConfig() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1845,11 +2050,13 @@ public Builder clearBuildConfig() {
                                    * .google.cloud.functions.v2.BuildConfig build_config = 3;
                                    */
                                   public com.google.cloud.functions.v2.BuildConfig.Builder getBuildConfigBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getBuildConfigFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1861,11 +2068,14 @@ public com.google.cloud.functions.v2.BuildConfigOrBuilder getBuildConfigOrBuilde
                                     if (buildConfigBuilder_ != null) {
                                       return buildConfigBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return buildConfig_ == null ?
                              -            com.google.cloud.functions.v2.BuildConfig.getDefaultInstance() : buildConfig_;
                              +        return buildConfig_ == null
                              +            ? com.google.cloud.functions.v2.BuildConfig.getDefaultInstance()
                              +            : buildConfig_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1874,14 +2084,17 @@ public com.google.cloud.functions.v2.BuildConfigOrBuilder getBuildConfigOrBuilde
                                    * .google.cloud.functions.v2.BuildConfig build_config = 3;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2.BuildConfig, com.google.cloud.functions.v2.BuildConfig.Builder, com.google.cloud.functions.v2.BuildConfigOrBuilder> 
                              +            com.google.cloud.functions.v2.BuildConfig,
                              +            com.google.cloud.functions.v2.BuildConfig.Builder,
                              +            com.google.cloud.functions.v2.BuildConfigOrBuilder>
                                       getBuildConfigFieldBuilder() {
                                     if (buildConfigBuilder_ == null) {
                              -        buildConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2.BuildConfig, com.google.cloud.functions.v2.BuildConfig.Builder, com.google.cloud.functions.v2.BuildConfigOrBuilder>(
                              -                getBuildConfig(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        buildConfigBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2.BuildConfig,
                              +                com.google.cloud.functions.v2.BuildConfig.Builder,
                              +                com.google.cloud.functions.v2.BuildConfigOrBuilder>(
                              +                getBuildConfig(), getParentForChildren(), isClean());
                                       buildConfig_ = null;
                                     }
                                     return buildConfigBuilder_;
                              @@ -1889,36 +2102,49 @@ public com.google.cloud.functions.v2.BuildConfigOrBuilder getBuildConfigOrBuilde
                               
                                   private com.google.cloud.functions.v2.ServiceConfig serviceConfig_;
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2.ServiceConfig, com.google.cloud.functions.v2.ServiceConfig.Builder, com.google.cloud.functions.v2.ServiceConfigOrBuilder> serviceConfigBuilder_;
                              +            com.google.cloud.functions.v2.ServiceConfig,
                              +            com.google.cloud.functions.v2.ServiceConfig.Builder,
                              +            com.google.cloud.functions.v2.ServiceConfigOrBuilder>
                              +        serviceConfigBuilder_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                                    * 
                              * * .google.cloud.functions.v2.ServiceConfig service_config = 4; + * * @return Whether the serviceConfig field is set. */ public boolean hasServiceConfig() { return serviceConfigBuilder_ != null || serviceConfig_ != null; } /** + * + * *
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                                    * 
                              * * .google.cloud.functions.v2.ServiceConfig service_config = 4; + * * @return The serviceConfig. */ public com.google.cloud.functions.v2.ServiceConfig getServiceConfig() { if (serviceConfigBuilder_ == null) { - return serviceConfig_ == null ? com.google.cloud.functions.v2.ServiceConfig.getDefaultInstance() : serviceConfig_; + return serviceConfig_ == null + ? com.google.cloud.functions.v2.ServiceConfig.getDefaultInstance() + : serviceConfig_; } else { return serviceConfigBuilder_.getMessage(); } } /** + * + * *
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -1940,6 +2166,8 @@ public Builder setServiceConfig(com.google.cloud.functions.v2.ServiceConfig valu
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -1959,6 +2187,8 @@ public Builder setServiceConfig(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -1970,7 +2200,9 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2.ServiceConfig va
                                     if (serviceConfigBuilder_ == null) {
                                       if (serviceConfig_ != null) {
                                         serviceConfig_ =
                              -            com.google.cloud.functions.v2.ServiceConfig.newBuilder(serviceConfig_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2.ServiceConfig.newBuilder(serviceConfig_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         serviceConfig_ = value;
                                       }
                              @@ -1982,6 +2214,8 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2.ServiceConfig va
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -2001,6 +2235,8 @@ public Builder clearServiceConfig() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -2009,11 +2245,13 @@ public Builder clearServiceConfig() {
                                    * .google.cloud.functions.v2.ServiceConfig service_config = 4;
                                    */
                                   public com.google.cloud.functions.v2.ServiceConfig.Builder getServiceConfigBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getServiceConfigFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -2025,11 +2263,14 @@ public com.google.cloud.functions.v2.ServiceConfigOrBuilder getServiceConfigOrBu
                                     if (serviceConfigBuilder_ != null) {
                                       return serviceConfigBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return serviceConfig_ == null ?
                              -            com.google.cloud.functions.v2.ServiceConfig.getDefaultInstance() : serviceConfig_;
                              +        return serviceConfig_ == null
                              +            ? com.google.cloud.functions.v2.ServiceConfig.getDefaultInstance()
                              +            : serviceConfig_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -2038,14 +2279,17 @@ public com.google.cloud.functions.v2.ServiceConfigOrBuilder getServiceConfigOrBu
                                    * .google.cloud.functions.v2.ServiceConfig service_config = 4;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2.ServiceConfig, com.google.cloud.functions.v2.ServiceConfig.Builder, com.google.cloud.functions.v2.ServiceConfigOrBuilder> 
                              +            com.google.cloud.functions.v2.ServiceConfig,
                              +            com.google.cloud.functions.v2.ServiceConfig.Builder,
                              +            com.google.cloud.functions.v2.ServiceConfigOrBuilder>
                                       getServiceConfigFieldBuilder() {
                                     if (serviceConfigBuilder_ == null) {
                              -        serviceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2.ServiceConfig, com.google.cloud.functions.v2.ServiceConfig.Builder, com.google.cloud.functions.v2.ServiceConfigOrBuilder>(
                              -                getServiceConfig(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        serviceConfigBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2.ServiceConfig,
                              +                com.google.cloud.functions.v2.ServiceConfig.Builder,
                              +                com.google.cloud.functions.v2.ServiceConfigOrBuilder>(
                              +                getServiceConfig(), getParentForChildren(), isClean());
                                       serviceConfig_ = null;
                                     }
                                     return serviceConfigBuilder_;
                              @@ -2053,36 +2297,49 @@ public com.google.cloud.functions.v2.ServiceConfigOrBuilder getServiceConfigOrBu
                               
                                   private com.google.cloud.functions.v2.EventTrigger eventTrigger_;
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2.EventTrigger, com.google.cloud.functions.v2.EventTrigger.Builder, com.google.cloud.functions.v2.EventTriggerOrBuilder> eventTriggerBuilder_;
                              +            com.google.cloud.functions.v2.EventTrigger,
                              +            com.google.cloud.functions.v2.EventTrigger.Builder,
                              +            com.google.cloud.functions.v2.EventTriggerOrBuilder>
                              +        eventTriggerBuilder_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                                    * 
                              * * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + * * @return Whether the eventTrigger field is set. */ public boolean hasEventTrigger() { return eventTriggerBuilder_ != null || eventTrigger_ != null; } /** + * + * *
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                                    * 
                              * * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + * * @return The eventTrigger. */ public com.google.cloud.functions.v2.EventTrigger getEventTrigger() { if (eventTriggerBuilder_ == null) { - return eventTrigger_ == null ? com.google.cloud.functions.v2.EventTrigger.getDefaultInstance() : eventTrigger_; + return eventTrigger_ == null + ? com.google.cloud.functions.v2.EventTrigger.getDefaultInstance() + : eventTrigger_; } else { return eventTriggerBuilder_.getMessage(); } } /** + * + * *
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2104,6 +2361,8 @@ public Builder setEventTrigger(com.google.cloud.functions.v2.EventTrigger value)
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2123,6 +2382,8 @@ public Builder setEventTrigger(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2134,7 +2395,9 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2.EventTrigger valu
                                     if (eventTriggerBuilder_ == null) {
                                       if (eventTrigger_ != null) {
                                         eventTrigger_ =
                              -            com.google.cloud.functions.v2.EventTrigger.newBuilder(eventTrigger_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2.EventTrigger.newBuilder(eventTrigger_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         eventTrigger_ = value;
                                       }
                              @@ -2146,6 +2409,8 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2.EventTrigger valu
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2165,6 +2430,8 @@ public Builder clearEventTrigger() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2173,11 +2440,13 @@ public Builder clearEventTrigger() {
                                    * .google.cloud.functions.v2.EventTrigger event_trigger = 5;
                                    */
                                   public com.google.cloud.functions.v2.EventTrigger.Builder getEventTriggerBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getEventTriggerFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2189,11 +2458,14 @@ public com.google.cloud.functions.v2.EventTriggerOrBuilder getEventTriggerOrBuil
                                     if (eventTriggerBuilder_ != null) {
                                       return eventTriggerBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return eventTrigger_ == null ?
                              -            com.google.cloud.functions.v2.EventTrigger.getDefaultInstance() : eventTrigger_;
                              +        return eventTrigger_ == null
                              +            ? com.google.cloud.functions.v2.EventTrigger.getDefaultInstance()
                              +            : eventTrigger_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2202,14 +2474,17 @@ public com.google.cloud.functions.v2.EventTriggerOrBuilder getEventTriggerOrBuil
                                    * .google.cloud.functions.v2.EventTrigger event_trigger = 5;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2.EventTrigger, com.google.cloud.functions.v2.EventTrigger.Builder, com.google.cloud.functions.v2.EventTriggerOrBuilder> 
                              +            com.google.cloud.functions.v2.EventTrigger,
                              +            com.google.cloud.functions.v2.EventTrigger.Builder,
                              +            com.google.cloud.functions.v2.EventTriggerOrBuilder>
                                       getEventTriggerFieldBuilder() {
                                     if (eventTriggerBuilder_ == null) {
                              -        eventTriggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2.EventTrigger, com.google.cloud.functions.v2.EventTrigger.Builder, com.google.cloud.functions.v2.EventTriggerOrBuilder>(
                              -                getEventTrigger(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        eventTriggerBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2.EventTrigger,
                              +                com.google.cloud.functions.v2.EventTrigger.Builder,
                              +                com.google.cloud.functions.v2.EventTriggerOrBuilder>(
                              +                getEventTrigger(), getParentForChildren(), isClean());
                                       eventTrigger_ = null;
                                     }
                                     return eventTriggerBuilder_;
                              @@ -2217,51 +2492,73 @@ public com.google.cloud.functions.v2.EventTriggerOrBuilder getEventTriggerOrBuil
                               
                                   private int state_ = 0;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.functions.v2.Function.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.Function.State result = com.google.cloud.functions.v2.Function.State.valueOf(state_); + com.google.cloud.functions.v2.Function.State result = + com.google.cloud.functions.v2.Function.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2.Function.State.UNRECOGNIZED : result; } /** + * + * *
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2269,21 +2566,26 @@ public Builder setState(com.google.cloud.functions.v2.Function.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2291,39 +2593,58 @@ public Builder clearState() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
                                    * 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]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
                                    * 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]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
                                    * 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]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2339,14 +2660,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * 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]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2357,17 +2681,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
                                    * 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]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2379,11 +2707,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * 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]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2397,69 +2729,84 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
                                    * 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]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
                                    * 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]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
                                    * 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]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2471,28 +2818,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 8; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              @@ -2500,11 +2849,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              @@ -2512,16 +2862,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              @@ -2529,12 +2880,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2542,85 +2892,91 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 8; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 8; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 8; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.util.List stateMessages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStateMessagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - stateMessages_ = new java.util.ArrayList(stateMessages_); + stateMessages_ = + new java.util.ArrayList(stateMessages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.StateMessage, com.google.cloud.functions.v2.StateMessage.Builder, com.google.cloud.functions.v2.StateMessageOrBuilder> stateMessagesBuilder_; + com.google.cloud.functions.v2.StateMessage, + com.google.cloud.functions.v2.StateMessage.Builder, + com.google.cloud.functions.v2.StateMessageOrBuilder> + stateMessagesBuilder_; /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getStateMessagesList() { if (stateMessagesBuilder_ == null) { @@ -2630,11 +2986,15 @@ public java.util.List getStateMessag } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getStateMessagesCount() { if (stateMessagesBuilder_ == null) { @@ -2644,11 +3004,15 @@ public int getStateMessagesCount() { } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2.StateMessage getStateMessages(int index) { if (stateMessagesBuilder_ == null) { @@ -2658,14 +3022,17 @@ public com.google.cloud.functions.v2.StateMessage getStateMessages(int index) { } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStateMessages( - int index, com.google.cloud.functions.v2.StateMessage value) { + public Builder setStateMessages(int index, com.google.cloud.functions.v2.StateMessage value) { if (stateMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2679,11 +3046,15 @@ public Builder setStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateMessages( int index, com.google.cloud.functions.v2.StateMessage.Builder builderForValue) { @@ -2697,11 +3068,15 @@ public Builder setStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateMessages(com.google.cloud.functions.v2.StateMessage value) { if (stateMessagesBuilder_ == null) { @@ -2717,14 +3092,17 @@ public Builder addStateMessages(com.google.cloud.functions.v2.StateMessage value return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addStateMessages( - int index, com.google.cloud.functions.v2.StateMessage value) { + public Builder addStateMessages(int index, com.google.cloud.functions.v2.StateMessage value) { if (stateMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2738,11 +3116,15 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateMessages( com.google.cloud.functions.v2.StateMessage.Builder builderForValue) { @@ -2756,11 +3138,15 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateMessages( int index, com.google.cloud.functions.v2.StateMessage.Builder builderForValue) { @@ -2774,18 +3160,21 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllStateMessages( java.lang.Iterable values) { if (stateMessagesBuilder_ == null) { ensureStateMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stateMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateMessages_); onChanged(); } else { stateMessagesBuilder_.addAllMessages(values); @@ -2793,11 +3182,15 @@ public Builder addAllStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStateMessages() { if (stateMessagesBuilder_ == null) { @@ -2810,11 +3203,15 @@ public Builder clearStateMessages() { return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeStateMessages(int index) { if (stateMessagesBuilder_ == null) { @@ -2827,39 +3224,51 @@ public Builder removeStateMessages(int index) { return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.functions.v2.StateMessage.Builder getStateMessagesBuilder( - int index) { + public com.google.cloud.functions.v2.StateMessage.Builder getStateMessagesBuilder(int index) { return getStateMessagesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder( int index) { if (stateMessagesBuilder_ == null) { - return stateMessages_.get(index); } else { + return stateMessages_.get(index); + } else { return stateMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStateMessagesOrBuilderList() { + public java.util.List + getStateMessagesOrBuilderList() { if (stateMessagesBuilder_ != null) { return stateMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -2867,45 +3276,62 @@ public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBui } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilder() { - return getStateMessagesFieldBuilder().addBuilder( - com.google.cloud.functions.v2.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2.StateMessage.getDefaultInstance()); } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilder( - int index) { - return getStateMessagesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2.StateMessage.getDefaultInstance()); + public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilder(int index) { + return getStateMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2.StateMessage.getDefaultInstance()); } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStateMessagesBuilderList() { + public java.util.List + getStateMessagesBuilderList() { return getStateMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.StateMessage, com.google.cloud.functions.v2.StateMessage.Builder, com.google.cloud.functions.v2.StateMessageOrBuilder> + com.google.cloud.functions.v2.StateMessage, + com.google.cloud.functions.v2.StateMessage.Builder, + com.google.cloud.functions.v2.StateMessageOrBuilder> getStateMessagesFieldBuilder() { if (stateMessagesBuilder_ == null) { - stateMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.StateMessage, com.google.cloud.functions.v2.StateMessage.Builder, com.google.cloud.functions.v2.StateMessageOrBuilder>( + stateMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.StateMessage, + com.google.cloud.functions.v2.StateMessage.Builder, + com.google.cloud.functions.v2.StateMessageOrBuilder>( stateMessages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2914,9 +3340,9 @@ public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilde } return stateMessagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2926,12 +3352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.Function) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.Function) private static final com.google.cloud.functions.v2.Function DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.Function(); } @@ -2940,16 +3366,16 @@ public static com.google.cloud.functions.v2.Function getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Function parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Function(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Function parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Function(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2964,6 +3390,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.Function getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionName.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionName.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java index 5472996a..278a7acf 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java @@ -1,94 +1,134 @@ +/* + * 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 FunctionOrBuilder extends +public interface FunctionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.Function) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                                  * Describe whether the function is gen1 or gen2.
                                  * 
                              * * .google.cloud.functions.v2.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.v2.Environment environment = 10; + * * @return The environment. */ com.google.cloud.functions.v2.Environment getEnvironment(); /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                                  * 
                              * * .google.cloud.functions.v2.BuildConfig build_config = 3; + * * @return Whether the buildConfig field is set. */ boolean hasBuildConfig(); /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                                  * 
                              * * .google.cloud.functions.v2.BuildConfig build_config = 3; + * * @return The buildConfig. */ com.google.cloud.functions.v2.BuildConfig getBuildConfig(); /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                              @@ -99,26 +139,34 @@ public interface FunctionOrBuilder extends
                                 com.google.cloud.functions.v2.BuildConfigOrBuilder getBuildConfigOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                                  * 
                              * * .google.cloud.functions.v2.ServiceConfig service_config = 4; + * * @return Whether the serviceConfig field is set. */ boolean hasServiceConfig(); /** + * + * *
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                                  * 
                              * * .google.cloud.functions.v2.ServiceConfig service_config = 4; + * * @return The serviceConfig. */ com.google.cloud.functions.v2.ServiceConfig getServiceConfig(); /** + * + * *
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                              @@ -129,26 +177,34 @@ public interface FunctionOrBuilder extends
                                 com.google.cloud.functions.v2.ServiceConfigOrBuilder getServiceConfigOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + * * @return Whether the eventTrigger field is set. */ boolean hasEventTrigger(); /** + * + * *
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v2.EventTrigger event_trigger = 5; + * * @return The eventTrigger. */ com.google.cloud.functions.v2.EventTrigger getEventTrigger(); /** + * + * *
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                              @@ -159,52 +215,75 @@ public interface FunctionOrBuilder extends
                                 com.google.cloud.functions.v2.EventTriggerOrBuilder getEventTriggerOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Output only. State of the function.
                                  * 
                              * - * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
                                  * Output only. State of the function.
                                  * 
                              * - * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.functions.v2.Function.State getState(); /** + * + * *
                                  * 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]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
                                  * 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]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
                                  * 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]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -213,30 +292,31 @@ public interface FunctionOrBuilder extends */ int getLabelsCount(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 8; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 8; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -245,62 +325,80 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 8; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getStateMessagesList(); + java.util.List getStateMessagesList(); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.functions.v2.StateMessage getStateMessages(int index); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getStateMessagesCount(); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getStateMessagesOrBuilderList(); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder( - int index); + com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder(int index); } diff --git a/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java new file mode 100644 index 00000000..d518186d --- /dev/null +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java @@ -0,0 +1,747 @@ +/* + * 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 final class FunctionsProto { + private FunctionsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_Function_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_Function_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_Function_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_Function_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_StateMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_StateMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_StorageSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_StorageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_RepoSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_RepoSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_Source_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_Source_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_SourceProvenance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_SourceProvenance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_BuildConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_BuildConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ServiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ServiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_SecretEnvVar_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_SecretVolume_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_SecretVolume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_EventTrigger_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_EventTrigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_EventFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_EventFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_GetFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ListFunctionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ListFunctionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_CreateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_UpdateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_DeleteFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ListRuntimesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_Stage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_Stage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/functions/v2/functions.pr" + + "oto\022\031google.cloud.functions.v2\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032#google/longru" + + "nning/operations.proto\032\031google/protobuf/" + + "any.proto\032 google/protobuf/field_mask.pr" + + "oto\032\037google/protobuf/timestamp.proto\"\267\006\n" + + "\010Function\022\014\n\004name\030\001 \001(\t\022;\n\013environment\030\n" + + " \001(\0162&.google.cloud.functions.v2.Environ" + + "ment\022\023\n\013description\030\002 \001(\t\022<\n\014build_confi" + + "g\030\003 \001(\0132&.google.cloud.functions.v2.Buil" + + "dConfig\022@\n\016service_config\030\004 \001(\0132(.google" + + ".cloud.functions.v2.ServiceConfig\022>\n\reve" + + "nt_trigger\030\005 \001(\0132\'.google.cloud.function" + + "s.v2.EventTrigger\022=\n\005state\030\006 \001(\0162).googl" + + "e.cloud.functions.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.functions.v2.Function.LabelsEntry\022" + + "D\n\016state_messages\030\t \003(\0132\'.google.cloud.f" + + "unctions.v2.StateMessageB\003\340A\003\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\005" + + "State\022\025\n\021STATE_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\007UNKNOWN\020\005:~\352A{\n&cloudfunctions.goog" + + "leapis.com/Function\022\n\013worker_pool\030\005 \001(\tB)\372A&\n$cloudbuild.go" + + "ogleapis.com/WorkerPool\022_\n\025environment_v" + + "ariables\030\006 \003(\0132@.google.cloud.functions." + + "v2.BuildConfig.EnvironmentVariablesEntry" + + "\022M\n\021docker_repository\030\007 \001(\tB2\340A\001\372A,\n*art" + + "ifactregistry.googleapis.com/Repository\032" + + ";\n\031EnvironmentVariablesEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\300\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\020" + + "available_memory\030\r \001(\t\022a\n\025environment_va" + + "riables\030\004 \003(\0132B.google.cloud.functions.v" + + "2.ServiceConfig.EnvironmentVariablesEntr" + + "y\022\032\n\022max_instance_count\030\005 \001(\005\022\032\n\022min_ins" + + "tance_count\030\014 \001(\005\022>\n\rvpc_connector\030\006 \001(\t" + + "B\'\372A$\n\"vpcaccess.googleapis.com/Connecto" + + "r\022j\n\035vpc_connector_egress_settings\030\007 \001(\016" + + "2C.google.cloud.functions.v2.ServiceConf" + + "ig.VpcConnectorEgressSettings\022R\n\020ingress" + + "_settings\030\010 \001(\01628.google.cloud.functions" + + ".v2.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\022M\n\034secret_environment_variables\030\021 \003(\013" + + "2\'.google.cloud.functions.v2.SecretEnvVa" + + "r\022?\n\016secret_volumes\030\023 \003(\0132\'.google.cloud" + + ".functions.v2.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\032VpcCon" + + "nectorEgressSettings\022-\n)VPC_CONNECTOR_EG" + + "RESS_SETTINGS_UNSPECIFIED\020\000\022\027\n\023PRIVATE_R" + + "ANGES_ONLY\020\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n\017Ingress" + + "Settings\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\014Secre" + + "tEnvVar\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\014Se" + + "cretVolume\022\022\n\nmount_path\030\001 \001(\t\022\022\n\nprojec" + + "t_id\030\002 \001(\t\022\016\n\006secret\030\003 \001(\t\022G\n\010versions\030\004" + + " \003(\01325.google.cloud.functions.v2.SecretV" + + "olume.SecretVersion\032.\n\rSecretVersion\022\017\n\007" + + "version\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\"\205\004\n\014EventTri" + + "gger\0228\n\007trigger\030\001 \001(\tB\'\340A\003\372A!\n\037eventarc." + + "googleapis.com/Trigger\022\026\n\016trigger_region" + + "\030\002 \001(\t\022\027\n\nevent_type\030\003 \001(\tB\003\340A\002\022=\n\revent" + + "_filters\030\004 \003(\0132&.google.cloud.functions." + + "v2.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\022N\n\014retry_p" + + "olicy\030\007 \001(\01623.google.cloud.functions.v2." + + "EventTrigger.RetryPolicyB\003\340A\001\0228\n\007channel" + + "\030\010 \001(\tB\'\340A\001\372A!\n\037eventarc.googleapis.com/" + + "Channel\"b\n\013RetryPolicy\022\034\n\030RETRY_POLICY_U" + + "NSPECIFIED\020\000\022\035\n\031RETRY_POLICY_DO_NOT_RETR" + + "Y\020\001\022\026\n\022RETRY_POLICY_RETRY\020\002\"P\n\013EventFilt" + + "er\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\022GetFunc" + + "tionRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&cloud" + + "functions.googleapis.com/Function\"\237\001\n\024Li" + + "stFunctionsRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372" + + "A(\022&cloudfunctions.googleapis.com/Functi" + + "on\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\025L" + + "istFunctionsResponse\0226\n\tfunctions\030\001 \003(\0132" + + "#.google.cloud.functions.v2.Function\022\027\n\017" + + "next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003" + + "(\t\"\243\001\n\025CreateFunctionRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022:\n\010function\030\002 \001(\0132#.google.cloud" + + ".functions.v2.FunctionB\003\340A\002\022\023\n\013function_" + + "id\030\003 \001(\t\"\204\001\n\025UpdateFunctionRequest\022:\n\010fu" + + "nction\030\001 \001(\0132#.google.cloud.functions.v2" + + ".FunctionB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMask\"U\n\025DeleteFunctio" + + "nRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&cloudfun" + + "ctions.googleapis.com/Function\"U\n\030Genera" + + "teUploadUrlRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" + + "A#\n!locations.googleapis.com/Location\"q\n" + + "\031GenerateUploadUrlResponse\022\022\n\nupload_url" + + "\030\001 \001(\t\022@\n\016storage_source\030\002 \001(\0132(.google." + + "cloud.functions.v2.StorageSource\"Z\n\032Gene" + + "rateDownloadUrlRequest\022<\n\004name\030\001 \001(\tB.\340A" + + "\002\372A(\n&cloudfunctions.googleapis.com/Func" + + "tion\"3\n\033GenerateDownloadUrlResponse\022\024\n\014d" + + "ownload_url\030\001 \001(\t\"`\n\023ListRuntimesRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + + "leapis.com/Location\022\016\n\006filter\030\002 \001(\t\"\256\003\n\024" + + "ListRuntimesResponse\022I\n\010runtimes\030\001 \003(\01327" + + ".google.cloud.functions.v2.ListRuntimesR" + + "esponse.Runtime\032\311\001\n\007Runtime\022\014\n\004name\030\001 \001(" + + "\t\022\024\n\014display_name\030\005 \001(\t\022K\n\005stage\030\002 \001(\0162<" + + ".google.cloud.functions.v2.ListRuntimesR" + + "esponse.RuntimeStage\022\020\n\010warnings\030\003 \003(\t\022;" + + "\n\013environment\030\004 \001(\0162&.google.cloud.funct" + + "ions.v2.Environment\"\177\n\014RuntimeStage\022\035\n\031R" + + "UNTIME_STAGE_UNSPECIFIED\020\000\022\017\n\013DEVELOPMEN" + + "T\020\001\022\t\n\005ALPHA\020\002\022\010\n\004BETA\020\003\022\006\n\002GA\020\004\022\016\n\nDEPR" + + "ECATED\020\005\022\022\n\016DECOMMISSIONED\020\006\"\270\002\n\021Operati" + + "onMetadata\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\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.google" + + ".protobuf.Any\0220\n\006stages\030\t \003(\0132 .google.c" + + "loud.functions.v2.Stage\"\304\003\n\005Stage\0223\n\004nam" + + "e\030\001 \001(\0162%.google.cloud.functions.v2.Stag" + + "e.Name\022\017\n\007message\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_messages\030\006 \003(\0132\'.google.cloud.fu" + + "nctions.v2.StateMessage\"\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\007SERVICE\020\003\022\013\n\007TRIGGER\020\004\022\024\n\020SE" + + "RVICE_ROLLBACK\020\005\022\024\n\020TRIGGER_ROLLBACK\020\006\"N" + + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013NOT_ST" + + "ARTED\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\017FunctionSer" + + "vice\022\237\001\n\013GetFunction\022-.google.cloud.func" + + "tions.v2.GetFunctionRequest\032#.google.clo" + + "ud.functions.v2.Function\"<\202\323\344\223\002/\022-/v2/{n" + + "ame=projects/*/locations/*/functions/*}\332" + + "A\004name\022\262\001\n\rListFunctions\022/.google.cloud." + + "functions.v2.ListFunctionsRequest\0320.goog" + + "le.cloud.functions.v2.ListFunctionsRespo" + + "nse\">\202\323\344\223\002/\022-/v2/{parent=projects/*/loca" + + "tions/*}/functions\332A\006parent\022\225\002\n\016CreateFu" + + "nction\0220.google.cloud.functions.v2.Creat" + + "eFunctionRequest\032\035.google.longrunning.Op" + + "eration\"\261\001\202\323\344\223\0029\"-/v2/{parent=projects/*" + + "/locations/*}/functions:\010function\332A\033pare" + + "nt,function,function_id\312AQ\n\"google.cloud" + + ".functions.v2.Function\022+google.cloud.fun" + + "ctions.v2.OperationMetadata\022\227\002\n\016UpdateFu" + + "nction\0220.google.cloud.functions.v2.Updat" + + "eFunctionRequest\032\035.google.longrunning.Op" + + "eration\"\263\001\202\323\344\223\002B26/v2/{function.name=pro" + + "jects/*/locations/*/functions/*}:\010functi" + + "on\332A\024function,update_mask\312AQ\n\"google.clo" + + "ud.functions.v2.Function\022+google.cloud.f" + + "unctions.v2.OperationMetadata\022\347\001\n\016Delete" + + "Function\0220.google.cloud.functions.v2.Del" + + "eteFunctionRequest\032\035.google.longrunning." + + "Operation\"\203\001\202\323\344\223\002/*-/v2/{name=projects/*" + + "/locations/*/functions/*}\332A\004name\312AD\n\025goo" + + "gle.protobuf.Empty\022+google.cloud.functio" + + "ns.v2.OperationMetadata\022\312\001\n\021GenerateUplo" + + "adUrl\0223.google.cloud.functions.v2.Genera" + + "teUploadUrlRequest\0324.google.cloud.functi" + + "ons.v2.GenerateUploadUrlResponse\"J\202\323\344\223\002D" + + "\"?/v2/{parent=projects/*/locations/*}/fu" + + "nctions:generateUploadUrl:\001*\022\322\001\n\023Generat" + + "eDownloadUrl\0225.google.cloud.functions.v2" + + ".GenerateDownloadUrlRequest\0326.google.clo" + + "ud.functions.v2.GenerateDownloadUrlRespo" + + "nse\"L\202\323\344\223\002F\"A/v2/{name=projects/*/locati" + + "ons/*/functions/*}:generateDownloadUrl:\001" + + "*\022\256\001\n\014ListRuntimes\022..google.cloud.functi" + + "ons.v2.ListRuntimesRequest\032/.google.clou" + + "d.functions.v2.ListRuntimesResponse\"=\202\323\344" + + "\223\002.\022,/v2/{parent=projects/*/locations/*}" + + "/runtimes\332A\006parent\032Q\312A\035cloudfunctions.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\365\007\n\035com.google.clo" + + "ud.functions.v2B\016FunctionsProtoP\001ZBgoogl" + + "e.golang.org/genproto/googleapis/cloud/f" + + "unctions/v2;functions\242\002\003GCF\352Ao\n*artifact" + + "registry.googleapis.com/Repository\022Aproj" + + "ects/{project}/locations/{location}/repo" + + "sitories/{repository}\352AY\n\037cloudbuild.goo" + + "gleapis.com/Build\0226projects/{project}/lo" + + "cations/{location}/builds/{build}\352Ai\n$cl" + + "oudbuild.googleapis.com/WorkerPool\022Aproj" + + "ects/{project}/locations/{location}/work" + + "erPools/{worker_pool}\352AX\n\032run.googleapis" + + ".com/Service\022:projects/{project}/locatio" + + "ns/{location}/services/{service}\352Ad\n\"vpc" + + "access.googleapis.com/Connector\022>project" + + "s/{project}/locations/{location}/connect" + + "ors/{connector}\352A]\n\037eventarc.googleapis." + + "com/Trigger\022:projects/{project}/location" + + "s/{location}/triggers/{trigger}\352A]\n\037even" + + "tarc.googleapis.com/Channel\022:projects/{p" + + "roject}/locations/{location}/channels/{c" + + "hannel}\352A@\n\033pubsub.googleapis.com/Topic\022" + + "!projects/{project}/topics/{topic}\352Ax\n!c" + + "loudkms.googleapis.com/CryptoKey\022Sprojec" + + "ts/{project}/locations/{location}/keyRin" + + "gs/{key_ring}/cryptoKeys/{crypto_key}b\006p" + + "roto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_functions_v2_Function_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_functions_v2_Function_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_Function_descriptor, + new java.lang.String[] { + "Name", + "Environment", + "Description", + "BuildConfig", + "ServiceConfig", + "EventTrigger", + "State", + "UpdateTime", + "Labels", + "StateMessages", + }); + internal_static_google_cloud_functions_v2_Function_LabelsEntry_descriptor = + internal_static_google_cloud_functions_v2_Function_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2_Function_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_Function_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_functions_v2_StateMessage_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_functions_v2_StateMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_StateMessage_descriptor, + new java.lang.String[] { + "Severity", "Type", "Message", + }); + internal_static_google_cloud_functions_v2_StorageSource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_functions_v2_StorageSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_StorageSource_descriptor, + new java.lang.String[] { + "Bucket", "Object", "Generation", + }); + internal_static_google_cloud_functions_v2_RepoSource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_functions_v2_RepoSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_RepoSource_descriptor, + new java.lang.String[] { + "BranchName", + "TagName", + "CommitSha", + "ProjectId", + "RepoName", + "Dir", + "InvertRegex", + "Revision", + }); + internal_static_google_cloud_functions_v2_Source_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_functions_v2_Source_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_Source_descriptor, + new java.lang.String[] { + "StorageSource", "RepoSource", "Source", + }); + internal_static_google_cloud_functions_v2_SourceProvenance_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_functions_v2_SourceProvenance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_SourceProvenance_descriptor, + new java.lang.String[] { + "ResolvedStorageSource", "ResolvedRepoSource", + }); + internal_static_google_cloud_functions_v2_BuildConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_functions_v2_BuildConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_BuildConfig_descriptor, + new java.lang.String[] { + "Build", + "Runtime", + "EntryPoint", + "Source", + "SourceProvenance", + "WorkerPool", + "EnvironmentVariables", + "DockerRepository", + }); + internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v2_BuildConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_BuildConfig_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_functions_v2_ServiceConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_functions_v2_ServiceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ServiceConfig_descriptor, + new java.lang.String[] { + "Service", + "TimeoutSeconds", + "AvailableMemory", + "EnvironmentVariables", + "MaxInstanceCount", + "MinInstanceCount", + "VpcConnector", + "VpcConnectorEgressSettings", + "IngressSettings", + "Uri", + "ServiceAccountEmail", + "AllTrafficOnLatestRevision", + "SecretEnvironmentVariables", + "SecretVolumes", + "Revision", + }); + internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v2_ServiceConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_functions_v2_SecretEnvVar_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor, + new java.lang.String[] { + "Key", "ProjectId", "Secret", "Version", + }); + internal_static_google_cloud_functions_v2_SecretVolume_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_functions_v2_SecretVolume_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_SecretVolume_descriptor, + new java.lang.String[] { + "MountPath", "ProjectId", "Secret", "Versions", + }); + internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_descriptor = + internal_static_google_cloud_functions_v2_SecretVolume_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_descriptor, + new java.lang.String[] { + "Version", "Path", + }); + internal_static_google_cloud_functions_v2_EventTrigger_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_functions_v2_EventTrigger_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_EventTrigger_descriptor, + new java.lang.String[] { + "Trigger", + "TriggerRegion", + "EventType", + "EventFilters", + "PubsubTopic", + "ServiceAccountEmail", + "RetryPolicy", + "Channel", + }); + internal_static_google_cloud_functions_v2_EventFilter_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_functions_v2_EventFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_EventFilter_descriptor, + new java.lang.String[] { + "Attribute", "Value", "Operator", + }); + internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_functions_v2_GetFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_functions_v2_ListFunctionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_functions_v2_ListFunctionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor, + new java.lang.String[] { + "Functions", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_functions_v2_CreateFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor, + new java.lang.String[] { + "Parent", "Function", "FunctionId", + }); + internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_functions_v2_UpdateFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor, + new java.lang.String[] { + "Function", "UpdateMask", + }); + internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_functions_v2_DeleteFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor, + new java.lang.String[] { + "UploadUrl", "StorageSource", + }); + internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor, + new java.lang.String[] { + "DownloadUrl", + }); + internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_functions_v2_ListRuntimesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", + }); + internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor, + new java.lang.String[] { + "Runtimes", + }); + internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor = + internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Stage", "Warnings", "Environment", + }); + internal_static_google_cloud_functions_v2_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_functions_v2_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusDetail", + "CancelRequested", + "ApiVersion", + "RequestResource", + "Stages", + }); + internal_static_google_cloud_functions_v2_Stage_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_functions_v2_Stage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_Stage_descriptor, + new java.lang.String[] { + "Name", "Message", "State", "Resource", "ResourceUri", "StateMessages", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java index c1474288..9dc61434 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java @@ -1,40 +1,57 @@ +/* + * 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; /** + * + * *
                                * Request of `GenerateDownloadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.GenerateDownloadUrlRequest} */ -public final class GenerateDownloadUrlRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateDownloadUrlRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.GenerateDownloadUrlRequest) GenerateDownloadUrlRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlRequest.newBuilder() to construct. private GenerateDownloadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateDownloadUrlRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateDownloadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GenerateDownloadUrlRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GenerateDownloadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v2.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v2.GenerateDownloadUrlRequest.class, + com.google.cloud.functions.v2.GenerateDownloadUrlRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
                                  * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.GenerateDownloadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2.GenerateDownloadUrlRequest other = (com.google.cloud.functions.v2.GenerateDownloadUrlRequest) obj; + com.google.cloud.functions.v2.GenerateDownloadUrlRequest other = + (com.google.cloud.functions.v2.GenerateDownloadUrlRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest 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.GenerateDownloadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2.GenerateDownloadUrlRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2.GenerateDownloadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request of `GenerateDownloadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.GenerateDownloadUrlRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.GenerateDownloadUrlRequest) com.google.cloud.functions.v2.GenerateDownloadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v2.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v2.GenerateDownloadUrlRequest.class, + com.google.cloud.functions.v2.GenerateDownloadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v2.GenerateDownloadUrlRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.functions.v2.GenerateDownloadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v2.GenerateDownloadUrlRequest buildPartial() { - com.google.cloud.functions.v2.GenerateDownloadUrlRequest result = new com.google.cloud.functions.v2.GenerateDownloadUrlRequest(this); + com.google.cloud.functions.v2.GenerateDownloadUrlRequest result = + new com.google.cloud.functions.v2.GenerateDownloadUrlRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.functions.v2.GenerateDownloadUrlRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.GenerateDownloadUrlRequest)other); + return mergeFrom((com.google.cloud.functions.v2.GenerateDownloadUrlRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.GenerateDownloadUrlRequest other) { - if (other == com.google.cloud.functions.v2.GenerateDownloadUrlRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.GenerateDownloadUrlRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2.GenerateDownloadUrlRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2.GenerateDownloadUrlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +514,24 @@ public java.lang.String getName() { } } /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +539,77 @@ public java.lang.String getName() { } } /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.GenerateDownloadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.GenerateDownloadUrlRequest) private static final com.google.cloud.functions.v2.GenerateDownloadUrlRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.GenerateDownloadUrlRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.functions.v2.GenerateDownloadUrlRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.functions.v2.GenerateDownloadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequestOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequestOrBuilder.java new file mode 100644 index 00000000..58c86245 --- /dev/null +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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 GenerateDownloadUrlRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.GenerateDownloadUrlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * 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) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                              +   * 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) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java index 5b29a4f6..a4602c53 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java @@ -1,40 +1,57 @@ +/* + * 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; /** + * + * *
                                * Response of `GenerateDownloadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.GenerateDownloadUrlResponse} */ -public final class GenerateDownloadUrlResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateDownloadUrlResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.GenerateDownloadUrlResponse) GenerateDownloadUrlResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlResponse.newBuilder() to construct. private GenerateDownloadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateDownloadUrlResponse() { downloadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateDownloadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GenerateDownloadUrlResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - downloadUrl_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + downloadUrl_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private GenerateDownloadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v2.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v2.GenerateDownloadUrlResponse.class, + com.google.cloud.functions.v2.GenerateDownloadUrlResponse.Builder.class); } public static final int DOWNLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object downloadUrl_; /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The downloadUrl. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getDownloadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; } } /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The bytes for downloadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getDownloadUrlBytes() { + public com.google.protobuf.ByteString getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getDownloadUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(downloadUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, downloadUrl_); } @@ -178,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.GenerateDownloadUrlResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2.GenerateDownloadUrlResponse other = (com.google.cloud.functions.v2.GenerateDownloadUrlResponse) obj; + com.google.cloud.functions.v2.GenerateDownloadUrlResponse other = + (com.google.cloud.functions.v2.GenerateDownloadUrlResponse) obj; - if (!getDownloadUrl() - .equals(other.getDownloadUrl())) return false; + if (!getDownloadUrl().equals(other.getDownloadUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +229,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse 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.GenerateDownloadUrlResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2.GenerateDownloadUrlResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2.GenerateDownloadUrlResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Response of `GenerateDownloadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.GenerateDownloadUrlResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.GenerateDownloadUrlResponse) com.google.cloud.functions.v2.GenerateDownloadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v2.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v2.GenerateDownloadUrlResponse.class, + com.google.cloud.functions.v2.GenerateDownloadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v2.GenerateDownloadUrlResponse.newBuilder() @@ -324,16 +357,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override @@ -364,7 +396,8 @@ public com.google.cloud.functions.v2.GenerateDownloadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v2.GenerateDownloadUrlResponse buildPartial() { - com.google.cloud.functions.v2.GenerateDownloadUrlResponse result = new com.google.cloud.functions.v2.GenerateDownloadUrlResponse(this); + com.google.cloud.functions.v2.GenerateDownloadUrlResponse result = + new com.google.cloud.functions.v2.GenerateDownloadUrlResponse(this); result.downloadUrl_ = downloadUrl_; onBuilt(); return result; @@ -374,38 +407,39 @@ public com.google.cloud.functions.v2.GenerateDownloadUrlResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.GenerateDownloadUrlResponse)other); + return mergeFrom((com.google.cloud.functions.v2.GenerateDownloadUrlResponse) other); } else { super.mergeFrom(other); return this; @@ -413,7 +447,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.GenerateDownloadUrlResponse other) { - if (other == com.google.cloud.functions.v2.GenerateDownloadUrlResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.GenerateDownloadUrlResponse.getDefaultInstance()) + return this; if (!other.getDownloadUrl().isEmpty()) { downloadUrl_ = other.downloadUrl_; onChanged(); @@ -437,7 +472,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2.GenerateDownloadUrlResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2.GenerateDownloadUrlResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +485,21 @@ public Builder mergeFrom( private java.lang.Object downloadUrl_ = ""; /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @return The downloadUrl. */ public java.lang.String getDownloadUrl() { java.lang.Object ref = downloadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; @@ -470,21 +508,22 @@ public java.lang.String getDownloadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @return The bytes for downloadUrl. */ - public com.google.protobuf.ByteString - getDownloadUrlBytes() { + public com.google.protobuf.ByteString getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -492,64 +531,71 @@ public java.lang.String getDownloadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @param value The downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrl( - java.lang.String value) { + public Builder setDownloadUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + downloadUrl_ = value; onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @return This builder for chaining. */ public Builder clearDownloadUrl() { - + downloadUrl_ = getDefaultInstance().getDownloadUrl(); onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @param value The bytes for downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setDownloadUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + downloadUrl_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +605,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.GenerateDownloadUrlResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.GenerateDownloadUrlResponse) private static final com.google.cloud.functions.v2.GenerateDownloadUrlResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.GenerateDownloadUrlResponse(); } @@ -573,16 +619,16 @@ public static com.google.cloud.functions.v2.GenerateDownloadUrlResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +643,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.functions.v2.GenerateDownloadUrlResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponseOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponseOrBuilder.java similarity index 51% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponseOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponseOrBuilder.java index 9f562c96..db61c3cc 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponseOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponseOrBuilder.java @@ -1,31 +1,52 @@ +/* + * 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 GenerateDownloadUrlResponseOrBuilder extends +public interface GenerateDownloadUrlResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.GenerateDownloadUrlResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The downloadUrl. */ java.lang.String getDownloadUrl(); /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The bytes for downloadUrl. */ - com.google.protobuf.ByteString - getDownloadUrlBytes(); + com.google.protobuf.ByteString getDownloadUrlBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java index 0128ad7a..02345a63 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java @@ -1,40 +1,57 @@ +/* + * 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; /** + * + * *
                                * Request of `GenerateSourceUploadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.GenerateUploadUrlRequest} */ -public final class GenerateUploadUrlRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateUploadUrlRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.GenerateUploadUrlRequest) GenerateUploadUrlRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateUploadUrlRequest.newBuilder() to construct. private GenerateUploadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateUploadUrlRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateUploadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateUploadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GenerateUploadUrlRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GenerateUploadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.GenerateUploadUrlRequest.class, com.google.cloud.functions.v2.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v2.GenerateUploadUrlRequest.class, + com.google.cloud.functions.v2.GenerateUploadUrlRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.GenerateUploadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2.GenerateUploadUrlRequest other = (com.google.cloud.functions.v2.GenerateUploadUrlRequest) obj; + com.google.cloud.functions.v2.GenerateUploadUrlRequest other = + (com.google.cloud.functions.v2.GenerateUploadUrlRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GenerateUploadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest 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.GenerateUploadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2.GenerateUploadUrlRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.GenerateUploadUrlRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.GenerateUploadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2.GenerateUploadUrlRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2.GenerateUploadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request of `GenerateSourceUploadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.GenerateUploadUrlRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.GenerateUploadUrlRequest) com.google.cloud.functions.v2.GenerateUploadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.GenerateUploadUrlRequest.class, com.google.cloud.functions.v2.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v2.GenerateUploadUrlRequest.class, + com.google.cloud.functions.v2.GenerateUploadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v2.GenerateUploadUrlRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.functions.v2.GenerateUploadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v2.GenerateUploadUrlRequest buildPartial() { - com.google.cloud.functions.v2.GenerateUploadUrlRequest result = new com.google.cloud.functions.v2.GenerateUploadUrlRequest(this); + com.google.cloud.functions.v2.GenerateUploadUrlRequest result = + new com.google.cloud.functions.v2.GenerateUploadUrlRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.functions.v2.GenerateUploadUrlRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.GenerateUploadUrlRequest)other); + return mergeFrom((com.google.cloud.functions.v2.GenerateUploadUrlRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.GenerateUploadUrlRequest other) { - if (other == com.google.cloud.functions.v2.GenerateUploadUrlRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.GenerateUploadUrlRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2.GenerateUploadUrlRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2.GenerateUploadUrlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -470,21 +514,24 @@ 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/*`.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -492,64 +539,77 @@ 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/*`.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.GenerateUploadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.GenerateUploadUrlRequest) private static final com.google.cloud.functions.v2.GenerateUploadUrlRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.GenerateUploadUrlRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.functions.v2.GenerateUploadUrlRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateUploadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateUploadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateUploadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateUploadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.GenerateUploadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java new file mode 100644 index 00000000..d917cd03 --- /dev/null +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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 GenerateUploadUrlRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.GenerateUploadUrlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * 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) = { ... } + * + * + * @return The parent. + */ + 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/*`.
                              +   * 
                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java index 0a25b278..f7431d3b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java @@ -1,40 +1,57 @@ +/* + * 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; /** + * + * *
                                * Response of `GenerateSourceUploadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.GenerateUploadUrlResponse} */ -public final class GenerateUploadUrlResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateUploadUrlResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.GenerateUploadUrlResponse) GenerateUploadUrlResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateUploadUrlResponse.newBuilder() to construct. private GenerateUploadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateUploadUrlResponse() { uploadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateUploadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateUploadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private GenerateUploadUrlResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uploadUrl_ = s; - break; - } - case 18: { - com.google.cloud.functions.v2.StorageSource.Builder subBuilder = null; - if (storageSource_ != null) { - subBuilder = storageSource_.toBuilder(); + uploadUrl_ = s; + break; } - storageSource_ = input.readMessage(com.google.cloud.functions.v2.StorageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(storageSource_); - storageSource_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.functions.v2.StorageSource.Builder subBuilder = null; + if (storageSource_ != null) { + subBuilder = storageSource_.toBuilder(); + } + storageSource_ = + input.readMessage( + com.google.cloud.functions.v2.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storageSource_); + storageSource_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,29 +107,33 @@ private GenerateUploadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.GenerateUploadUrlResponse.class, com.google.cloud.functions.v2.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v2.GenerateUploadUrlResponse.class, + com.google.cloud.functions.v2.GenerateUploadUrlResponse.Builder.class); } public static final int UPLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object uploadUrl_; /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -116,6 +141,7 @@ private GenerateUploadUrlResponse(
                                  * 
                              * * string upload_url = 1; + * * @return The uploadUrl. */ @java.lang.Override @@ -124,14 +150,15 @@ public java.lang.String getUploadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; } } /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -139,16 +166,15 @@ public java.lang.String getUploadUrl() {
                                  * 
                              * * string upload_url = 1; + * * @return The bytes for uploadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getUploadUrlBytes() { + public com.google.protobuf.ByteString getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -159,6 +185,8 @@ public java.lang.String getUploadUrl() { public static final int STORAGE_SOURCE_FIELD_NUMBER = 2; private com.google.cloud.functions.v2.StorageSource storageSource_; /** + * + * *
                                  * The location of the source code in the upload bucket.
                                  * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -169,6 +197,7 @@ public java.lang.String getUploadUrl() {
                                  * 
                              * * .google.cloud.functions.v2.StorageSource storage_source = 2; + * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -176,6 +205,8 @@ public boolean hasStorageSource() { return storageSource_ != null; } /** + * + * *
                                  * The location of the source code in the upload bucket.
                                  * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -186,13 +217,18 @@ public boolean hasStorageSource() {
                                  * 
                              * * .google.cloud.functions.v2.StorageSource storage_source = 2; + * * @return The storageSource. */ @java.lang.Override public com.google.cloud.functions.v2.StorageSource getStorageSource() { - return storageSource_ == null ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance() : storageSource_; + return storageSource_ == null + ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance() + : storageSource_; } /** + * + * *
                                  * The location of the source code in the upload bucket.
                                  * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -210,6 +246,7 @@ public com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBu
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -221,8 +258,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadUrl_)) {
                                     com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadUrl_);
                                   }
                              @@ -242,8 +278,7 @@ public int getSerializedSize() {
                                     size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadUrl_);
                                   }
                                   if (storageSource_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(2, getStorageSource());
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStorageSource());
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -253,19 +288,18 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2.GenerateUploadUrlResponse)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v2.GenerateUploadUrlResponse other = (com.google.cloud.functions.v2.GenerateUploadUrlResponse) obj;
                              +    com.google.cloud.functions.v2.GenerateUploadUrlResponse other =
                              +        (com.google.cloud.functions.v2.GenerateUploadUrlResponse) obj;
                               
                              -    if (!getUploadUrl()
                              -        .equals(other.getUploadUrl())) return false;
                              +    if (!getUploadUrl().equals(other.getUploadUrl())) return false;
                                   if (hasStorageSource() != other.hasStorageSource()) return false;
                                   if (hasStorageSource()) {
                              -      if (!getStorageSource()
                              -          .equals(other.getStorageSource())) return false;
                              +      if (!getStorageSource().equals(other.getStorageSource())) return false;
                                   }
                                   if (!unknownFields.equals(other.unknownFields)) return false;
                                   return true;
                              @@ -290,117 +324,127 @@ public int hashCode() {
                                 }
                               
                                 public static com.google.cloud.functions.v2.GenerateUploadUrlResponse parseFrom(
                              -      java.nio.ByteBuffer data)
                              -      throws com.google.protobuf.InvalidProtocolBufferException {
                              +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.GenerateUploadUrlResponse parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.GenerateUploadUrlResponse parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.GenerateUploadUrlResponse 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.GenerateUploadUrlResponse parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.GenerateUploadUrlResponse parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2.GenerateUploadUrlResponse parseFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2.GenerateUploadUrlResponse parseFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.GenerateUploadUrlResponse parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2.GenerateUploadUrlResponse parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2.GenerateUploadUrlResponse parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.GenerateUploadUrlResponse parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.GenerateUploadUrlResponse parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.GenerateUploadUrlResponse parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              -  public static Builder newBuilder(com.google.cloud.functions.v2.GenerateUploadUrlResponse prototype) {
                              +
                              +  public static Builder newBuilder(
                              +      com.google.cloud.functions.v2.GenerateUploadUrlResponse prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Response of `GenerateSourceUploadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.GenerateUploadUrlResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.GenerateUploadUrlResponse) com.google.cloud.functions.v2.GenerateUploadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.GenerateUploadUrlResponse.class, com.google.cloud.functions.v2.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v2.GenerateUploadUrlResponse.class, + com.google.cloud.functions.v2.GenerateUploadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v2.GenerateUploadUrlResponse.newBuilder() @@ -408,16 +452,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -433,9 +476,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor; } @java.lang.Override @@ -454,7 +497,8 @@ public com.google.cloud.functions.v2.GenerateUploadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v2.GenerateUploadUrlResponse buildPartial() { - com.google.cloud.functions.v2.GenerateUploadUrlResponse result = new com.google.cloud.functions.v2.GenerateUploadUrlResponse(this); + com.google.cloud.functions.v2.GenerateUploadUrlResponse result = + new com.google.cloud.functions.v2.GenerateUploadUrlResponse(this); result.uploadUrl_ = uploadUrl_; if (storageSourceBuilder_ == null) { result.storageSource_ = storageSource_; @@ -469,38 +513,39 @@ public com.google.cloud.functions.v2.GenerateUploadUrlResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.GenerateUploadUrlResponse)other); + return mergeFrom((com.google.cloud.functions.v2.GenerateUploadUrlResponse) other); } else { super.mergeFrom(other); return this; @@ -508,7 +553,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.GenerateUploadUrlResponse other) { - if (other == com.google.cloud.functions.v2.GenerateUploadUrlResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.GenerateUploadUrlResponse.getDefaultInstance()) + return this; if (!other.getUploadUrl().isEmpty()) { uploadUrl_ = other.uploadUrl_; onChanged(); @@ -535,7 +581,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2.GenerateUploadUrlResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2.GenerateUploadUrlResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -547,6 +594,8 @@ public Builder mergeFrom( private java.lang.Object uploadUrl_ = ""; /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -554,13 +603,13 @@ public Builder mergeFrom(
                                    * 
                              * * string upload_url = 1; + * * @return The uploadUrl. */ public java.lang.String getUploadUrl() { java.lang.Object ref = uploadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; @@ -569,6 +618,8 @@ public java.lang.String getUploadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -576,15 +627,14 @@ public java.lang.String getUploadUrl() {
                                    * 
                              * * string upload_url = 1; + * * @return The bytes for uploadUrl. */ - public com.google.protobuf.ByteString - getUploadUrlBytes() { + public com.google.protobuf.ByteString getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -592,6 +642,8 @@ public java.lang.String getUploadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -599,20 +651,22 @@ public java.lang.String getUploadUrl() {
                                    * 
                              * * string upload_url = 1; + * * @param value The uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrl( - java.lang.String value) { + public Builder setUploadUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uploadUrl_ = value; onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -620,15 +674,18 @@ public Builder setUploadUrl(
                                    * 
                              * * string upload_url = 1; + * * @return This builder for chaining. */ public Builder clearUploadUrl() { - + uploadUrl_ = getDefaultInstance().getUploadUrl(); onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -636,16 +693,16 @@ public Builder clearUploadUrl() {
                                    * 
                              * * string upload_url = 1; + * * @param value The bytes for uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uploadUrl_ = value; onChanged(); return this; @@ -653,8 +710,13 @@ public Builder setUploadUrlBytes( private com.google.cloud.functions.v2.StorageSource storageSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder> storageSourceBuilder_; + com.google.cloud.functions.v2.StorageSource, + com.google.cloud.functions.v2.StorageSource.Builder, + com.google.cloud.functions.v2.StorageSourceOrBuilder> + storageSourceBuilder_; /** + * + * *
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -665,12 +727,15 @@ public Builder setUploadUrlBytes(
                                    * 
                              * * .google.cloud.functions.v2.StorageSource storage_source = 2; + * * @return Whether the storageSource field is set. */ public boolean hasStorageSource() { return storageSourceBuilder_ != null || storageSource_ != null; } /** + * + * *
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -681,16 +746,21 @@ public boolean hasStorageSource() {
                                    * 
                              * * .google.cloud.functions.v2.StorageSource storage_source = 2; + * * @return The storageSource. */ public com.google.cloud.functions.v2.StorageSource getStorageSource() { if (storageSourceBuilder_ == null) { - return storageSource_ == null ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance() : storageSource_; + return storageSource_ == null + ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance() + : storageSource_; } else { return storageSourceBuilder_.getMessage(); } } /** + * + * *
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -716,6 +786,8 @@ public Builder setStorageSource(com.google.cloud.functions.v2.StorageSource valu
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -739,6 +811,8 @@ public Builder setStorageSource(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -754,7 +828,9 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2.StorageSource va
                                     if (storageSourceBuilder_ == null) {
                                       if (storageSource_ != null) {
                                         storageSource_ =
                              -            com.google.cloud.functions.v2.StorageSource.newBuilder(storageSource_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2.StorageSource.newBuilder(storageSource_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         storageSource_ = value;
                                       }
                              @@ -766,6 +842,8 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2.StorageSource va
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -789,6 +867,8 @@ public Builder clearStorageSource() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -801,11 +881,13 @@ public Builder clearStorageSource() {
                                    * .google.cloud.functions.v2.StorageSource storage_source = 2;
                                    */
                                   public com.google.cloud.functions.v2.StorageSource.Builder getStorageSourceBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getStorageSourceFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -821,11 +903,14 @@ public com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBu
                                     if (storageSourceBuilder_ != null) {
                                       return storageSourceBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return storageSource_ == null ?
                              -            com.google.cloud.functions.v2.StorageSource.getDefaultInstance() : storageSource_;
                              +        return storageSource_ == null
                              +            ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance()
                              +            : storageSource_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -838,21 +923,24 @@ public com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBu
                                    * .google.cloud.functions.v2.StorageSource storage_source = 2;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder> 
                              +            com.google.cloud.functions.v2.StorageSource,
                              +            com.google.cloud.functions.v2.StorageSource.Builder,
                              +            com.google.cloud.functions.v2.StorageSourceOrBuilder>
                                       getStorageSourceFieldBuilder() {
                                     if (storageSourceBuilder_ == null) {
                              -        storageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder>(
                              -                getStorageSource(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        storageSourceBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2.StorageSource,
                              +                com.google.cloud.functions.v2.StorageSource.Builder,
                              +                com.google.cloud.functions.v2.StorageSourceOrBuilder>(
                              +                getStorageSource(), getParentForChildren(), isClean());
                                       storageSource_ = null;
                                     }
                                     return storageSourceBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -862,12 +950,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.GenerateUploadUrlResponse)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.GenerateUploadUrlResponse)
                                 private static final com.google.cloud.functions.v2.GenerateUploadUrlResponse DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2.GenerateUploadUrlResponse();
                                 }
                              @@ -876,16 +964,16 @@ public static com.google.cloud.functions.v2.GenerateUploadUrlResponse getDefault
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public GenerateUploadUrlResponse parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new GenerateUploadUrlResponse(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public GenerateUploadUrlResponse parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new GenerateUploadUrlResponse(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -900,6 +988,4 @@ public com.google.protobuf.Parser getParserForType()
                                 public com.google.cloud.functions.v2.GenerateUploadUrlResponse getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java
                              similarity index 77%
                              rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java
                              rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java
                              index 0f9170b9..13799a85 100644
                              --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java
                              @@ -1,13 +1,31 @@
                              +/*
                              + * 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 GenerateUploadUrlResponseOrBuilder extends
                              +public interface GenerateUploadUrlResponseOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.GenerateUploadUrlResponse)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -15,10 +33,13 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * string upload_url = 1; + * * @return The uploadUrl. */ java.lang.String getUploadUrl(); /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -26,12 +47,14 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * string upload_url = 1; + * * @return The bytes for uploadUrl. */ - com.google.protobuf.ByteString - getUploadUrlBytes(); + 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
                              @@ -42,10 +65,13 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * .google.cloud.functions.v2.StorageSource storage_source = 2; + * * @return Whether the storageSource field is set. */ 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
                              @@ -56,10 +82,13 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * .google.cloud.functions.v2.StorageSource storage_source = 2; + * * @return The storageSource. */ 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
                              diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java
                              similarity index 65%
                              rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java
                              rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java
                              index 88da7f9e..20fd523c 100644
                              --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java
                              +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java
                              @@ -1,40 +1,57 @@
                              +/*
                              + * 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;
                               
                               /**
                              + *
                              + *
                                * 
                                * Request for the `GetFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.GetFunctionRequest} */ -public final class GetFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.GetFunctionRequest) GetFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetFunctionRequest.newBuilder() to construct. private GetFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetFunctionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.GetFunctionRequest.class, com.google.cloud.functions.v2.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v2.GetFunctionRequest.class, + com.google.cloud.functions.v2.GetFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
                                  * Required. The name of the function which details should be obtained.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -109,29 +134,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * Required. The name of the function which details should be obtained.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.GetFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2.GetFunctionRequest other = (com.google.cloud.functions.v2.GetFunctionRequest) obj; + com.google.cloud.functions.v2.GetFunctionRequest other = + (com.google.cloud.functions.v2.GetFunctionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +230,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2.GetFunctionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2.GetFunctionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.GetFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.GetFunctionRequest 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.GetFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.GetFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2.GetFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.GetFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.GetFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.GetFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.GetFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.GetFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.GetFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.GetFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.GetFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `GetFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.GetFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.GetFunctionRequest) com.google.cloud.functions.v2.GetFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.GetFunctionRequest.class, com.google.cloud.functions.v2.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v2.GetFunctionRequest.class, + com.google.cloud.functions.v2.GetFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2.GetFunctionRequest.newBuilder() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor; } @java.lang.Override @@ -362,7 +397,8 @@ public com.google.cloud.functions.v2.GetFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2.GetFunctionRequest buildPartial() { - com.google.cloud.functions.v2.GetFunctionRequest result = new com.google.cloud.functions.v2.GetFunctionRequest(this); + com.google.cloud.functions.v2.GetFunctionRequest result = + new com.google.cloud.functions.v2.GetFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.cloud.functions.v2.GetFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.GetFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v2.GetFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.GetFunctionRequest other) { - if (other == com.google.cloud.functions.v2.GetFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.GetFunctionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -447,18 +485,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -467,20 +509,23 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -488,61 +533,74 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +610,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.GetFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.GetFunctionRequest) private static final com.google.cloud.functions.v2.GetFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.GetFunctionRequest(); } @@ -566,16 +624,16 @@ public static com.google.cloud.functions.v2.GetFunctionRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.GetFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequestOrBuilder.java new file mode 100644 index 00000000..d3b18d1d --- /dev/null +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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 GetFunctionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.GetFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * Required. The name of the function which details should be obtained.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                              +   * Required. The name of the function which details should be obtained.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java index 73ead8cb..ce5a5edb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Request for the `ListFunctions` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.ListFunctionsRequest} */ -public final class ListFunctionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFunctionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ListFunctionsRequest) ListFunctionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFunctionsRequest.newBuilder() to construct. private ListFunctionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFunctionsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListFunctionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFunctionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListFunctionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,29 +120,33 @@ private ListFunctionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.ListFunctionsRequest.class, com.google.cloud.functions.v2.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v2.ListFunctionsRequest.class, + com.google.cloud.functions.v2.ListFunctionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * Required. The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -131,7 +156,10 @@ private ListFunctionsRequest(
                                  * reachable locations along with the names of any unreachable locations.
                                  * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -140,14 +168,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * Required. The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -157,17 +186,18 @@ public java.lang.String getParent() {
                                  * reachable locations along with the names of any unreachable locations.
                                  * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -178,11 +208,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
                                  * Maximum number of functions to return per call.
                                  * 
                              * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -193,6 +226,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -201,6 +236,7 @@ public int getPageSize() {
                                  * 
                              * * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -209,14 +245,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -225,16 +262,15 @@ public java.lang.String getPageToken() {
                                  * 
                              * * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -245,12 +281,15 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
                                  * The filter for Functions that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -259,30 +298,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
                                  * The filter for Functions that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -293,6 +332,8 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
                                  * The sorting order of the resources returned. Value should be a comma
                                  * separated list of fields. The default sorting oder is ascending.
                              @@ -300,6 +341,7 @@ public java.lang.String getFilter() {
                                  * 
                              * * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -308,14 +350,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
                                  * The sorting order of the resources returned. Value should be a comma
                                  * separated list of fields. The default sorting oder is ascending.
                              @@ -323,16 +366,15 @@ public java.lang.String getOrderBy() {
                                  * 
                              * * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -341,6 +383,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -352,8 +395,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -382,8 +424,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -402,23 +443,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.ListFunctionsRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2.ListFunctionsRequest other = (com.google.cloud.functions.v2.ListFunctionsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.functions.v2.ListFunctionsRequest other = + (com.google.cloud.functions.v2.ListFunctionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -446,117 +483,126 @@ public int hashCode() { } public static com.google.cloud.functions.v2.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListFunctionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListFunctionsRequest 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.ListFunctionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListFunctionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2.ListFunctionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.ListFunctionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListFunctionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.ListFunctionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.ListFunctionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListFunctionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.ListFunctionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListFunctionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.ListFunctionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `ListFunctions` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.ListFunctionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ListFunctionsRequest) com.google.cloud.functions.v2.ListFunctionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.ListFunctionsRequest.class, com.google.cloud.functions.v2.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v2.ListFunctionsRequest.class, + com.google.cloud.functions.v2.ListFunctionsRequest.Builder.class); } // Construct using com.google.cloud.functions.v2.ListFunctionsRequest.newBuilder() @@ -564,16 +610,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -591,9 +636,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor; } @java.lang.Override @@ -612,7 +657,8 @@ public com.google.cloud.functions.v2.ListFunctionsRequest build() { @java.lang.Override public com.google.cloud.functions.v2.ListFunctionsRequest buildPartial() { - com.google.cloud.functions.v2.ListFunctionsRequest result = new com.google.cloud.functions.v2.ListFunctionsRequest(this); + com.google.cloud.functions.v2.ListFunctionsRequest result = + new com.google.cloud.functions.v2.ListFunctionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -626,38 +672,39 @@ public com.google.cloud.functions.v2.ListFunctionsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.ListFunctionsRequest)other); + return mergeFrom((com.google.cloud.functions.v2.ListFunctionsRequest) other); } else { super.mergeFrom(other); return this; @@ -665,7 +712,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.ListFunctionsRequest other) { - if (other == com.google.cloud.functions.v2.ListFunctionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.ListFunctionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -704,7 +752,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2.ListFunctionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2.ListFunctionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -716,6 +765,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -725,14 +776,16 @@ public Builder mergeFrom(
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -741,6 +794,8 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -750,16 +805,17 @@ public java.lang.String getParent() {
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -767,6 +823,8 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -776,21 +834,25 @@ public java.lang.String getParent() {
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -800,16 +862,21 @@ public Builder setParent(
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -819,29 +886,34 @@ public Builder clearParent() {
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
                                    * Maximum number of functions to return per call.
                                    * 
                              * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -849,30 +921,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
                                    * Maximum number of functions to return per call.
                                    * 
                              * * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
                                    * Maximum number of functions to return per call.
                                    * 
                              * * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -880,6 +958,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -888,13 +968,13 @@ public Builder clearPageSize() {
                                    * 
                              * * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -903,6 +983,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -911,15 +993,14 @@ public java.lang.String getPageToken() {
                                    * 
                              * * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -927,6 +1008,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -935,20 +1018,22 @@ public java.lang.String getPageToken() {
                                    * 
                              * * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -957,15 +1042,18 @@ public Builder setPageToken(
                                    * 
                              * * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -974,16 +1062,16 @@ public Builder clearPageToken() {
                                    * 
                              * * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -991,19 +1079,21 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1012,21 +1102,22 @@ public java.lang.String getFilter() { } } /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1034,57 +1125,64 @@ public java.lang.String getFilter() { } } /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1092,6 +1190,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1099,13 +1199,13 @@ public Builder setFilterBytes(
                                    * 
                              * * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1114,6 +1214,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1121,15 +1223,14 @@ public java.lang.String getOrderBy() {
                                    * 
                              * * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1137,6 +1238,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1144,20 +1247,22 @@ public java.lang.String getOrderBy() {
                                    * 
                              * * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1165,15 +1270,18 @@ public Builder setOrderBy(
                                    * 
                              * * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1181,23 +1289,23 @@ public Builder clearOrderBy() {
                                    * 
                              * * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1207,12 +1315,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.ListFunctionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ListFunctionsRequest) private static final com.google.cloud.functions.v2.ListFunctionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ListFunctionsRequest(); } @@ -1221,16 +1329,16 @@ public static com.google.cloud.functions.v2.ListFunctionsRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1245,6 +1353,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.ListFunctionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequestOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequestOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequestOrBuilder.java index 28893f4a..0e2d1562 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequestOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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 ListFunctionsRequestOrBuilder extends +public interface ListFunctionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.ListFunctionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Required. The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -17,11 +35,16 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * reachable locations along with the names of any unreachable locations.
                                  * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
                                  * Required. The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -31,23 +54,30 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * reachable locations along with the names of any unreachable locations.
                                  * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
                                  * Maximum number of functions to return per call.
                                  * 
                              * * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -56,10 +86,13 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -68,34 +101,41 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
                                  * The filter for Functions that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
                                  * The filter for Functions that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
                                  * The sorting order of the resources returned. Value should be a comma
                                  * separated list of fields. The default sorting oder is ascending.
                              @@ -103,10 +143,13 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
                                  * The sorting order of the resources returned. Value should be a comma
                                  * separated list of fields. The default sorting oder is ascending.
                              @@ -114,8 +157,8 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java index 06222e68..96ed9c91 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Response for the `ListFunctions` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.ListFunctionsResponse} */ -public final class ListFunctionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFunctionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ListFunctionsResponse) ListFunctionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFunctionsResponse.newBuilder() to construct. private ListFunctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFunctionsResponse() { functions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListFunctionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFunctionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListFunctionsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - functions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + functions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + functions_.add( + input.readMessage( + com.google.cloud.functions.v2.Function.parser(), extensionRegistry)); + break; } - functions_.add( - input.readMessage(com.google.cloud.functions.v2.Function.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListFunctionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { functions_ = java.util.Collections.unmodifiableList(functions_); @@ -107,22 +127,27 @@ private ListFunctionsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.ListFunctionsResponse.class, com.google.cloud.functions.v2.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v2.ListFunctionsResponse.class, + com.google.cloud.functions.v2.ListFunctionsResponse.Builder.class); } public static final int FUNCTIONS_FIELD_NUMBER = 1; private java.util.List functions_; /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -134,6 +159,8 @@ public java.util.List getFunctionsList() return functions_; } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -141,11 +168,13 @@ public java.util.List getFunctionsList() * repeated .google.cloud.functions.v2.Function functions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFunctionsOrBuilderList() { return functions_; } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -157,6 +186,8 @@ public int getFunctionsCount() { return functions_.size(); } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -168,6 +199,8 @@ public com.google.cloud.functions.v2.Function getFunctions(int index) { return functions_.get(index); } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -175,20 +208,22 @@ public com.google.cloud.functions.v2.Function getFunctions(int index) { * repeated .google.cloud.functions.v2.Function functions = 1; */ @java.lang.Override - public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionsOrBuilder( - int index) { + public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionsOrBuilder(int index) { return functions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
                                  * A token, which can be sent as `page_token` to retrieve the next page.
                                  * If this field is omitted, there are no subsequent pages.
                                  * 
                              * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -197,30 +232,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
                                  * A token, which can be sent as `page_token` to retrieve the next page.
                                  * If this field is omitted, there are no subsequent pages.
                                  * 
                              * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -231,37 +266,45 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -269,21 +312,24 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -295,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < functions_.size(); i++) { output.writeMessage(1, functions_.get(i)); } @@ -316,8 +361,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < functions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, functions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, functions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -338,19 +382,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.ListFunctionsResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2.ListFunctionsResponse other = (com.google.cloud.functions.v2.ListFunctionsResponse) obj; + com.google.cloud.functions.v2.ListFunctionsResponse other = + (com.google.cloud.functions.v2.ListFunctionsResponse) obj; - if (!getFunctionsList() - .equals(other.getFunctionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getFunctionsList().equals(other.getFunctionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -378,117 +420,126 @@ public int hashCode() { } public static com.google.cloud.functions.v2.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListFunctionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListFunctionsResponse 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.ListFunctionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListFunctionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2.ListFunctionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.ListFunctionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListFunctionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.ListFunctionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.ListFunctionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListFunctionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.ListFunctionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListFunctionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.ListFunctionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Response for the `ListFunctions` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.ListFunctionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ListFunctionsResponse) com.google.cloud.functions.v2.ListFunctionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.ListFunctionsResponse.class, com.google.cloud.functions.v2.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v2.ListFunctionsResponse.class, + com.google.cloud.functions.v2.ListFunctionsResponse.Builder.class); } // Construct using com.google.cloud.functions.v2.ListFunctionsResponse.newBuilder() @@ -496,17 +547,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFunctionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -524,9 +575,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor; } @java.lang.Override @@ -545,7 +596,8 @@ public com.google.cloud.functions.v2.ListFunctionsResponse build() { @java.lang.Override public com.google.cloud.functions.v2.ListFunctionsResponse buildPartial() { - com.google.cloud.functions.v2.ListFunctionsResponse result = new com.google.cloud.functions.v2.ListFunctionsResponse(this); + com.google.cloud.functions.v2.ListFunctionsResponse result = + new com.google.cloud.functions.v2.ListFunctionsResponse(this); int from_bitField0_ = bitField0_; if (functionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -570,38 +622,39 @@ public com.google.cloud.functions.v2.ListFunctionsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListFunctionsResponse) { - return mergeFrom((com.google.cloud.functions.v2.ListFunctionsResponse)other); + return mergeFrom((com.google.cloud.functions.v2.ListFunctionsResponse) other); } else { super.mergeFrom(other); return this; @@ -609,7 +662,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.ListFunctionsResponse other) { - if (other == com.google.cloud.functions.v2.ListFunctionsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.ListFunctionsResponse.getDefaultInstance()) + return this; if (functionsBuilder_ == null) { if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { @@ -628,9 +682,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2.ListFunctionsResponse oth functionsBuilder_ = null; functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000001); - functionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFunctionsFieldBuilder() : null; + functionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFunctionsFieldBuilder() + : null; } else { functionsBuilder_.addAllMessages(other.functions_); } @@ -669,7 +724,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2.ListFunctionsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2.ListFunctionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -678,21 +734,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List functions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFunctionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { functions_ = new java.util.ArrayList(functions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder> functionsBuilder_; + com.google.cloud.functions.v2.Function, + com.google.cloud.functions.v2.Function.Builder, + com.google.cloud.functions.v2.FunctionOrBuilder> + functionsBuilder_; /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -707,6 +770,8 @@ public java.util.List getFunctionsList() } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -721,6 +786,8 @@ public int getFunctionsCount() { } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -735,14 +802,15 @@ public com.google.cloud.functions.v2.Function getFunctions(int index) { } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2.Function functions = 1; */ - public Builder setFunctions( - int index, com.google.cloud.functions.v2.Function value) { + public Builder setFunctions(int index, com.google.cloud.functions.v2.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -756,6 +824,8 @@ public Builder setFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -774,6 +844,8 @@ public Builder setFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -794,14 +866,15 @@ public Builder addFunctions(com.google.cloud.functions.v2.Function value) { return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2.Function functions = 1; */ - public Builder addFunctions( - int index, com.google.cloud.functions.v2.Function value) { + public Builder addFunctions(int index, com.google.cloud.functions.v2.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -815,14 +888,15 @@ public Builder addFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2.Function functions = 1; */ - public Builder addFunctions( - com.google.cloud.functions.v2.Function.Builder builderForValue) { + public Builder addFunctions(com.google.cloud.functions.v2.Function.Builder builderForValue) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); functions_.add(builderForValue.build()); @@ -833,6 +907,8 @@ public Builder addFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -851,6 +927,8 @@ public Builder addFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -861,8 +939,7 @@ public Builder addAllFunctions( java.lang.Iterable values) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, functions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, functions_); onChanged(); } else { functionsBuilder_.addAllMessages(values); @@ -870,6 +947,8 @@ public Builder addAllFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -887,6 +966,8 @@ public Builder clearFunctions() { return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -904,39 +985,44 @@ public Builder removeFunctions(int index) { return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2.Function functions = 1; */ - public com.google.cloud.functions.v2.Function.Builder getFunctionsBuilder( - int index) { + public com.google.cloud.functions.v2.Function.Builder getFunctionsBuilder(int index) { return getFunctionsFieldBuilder().getBuilder(index); } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2.Function functions = 1; */ - public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionsOrBuilder( - int index) { + public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionsOrBuilder(int index) { if (functionsBuilder_ == null) { - return functions_.get(index); } else { + return functions_.get(index); + } else { return functionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2.Function functions = 1; */ - public java.util.List - getFunctionsOrBuilderList() { + public java.util.List + getFunctionsOrBuilderList() { if (functionsBuilder_ != null) { return functionsBuilder_.getMessageOrBuilderList(); } else { @@ -944,6 +1030,8 @@ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionsOrBuilder( } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -951,42 +1039,48 @@ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionsOrBuilder( * repeated .google.cloud.functions.v2.Function functions = 1; */ public com.google.cloud.functions.v2.Function.Builder addFunctionsBuilder() { - return getFunctionsFieldBuilder().addBuilder( - com.google.cloud.functions.v2.Function.getDefaultInstance()); + return getFunctionsFieldBuilder() + .addBuilder(com.google.cloud.functions.v2.Function.getDefaultInstance()); } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2.Function functions = 1; */ - public com.google.cloud.functions.v2.Function.Builder addFunctionsBuilder( - int index) { - return getFunctionsFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2.Function.getDefaultInstance()); + public com.google.cloud.functions.v2.Function.Builder addFunctionsBuilder(int index) { + return getFunctionsFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2.Function.getDefaultInstance()); } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2.Function functions = 1; */ - public java.util.List - getFunctionsBuilderList() { + public java.util.List + getFunctionsBuilderList() { return getFunctionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder> + com.google.cloud.functions.v2.Function, + com.google.cloud.functions.v2.Function.Builder, + com.google.cloud.functions.v2.FunctionOrBuilder> getFunctionsFieldBuilder() { if (functionsBuilder_ == null) { - functionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder>( - functions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + functionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.Function, + com.google.cloud.functions.v2.Function.Builder, + com.google.cloud.functions.v2.FunctionOrBuilder>( + functions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); functions_ = null; } return functionsBuilder_; @@ -994,19 +1088,21 @@ public com.google.cloud.functions.v2.Function.Builder addFunctionsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,21 +1111,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1037,101 +1134,118 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1139,85 +1253,95 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1227,29 +1351,31 @@ public Builder clearUnreachable() { return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1259,12 +1385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.ListFunctionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ListFunctionsResponse) private static final com.google.cloud.functions.v2.ListFunctionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ListFunctionsResponse(); } @@ -1273,16 +1399,16 @@ public static com.google.cloud.functions.v2.ListFunctionsResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1297,6 +1423,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.ListFunctionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponseOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponseOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponseOrBuilder.java index 1afb1260..7739bb6b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponseOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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 ListFunctionsResponseOrBuilder extends +public interface ListFunctionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.ListFunctionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The functions that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v2.Function functions = 1; */ - java.util.List - getFunctionsList(); + java.util.List getFunctionsList(); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -25,6 +44,8 @@ public interface ListFunctionsResponseOrBuilder extends */ com.google.cloud.functions.v2.Function getFunctions(int index); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -33,88 +54,106 @@ public interface ListFunctionsResponseOrBuilder extends */ int getFunctionsCount(); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v2.Function functions = 1; */ - java.util.List + java.util.List getFunctionsOrBuilderList(); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v2.Function functions = 1; */ - com.google.cloud.functions.v2.FunctionOrBuilder getFunctionsOrBuilder( - int index); + com.google.cloud.functions.v2.FunctionOrBuilder getFunctionsOrBuilder(int index); /** + * + * *
                                  * A token, which can be sent as `page_token` to retrieve the next page.
                                  * If this field is omitted, there are no subsequent pages.
                                  * 
                              * * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
                                  * A token, which can be sent as `page_token` to retrieve the next page.
                                  * If this field is omitted, there are no subsequent pages.
                                  * 
                              * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java index 912c6b35..4891d75b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Request for the `ListRuntimes` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.ListRuntimesRequest} */ -public final class ListRuntimesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuntimesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ListRuntimesRequest) ListRuntimesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuntimesRequest.newBuilder() to construct. private ListRuntimesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuntimesRequest() { parent_ = ""; filter_ = ""; @@ -26,16 +44,15 @@ private ListRuntimesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListRuntimesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private ListRuntimesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,35 +99,42 @@ private ListRuntimesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.ListRuntimesRequest.class, com.google.cloud.functions.v2.ListRuntimesRequest.Builder.class); + com.google.cloud.functions.v2.ListRuntimesRequest.class, + com.google.cloud.functions.v2.ListRuntimesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -117,30 +143,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -151,12 +179,15 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
                                  * The filter for Runtimes that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -165,30 +196,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
                                  * The filter for Runtimes that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -197,6 +228,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +240,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -239,17 +270,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.ListRuntimesRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2.ListRuntimesRequest other = (com.google.cloud.functions.v2.ListRuntimesRequest) obj; + com.google.cloud.functions.v2.ListRuntimesRequest other = + (com.google.cloud.functions.v2.ListRuntimesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,117 +301,126 @@ public int hashCode() { } public static com.google.cloud.functions.v2.ListRuntimesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListRuntimesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListRuntimesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListRuntimesRequest 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.ListRuntimesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListRuntimesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2.ListRuntimesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.ListRuntimesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListRuntimesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.ListRuntimesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.ListRuntimesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListRuntimesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.ListRuntimesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListRuntimesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.ListRuntimesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `ListRuntimes` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.ListRuntimesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ListRuntimesRequest) com.google.cloud.functions.v2.ListRuntimesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.ListRuntimesRequest.class, com.google.cloud.functions.v2.ListRuntimesRequest.Builder.class); + com.google.cloud.functions.v2.ListRuntimesRequest.class, + com.google.cloud.functions.v2.ListRuntimesRequest.Builder.class); } // Construct using com.google.cloud.functions.v2.ListRuntimesRequest.newBuilder() @@ -389,16 +428,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor; } @java.lang.Override @@ -431,7 +469,8 @@ public com.google.cloud.functions.v2.ListRuntimesRequest build() { @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesRequest buildPartial() { - com.google.cloud.functions.v2.ListRuntimesRequest result = new com.google.cloud.functions.v2.ListRuntimesRequest(this); + com.google.cloud.functions.v2.ListRuntimesRequest result = + new com.google.cloud.functions.v2.ListRuntimesRequest(this); result.parent_ = parent_; result.filter_ = filter_; onBuilt(); @@ -442,38 +481,39 @@ public com.google.cloud.functions.v2.ListRuntimesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.ListRuntimesRequest)other); + return mergeFrom((com.google.cloud.functions.v2.ListRuntimesRequest) other); } else { super.mergeFrom(other); return this; @@ -481,7 +521,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.ListRuntimesRequest other) { - if (other == com.google.cloud.functions.v2.ListRuntimesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.ListRuntimesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -509,7 +550,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2.ListRuntimesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2.ListRuntimesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,19 +563,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -542,21 +588,24 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -564,57 +613,70 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -622,19 +684,21 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -643,21 +707,22 @@ public java.lang.String getFilter() { } } /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -665,64 +730,71 @@ public java.lang.String getFilter() { } } /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -732,12 +804,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.ListRuntimesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ListRuntimesRequest) private static final com.google.cloud.functions.v2.ListRuntimesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ListRuntimesRequest(); } @@ -746,16 +818,16 @@ public static com.google.cloud.functions.v2.ListRuntimesRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRuntimesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRuntimesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -770,6 +842,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.ListRuntimesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequestOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequestOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequestOrBuilder.java index 2ab26b48..77c9fd7d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequestOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequestOrBuilder.java @@ -1,53 +1,83 @@ +/* + * 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 ListRuntimesRequestOrBuilder extends +public interface ListRuntimesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.ListRuntimesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
                                  * The filter for Runtimes that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
                                  * The filter for Runtimes that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java index 3b2baf31..653df859 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java @@ -1,40 +1,57 @@ +/* + * 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; /** + * + * *
                                * Response for the `ListRuntimes` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.ListRuntimesResponse} */ -public final class ListRuntimesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuntimesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ListRuntimesResponse) ListRuntimesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuntimesResponse.newBuilder() to construct. private ListRuntimesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuntimesResponse() { runtimes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListRuntimesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private ListRuntimesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - runtimes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + runtimes_ = + new java.util.ArrayList< + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime>(); + mutable_bitField0_ |= 0x00000001; + } + runtimes_.add( + input.readMessage( + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.parser(), + extensionRegistry)); + break; } - runtimes_.add( - input.readMessage(com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private ListRuntimesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { runtimes_ = java.util.Collections.unmodifiableList(runtimes_); @@ -87,29 +108,35 @@ private ListRuntimesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.ListRuntimesResponse.class, com.google.cloud.functions.v2.ListRuntimesResponse.Builder.class); + com.google.cloud.functions.v2.ListRuntimesResponse.class, + com.google.cloud.functions.v2.ListRuntimesResponse.Builder.class); } /** + * + * *
                                  * The various stages that a runtime can be in.
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage} */ - public enum RuntimeStage - implements com.google.protobuf.ProtocolMessageEnum { + public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified.
                                    * 
                              @@ -118,6 +145,8 @@ public enum RuntimeStage */ RUNTIME_STAGE_UNSPECIFIED(0), /** + * + * *
                                    * The runtime is in development.
                                    * 
                              @@ -126,6 +155,8 @@ public enum RuntimeStage */ DEVELOPMENT(1), /** + * + * *
                                    * The runtime is in the Alpha stage.
                                    * 
                              @@ -134,6 +165,8 @@ public enum RuntimeStage */ ALPHA(2), /** + * + * *
                                    * The runtime is in the Beta stage.
                                    * 
                              @@ -142,6 +175,8 @@ public enum RuntimeStage */ BETA(3), /** + * + * *
                                    * The runtime is generally available.
                                    * 
                              @@ -150,6 +185,8 @@ public enum RuntimeStage */ GA(4), /** + * + * *
                                    * The runtime is deprecated.
                                    * 
                              @@ -158,6 +195,8 @@ public enum RuntimeStage */ DEPRECATED(5), /** + * + * *
                                    * The runtime is no longer supported.
                                    * 
                              @@ -169,6 +208,8 @@ public enum RuntimeStage ; /** + * + * *
                                    * Not specified.
                                    * 
                              @@ -177,6 +218,8 @@ public enum RuntimeStage */ public static final int RUNTIME_STAGE_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * The runtime is in development.
                                    * 
                              @@ -185,6 +228,8 @@ public enum RuntimeStage */ public static final int DEVELOPMENT_VALUE = 1; /** + * + * *
                                    * The runtime is in the Alpha stage.
                                    * 
                              @@ -193,6 +238,8 @@ public enum RuntimeStage */ public static final int ALPHA_VALUE = 2; /** + * + * *
                                    * The runtime is in the Beta stage.
                                    * 
                              @@ -201,6 +248,8 @@ public enum RuntimeStage */ public static final int BETA_VALUE = 3; /** + * + * *
                                    * The runtime is generally available.
                                    * 
                              @@ -209,6 +258,8 @@ public enum RuntimeStage */ public static final int GA_VALUE = 4; /** + * + * *
                                    * The runtime is deprecated.
                                    * 
                              @@ -217,6 +268,8 @@ public enum RuntimeStage */ public static final int DEPRECATED_VALUE = 5; /** + * + * *
                                    * The runtime is no longer supported.
                                    * 
                              @@ -225,7 +278,6 @@ public enum RuntimeStage */ public static final int DECOMMISSIONED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -250,53 +302,59 @@ public static RuntimeStage valueOf(int value) { */ public static RuntimeStage forNumber(int value) { switch (value) { - case 0: return RUNTIME_STAGE_UNSPECIFIED; - case 1: return DEVELOPMENT; - case 2: return ALPHA; - case 3: return BETA; - case 4: return GA; - case 5: return DEPRECATED; - case 6: return DECOMMISSIONED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return RUNTIME_STAGE_UNSPECIFIED; + case 1: + return DEVELOPMENT; + case 2: + return ALPHA; + case 3: + return BETA; + case 4: + return GA; + case 5: + return DEPRECATED; + case 6: + return DECOMMISSIONED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RuntimeStage> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RuntimeStage findValueByNumber(int number) { - return RuntimeStage.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RuntimeStage findValueByNumber(int number) { + return RuntimeStage.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.functions.v2.ListRuntimesResponse.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.functions.v2.ListRuntimesResponse.getDescriptor() + .getEnumTypes() + .get(0); } private static final RuntimeStage[] VALUES = values(); - public static RuntimeStage valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RuntimeStage valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -313,130 +371,165 @@ private RuntimeStage(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage) } - public interface RuntimeOrBuilder extends + public interface RuntimeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.ListRuntimesResponse.Runtime) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                    * 
                              * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
                                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                    * 
                              * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                    * 
                              * * string display_name = 5; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
                                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                    * 
                              * * string display_name = 5; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
                                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                    * 
                              * * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The enum numeric value on the wire for stage. */ int getStageValue(); /** + * + * *
                                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                    * 
                              * * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The stage. */ com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage getStage(); /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @return A list containing the warnings. */ - java.util.List - getWarningsList(); + java.util.List getWarningsList(); /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @return The count of warnings. */ int getWarningsCount(); /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @param index The index of the element to return. * @return The warnings at the given index. */ java.lang.String getWarnings(int index); /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - com.google.protobuf.ByteString - getWarningsBytes(int index); + com.google.protobuf.ByteString getWarningsBytes(int index); /** + * + * *
                                    * The environment for the runtime.
                                    * 
                              * * .google.cloud.functions.v2.Environment environment = 4; + * * @return The enum numeric value on the wire for environment. */ int getEnvironmentValue(); /** + * + * *
                                    * The environment for the runtime.
                                    * 
                              * * .google.cloud.functions.v2.Environment environment = 4; + * * @return The environment. */ com.google.cloud.functions.v2.Environment getEnvironment(); } /** + * + * *
                                  * Describes a runtime and any special information (e.g., deprecation status)
                                  * related to it.
                              @@ -444,15 +537,16 @@ public interface RuntimeOrBuilder extends
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2.ListRuntimesResponse.Runtime}
                                  */
                              -  public static final class Runtime extends
                              -      com.google.protobuf.GeneratedMessageV3 implements
                              +  public static final class Runtime extends com.google.protobuf.GeneratedMessageV3
                              +      implements
                                     // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ListRuntimesResponse.Runtime)
                                     RuntimeOrBuilder {
                              -  private static final long serialVersionUID = 0L;
                              +    private static final long serialVersionUID = 0L;
                                   // Use Runtime.newBuilder() to construct.
                                   private Runtime(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                     super(builder);
                                   }
                              +
                                   private Runtime() {
                                     name_ = "";
                                     displayName_ = "";
                              @@ -463,16 +557,15 @@ private Runtime() {
                               
                                   @java.lang.Override
                                   @SuppressWarnings({"unused"})
                              -    protected java.lang.Object newInstance(
                              -        UnusedPrivateParameter unused) {
                              +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                     return new Runtime();
                                   }
                               
                                   @java.lang.Override
                              -    public final com.google.protobuf.UnknownFieldSet
                              -    getUnknownFields() {
                              +    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                     return this.unknownFields;
                                   }
                              +
                                   private Runtime(
                                       com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -492,46 +585,51 @@ private Runtime(
                                           case 0:
                                             done = true;
                                             break;
                              -            case 10: {
                              -              java.lang.String s = input.readStringRequireUtf8();
                              +            case 10:
                              +              {
                              +                java.lang.String s = input.readStringRequireUtf8();
                               
                              -              name_ = s;
                              -              break;
                              -            }
                              -            case 16: {
                              -              int rawValue = input.readEnum();
                              +                name_ = s;
                              +                break;
                              +              }
                              +            case 16:
                              +              {
                              +                int rawValue = input.readEnum();
                               
                              -              stage_ = rawValue;
                              -              break;
                              -            }
                              -            case 26: {
                              -              java.lang.String s = input.readStringRequireUtf8();
                              -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -                warnings_ = new com.google.protobuf.LazyStringArrayList();
                              -                mutable_bitField0_ |= 0x00000001;
                              +                stage_ = rawValue;
                              +                break;
                                             }
                              -              warnings_.add(s);
                              -              break;
                              -            }
                              -            case 32: {
                              -              int rawValue = input.readEnum();
                              +            case 26:
                              +              {
                              +                java.lang.String s = input.readStringRequireUtf8();
                              +                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                  warnings_ = new com.google.protobuf.LazyStringArrayList();
                              +                  mutable_bitField0_ |= 0x00000001;
                              +                }
                              +                warnings_.add(s);
                              +                break;
                              +              }
                              +            case 32:
                              +              {
                              +                int rawValue = input.readEnum();
                               
                              -              environment_ = rawValue;
                              -              break;
                              -            }
                              -            case 42: {
                              -              java.lang.String s = input.readStringRequireUtf8();
                              +                environment_ = rawValue;
                              +                break;
                              +              }
                              +            case 42:
                              +              {
                              +                java.lang.String s = input.readStringRequireUtf8();
                               
                              -              displayName_ = s;
                              -              break;
                              -            }
                              -            default: {
                              -              if (!parseUnknownField(
                              -                  input, unknownFields, extensionRegistry, tag)) {
                              -                done = true;
                              +                displayName_ = s;
                              +                break;
                              +              }
                              +            default:
                              +              {
                              +                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                  done = true;
                              +                }
                              +                break;
                                             }
                              -              break;
                              -            }
                                         }
                                       }
                                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -539,8 +637,7 @@ private Runtime(
                                     } catch (com.google.protobuf.UninitializedMessageException e) {
                                       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                     } catch (java.io.IOException e) {
                              -        throw new com.google.protobuf.InvalidProtocolBufferException(
                              -            e).setUnfinishedMessage(this);
                              +        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                     } finally {
                                       if (((mutable_bitField0_ & 0x00000001) != 0)) {
                                         warnings_ = warnings_.getUnmodifiableView();
                              @@ -549,27 +646,33 @@ private Runtime(
                                       makeExtensionsImmutable();
                                     }
                                   }
                              -    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;
                              +
                              +    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;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder.class);
                              +              com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.class,
                              +              com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder.class);
                                   }
                               
                                   public static final int NAME_FIELD_NUMBER = 1;
                                   private volatile java.lang.Object name_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                    * 
                              * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -578,29 +681,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                    * 
                              * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -611,11 +714,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
                                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                    * 
                              * * string display_name = 5; + * * @return The displayName. */ @java.lang.Override @@ -624,29 +730,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
                                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                    * 
                              * * string display_name = 5; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -657,61 +763,80 @@ public java.lang.String getDisplayName() { public static final int STAGE_FIELD_NUMBER = 2; private int stage_; /** + * + * *
                                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                    * 
                              * * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The enum numeric value on the wire for stage. */ - @java.lang.Override public int getStageValue() { + @java.lang.Override + public int getStageValue() { return stage_; } /** + * + * *
                                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                    * 
                              * * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The stage. */ - @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage getStage() { + @java.lang.Override + public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage getStage() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.valueOf(stage_); - return result == null ? com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; + com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage result = + com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.valueOf(stage_); + return result == null + ? com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED + : result; } public static final int WARNINGS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList warnings_; /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_; } /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -719,47 +844,59 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } public static final int ENVIRONMENT_FIELD_NUMBER = 4; private int environment_; /** + * + * *
                                    * The environment for the runtime.
                                    * 
                              * * .google.cloud.functions.v2.Environment environment = 4; + * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override public int getEnvironmentValue() { + @java.lang.Override + public int getEnvironmentValue() { return environment_; } /** + * + * *
                                    * The environment for the runtime.
                                    * 
                              * * .google.cloud.functions.v2.Environment environment = 4; + * * @return The environment. */ - @java.lang.Override public com.google.cloud.functions.v2.Environment getEnvironment() { + @java.lang.Override + public com.google.cloud.functions.v2.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.Environment result = com.google.cloud.functions.v2.Environment.valueOf(environment_); + com.google.cloud.functions.v2.Environment result = + com.google.cloud.functions.v2.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -771,18 +908,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (stage_ != com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.RUNTIME_STAGE_UNSPECIFIED.getNumber()) { + if (stage_ + != com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage + .RUNTIME_STAGE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, stage_); } for (int i = 0; i < warnings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warnings_.getRaw(i)); } - if (environment_ != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (environment_ + != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(4, environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { @@ -800,9 +940,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (stage_ != com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.RUNTIME_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, stage_); + if (stage_ + != com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage + .RUNTIME_STAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stage_); } { int dataSize = 0; @@ -812,9 +954,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getWarningsList().size(); } - if (environment_ != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, environment_); + if (environment_ + != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -827,20 +969,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.ListRuntimesResponse.Runtime)) { return super.equals(obj); } - com.google.cloud.functions.v2.ListRuntimesResponse.Runtime other = (com.google.cloud.functions.v2.ListRuntimesResponse.Runtime) obj; + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime other = + (com.google.cloud.functions.v2.ListRuntimesResponse.Runtime) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (stage_ != other.stage_) return false; - if (!getWarningsList() - .equals(other.getWarningsList())) return false; + if (!getWarningsList().equals(other.getWarningsList())) return false; if (environment_ != other.environment_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -871,87 +1011,94 @@ public int hashCode() { } public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListRuntimesResponse.Runtime parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime 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.ListRuntimesResponse.Runtime parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2.ListRuntimesResponse.Runtime prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -961,6 +1108,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                                    * Describes a runtime and any special information (e.g., deprecation status)
                                    * related to it.
                              @@ -968,21 +1117,24 @@ protected Builder newBuilderForType(
                                    *
                                    * Protobuf type {@code google.cloud.functions.v2.ListRuntimesResponse.Runtime}
                                    */
                              -    public static final class Builder extends
                              -        com.google.protobuf.GeneratedMessageV3.Builder implements
                              +    public static final class Builder
                              +        extends com.google.protobuf.GeneratedMessageV3.Builder
                              +        implements
                                       // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ListRuntimesResponse.Runtime)
                                       com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder {
                              -      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;
                              +      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;
                                     }
                               
                                     @java.lang.Override
                                     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                         internalGetFieldAccessorTable() {
                              -        return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable
                              +        return com.google.cloud.functions.v2.FunctionsProto
                              +            .internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable
                                           .ensureFieldAccessorsInitialized(
                              -                com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder.class);
                              +                com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.class,
                              +                com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder.class);
                                     }
                               
                                     // Construct using com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.newBuilder()
                              @@ -990,16 +1142,15 @@ private Builder() {
                                       maybeForceBuilderInitialization();
                                     }
                               
                              -      private Builder(
                              -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                       super(parent);
                                       maybeForceBuilderInitialization();
                                     }
                              +
                                     private void maybeForceBuilderInitialization() {
                              -        if (com.google.protobuf.GeneratedMessageV3
                              -                .alwaysUseFieldBuilders) {
                              -        }
                              +        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                     }
                              +
                                     @java.lang.Override
                                     public Builder clear() {
                                       super.clear();
                              @@ -1017,13 +1168,14 @@ public Builder clear() {
                                     }
                               
                                     @java.lang.Override
                              -      public com.google.protobuf.Descriptors.Descriptor
                              -          getDescriptorForType() {
                              -        return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor;
                              +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +        return com.google.cloud.functions.v2.FunctionsProto
                              +            .internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor;
                                     }
                               
                                     @java.lang.Override
                              -      public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getDefaultInstanceForType() {
                              +      public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime
                              +          getDefaultInstanceForType() {
                                       return com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance();
                                     }
                               
                              @@ -1038,7 +1190,8 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime build() {
                               
                                     @java.lang.Override
                                     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);
                              +        com.google.cloud.functions.v2.ListRuntimesResponse.Runtime result =
                              +            new com.google.cloud.functions.v2.ListRuntimesResponse.Runtime(this);
                                       int from_bitField0_ = bitField0_;
                                       result.name_ = name_;
                                       result.displayName_ = displayName_;
                              @@ -1057,38 +1210,41 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime buildPartial()
                                     public Builder clone() {
                                       return super.clone();
                                     }
                              +
                                     @java.lang.Override
                                     public Builder setField(
                              -          com.google.protobuf.Descriptors.FieldDescriptor field,
                              -          java.lang.Object value) {
                              +          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) {
                              +      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) {
                              +      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) {
                              +          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) {
                              +          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) {
                              -          return mergeFrom((com.google.cloud.functions.v2.ListRuntimesResponse.Runtime)other);
                              +          return mergeFrom((com.google.cloud.functions.v2.ListRuntimesResponse.Runtime) other);
                                       } else {
                                         super.mergeFrom(other);
                                         return this;
                              @@ -1096,7 +1252,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                                     }
                               
                                     public Builder mergeFrom(com.google.cloud.functions.v2.ListRuntimesResponse.Runtime other) {
                              -        if (other == com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance()) return this;
                              +        if (other
                              +            == com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance())
                              +          return this;
                                       if (!other.getName().isEmpty()) {
                                         name_ = other.name_;
                                         onChanged();
                              @@ -1140,7 +1298,8 @@ public Builder mergeFrom(
                                       try {
                                         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                                       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              -          parsedMessage = (com.google.cloud.functions.v2.ListRuntimesResponse.Runtime) e.getUnfinishedMessage();
                              +          parsedMessage =
                              +              (com.google.cloud.functions.v2.ListRuntimesResponse.Runtime) e.getUnfinishedMessage();
                                         throw e.unwrapIOException();
                                       } finally {
                                         if (parsedMessage != null) {
                              @@ -1149,22 +1308,25 @@ public Builder mergeFrom(
                                       }
                                       return this;
                                     }
                              +
                                     private int bitField0_;
                               
                                     private java.lang.Object name_ = "";
                                     /**
                              +       *
                              +       *
                                      * 
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1173,20 +1335,21 @@ public java.lang.String getName() { } } /** + * + * *
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1194,54 +1357,61 @@ public java.lang.String getName() { } } /** + * + * *
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1249,18 +1419,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1269,20 +1441,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1290,54 +1463,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1345,114 +1525,144 @@ public Builder setDisplayNameBytes( private int stage_ = 0; /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The enum numeric value on the wire for stage. */ - @java.lang.Override public int getStageValue() { + @java.lang.Override + public int getStageValue() { return stage_; } /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * * @param value The enum numeric value on the wire for stage to set. * @return This builder for chaining. */ public Builder setStageValue(int value) { - + stage_ = value; onChanged(); return this; } /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The stage. */ @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage getStage() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.valueOf(stage_); - return result == null ? com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; + com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage result = + com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.valueOf(stage_); + return result == null + ? com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED + : result; } /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * * @param value The stage to set. * @return This builder for chaining. */ - public Builder setStage(com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage value) { + public Builder setStage( + com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage value) { if (value == null) { throw new NullPointerException(); } - + stage_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return This builder for chaining. */ public Builder clearStage() { - + stage_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList warnings_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWarningsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_.getUnmodifiableView(); } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -1460,80 +1670,90 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param index The index to set the value at. * @param value The warnings to set. * @return This builder for chaining. */ - public Builder setWarnings( - int index, java.lang.String value) { + public Builder setWarnings(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.set(index, value); onChanged(); return this; } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param value The warnings to add. * @return This builder for chaining. */ - public Builder addWarnings( - java.lang.String value) { + public Builder addWarnings(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.add(value); onChanged(); return this; } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param values The warnings to add. * @return This builder for chaining. */ - public Builder addAllWarnings( - java.lang.Iterable values) { + public Builder addAllWarnings(java.lang.Iterable values) { ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, warnings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); onChanged(); return this; } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @return This builder for chaining. */ public Builder clearWarnings() { @@ -1543,20 +1763,22 @@ public Builder clearWarnings() { return this; } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param value The bytes of the warnings to add. * @return This builder for chaining. */ - public Builder addWarningsBytes( - com.google.protobuf.ByteString value) { + public Builder addWarningsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.add(value); onChanged(); @@ -1565,51 +1787,65 @@ public Builder addWarningsBytes( private int environment_ = 0; /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2.Environment environment = 4; + * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override public int getEnvironmentValue() { + @java.lang.Override + public int getEnvironmentValue() { return environment_; } /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2.Environment environment = 4; + * * @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; onChanged(); return this; } /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2.Environment environment = 4; + * * @return The environment. */ @java.lang.Override public com.google.cloud.functions.v2.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.Environment result = com.google.cloud.functions.v2.Environment.valueOf(environment_); + com.google.cloud.functions.v2.Environment result = + com.google.cloud.functions.v2.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; } /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2.Environment environment = 4; + * * @param value The environment to set. * @return This builder for chaining. */ @@ -1617,25 +1853,29 @@ public Builder setEnvironment(com.google.cloud.functions.v2.Environment value) { if (value == null) { throw new NullPointerException(); } - + environment_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2.Environment environment = 4; + * * @return This builder for chaining. */ public Builder clearEnvironment() { - + environment_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1648,12 +1888,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.ListRuntimesResponse.Runtime) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ListRuntimesResponse.Runtime) - private static final com.google.cloud.functions.v2.ListRuntimesResponse.Runtime DEFAULT_INSTANCE; + private static final com.google.cloud.functions.v2.ListRuntimesResponse.Runtime + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ListRuntimesResponse.Runtime(); } @@ -1662,16 +1903,16 @@ public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Runtime parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Runtime(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Runtime parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Runtime(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1686,12 +1927,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int RUNTIMES_FIELD_NUMBER = 1; private java.util.List runtimes_; /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -1699,10 +1941,13 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getDefaultInst * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override - public java.util.List getRuntimesList() { + public java.util.List + getRuntimesList() { return runtimes_; } /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -1710,11 +1955,14 @@ public java.util.Listrepeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder> getRuntimesOrBuilderList() { return runtimes_; } /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -1726,6 +1974,8 @@ public int getRuntimesCount() { return runtimes_.size(); } /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -1737,6 +1987,8 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getRuntimes(in return runtimes_.get(index); } /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -1750,6 +2002,7 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder getRu } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1761,8 +2014,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < runtimes_.size(); i++) { output.writeMessage(1, runtimes_.get(i)); } @@ -1776,8 +2028,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < runtimes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, runtimes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runtimes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1787,15 +2038,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.ListRuntimesResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2.ListRuntimesResponse other = (com.google.cloud.functions.v2.ListRuntimesResponse) obj; + com.google.cloud.functions.v2.ListRuntimesResponse other = + (com.google.cloud.functions.v2.ListRuntimesResponse) obj; - if (!getRuntimesList() - .equals(other.getRuntimesList())) return false; + if (!getRuntimesList().equals(other.getRuntimesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1817,117 +2068,126 @@ public int hashCode() { } public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListRuntimesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListRuntimesResponse 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.ListRuntimesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.ListRuntimesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.ListRuntimesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListRuntimesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.ListRuntimesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Response for the `ListRuntimes` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.ListRuntimesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ListRuntimesResponse) com.google.cloud.functions.v2.ListRuntimesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.ListRuntimesResponse.class, com.google.cloud.functions.v2.ListRuntimesResponse.Builder.class); + com.google.cloud.functions.v2.ListRuntimesResponse.class, + com.google.cloud.functions.v2.ListRuntimesResponse.Builder.class); } // Construct using com.google.cloud.functions.v2.ListRuntimesResponse.newBuilder() @@ -1935,17 +2195,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRuntimesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1959,9 +2219,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; } @java.lang.Override @@ -1980,7 +2240,8 @@ public com.google.cloud.functions.v2.ListRuntimesResponse build() { @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse buildPartial() { - com.google.cloud.functions.v2.ListRuntimesResponse result = new com.google.cloud.functions.v2.ListRuntimesResponse(this); + com.google.cloud.functions.v2.ListRuntimesResponse result = + new com.google.cloud.functions.v2.ListRuntimesResponse(this); int from_bitField0_ = bitField0_; if (runtimesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1999,38 +2260,39 @@ public com.google.cloud.functions.v2.ListRuntimesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.ListRuntimesResponse)other); + return mergeFrom((com.google.cloud.functions.v2.ListRuntimesResponse) other); } else { super.mergeFrom(other); return this; @@ -2038,7 +2300,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.ListRuntimesResponse other) { - if (other == com.google.cloud.functions.v2.ListRuntimesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.ListRuntimesResponse.getDefaultInstance()) + return this; if (runtimesBuilder_ == null) { if (!other.runtimes_.isEmpty()) { if (runtimes_.isEmpty()) { @@ -2057,9 +2320,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2.ListRuntimesResponse othe runtimesBuilder_ = null; runtimes_ = other.runtimes_; bitField0_ = (bitField0_ & ~0x00000001); - runtimesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRuntimesFieldBuilder() : null; + runtimesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRuntimesFieldBuilder() + : null; } else { runtimesBuilder_.addAllMessages(other.runtimes_); } @@ -2084,7 +2348,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2.ListRuntimesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2.ListRuntimesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2093,28 +2358,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List runtimes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRuntimesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - runtimes_ = new java.util.ArrayList(runtimes_); + runtimes_ = + new java.util.ArrayList( + runtimes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder> runtimesBuilder_; + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime, + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder, + com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder> + runtimesBuilder_; /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ - public java.util.List getRuntimesList() { + public java.util.List + getRuntimesList() { if (runtimesBuilder_ == null) { return java.util.Collections.unmodifiableList(runtimes_); } else { @@ -2122,6 +2397,8 @@ public java.util.List * The runtimes that match the request. *
                              @@ -2136,6 +2413,8 @@ public int getRuntimesCount() { } } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2150,6 +2429,8 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getRuntimes(in } } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2171,6 +2452,8 @@ public Builder setRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2178,7 +2461,8 @@ public Builder setRuntimes( * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder setRuntimes( - int index, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder builderForValue) { + int index, + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.set(index, builderForValue.build()); @@ -2189,6 +2473,8 @@ public Builder setRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2209,6 +2495,8 @@ public Builder addRuntimes(com.google.cloud.functions.v2.ListRuntimesResponse.Ru return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2230,6 +2518,8 @@ public Builder addRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2248,6 +2538,8 @@ public Builder addRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2255,7 +2547,8 @@ public Builder addRuntimes( * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addRuntimes( - int index, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder builderForValue) { + int index, + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.add(index, builderForValue.build()); @@ -2266,6 +2559,8 @@ public Builder addRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2273,11 +2568,11 @@ public Builder addRuntimes( * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addAllRuntimes( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, runtimes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, runtimes_); onChanged(); } else { runtimesBuilder_.addAllMessages(values); @@ -2285,6 +2580,8 @@ public Builder addAllRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2302,6 +2599,8 @@ public Builder clearRuntimes() { return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2319,6 +2618,8 @@ public Builder removeRuntimes(int index) { return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2330,6 +2631,8 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder getRun return getRuntimesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2339,19 +2642,23 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder getRun public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( int index) { if (runtimesBuilder_ == null) { - return runtimes_.get(index); } else { + return runtimes_.get(index); + } else { return runtimesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ - public java.util.List - getRuntimesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder> + getRuntimesOrBuilderList() { if (runtimesBuilder_ != null) { return runtimesBuilder_.getMessageOrBuilderList(); } else { @@ -2359,6 +2666,8 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder getRu } } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2366,10 +2675,13 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder getRu * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder() { - return getRuntimesFieldBuilder().addBuilder( - com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance()); + return getRuntimesFieldBuilder() + .addBuilder( + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance()); } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              @@ -2378,37 +2690,44 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder addRun */ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder( int index) { - return getRuntimesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance()); + return getRuntimesFieldBuilder() + .addBuilder( + index, + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance()); } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ - public java.util.List - getRuntimesBuilderList() { + public java.util.List + getRuntimesBuilderList() { return getRuntimesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder> + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime, + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder, + com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder> getRuntimesFieldBuilder() { if (runtimesBuilder_ == null) { - runtimesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder>( - runtimes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + runtimesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime, + com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder, + com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder>( + runtimes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); runtimes_ = null; } return runtimesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2418,12 +2737,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.ListRuntimesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ListRuntimesResponse) private static final com.google.cloud.functions.v2.ListRuntimesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ListRuntimesResponse(); } @@ -2432,16 +2751,16 @@ public static com.google.cloud.functions.v2.ListRuntimesResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRuntimesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRuntimesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2456,6 +2775,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.ListRuntimesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponseOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponseOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponseOrBuilder.java index cd61221d..c4cf85c8 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponseOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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 ListRuntimesResponseOrBuilder extends +public interface ListRuntimesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.ListRuntimesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ - java.util.List - getRuntimesList(); + java.util.List getRuntimesList(); /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -25,6 +44,8 @@ public interface ListRuntimesResponseOrBuilder extends */ com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getRuntimes(int index); /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -33,15 +54,19 @@ public interface ListRuntimesResponseOrBuilder extends */ int getRuntimesCount(); /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ - java.util.List + java.util.List getRuntimesOrBuilderList(); /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationName.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationName.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java index cc927445..23355e25 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Represents the metadata of the long-running operation.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -29,16 +47,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,90 +75,102 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + target_ = s; + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - statusDetail_ = s; - break; - } - case 48: { - - cancelRequested_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - case 66: { - com.google.protobuf.Any.Builder subBuilder = null; - if (requestResource_ != null) { - subBuilder = requestResource_.toBuilder(); + statusDetail_ = s; + break; } - requestResource_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestResource_); - requestResource_ = subBuilder.buildPartial(); + case 48: + { + cancelRequested_ = input.readBool(); + break; } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + apiVersion_ = s; + break; } - stages_.add( - input.readMessage(com.google.cloud.functions.v2.Stage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 66: + { + com.google.protobuf.Any.Builder subBuilder = null; + if (requestResource_ != null) { + subBuilder = requestResource_.toBuilder(); + } + requestResource_ = + input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestResource_); + requestResource_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stages_.add( + input.readMessage( + com.google.cloud.functions.v2.Stage.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -149,8 +178,7 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stages_ = java.util.Collections.unmodifiableList(stages_); @@ -159,27 +187,33 @@ private OperationMetadata( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.OperationMetadata.class, com.google.cloud.functions.v2.OperationMetadata.Builder.class); + com.google.cloud.functions.v2.OperationMetadata.class, + com.google.cloud.functions.v2.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
                                  * The time the operation was created.
                                  * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -187,11 +221,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
                                  * The time the operation was created.
                                  * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -199,6 +236,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
                                  * The time the operation was created.
                                  * 
                              @@ -213,11 +252,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -225,11 +267,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -237,6 +282,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              @@ -251,11 +298,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
                                  * Server-defined resource path for the target of the operation.
                                  * 
                              * * string target = 3; + * * @return The target. */ @java.lang.Override @@ -264,29 +314,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
                                  * Server-defined resource path for the target of the operation.
                                  * 
                              * * string target = 3; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -297,11 +347,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
                                  * Name of the verb executed by the operation.
                                  * 
                              * * string verb = 4; + * * @return The verb. */ @java.lang.Override @@ -310,29 +363,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
                                  * Name of the verb executed by the operation.
                                  * 
                              * * string verb = 4; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -343,11 +396,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
                                  * Human-readable status of the operation, if any.
                                  * 
                              * * string status_detail = 5; + * * @return The statusDetail. */ @java.lang.Override @@ -356,29 +412,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
                                  * Human-readable status of the operation, if any.
                                  * 
                              * * string status_detail = 5; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -389,6 +445,8 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
                                  * Identifies whether the user has requested cancellation
                                  * of the operation. Operations that have successfully been cancelled
                              @@ -397,6 +455,7 @@ public java.lang.String getStatusDetail() {
                                  * 
                              * * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -407,11 +466,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
                                  * API version used to start the operation.
                                  * 
                              * * string api_version = 7; + * * @return The apiVersion. */ @java.lang.Override @@ -420,29 +482,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
                                  * API version used to start the operation.
                                  * 
                              * * string api_version = 7; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -453,11 +515,14 @@ public java.lang.String getApiVersion() { public static final int REQUEST_RESOURCE_FIELD_NUMBER = 8; private com.google.protobuf.Any requestResource_; /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return Whether the requestResource field is set. */ @java.lang.Override @@ -465,18 +530,25 @@ public boolean hasRequestResource() { return requestResource_ != null; } /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return The requestResource. */ @java.lang.Override public com.google.protobuf.Any getRequestResource() { - return requestResource_ == null ? com.google.protobuf.Any.getDefaultInstance() : requestResource_; + return requestResource_ == null + ? com.google.protobuf.Any.getDefaultInstance() + : requestResource_; } /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              @@ -491,6 +563,8 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { public static final int STAGES_FIELD_NUMBER = 9; private java.util.List stages_; /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -502,6 +576,8 @@ public java.util.List getStagesList() { return stages_; } /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -509,11 +585,13 @@ public java.util.List getStagesList() { * repeated .google.cloud.functions.v2.Stage stages = 9; */ @java.lang.Override - public java.util.List + public java.util.List getStagesOrBuilderList() { return stages_; } /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -525,6 +603,8 @@ public int getStagesCount() { return stages_.size(); } /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -536,6 +616,8 @@ public com.google.cloud.functions.v2.Stage getStages(int index) { return stages_.get(index); } /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -543,12 +625,12 @@ public com.google.cloud.functions.v2.Stage getStages(int index) { * repeated .google.cloud.functions.v2.Stage stages = 9; */ @java.lang.Override - public com.google.cloud.functions.v2.StageOrBuilder getStagesOrBuilder( - int index) { + public com.google.cloud.functions.v2.StageOrBuilder getStagesOrBuilder(int index) { return stages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -560,8 +642,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -599,12 +680,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -616,19 +695,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } if (requestResource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getRequestResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRequestResource()); } for (int i = 0; i < stages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, stages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, stages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -638,40 +714,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.functions.v2.OperationMetadata other = (com.google.cloud.functions.v2.OperationMetadata) obj; + com.google.cloud.functions.v2.OperationMetadata other = + (com.google.cloud.functions.v2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (hasRequestResource() != other.hasRequestResource()) return false; if (hasRequestResource()) { - if (!getRequestResource() - .equals(other.getRequestResource())) return false; + if (!getRequestResource().equals(other.getRequestResource())) return false; } - if (!getStagesList() - .equals(other.getStagesList())) return false; + if (!getStagesList().equals(other.getStagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -698,8 +766,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); if (hasRequestResource()) { @@ -715,118 +782,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.OperationMetadata 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.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Represents the metadata of the long-running operation.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.OperationMetadata) com.google.cloud.functions.v2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.OperationMetadata.class, com.google.cloud.functions.v2.OperationMetadata.Builder.class); + com.google.cloud.functions.v2.OperationMetadata.class, + com.google.cloud.functions.v2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.functions.v2.OperationMetadata.newBuilder() @@ -834,17 +910,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -886,9 +962,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_OperationMetadata_descriptor; } @java.lang.Override @@ -907,7 +983,8 @@ public com.google.cloud.functions.v2.OperationMetadata build() { @java.lang.Override public com.google.cloud.functions.v2.OperationMetadata buildPartial() { - com.google.cloud.functions.v2.OperationMetadata result = new com.google.cloud.functions.v2.OperationMetadata(this); + com.google.cloud.functions.v2.OperationMetadata result = + new com.google.cloud.functions.v2.OperationMetadata(this); int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -946,38 +1023,39 @@ public com.google.cloud.functions.v2.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.OperationMetadata)other); + return mergeFrom((com.google.cloud.functions.v2.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -985,7 +1063,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.OperationMetadata other) { - if (other == com.google.cloud.functions.v2.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1032,9 +1111,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2.OperationMetadata other) stagesBuilder_ = null; stages_ = other.stages_; bitField0_ = (bitField0_ & ~0x00000001); - stagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStagesFieldBuilder() : null; + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStagesFieldBuilder() + : null; } else { stagesBuilder_.addAllMessages(other.stages_); } @@ -1068,38 +1148,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
                                    * The time the operation was created.
                                    * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1120,14 +1214,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              * * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1138,6 +1233,8 @@ public Builder setCreateTime( return this; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1148,7 +1245,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1160,6 +1257,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1178,6 +1277,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1185,11 +1286,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1200,11 +1303,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1212,14 +1318,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1227,24 +1336,33 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1255,6 +1373,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1275,14 +1395,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              * * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1293,6 +1414,8 @@ public Builder setEndTime( return this; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1303,7 +1426,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1315,6 +1438,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1333,6 +1458,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1340,11 +1467,13 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1355,11 +1484,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1367,14 +1497,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1382,18 +1515,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1402,20 +1537,21 @@ public java.lang.String getTarget() { } } /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1423,54 +1559,61 @@ public java.lang.String getTarget() { } } /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1478,18 +1621,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1498,20 +1643,21 @@ public java.lang.String getVerb() { } } /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1519,54 +1665,61 @@ public java.lang.String getVerb() { } } /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1574,18 +1727,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1594,20 +1749,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1615,61 +1771,70 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
                                    * Identifies whether the user has requested cancellation
                                    * of the operation. Operations that have successfully been cancelled
                              @@ -1678,6 +1843,7 @@ public Builder setStatusDetailBytes(
                                    * 
                              * * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -1685,6 +1851,8 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
                                    * Identifies whether the user has requested cancellation
                                    * of the operation. Operations that have successfully been cancelled
                              @@ -1693,16 +1861,19 @@ public boolean getCancelRequested() {
                                    * 
                              * * bool cancel_requested = 6; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
                                    * Identifies whether the user has requested cancellation
                                    * of the operation. Operations that have successfully been cancelled
                              @@ -1711,10 +1882,11 @@ public Builder setCancelRequested(boolean value) {
                                    * 
                              * * bool cancel_requested = 6; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1722,18 +1894,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1742,20 +1916,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1763,54 +1938,61 @@ public java.lang.String getApiVersion() { } } /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; @@ -1818,34 +2000,47 @@ public Builder setApiVersionBytes( private com.google.protobuf.Any requestResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> requestResourceBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + requestResourceBuilder_; /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return Whether the requestResource field is set. */ public boolean hasRequestResource() { return requestResourceBuilder_ != null || requestResource_ != null; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return The requestResource. */ public com.google.protobuf.Any getRequestResource() { if (requestResourceBuilder_ == null) { - return requestResource_ == null ? com.google.protobuf.Any.getDefaultInstance() : requestResource_; + return requestResource_ == null + ? com.google.protobuf.Any.getDefaultInstance() + : requestResource_; } else { return requestResourceBuilder_.getMessage(); } } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1866,14 +2061,15 @@ public Builder setRequestResource(com.google.protobuf.Any value) { return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              * * .google.protobuf.Any request_resource = 8; */ - public Builder setRequestResource( - com.google.protobuf.Any.Builder builderForValue) { + public Builder setRequestResource(com.google.protobuf.Any.Builder builderForValue) { if (requestResourceBuilder_ == null) { requestResource_ = builderForValue.build(); onChanged(); @@ -1884,6 +2080,8 @@ public Builder setRequestResource( return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1894,7 +2092,7 @@ public Builder mergeRequestResource(com.google.protobuf.Any value) { if (requestResourceBuilder_ == null) { if (requestResource_ != null) { requestResource_ = - com.google.protobuf.Any.newBuilder(requestResource_).mergeFrom(value).buildPartial(); + com.google.protobuf.Any.newBuilder(requestResource_).mergeFrom(value).buildPartial(); } else { requestResource_ = value; } @@ -1906,6 +2104,8 @@ public Builder mergeRequestResource(com.google.protobuf.Any value) { return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1924,6 +2124,8 @@ public Builder clearRequestResource() { return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1931,11 +2133,13 @@ public Builder clearRequestResource() { * .google.protobuf.Any request_resource = 8; */ public com.google.protobuf.Any.Builder getRequestResourceBuilder() { - + onChanged(); return getRequestResourceFieldBuilder().getBuilder(); } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1946,11 +2150,14 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { if (requestResourceBuilder_ != null) { return requestResourceBuilder_.getMessageOrBuilder(); } else { - return requestResource_ == null ? - com.google.protobuf.Any.getDefaultInstance() : requestResource_; + return requestResource_ == null + ? com.google.protobuf.Any.getDefaultInstance() + : requestResource_; } } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1958,32 +2165,41 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { * .google.protobuf.Any request_resource = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> getRequestResourceFieldBuilder() { if (requestResourceBuilder_ == null) { - requestResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getRequestResource(), - getParentForChildren(), - isClean()); + requestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder>( + getRequestResource(), getParentForChildren(), isClean()); requestResource_ = null; } return requestResourceBuilder_; } private java.util.List stages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stages_ = new java.util.ArrayList(stages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.Stage, com.google.cloud.functions.v2.Stage.Builder, com.google.cloud.functions.v2.StageOrBuilder> stagesBuilder_; + com.google.cloud.functions.v2.Stage, + com.google.cloud.functions.v2.Stage.Builder, + com.google.cloud.functions.v2.StageOrBuilder> + stagesBuilder_; /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -1998,6 +2214,8 @@ public java.util.List getStagesList() { } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2012,6 +2230,8 @@ public int getStagesCount() { } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2026,14 +2246,15 @@ public com.google.cloud.functions.v2.Stage getStages(int index) { } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2.Stage stages = 9; */ - public Builder setStages( - int index, com.google.cloud.functions.v2.Stage value) { + public Builder setStages(int index, com.google.cloud.functions.v2.Stage value) { if (stagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2047,6 +2268,8 @@ public Builder setStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2065,6 +2288,8 @@ public Builder setStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2085,14 +2310,15 @@ public Builder addStages(com.google.cloud.functions.v2.Stage value) { return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2.Stage stages = 9; */ - public Builder addStages( - int index, com.google.cloud.functions.v2.Stage value) { + public Builder addStages(int index, com.google.cloud.functions.v2.Stage value) { if (stagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2106,14 +2332,15 @@ public Builder addStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2.Stage stages = 9; */ - public Builder addStages( - com.google.cloud.functions.v2.Stage.Builder builderForValue) { + public Builder addStages(com.google.cloud.functions.v2.Stage.Builder builderForValue) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); stages_.add(builderForValue.build()); @@ -2124,6 +2351,8 @@ public Builder addStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2142,6 +2371,8 @@ public Builder addStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2152,8 +2383,7 @@ public Builder addAllStages( java.lang.Iterable values) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stages_); onChanged(); } else { stagesBuilder_.addAllMessages(values); @@ -2161,6 +2391,8 @@ public Builder addAllStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2178,6 +2410,8 @@ public Builder clearStages() { return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2195,39 +2429,44 @@ public Builder removeStages(int index) { return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2.Stage stages = 9; */ - public com.google.cloud.functions.v2.Stage.Builder getStagesBuilder( - int index) { + public com.google.cloud.functions.v2.Stage.Builder getStagesBuilder(int index) { return getStagesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2.Stage stages = 9; */ - public com.google.cloud.functions.v2.StageOrBuilder getStagesOrBuilder( - int index) { + public com.google.cloud.functions.v2.StageOrBuilder getStagesOrBuilder(int index) { if (stagesBuilder_ == null) { - return stages_.get(index); } else { + return stages_.get(index); + } else { return stagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2.Stage stages = 9; */ - public java.util.List - getStagesOrBuilderList() { + public java.util.List + getStagesOrBuilderList() { if (stagesBuilder_ != null) { return stagesBuilder_.getMessageOrBuilderList(); } else { @@ -2235,6 +2474,8 @@ public com.google.cloud.functions.v2.StageOrBuilder getStagesOrBuilder( } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2242,49 +2483,54 @@ public com.google.cloud.functions.v2.StageOrBuilder getStagesOrBuilder( * repeated .google.cloud.functions.v2.Stage stages = 9; */ public com.google.cloud.functions.v2.Stage.Builder addStagesBuilder() { - return getStagesFieldBuilder().addBuilder( - com.google.cloud.functions.v2.Stage.getDefaultInstance()); + return getStagesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2.Stage.getDefaultInstance()); } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2.Stage stages = 9; */ - public com.google.cloud.functions.v2.Stage.Builder addStagesBuilder( - int index) { - return getStagesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2.Stage.getDefaultInstance()); + public com.google.cloud.functions.v2.Stage.Builder addStagesBuilder(int index) { + return getStagesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2.Stage.getDefaultInstance()); } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2.Stage stages = 9; */ - public java.util.List - getStagesBuilderList() { + public java.util.List getStagesBuilderList() { return getStagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.Stage, com.google.cloud.functions.v2.Stage.Builder, com.google.cloud.functions.v2.StageOrBuilder> + com.google.cloud.functions.v2.Stage, + com.google.cloud.functions.v2.Stage.Builder, + com.google.cloud.functions.v2.StageOrBuilder> getStagesFieldBuilder() { if (stagesBuilder_ == null) { - stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.Stage, com.google.cloud.functions.v2.Stage.Builder, com.google.cloud.functions.v2.StageOrBuilder>( - stages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + stagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.Stage, + com.google.cloud.functions.v2.Stage.Builder, + com.google.cloud.functions.v2.StageOrBuilder>( + stages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); stages_ = null; } return stagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2294,12 +2540,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.OperationMetadata) private static final com.google.cloud.functions.v2.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.OperationMetadata(); } @@ -2308,16 +2554,16 @@ public static com.google.cloud.functions.v2.OperationMetadata getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2332,6 +2578,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadataOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadataOrBuilder.java similarity index 80% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadataOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadataOrBuilder.java index b6484ac8..0eb1ed75 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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 OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The time the operation was created.
                                  * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
                                  * The time the operation was created.
                                  * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
                                  * The time the operation was created.
                                  * 
                              @@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              @@ -62,66 +94,83 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
                                  * Server-defined resource path for the target of the operation.
                                  * 
                              * * string target = 3; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
                                  * Server-defined resource path for the target of the operation.
                                  * 
                              * * string target = 3; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
                                  * Name of the verb executed by the operation.
                                  * 
                              * * string verb = 4; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
                                  * Name of the verb executed by the operation.
                                  * 
                              * * string verb = 4; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
                                  * Human-readable status of the operation, if any.
                                  * 
                              * * string status_detail = 5; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
                                  * Human-readable status of the operation, if any.
                                  * 
                              * * string status_detail = 5; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
                                  * Identifies whether the user has requested cancellation
                                  * of the operation. Operations that have successfully been cancelled
                              @@ -130,49 +179,63 @@ public interface OperationMetadataOrBuilder extends
                                  * 
                              * * bool cancel_requested = 6; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
                                  * API version used to start the operation.
                                  * 
                              * * string api_version = 7; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
                                  * API version used to start the operation.
                                  * 
                              * * string api_version = 7; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return Whether the requestResource field is set. */ boolean hasRequestResource(); /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return The requestResource. */ com.google.protobuf.Any getRequestResource(); /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              @@ -182,15 +245,18 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder(); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              * * repeated .google.cloud.functions.v2.Stage stages = 9; */ - java.util.List - getStagesList(); + java.util.List getStagesList(); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -199,6 +265,8 @@ public interface OperationMetadataOrBuilder extends */ com.google.cloud.functions.v2.Stage getStages(int index); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -207,21 +275,23 @@ public interface OperationMetadataOrBuilder extends */ int getStagesCount(); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              * * repeated .google.cloud.functions.v2.Stage stages = 9; */ - java.util.List - getStagesOrBuilderList(); + java.util.List getStagesOrBuilderList(); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              * * repeated .google.cloud.functions.v2.Stage stages = 9; */ - com.google.cloud.functions.v2.StageOrBuilder getStagesOrBuilder( - int index); + com.google.cloud.functions.v2.StageOrBuilder getStagesOrBuilder(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java similarity index 75% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java index a3abef29..9990454c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Location of the source in a Google Cloud Source Repository.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.RepoSource} */ -public final class RepoSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RepoSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.RepoSource) RepoSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RepoSource.newBuilder() to construct. private RepoSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RepoSource() { projectId_ = ""; repoName_ = ""; @@ -27,16 +45,15 @@ private RepoSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RepoSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RepoSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,54 +72,60 @@ private RepoSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - repoName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 3; - revision_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 4; - revision_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 5; - revision_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - dir_ = s; - break; - } - case 56: { + repoName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 3; + revision_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 4; + revision_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 5; + revision_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - invertRegex_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + dir_ = s; + break; + } + case 56: + { + invertRegex_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,36 +133,41 @@ private RepoSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_RepoSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_RepoSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_RepoSource_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_RepoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.RepoSource.class, com.google.cloud.functions.v2.RepoSource.Builder.class); + com.google.cloud.functions.v2.RepoSource.class, + com.google.cloud.functions.v2.RepoSource.Builder.class); } private int revisionCase_ = 0; private java.lang.Object revision_; + public enum RevisionCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BRANCH_NAME(3), TAG_NAME(4), COMMIT_SHA(5), REVISION_NOT_SET(0); private final int value; + private RevisionCase(int value) { this.value = value; } @@ -155,26 +183,32 @@ public static RevisionCase valueOf(int value) { public static RevisionCase forNumber(int value) { switch (value) { - case 3: return BRANCH_NAME; - case 4: return TAG_NAME; - case 5: return COMMIT_SHA; - case 0: return REVISION_NOT_SET; - default: return null; + case 3: + return BRANCH_NAME; + case 4: + return TAG_NAME; + case 5: + return COMMIT_SHA; + case 0: + return REVISION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RevisionCase - getRevisionCase() { - return RevisionCase.forNumber( - revisionCase_); + public RevisionCase getRevisionCase() { + return RevisionCase.forNumber(revisionCase_); } public static final int BRANCH_NAME_FIELD_NUMBER = 3; /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -182,12 +216,15 @@ public int getNumber() {
                                  * 
                              * * string branch_name = 3; + * * @return Whether the branchName field is set. */ public boolean hasBranchName() { return revisionCase_ == 3; } /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -195,6 +232,7 @@ public boolean hasBranchName() {
                                  * 
                              * * string branch_name = 3; + * * @return The branchName. */ public java.lang.String getBranchName() { @@ -205,8 +243,7 @@ public java.lang.String getBranchName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 3) { revision_ = s; @@ -215,6 +252,8 @@ public java.lang.String getBranchName() { } } /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -222,18 +261,17 @@ public java.lang.String getBranchName() {
                                  * 
                              * * string branch_name = 3; + * * @return The bytes for branchName. */ - public com.google.protobuf.ByteString - getBranchNameBytes() { + public com.google.protobuf.ByteString getBranchNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 3) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 3) { revision_ = b; } @@ -245,6 +283,8 @@ public java.lang.String getBranchName() { public static final int TAG_NAME_FIELD_NUMBER = 4; /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -252,12 +292,15 @@ public java.lang.String getBranchName() {
                                  * 
                              * * string tag_name = 4; + * * @return Whether the tagName field is set. */ public boolean hasTagName() { return revisionCase_ == 4; } /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -265,6 +308,7 @@ public boolean hasTagName() {
                                  * 
                              * * string tag_name = 4; + * * @return The tagName. */ public java.lang.String getTagName() { @@ -275,8 +319,7 @@ public java.lang.String getTagName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 4) { revision_ = s; @@ -285,6 +328,8 @@ public java.lang.String getTagName() { } } /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -292,18 +337,17 @@ public java.lang.String getTagName() {
                                  * 
                              * * string tag_name = 4; + * * @return The bytes for tagName. */ - public com.google.protobuf.ByteString - getTagNameBytes() { + public com.google.protobuf.ByteString getTagNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 4) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 4) { revision_ = b; } @@ -315,22 +359,28 @@ public java.lang.String getTagName() { public static final int COMMIT_SHA_FIELD_NUMBER = 5; /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return Whether the commitSha field is set. */ public boolean hasCommitSha() { return revisionCase_ == 5; } /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return The commitSha. */ public java.lang.String getCommitSha() { @@ -341,8 +391,7 @@ public java.lang.String getCommitSha() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 5) { revision_ = s; @@ -351,23 +400,24 @@ public java.lang.String getCommitSha() { } } /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return The bytes for commitSha. */ - public com.google.protobuf.ByteString - getCommitShaBytes() { + public com.google.protobuf.ByteString getCommitShaBytes() { java.lang.Object ref = ""; if (revisionCase_ == 5) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 5) { revision_ = b; } @@ -380,12 +430,15 @@ public java.lang.String getCommitSha() { public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
                                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                                  * project ID requesting the build is assumed.
                                  * 
                              * * string project_id = 1; + * * @return The projectId. */ @java.lang.Override @@ -394,30 +447,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
                                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                                  * project ID requesting the build is assumed.
                                  * 
                              * * string project_id = 1; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -428,11 +481,14 @@ public java.lang.String getProjectId() { public static final int REPO_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object repoName_; /** + * + * *
                                  * Name of the Cloud Source Repository.
                                  * 
                              * * string repo_name = 2; + * * @return The repoName. */ @java.lang.Override @@ -441,29 +497,29 @@ public java.lang.String getRepoName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); repoName_ = s; return s; } } /** + * + * *
                                  * Name of the Cloud Source Repository.
                                  * 
                              * * string repo_name = 2; + * * @return The bytes for repoName. */ @java.lang.Override - public com.google.protobuf.ByteString - getRepoNameBytes() { + public com.google.protobuf.ByteString getRepoNameBytes() { java.lang.Object ref = repoName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); repoName_ = b; return b; } else { @@ -474,6 +530,8 @@ public java.lang.String getRepoName() { public static final int DIR_FIELD_NUMBER = 6; private volatile java.lang.Object dir_; /** + * + * *
                                  * 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
                              @@ -482,6 +540,7 @@ public java.lang.String getRepoName() {
                                  * 
                              * * string dir = 6; + * * @return The dir. */ @java.lang.Override @@ -490,14 +549,15 @@ public java.lang.String getDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dir_ = s; return s; } } /** + * + * *
                                  * 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
                              @@ -506,16 +566,15 @@ public java.lang.String getDir() {
                                  * 
                              * * string dir = 6; + * * @return The bytes for dir. */ @java.lang.Override - public com.google.protobuf.ByteString - getDirBytes() { + public com.google.protobuf.ByteString getDirBytes() { java.lang.Object ref = dir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dir_ = b; return b; } else { @@ -526,12 +585,15 @@ public java.lang.String getDir() { public static final int INVERT_REGEX_FIELD_NUMBER = 7; private boolean invertRegex_; /** + * + * *
                                  * Only trigger a build if the revision regex does NOT match the revision
                                  * regex.
                                  * 
                              * * bool invert_regex = 7; + * * @return The invertRegex. */ @java.lang.Override @@ -540,6 +602,7 @@ public boolean getInvertRegex() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -551,8 +614,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -602,8 +664,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dir_); } if (invertRegex_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, invertRegex_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, invertRegex_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -613,34 +674,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.RepoSource)) { return super.equals(obj); } com.google.cloud.functions.v2.RepoSource other = (com.google.cloud.functions.v2.RepoSource) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRepoName() - .equals(other.getRepoName())) return false; - if (!getDir() - .equals(other.getDir())) return false; - if (getInvertRegex() - != other.getInvertRegex()) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRepoName().equals(other.getRepoName())) return false; + if (!getDir().equals(other.getDir())) return false; + if (getInvertRegex() != other.getInvertRegex()) return false; if (!getRevisionCase().equals(other.getRevisionCase())) return false; switch (revisionCase_) { case 3: - if (!getBranchName() - .equals(other.getBranchName())) return false; + if (!getBranchName().equals(other.getBranchName())) return false; break; case 4: - if (!getTagName() - .equals(other.getTagName())) return false; + if (!getTagName().equals(other.getTagName())) return false; break; case 5: - if (!getCommitSha() - .equals(other.getCommitSha())) return false; + if (!getCommitSha().equals(other.getCommitSha())) return false; break; case 0: default: @@ -663,8 +717,7 @@ public int hashCode() { hash = (37 * hash) + DIR_FIELD_NUMBER; hash = (53 * hash) + getDir().hashCode(); hash = (37 * hash) + INVERT_REGEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInvertRegex()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInvertRegex()); switch (revisionCase_) { case 3: hash = (37 * hash) + BRANCH_NAME_FIELD_NUMBER; @@ -686,118 +739,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2.RepoSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2.RepoSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.RepoSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.RepoSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.RepoSource 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.RepoSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.RepoSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2.RepoSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.RepoSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.RepoSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.RepoSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.RepoSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.RepoSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.RepoSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.RepoSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Location of the source in a Google Cloud Source Repository.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.RepoSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.RepoSource) com.google.cloud.functions.v2.RepoSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_RepoSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_RepoSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_RepoSource_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_RepoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.RepoSource.class, com.google.cloud.functions.v2.RepoSource.Builder.class); + com.google.cloud.functions.v2.RepoSource.class, + com.google.cloud.functions.v2.RepoSource.Builder.class); } // Construct using com.google.cloud.functions.v2.RepoSource.newBuilder() @@ -805,16 +867,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -832,9 +893,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_RepoSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_RepoSource_descriptor; } @java.lang.Override @@ -853,7 +914,8 @@ public com.google.cloud.functions.v2.RepoSource build() { @java.lang.Override public com.google.cloud.functions.v2.RepoSource buildPartial() { - com.google.cloud.functions.v2.RepoSource result = new com.google.cloud.functions.v2.RepoSource(this); + com.google.cloud.functions.v2.RepoSource result = + new com.google.cloud.functions.v2.RepoSource(this); if (revisionCase_ == 3) { result.revision_ = revision_; } @@ -876,38 +938,39 @@ public com.google.cloud.functions.v2.RepoSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.RepoSource)other); + return mergeFrom((com.google.cloud.functions.v2.RepoSource) other); } else { super.mergeFrom(other); return this; @@ -932,27 +995,31 @@ public Builder mergeFrom(com.google.cloud.functions.v2.RepoSource other) { setInvertRegex(other.getInvertRegex()); } switch (other.getRevisionCase()) { - case BRANCH_NAME: { - revisionCase_ = 3; - revision_ = other.revision_; - onChanged(); - break; - } - case TAG_NAME: { - revisionCase_ = 4; - revision_ = other.revision_; - onChanged(); - break; - } - case COMMIT_SHA: { - revisionCase_ = 5; - revision_ = other.revision_; - onChanged(); - break; - } - case REVISION_NOT_SET: { - break; - } + case BRANCH_NAME: + { + revisionCase_ = 3; + revision_ = other.revision_; + onChanged(); + break; + } + case TAG_NAME: + { + revisionCase_ = 4; + revision_ = other.revision_; + onChanged(); + break; + } + case COMMIT_SHA: + { + revisionCase_ = 5; + revision_ = other.revision_; + onChanged(); + break; + } + case REVISION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -982,12 +1049,12 @@ public Builder mergeFrom( } return this; } + private int revisionCase_ = 0; private java.lang.Object revision_; - public RevisionCase - getRevisionCase() { - return RevisionCase.forNumber( - revisionCase_); + + public RevisionCase getRevisionCase() { + return RevisionCase.forNumber(revisionCase_); } public Builder clearRevision() { @@ -997,8 +1064,9 @@ public Builder clearRevision() { return this; } - /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1006,6 +1074,7 @@ public Builder clearRevision() {
                                    * 
                              * * string branch_name = 3; + * * @return Whether the branchName field is set. */ @java.lang.Override @@ -1013,6 +1082,8 @@ public boolean hasBranchName() { return revisionCase_ == 3; } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1020,6 +1091,7 @@ public boolean hasBranchName() {
                                    * 
                              * * string branch_name = 3; + * * @return The branchName. */ @java.lang.Override @@ -1029,8 +1101,7 @@ public java.lang.String getBranchName() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 3) { revision_ = s; @@ -1041,6 +1112,8 @@ public java.lang.String getBranchName() { } } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1048,19 +1121,18 @@ public java.lang.String getBranchName() {
                                    * 
                              * * string branch_name = 3; + * * @return The bytes for branchName. */ @java.lang.Override - public com.google.protobuf.ByteString - getBranchNameBytes() { + public com.google.protobuf.ByteString getBranchNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 3) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 3) { revision_ = b; } @@ -1070,6 +1142,8 @@ public java.lang.String getBranchName() { } } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1077,20 +1151,22 @@ public java.lang.String getBranchName() {
                                    * 
                              * * string branch_name = 3; + * * @param value The branchName to set. * @return This builder for chaining. */ - public Builder setBranchName( - java.lang.String value) { + public Builder setBranchName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 3; + throw new NullPointerException(); + } + revisionCase_ = 3; revision_ = value; onChanged(); return this; } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1098,6 +1174,7 @@ public Builder setBranchName(
                                    * 
                              * * string branch_name = 3; + * * @return This builder for chaining. */ public Builder clearBranchName() { @@ -1109,6 +1186,8 @@ public Builder clearBranchName() { return this; } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1116,15 +1195,15 @@ public Builder clearBranchName() {
                                    * 
                              * * string branch_name = 3; + * * @param value The bytes for branchName to set. * @return This builder for chaining. */ - public Builder setBranchNameBytes( - com.google.protobuf.ByteString value) { + public Builder setBranchNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 3; revision_ = value; onChanged(); @@ -1132,6 +1211,8 @@ public Builder setBranchNameBytes( } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1139,6 +1220,7 @@ public Builder setBranchNameBytes(
                                    * 
                              * * string tag_name = 4; + * * @return Whether the tagName field is set. */ @java.lang.Override @@ -1146,6 +1228,8 @@ public boolean hasTagName() { return revisionCase_ == 4; } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1153,6 +1237,7 @@ public boolean hasTagName() {
                                    * 
                              * * string tag_name = 4; + * * @return The tagName. */ @java.lang.Override @@ -1162,8 +1247,7 @@ public java.lang.String getTagName() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 4) { revision_ = s; @@ -1174,6 +1258,8 @@ public java.lang.String getTagName() { } } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1181,19 +1267,18 @@ public java.lang.String getTagName() {
                                    * 
                              * * string tag_name = 4; + * * @return The bytes for tagName. */ @java.lang.Override - public com.google.protobuf.ByteString - getTagNameBytes() { + public com.google.protobuf.ByteString getTagNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 4) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 4) { revision_ = b; } @@ -1203,6 +1288,8 @@ public java.lang.String getTagName() { } } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1210,20 +1297,22 @@ public java.lang.String getTagName() {
                                    * 
                              * * string tag_name = 4; + * * @param value The tagName to set. * @return This builder for chaining. */ - public Builder setTagName( - java.lang.String value) { + public Builder setTagName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 4; + throw new NullPointerException(); + } + revisionCase_ = 4; revision_ = value; onChanged(); return this; } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1231,6 +1320,7 @@ public Builder setTagName(
                                    * 
                              * * string tag_name = 4; + * * @return This builder for chaining. */ public Builder clearTagName() { @@ -1242,6 +1332,8 @@ public Builder clearTagName() { return this; } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1249,15 +1341,15 @@ public Builder clearTagName() {
                                    * 
                              * * string tag_name = 4; + * * @param value The bytes for tagName to set. * @return This builder for chaining. */ - public Builder setTagNameBytes( - com.google.protobuf.ByteString value) { + public Builder setTagNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 4; revision_ = value; onChanged(); @@ -1265,11 +1357,14 @@ public Builder setTagNameBytes( } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @return Whether the commitSha field is set. */ @java.lang.Override @@ -1277,11 +1372,14 @@ public boolean hasCommitSha() { return revisionCase_ == 5; } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @return The commitSha. */ @java.lang.Override @@ -1291,8 +1389,7 @@ public java.lang.String getCommitSha() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 5) { revision_ = s; @@ -1303,24 +1400,25 @@ public java.lang.String getCommitSha() { } } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @return The bytes for commitSha. */ @java.lang.Override - public com.google.protobuf.ByteString - getCommitShaBytes() { + public com.google.protobuf.ByteString getCommitShaBytes() { java.lang.Object ref = ""; if (revisionCase_ == 5) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 5) { revision_ = b; } @@ -1330,30 +1428,35 @@ public java.lang.String getCommitSha() { } } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @param value The commitSha to set. * @return This builder for chaining. */ - public Builder setCommitSha( - java.lang.String value) { + public Builder setCommitSha(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 5; + throw new NullPointerException(); + } + revisionCase_ = 5; revision_ = value; onChanged(); return this; } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @return This builder for chaining. */ public Builder clearCommitSha() { @@ -1365,20 +1468,22 @@ public Builder clearCommitSha() { return this; } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @param value The bytes for commitSha to set. * @return This builder for chaining. */ - public Builder setCommitShaBytes( - com.google.protobuf.ByteString value) { + public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 5; revision_ = value; onChanged(); @@ -1387,19 +1492,21 @@ public Builder setCommitShaBytes( private java.lang.Object projectId_ = ""; /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1408,21 +1515,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1430,57 +1538,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1488,18 +1603,20 @@ public Builder setProjectIdBytes( private java.lang.Object repoName_ = ""; /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @return The repoName. */ public java.lang.String getRepoName() { java.lang.Object ref = repoName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); repoName_ = s; return s; @@ -1508,20 +1625,21 @@ public java.lang.String getRepoName() { } } /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @return The bytes for repoName. */ - public com.google.protobuf.ByteString - getRepoNameBytes() { + public com.google.protobuf.ByteString getRepoNameBytes() { java.lang.Object ref = repoName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); repoName_ = b; return b; } else { @@ -1529,54 +1647,61 @@ public java.lang.String getRepoName() { } } /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @param value The repoName to set. * @return This builder for chaining. */ - public Builder setRepoName( - java.lang.String value) { + public Builder setRepoName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + repoName_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @return This builder for chaining. */ public Builder clearRepoName() { - + repoName_ = getDefaultInstance().getRepoName(); onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @param value The bytes for repoName to set. * @return This builder for chaining. */ - public Builder setRepoNameBytes( - com.google.protobuf.ByteString value) { + public Builder setRepoNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repoName_ = value; onChanged(); return this; @@ -1584,6 +1709,8 @@ public Builder setRepoNameBytes( private java.lang.Object dir_ = ""; /** + * + * *
                                    * 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
                              @@ -1592,13 +1719,13 @@ public Builder setRepoNameBytes(
                                    * 
                              * * string dir = 6; + * * @return The dir. */ public java.lang.String getDir() { java.lang.Object ref = dir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dir_ = s; return s; @@ -1607,6 +1734,8 @@ 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
                              @@ -1615,15 +1744,14 @@ public java.lang.String getDir() {
                                    * 
                              * * string dir = 6; + * * @return The bytes for dir. */ - public com.google.protobuf.ByteString - getDirBytes() { + public com.google.protobuf.ByteString getDirBytes() { java.lang.Object ref = dir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dir_ = b; return b; } else { @@ -1631,6 +1759,8 @@ 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
                              @@ -1639,20 +1769,22 @@ public java.lang.String getDir() {
                                    * 
                              * * string dir = 6; + * * @param value The dir to set. * @return This builder for chaining. */ - public Builder setDir( - java.lang.String value) { + public Builder setDir(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dir_ = value; onChanged(); return this; } /** + * + * *
                                    * 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
                              @@ -1661,15 +1793,18 @@ public Builder setDir(
                                    * 
                              * * string dir = 6; + * * @return This builder for chaining. */ public Builder clearDir() { - + dir_ = getDefaultInstance().getDir(); onChanged(); return this; } /** + * + * *
                                    * 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
                              @@ -1678,29 +1813,32 @@ public Builder clearDir() {
                                    * 
                              * * string dir = 6; + * * @param value The bytes for dir to set. * @return This builder for chaining. */ - public Builder setDirBytes( - com.google.protobuf.ByteString value) { + public Builder setDirBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dir_ = value; onChanged(); return this; } - private boolean invertRegex_ ; + private boolean invertRegex_; /** + * + * *
                                    * Only trigger a build if the revision regex does NOT match the revision
                                    * regex.
                                    * 
                              * * bool invert_regex = 7; + * * @return The invertRegex. */ @java.lang.Override @@ -1708,39 +1846,45 @@ public boolean getInvertRegex() { return invertRegex_; } /** + * + * *
                                    * Only trigger a build if the revision regex does NOT match the revision
                                    * regex.
                                    * 
                              * * bool invert_regex = 7; + * * @param value The invertRegex to set. * @return This builder for chaining. */ public Builder setInvertRegex(boolean value) { - + invertRegex_ = value; onChanged(); return this; } /** + * + * *
                                    * Only trigger a build if the revision regex does NOT match the revision
                                    * regex.
                                    * 
                              * * bool invert_regex = 7; + * * @return This builder for chaining. */ public Builder clearInvertRegex() { - + invertRegex_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1750,12 +1894,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.RepoSource) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.RepoSource) private static final com.google.cloud.functions.v2.RepoSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.RepoSource(); } @@ -1764,16 +1908,16 @@ public static com.google.cloud.functions.v2.RepoSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepoSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RepoSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepoSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RepoSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1788,6 +1932,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.RepoSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java similarity index 79% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java index 5c1ebab5..efda836b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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 RepoSourceOrBuilder extends +public interface RepoSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.RepoSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -15,10 +33,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string branch_name = 3; + * * @return Whether the branchName field is set. */ boolean hasBranchName(); /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -26,10 +47,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string branch_name = 3; + * * @return The branchName. */ java.lang.String getBranchName(); /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -37,12 +61,14 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string branch_name = 3; + * * @return The bytes for branchName. */ - com.google.protobuf.ByteString - getBranchNameBytes(); + com.google.protobuf.ByteString getBranchNameBytes(); /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -50,10 +76,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string tag_name = 4; + * * @return Whether the tagName field is set. */ boolean hasTagName(); /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -61,10 +90,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string tag_name = 4; + * * @return The tagName. */ java.lang.String getTagName(); /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -72,83 +104,103 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string tag_name = 4; + * * @return The bytes for tagName. */ - com.google.protobuf.ByteString - getTagNameBytes(); + com.google.protobuf.ByteString getTagNameBytes(); /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return Whether the commitSha field is set. */ boolean hasCommitSha(); /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return The commitSha. */ java.lang.String getCommitSha(); /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return The bytes for commitSha. */ - com.google.protobuf.ByteString - getCommitShaBytes(); + com.google.protobuf.ByteString getCommitShaBytes(); /** + * + * *
                                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                                  * project ID requesting the build is assumed.
                                  * 
                              * * string project_id = 1; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
                                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                                  * project ID requesting the build is assumed.
                                  * 
                              * * string project_id = 1; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
                                  * Name of the Cloud Source Repository.
                                  * 
                              * * string repo_name = 2; + * * @return The repoName. */ java.lang.String getRepoName(); /** + * + * *
                                  * Name of the Cloud Source Repository.
                                  * 
                              * * string repo_name = 2; + * * @return The bytes for repoName. */ - com.google.protobuf.ByteString - getRepoNameBytes(); + 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
                              @@ -157,10 +209,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string dir = 6; + * * @return The dir. */ 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
                              @@ -169,18 +224,21 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string dir = 6; + * * @return The bytes for dir. */ - com.google.protobuf.ByteString - getDirBytes(); + com.google.protobuf.ByteString getDirBytes(); /** + * + * *
                                  * Only trigger a build if the revision regex does NOT match the revision
                                  * regex.
                                  * 
                              * * bool invert_regex = 7; + * * @return The invertRegex. */ boolean getInvertRegex(); diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java index e0f6217f..1a2e2da6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java @@ -1,9 +1,26 @@ +/* + * 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; /** + * + * *
                                * Configuration for a secret environment variable. It has the information
                                * necessary to fetch the secret value from secret manager and expose it as an
                              @@ -12,15 +29,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2.SecretEnvVar}
                                */
                              -public final class SecretEnvVar extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class SecretEnvVar extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.SecretEnvVar)
                                   SecretEnvVarOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use SecretEnvVar.newBuilder() to construct.
                                 private SecretEnvVar(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private SecretEnvVar() {
                                   key_ = "";
                                   projectId_ = "";
                              @@ -30,16 +48,15 @@ private SecretEnvVar() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new SecretEnvVar();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private SecretEnvVar(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -58,37 +75,41 @@ private SecretEnvVar(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            key_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              key_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            projectId_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              projectId_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            secret_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              secret_ = s;
                              +              break;
                              +            }
                              +          case 34:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            version_ = s;
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              version_ = s;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -96,34 +117,39 @@ private SecretEnvVar(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     this.unknownFields = unknownFields.build();
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretEnvVar_fieldAccessorTable
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_SecretEnvVar_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2.SecretEnvVar.class, com.google.cloud.functions.v2.SecretEnvVar.Builder.class);
                              +            com.google.cloud.functions.v2.SecretEnvVar.class,
                              +            com.google.cloud.functions.v2.SecretEnvVar.Builder.class);
                                 }
                               
                                 public static final int KEY_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object key_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The key. */ @java.lang.Override @@ -132,29 +158,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -165,6 +191,8 @@ public java.lang.String getKey() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** + * + * *
                                  * Project identifier (preferably project number but can also be the
                                  * project ID) of the project that contains the secret. If not set, it is
                              @@ -172,6 +200,7 @@ public java.lang.String getKey() {
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -180,14 +209,15 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
                                  * Project identifier (preferably project number but can also be the
                                  * project ID) of the project that contains the secret. If not set, it is
                              @@ -195,16 +225,15 @@ public java.lang.String getProjectId() {
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -215,11 +244,14 @@ public java.lang.String getProjectId() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ @java.lang.Override @@ -228,29 +260,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -261,6 +293,8 @@ public java.lang.String getSecret() { public static final int VERSION_FIELD_NUMBER = 4; private volatile java.lang.Object version_; /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -269,6 +303,7 @@ public java.lang.String getSecret() {
                                  * 
                              * * string version = 4; + * * @return The version. */ @java.lang.Override @@ -277,14 +312,15 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -293,16 +329,15 @@ public java.lang.String getVersion() {
                                  * 
                              * * string version = 4; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -311,6 +346,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,8 +358,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -365,21 +400,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.SecretEnvVar)) { return super.equals(obj); } - com.google.cloud.functions.v2.SecretEnvVar other = (com.google.cloud.functions.v2.SecretEnvVar) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getSecret() - .equals(other.getSecret())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; + com.google.cloud.functions.v2.SecretEnvVar other = + (com.google.cloud.functions.v2.SecretEnvVar) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getSecret().equals(other.getSecret())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -404,97 +436,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2.SecretEnvVar parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2.SecretEnvVar parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.SecretEnvVar parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SecretEnvVar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.SecretEnvVar 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.SecretEnvVar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.SecretEnvVar parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2.SecretEnvVar parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.SecretEnvVar parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.SecretEnvVar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.SecretEnvVar parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.SecretEnvVar parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.SecretEnvVar parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.SecretEnvVar parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.SecretEnvVar prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Configuration for a secret environment variable. It has the information
                                  * necessary to fetch the secret value from secret manager and expose it as an
                              @@ -503,21 +542,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2.SecretEnvVar}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.SecretEnvVar)
                                     com.google.cloud.functions.v2.SecretEnvVarOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretEnvVar_fieldAccessorTable
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_SecretEnvVar_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2.SecretEnvVar.class, com.google.cloud.functions.v2.SecretEnvVar.Builder.class);
                              +              com.google.cloud.functions.v2.SecretEnvVar.class,
                              +              com.google.cloud.functions.v2.SecretEnvVar.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2.SecretEnvVar.newBuilder()
                              @@ -525,16 +566,15 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              -      }
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -550,9 +590,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -571,7 +611,8 @@ public com.google.cloud.functions.v2.SecretEnvVar build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2.SecretEnvVar buildPartial() {
                              -      com.google.cloud.functions.v2.SecretEnvVar result = new com.google.cloud.functions.v2.SecretEnvVar(this);
                              +      com.google.cloud.functions.v2.SecretEnvVar result =
                              +          new com.google.cloud.functions.v2.SecretEnvVar(this);
                                     result.key_ = key_;
                                     result.projectId_ = projectId_;
                                     result.secret_ = secret_;
                              @@ -584,38 +625,39 @@ public com.google.cloud.functions.v2.SecretEnvVar buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2.SecretEnvVar)other);
                              +        return mergeFrom((com.google.cloud.functions.v2.SecretEnvVar) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -671,18 +713,20 @@ public Builder mergeFrom(
                               
                                   private java.lang.Object key_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -691,20 +735,21 @@ public java.lang.String getKey() { } } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -712,54 +757,61 @@ public java.lang.String getKey() { } } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -767,6 +819,8 @@ public Builder setKeyBytes( private java.lang.Object projectId_ = ""; /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -774,13 +828,13 @@ public Builder setKeyBytes(
                                    * 
                              * * string project_id = 2; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -789,6 +843,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -796,15 +852,14 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -812,6 +867,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -819,20 +876,22 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -840,15 +899,18 @@ public Builder setProjectId(
                                    * 
                              * * string project_id = 2; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -856,16 +918,16 @@ public Builder clearProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -873,18 +935,20 @@ public Builder setProjectIdBytes( private java.lang.Object secret_ = ""; /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -893,20 +957,21 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -914,54 +979,61 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret( - java.lang.String value) { + public Builder setSecret(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes( - com.google.protobuf.ByteString value) { + public Builder setSecretBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; @@ -969,6 +1041,8 @@ public Builder setSecretBytes( private java.lang.Object version_ = ""; /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -977,13 +1051,13 @@ public Builder setSecretBytes(
                                    * 
                              * * string version = 4; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -992,6 +1066,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1000,15 +1076,14 @@ public java.lang.String getVersion() {
                                    * 
                              * * string version = 4; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -1016,6 +1091,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1024,20 +1101,22 @@ public java.lang.String getVersion() {
                                    * 
                              * * string version = 4; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1046,15 +1125,18 @@ public Builder setVersion(
                                    * 
                              * * string version = 4; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1063,23 +1145,23 @@ public Builder clearVersion() {
                                    * 
                              * * string version = 4; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1089,12 +1171,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.SecretEnvVar) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.SecretEnvVar) private static final com.google.cloud.functions.v2.SecretEnvVar DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.SecretEnvVar(); } @@ -1103,16 +1185,16 @@ public static com.google.cloud.functions.v2.SecretEnvVar getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretEnvVar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretEnvVar(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretEnvVar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretEnvVar(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1127,6 +1209,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.SecretEnvVar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVarOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVarOrBuilder.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVarOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVarOrBuilder.java index 4f33bda8..4858ec25 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVarOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVarOrBuilder.java @@ -1,33 +1,56 @@ +/* + * 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 SecretEnvVarOrBuilder extends +public interface SecretEnvVarOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.SecretEnvVar) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
                                  * Project identifier (preferably project number but can also be the
                                  * project ID) of the project that contains the secret. If not set, it is
                              @@ -35,10 +58,13 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
                                  * Project identifier (preferably project number but can also be the
                                  * project ID) of the project that contains the secret. If not set, it is
                              @@ -46,32 +72,39 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ java.lang.String getSecret(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - com.google.protobuf.ByteString - getSecretBytes(); + com.google.protobuf.ByteString getSecretBytes(); /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -80,10 +113,13 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string version = 4; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -92,8 +128,8 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string version = 4; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java similarity index 77% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java index fa3d6a91..fbb3dacf 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java @@ -1,9 +1,26 @@ +/* + * 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; /** + * + * *
                                * Configuration for a secret volume. It has the information necessary to fetch
                                * the secret value from secret manager and make it available as files mounted
                              @@ -12,15 +29,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2.SecretVolume}
                                */
                              -public final class SecretVolume extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class SecretVolume extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.SecretVolume)
                                   SecretVolumeOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use SecretVolume.newBuilder() to construct.
                                 private SecretVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private SecretVolume() {
                                   mountPath_ = "";
                                   projectId_ = "";
                              @@ -30,16 +48,15 @@ private SecretVolume() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new SecretVolume();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private SecretVolume(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -59,40 +76,48 @@ private SecretVolume(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            mountPath_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              mountPath_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            projectId_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              projectId_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            secret_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              versions_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000001;
                              +              secret_ = s;
                              +              break;
                                           }
                              -            versions_.add(
                              -                input.readMessage(com.google.cloud.functions.v2.SecretVolume.SecretVersion.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +          case 34:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                versions_ =
                              +                    new java.util.ArrayList<
                              +                        com.google.cloud.functions.v2.SecretVolume.SecretVersion>();
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              versions_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2.SecretVolume.SecretVersion.parser(),
                              +                      extensionRegistry));
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -100,8 +125,7 @@ private SecretVolume(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000001) != 0)) {
                                       versions_ = java.util.Collections.unmodifiableList(versions_);
                              @@ -110,24 +134,30 @@ private SecretVolume(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_SecretVolume_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_fieldAccessorTable
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_SecretVolume_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2.SecretVolume.class, com.google.cloud.functions.v2.SecretVolume.Builder.class);
                              +            com.google.cloud.functions.v2.SecretVolume.class,
                              +            com.google.cloud.functions.v2.SecretVolume.Builder.class);
                                 }
                               
                              -  public interface SecretVersionOrBuilder extends
                              +  public interface SecretVersionOrBuilder
                              +      extends
                                     // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.SecretVolume.SecretVersion)
                                     com.google.protobuf.MessageOrBuilder {
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferable to use `latest` version with secret volumes as secret value
                              @@ -135,10 +165,13 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferable to use `latest` version with secret volumes as secret value
                              @@ -146,12 +179,14 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -160,10 +195,13 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string path = 2; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -172,27 +210,30 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string path = 2; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); } /** + * + * *
                                  * Configuration for a single version.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.SecretVolume.SecretVersion} */ - public static final class SecretVersion extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SecretVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.SecretVolume.SecretVersion) SecretVersionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SecretVersion.newBuilder() to construct. private SecretVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SecretVersion() { version_ = ""; path_ = ""; @@ -200,16 +241,15 @@ private SecretVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecretVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SecretVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -228,25 +268,27 @@ private SecretVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + version_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - path_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + path_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -254,29 +296,33 @@ private SecretVersion( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; + + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.SecretVolume.SecretVersion.class, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v2.SecretVolume.SecretVersion.class, + com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferable to use `latest` version with secret volumes as secret value
                              @@ -284,6 +330,7 @@ private SecretVersion(
                                    * 
                              * * string version = 1; + * * @return The version. */ @java.lang.Override @@ -292,14 +339,15 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferable to use `latest` version with secret volumes as secret value
                              @@ -307,16 +355,15 @@ public java.lang.String getVersion() {
                                    * 
                              * * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -327,6 +374,8 @@ public java.lang.String getVersion() { public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -335,6 +384,7 @@ public java.lang.String getVersion() {
                                    * 
                              * * string path = 2; + * * @return The path. */ @java.lang.Override @@ -343,14 +393,15 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -359,16 +410,15 @@ public java.lang.String getPath() {
                                    * 
                              * * string path = 2; + * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -377,6 +427,7 @@ public java.lang.String getPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,8 +439,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } @@ -419,17 +469,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.SecretVolume.SecretVersion)) { return super.equals(obj); } - com.google.cloud.functions.v2.SecretVolume.SecretVersion other = (com.google.cloud.functions.v2.SecretVolume.SecretVersion) obj; + com.google.cloud.functions.v2.SecretVolume.SecretVersion other = + (com.google.cloud.functions.v2.SecretVolume.SecretVersion) obj; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getPath() - .equals(other.getPath())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getPath().equals(other.getPath())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -451,87 +500,94 @@ public int hashCode() { } public static com.google.cloud.functions.v2.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SecretVolume.SecretVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion 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.SecretVolume.SecretVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2.SecretVolume.SecretVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.SecretVolume.SecretVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.SecretVolume.SecretVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2.SecretVolume.SecretVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2.SecretVolume.SecretVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -541,27 +597,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                                    * Configuration for a single version.
                                    * 
                              * * Protobuf type {@code google.cloud.functions.v2.SecretVolume.SecretVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.SecretVolume.SecretVersion) com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder { - 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; + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.SecretVolume.SecretVersion.class, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v2.SecretVolume.SecretVersion.class, + com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder.class); } // Construct using com.google.cloud.functions.v2.SecretVolume.SecretVersion.newBuilder() @@ -569,16 +630,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -590,9 +650,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_descriptor; } @java.lang.Override @@ -611,7 +671,8 @@ public com.google.cloud.functions.v2.SecretVolume.SecretVersion build() { @java.lang.Override public com.google.cloud.functions.v2.SecretVolume.SecretVersion buildPartial() { - com.google.cloud.functions.v2.SecretVolume.SecretVersion result = new com.google.cloud.functions.v2.SecretVolume.SecretVersion(this); + com.google.cloud.functions.v2.SecretVolume.SecretVersion result = + new com.google.cloud.functions.v2.SecretVolume.SecretVersion(this); result.version_ = version_; result.path_ = path_; onBuilt(); @@ -622,38 +683,41 @@ public com.google.cloud.functions.v2.SecretVolume.SecretVersion buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.SecretVolume.SecretVersion)other); + return mergeFrom((com.google.cloud.functions.v2.SecretVolume.SecretVersion) other); } else { super.mergeFrom(other); return this; @@ -661,7 +725,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.SecretVolume.SecretVersion other) { - if (other == com.google.cloud.functions.v2.SecretVolume.SecretVersion.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.SecretVolume.SecretVersion.getDefaultInstance()) + return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -689,7 +754,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2.SecretVolume.SecretVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2.SecretVolume.SecretVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -701,6 +767,8 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -708,13 +776,13 @@ public Builder mergeFrom(
                                      * 
                              * * string version = 1; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -723,6 +791,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -730,15 +800,14 @@ public java.lang.String getVersion() {
                                      * 
                              * * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -746,6 +815,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -753,20 +824,22 @@ public java.lang.String getVersion() {
                                      * 
                              * * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -774,15 +847,18 @@ public Builder setVersion(
                                      * 
                              * * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -790,16 +866,16 @@ public Builder clearVersion() {
                                      * 
                              * * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -807,6 +883,8 @@ public Builder setVersionBytes( private java.lang.Object path_ = ""; /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -815,13 +893,13 @@ public Builder setVersionBytes(
                                      * 
                              * * string path = 2; + * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -830,6 +908,8 @@ public java.lang.String getPath() { } } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -838,15 +918,14 @@ public java.lang.String getPath() {
                                      * 
                              * * string path = 2; + * * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -854,6 +933,8 @@ public java.lang.String getPath() { } } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -862,20 +943,22 @@ public java.lang.String getPath() {
                                      * 
                              * * string path = 2; + * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath( - java.lang.String value) { + public Builder setPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -884,15 +967,18 @@ public Builder setPath(
                                      * 
                              * * string path = 2; + * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -901,20 +987,21 @@ public Builder clearPath() {
                                      * 
                              * * string path = 2; + * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { + public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -927,12 +1014,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.SecretVolume.SecretVersion) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.SecretVolume.SecretVersion) private static final com.google.cloud.functions.v2.SecretVolume.SecretVersion DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.SecretVolume.SecretVersion(); } @@ -941,16 +1028,16 @@ public static com.google.cloud.functions.v2.SecretVolume.SecretVersion getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,12 +1052,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.SecretVolume.SecretVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int MOUNT_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object mountPath_; /** + * + * *
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -980,6 +1068,7 @@ public com.google.cloud.functions.v2.SecretVolume.SecretVersion getDefaultInstan
                                  * 
                              * * string mount_path = 1; + * * @return The mountPath. */ @java.lang.Override @@ -988,14 +1077,15 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** + * + * *
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1005,16 +1095,15 @@ public java.lang.String getMountPath() {
                                  * 
                              * * string mount_path = 1; + * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1025,6 +1114,8 @@ public java.lang.String getMountPath() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** + * + * *
                                  * Project identifier (preferably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it is
                              @@ -1032,6 +1123,7 @@ public java.lang.String getMountPath() {
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -1040,14 +1132,15 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
                                  * Project identifier (preferably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it is
                              @@ -1055,16 +1148,15 @@ public java.lang.String getProjectId() {
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1075,11 +1167,14 @@ public java.lang.String getProjectId() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ @java.lang.Override @@ -1088,29 +1183,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -1121,6 +1216,8 @@ public java.lang.String getSecret() { public static final int VERSIONS_FIELD_NUMBER = 4; private java.util.List versions_; /** + * + * *
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1130,10 +1227,13 @@ public java.lang.String getSecret() {
                                  * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
                                  */
                                 @java.lang.Override
                              -  public java.util.List getVersionsList() {
                              +  public java.util.List
                              +      getVersionsList() {
                                   return versions_;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1143,11 +1243,13 @@ public java.util.List
                                  * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
                                  */
                                 @java.lang.Override
                              -  public java.util.List 
                              +  public java.util.List
                                     getVersionsOrBuilderList() {
                                   return versions_;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1161,6 +1263,8 @@ public int getVersionsCount() {
                                   return versions_.size();
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1174,6 +1278,8 @@ public com.google.cloud.functions.v2.SecretVolume.SecretVersion getVersions(int
                                   return versions_.get(index);
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1189,6 +1295,7 @@ public com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder getVers
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -1200,8 +1307,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) {
                                     com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_);
                                   }
                              @@ -1233,8 +1339,7 @@ public int getSerializedSize() {
                                     size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secret_);
                                   }
                                   for (int i = 0; i < versions_.size(); i++) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(4, versions_.get(i));
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, versions_.get(i));
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -1244,21 +1349,18 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2.SecretVolume)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v2.SecretVolume other = (com.google.cloud.functions.v2.SecretVolume) obj;
                              +    com.google.cloud.functions.v2.SecretVolume other =
                              +        (com.google.cloud.functions.v2.SecretVolume) obj;
                               
                              -    if (!getMountPath()
                              -        .equals(other.getMountPath())) return false;
                              -    if (!getProjectId()
                              -        .equals(other.getProjectId())) return false;
                              -    if (!getSecret()
                              -        .equals(other.getSecret())) return false;
                              -    if (!getVersionsList()
                              -        .equals(other.getVersionsList())) return false;
                              +    if (!getMountPath().equals(other.getMountPath())) return false;
                              +    if (!getProjectId().equals(other.getProjectId())) return false;
                              +    if (!getSecret().equals(other.getSecret())) return false;
                              +    if (!getVersionsList().equals(other.getVersionsList())) return false;
                                   if (!unknownFields.equals(other.unknownFields)) return false;
                                   return true;
                                 }
                              @@ -1285,97 +1387,104 @@ public int hashCode() {
                                   return hash;
                                 }
                               
                              -  public static com.google.cloud.functions.v2.SecretVolume parseFrom(
                              -      java.nio.ByteBuffer data)
                              +  public static com.google.cloud.functions.v2.SecretVolume parseFrom(java.nio.ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SecretVolume parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.SecretVolume parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SecretVolume 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.SecretVolume parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SecretVolume parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SecretVolume parseFrom(java.io.InputStream input)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SecretVolume parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2.SecretVolume parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2.SecretVolume parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SecretVolume parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SecretVolume parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SecretVolume parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              +
                                 public static Builder newBuilder(com.google.cloud.functions.v2.SecretVolume prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Configuration for a secret volume. It has the information necessary to fetch
                                  * the secret value from secret manager and make it available as files mounted
                              @@ -1384,21 +1493,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2.SecretVolume}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.SecretVolume)
                                     com.google.cloud.functions.v2.SecretVolumeOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_SecretVolume_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_fieldAccessorTable
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_SecretVolume_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2.SecretVolume.class, com.google.cloud.functions.v2.SecretVolume.Builder.class);
                              +              com.google.cloud.functions.v2.SecretVolume.class,
                              +              com.google.cloud.functions.v2.SecretVolume.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2.SecretVolume.newBuilder()
                              @@ -1406,17 +1517,17 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getVersionsFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -1436,9 +1547,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SecretVolume_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_SecretVolume_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -1457,7 +1568,8 @@ public com.google.cloud.functions.v2.SecretVolume build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2.SecretVolume buildPartial() {
                              -      com.google.cloud.functions.v2.SecretVolume result = new com.google.cloud.functions.v2.SecretVolume(this);
                              +      com.google.cloud.functions.v2.SecretVolume result =
                              +          new com.google.cloud.functions.v2.SecretVolume(this);
                                     int from_bitField0_ = bitField0_;
                                     result.mountPath_ = mountPath_;
                                     result.projectId_ = projectId_;
                              @@ -1479,38 +1591,39 @@ public com.google.cloud.functions.v2.SecretVolume buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2.SecretVolume)other);
                              +        return mergeFrom((com.google.cloud.functions.v2.SecretVolume) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1549,9 +1662,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2.SecretVolume other) {
                                           versionsBuilder_ = null;
                                           versions_ = other.versions_;
                                           bitField0_ = (bitField0_ & ~0x00000001);
                              -            versionsBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getVersionsFieldBuilder() : null;
                              +            versionsBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getVersionsFieldBuilder()
                              +                    : null;
                                         } else {
                                           versionsBuilder_.addAllMessages(other.versions_);
                                         }
                              @@ -1585,10 +1699,13 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object mountPath_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1598,13 +1715,13 @@ public Builder mergeFrom(
                                    * 
                              * * string mount_path = 1; + * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -1613,6 +1730,8 @@ public java.lang.String getMountPath() { } } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1622,15 +1741,14 @@ public java.lang.String getMountPath() {
                                    * 
                              * * string mount_path = 1; + * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1638,6 +1756,8 @@ public java.lang.String getMountPath() { } } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1647,20 +1767,22 @@ public java.lang.String getMountPath() {
                                    * 
                              * * string mount_path = 1; + * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath( - java.lang.String value) { + public Builder setMountPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mountPath_ = value; onChanged(); return this; } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1670,15 +1792,18 @@ public Builder setMountPath(
                                    * 
                              * * string mount_path = 1; + * * @return This builder for chaining. */ public Builder clearMountPath() { - + mountPath_ = getDefaultInstance().getMountPath(); onChanged(); return this; } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1688,16 +1813,16 @@ public Builder clearMountPath() {
                                    * 
                              * * string mount_path = 1; + * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes( - com.google.protobuf.ByteString value) { + public Builder setMountPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mountPath_ = value; onChanged(); return this; @@ -1705,6 +1830,8 @@ public Builder setMountPathBytes( private java.lang.Object projectId_ = ""; /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1712,13 +1839,13 @@ public Builder setMountPathBytes(
                                    * 
                              * * string project_id = 2; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1727,6 +1854,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1734,15 +1863,14 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1750,6 +1878,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1757,20 +1887,22 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1778,15 +1910,18 @@ public Builder setProjectId(
                                    * 
                              * * string project_id = 2; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1794,16 +1929,16 @@ public Builder clearProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1811,18 +1946,20 @@ public Builder setProjectIdBytes( private java.lang.Object secret_ = ""; /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -1831,20 +1968,21 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -1852,72 +1990,87 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret( - java.lang.String value) { + public Builder setSecret(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes( - com.google.protobuf.ByteString value) { + public Builder setSecretBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; } private java.util.List versions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - versions_ = new java.util.ArrayList(versions_); + versions_ = + new java.util.ArrayList( + versions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.SecretVolume.SecretVersion, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder> versionsBuilder_; + com.google.cloud.functions.v2.SecretVolume.SecretVersion, + com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder, + com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder> + versionsBuilder_; /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -1926,7 +2079,8 @@ private void ensureVersionsIsMutable() {
                                    *
                                    * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
                                    */
                              -    public java.util.List getVersionsList() {
                              +    public java.util.List
                              +        getVersionsList() {
                                     if (versionsBuilder_ == null) {
                                       return java.util.Collections.unmodifiableList(versions_);
                                     } else {
                              @@ -1934,6 +2088,8 @@ public java.util.List
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -1950,6 +2106,8 @@ public int getVersionsCount() {
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -1966,6 +2124,8 @@ public com.google.cloud.functions.v2.SecretVolume.SecretVersion getVersions(int
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -1989,6 +2149,8 @@ public Builder setVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -1998,7 +2160,8 @@ public Builder setVersions(
                                    * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
                                    */
                                   public Builder setVersions(
                              -        int index, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder builderForValue) {
                              +        int index,
                              +        com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder builderForValue) {
                                     if (versionsBuilder_ == null) {
                                       ensureVersionsIsMutable();
                                       versions_.set(index, builderForValue.build());
                              @@ -2009,6 +2172,8 @@ public Builder setVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2031,6 +2196,8 @@ public Builder addVersions(com.google.cloud.functions.v2.SecretVolume.SecretVers
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2054,6 +2221,8 @@ public Builder addVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2074,6 +2243,8 @@ public Builder addVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2083,7 +2254,8 @@ public Builder addVersions(
                                    * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
                                    */
                                   public Builder addVersions(
                              -        int index, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder builderForValue) {
                              +        int index,
                              +        com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder builderForValue) {
                                     if (versionsBuilder_ == null) {
                                       ensureVersionsIsMutable();
                                       versions_.add(index, builderForValue.build());
                              @@ -2094,6 +2266,8 @@ public Builder addVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2103,11 +2277,11 @@ public Builder addVersions(
                                    * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
                                    */
                                   public Builder addAllVersions(
                              -        java.lang.Iterable values) {
                              +        java.lang.Iterable
                              +            values) {
                                     if (versionsBuilder_ == null) {
                                       ensureVersionsIsMutable();
                              -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
                              -            values, versions_);
                              +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versions_);
                                       onChanged();
                                     } else {
                                       versionsBuilder_.addAllMessages(values);
                              @@ -2115,6 +2289,8 @@ public Builder addAllVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2134,6 +2310,8 @@ public Builder clearVersions() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2153,6 +2331,8 @@ public Builder removeVersions(int index) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2166,6 +2346,8 @@ public com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder getVersi
                                     return getVersionsFieldBuilder().getBuilder(index);
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2177,11 +2359,14 @@ public com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder getVersi
                                   public com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(
                                       int index) {
                                     if (versionsBuilder_ == null) {
                              -        return versions_.get(index);  } else {
                              +        return versions_.get(index);
                              +      } else {
                                       return versionsBuilder_.getMessageOrBuilder(index);
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2190,8 +2375,9 @@ public com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder getVers
                                    *
                                    * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
                                    */
                              -    public java.util.List 
                              -         getVersionsOrBuilderList() {
                              +    public java.util.List<
                              +            ? extends com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder>
                              +        getVersionsOrBuilderList() {
                                     if (versionsBuilder_ != null) {
                                       return versionsBuilder_.getMessageOrBuilderList();
                                     } else {
                              @@ -2199,6 +2385,8 @@ public com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder getVers
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2208,10 +2396,13 @@ public com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder getVers
                                    * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
                                    */
                                   public com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder addVersionsBuilder() {
                              -      return getVersionsFieldBuilder().addBuilder(
                              -          com.google.cloud.functions.v2.SecretVolume.SecretVersion.getDefaultInstance());
                              +      return getVersionsFieldBuilder()
                              +          .addBuilder(
                              +              com.google.cloud.functions.v2.SecretVolume.SecretVersion.getDefaultInstance());
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2222,10 +2413,13 @@ public com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder addVersi
                                    */
                                   public com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder addVersionsBuilder(
                                       int index) {
                              -      return getVersionsFieldBuilder().addBuilder(
                              -          index, com.google.cloud.functions.v2.SecretVolume.SecretVersion.getDefaultInstance());
                              +      return getVersionsFieldBuilder()
                              +          .addBuilder(
                              +              index, com.google.cloud.functions.v2.SecretVolume.SecretVersion.getDefaultInstance());
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2234,27 +2428,30 @@ public com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder addVersi
                                    *
                                    * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
                                    */
                              -    public java.util.List 
                              -         getVersionsBuilderList() {
                              +    public java.util.List
                              +        getVersionsBuilderList() {
                                     return getVersionsFieldBuilder().getBuilderList();
                                   }
                              +
                                   private com.google.protobuf.RepeatedFieldBuilderV3<
                              -        com.google.cloud.functions.v2.SecretVolume.SecretVersion, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder> 
                              +            com.google.cloud.functions.v2.SecretVolume.SecretVersion,
                              +            com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder,
                              +            com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder>
                                       getVersionsFieldBuilder() {
                                     if (versionsBuilder_ == null) {
                              -        versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
                              -            com.google.cloud.functions.v2.SecretVolume.SecretVersion, com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder>(
                              -                versions_,
                              -                ((bitField0_ & 0x00000001) != 0),
                              -                getParentForChildren(),
                              -                isClean());
                              +        versionsBuilder_ =
                              +            new com.google.protobuf.RepeatedFieldBuilderV3<
                              +                com.google.cloud.functions.v2.SecretVolume.SecretVersion,
                              +                com.google.cloud.functions.v2.SecretVolume.SecretVersion.Builder,
                              +                com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder>(
                              +                versions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
                                       versions_ = null;
                                     }
                                     return versionsBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -2264,12 +2461,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.SecretVolume)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.SecretVolume)
                                 private static final com.google.cloud.functions.v2.SecretVolume DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2.SecretVolume();
                                 }
                              @@ -2278,16 +2475,16 @@ public static com.google.cloud.functions.v2.SecretVolume getDefaultInstance() {
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public SecretVolume parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new SecretVolume(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public SecretVolume parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new SecretVolume(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -2302,6 +2499,4 @@ public com.google.protobuf.Parser getParserForType() {
                                 public com.google.cloud.functions.v2.SecretVolume getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolumeOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolumeOrBuilder.java
                              similarity index 80%
                              rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolumeOrBuilder.java
                              rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolumeOrBuilder.java
                              index 50857c3a..4a94e20c 100644
                              --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolumeOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolumeOrBuilder.java
                              @@ -1,13 +1,31 @@
                              +/*
                              + * 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 SecretVolumeOrBuilder extends
                              +public interface SecretVolumeOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.SecretVolume)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -17,10 +35,13 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string mount_path = 1; + * * @return The mountPath. */ java.lang.String getMountPath(); /** + * + * *
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -30,12 +51,14 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string mount_path = 1; + * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString - getMountPathBytes(); + com.google.protobuf.ByteString getMountPathBytes(); /** + * + * *
                                  * Project identifier (preferably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it is
                              @@ -43,10 +66,13 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
                                  * Project identifier (preferably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it is
                              @@ -54,32 +80,39 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ java.lang.String getSecret(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - com.google.protobuf.ByteString - getSecretBytes(); + com.google.protobuf.ByteString getSecretBytes(); /** + * + * *
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -88,9 +121,10 @@ public interface SecretVolumeOrBuilder extends
                                  *
                                  * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
                                  */
                              -  java.util.List 
                              -      getVersionsList();
                              +  java.util.List getVersionsList();
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -101,6 +135,8 @@ public interface SecretVolumeOrBuilder extends
                                  */
                                 com.google.cloud.functions.v2.SecretVolume.SecretVersion getVersions(int index);
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -111,6 +147,8 @@ public interface SecretVolumeOrBuilder extends
                                  */
                                 int getVersionsCount();
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -119,9 +157,11 @@ public interface SecretVolumeOrBuilder extends
                                  *
                                  * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
                                  */
                              -  java.util.List 
                              +  java.util.List
                                     getVersionsOrBuilderList();
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -130,6 +170,5 @@ public interface SecretVolumeOrBuilder extends
                                  *
                                  * repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
                                  */
                              -  com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(
                              -      int index);
                              +  com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(int index);
                               }
                              diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java
                              similarity index 74%
                              rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java
                              rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java
                              index f62953ac..22553026 100644
                              --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java
                              +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java
                              @@ -1,9 +1,26 @@
                              +/*
                              + * 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;
                               
                               /**
                              + *
                              + *
                                * 
                                * Describes the Service being deployed.
                                * Currently Supported : Cloud Run (fully managed).
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2.ServiceConfig}
                                */
                              -public final class ServiceConfig extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class ServiceConfig extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ServiceConfig)
                                   ServiceConfigOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use ServiceConfig.newBuilder() to construct.
                                 private ServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private ServiceConfig() {
                                   service_ = "";
                                   availableMemory_ = "";
                              @@ -35,16 +53,15 @@ private ServiceConfig() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new ServiceConfig();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private ServiceConfig(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -64,112 +81,131 @@ private ServiceConfig(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            service_ = s;
                              -            break;
                              -          }
                              -          case 16: {
                              -
                              -            timeoutSeconds_ = input.readInt32();
                              -            break;
                              -          }
                              -          case 34: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              environmentVariables_ = com.google.protobuf.MapField.newMapField(
                              -                  EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              -              mutable_bitField0_ |= 0x00000001;
                              +              service_ = s;
                              +              break;
                                           }
                              -            com.google.protobuf.MapEntry
                              -            environmentVariables__ = input.readMessage(
                              -                EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              -            environmentVariables_.getMutableMap().put(
                              -                environmentVariables__.getKey(), environmentVariables__.getValue());
                              -            break;
                              -          }
                              -          case 40: {
                              -
                              -            maxInstanceCount_ = input.readInt32();
                              -            break;
                              -          }
                              -          case 50: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            vpcConnector_ = s;
                              -            break;
                              -          }
                              -          case 56: {
                              -            int rawValue = input.readEnum();
                              -
                              -            vpcConnectorEgressSettings_ = rawValue;
                              -            break;
                              -          }
                              -          case 64: {
                              -            int rawValue = input.readEnum();
                              +          case 16:
                              +            {
                              +              timeoutSeconds_ = input.readInt32();
                              +              break;
                              +            }
                              +          case 34:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                environmentVariables_ =
                              +                    com.google.protobuf.MapField.newMapField(
                              +                        EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              com.google.protobuf.MapEntry
                              +                  environmentVariables__ =
                              +                      input.readMessage(
                              +                          EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
                              +                          extensionRegistry);
                              +              environmentVariables_
                              +                  .getMutableMap()
                              +                  .put(environmentVariables__.getKey(), environmentVariables__.getValue());
                              +              break;
                              +            }
                              +          case 40:
                              +            {
                              +              maxInstanceCount_ = input.readInt32();
                              +              break;
                              +            }
                              +          case 50:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            ingressSettings_ = rawValue;
                              -            break;
                              -          }
                              -          case 74: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              vpcConnector_ = s;
                              +              break;
                              +            }
                              +          case 56:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            uri_ = s;
                              -            break;
                              -          }
                              -          case 82: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              vpcConnectorEgressSettings_ = rawValue;
                              +              break;
                              +            }
                              +          case 64:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            serviceAccountEmail_ = s;
                              -            break;
                              -          }
                              -          case 96: {
                              +              ingressSettings_ = rawValue;
                              +              break;
                              +            }
                              +          case 74:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            minInstanceCount_ = input.readInt32();
                              -            break;
                              -          }
                              -          case 106: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              uri_ = s;
                              +              break;
                              +            }
                              +          case 82:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            availableMemory_ = s;
                              -            break;
                              -          }
                              -          case 128: {
                              +              serviceAccountEmail_ = s;
                              +              break;
                              +            }
                              +          case 96:
                              +            {
                              +              minInstanceCount_ = input.readInt32();
                              +              break;
                              +            }
                              +          case 106:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            allTrafficOnLatestRevision_ = input.readBool();
                              -            break;
                              -          }
                              -          case 138: {
                              -            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              -              secretEnvironmentVariables_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000002;
                              +              availableMemory_ = s;
                              +              break;
                                           }
                              -            secretEnvironmentVariables_.add(
                              -                input.readMessage(com.google.cloud.functions.v2.SecretEnvVar.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          case 146: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 128:
                              +            {
                              +              allTrafficOnLatestRevision_ = input.readBool();
                              +              break;
                              +            }
                              +          case 138:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              +                secretEnvironmentVariables_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000002;
                              +              }
                              +              secretEnvironmentVariables_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2.SecretEnvVar.parser(), extensionRegistry));
                              +              break;
                              +            }
                              +          case 146:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            revision_ = s;
                              -            break;
                              -          }
                              -          case 154: {
                              -            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                              -              secretVolumes_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000004;
                              +              revision_ = s;
                              +              break;
                                           }
                              -            secretVolumes_.add(
                              -                input.readMessage(com.google.cloud.functions.v2.SecretVolume.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +          case 154:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                              +                secretVolumes_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000004;
                              +              }
                              +              secretVolumes_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2.SecretVolume.parser(), extensionRegistry));
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -177,11 +213,11 @@ private ServiceConfig(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000002) != 0)) {
                              -        secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                              +        secretEnvironmentVariables_ =
                              +            java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                                     }
                                     if (((mutable_bitField0_ & 0x00000004) != 0)) {
                                       secretVolumes_ = java.util.Collections.unmodifiableList(secretVolumes_);
                              @@ -190,32 +226,36 @@ private ServiceConfig(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ServiceConfig_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_ServiceConfig_descriptor;
                                 }
                               
                                 @SuppressWarnings({"rawtypes"})
                                 @java.lang.Override
                              -  protected com.google.protobuf.MapField internalGetMapField(
                              -      int number) {
                              +  protected com.google.protobuf.MapField internalGetMapField(int number) {
                                   switch (number) {
                                     case 4:
                                       return internalGetEnvironmentVariables();
                                     default:
                              -        throw new RuntimeException(
                              -            "Invalid map field number: " + number);
                              +        throw new RuntimeException("Invalid map field number: " + number);
                                   }
                                 }
                              +
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ServiceConfig_fieldAccessorTable
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_ServiceConfig_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2.ServiceConfig.class, com.google.cloud.functions.v2.ServiceConfig.Builder.class);
                              +            com.google.cloud.functions.v2.ServiceConfig.class,
                              +            com.google.cloud.functions.v2.ServiceConfig.Builder.class);
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Available egress settings.
                                  * This controls what traffic is diverted through the VPC Access Connector
                              @@ -224,9 +264,10 @@ protected com.google.protobuf.MapField internalGetMapField(
                                  *
                                  * Protobuf enum {@code google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings}
                                  */
                              -  public enum VpcConnectorEgressSettings
                              -      implements com.google.protobuf.ProtocolMessageEnum {
                              +  public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMessageEnum {
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -235,6 +276,8 @@ public enum VpcConnectorEgressSettings */ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED(0), /** + * + * *
                                    * Use the VPC Access Connector only for private IP space from RFC1918.
                                    * 
                              @@ -243,6 +286,8 @@ public enum VpcConnectorEgressSettings */ PRIVATE_RANGES_ONLY(1), /** + * + * *
                                    * Force the use of VPC Access Connector for all egress traffic from the
                                    * function.
                              @@ -255,6 +300,8 @@ public enum VpcConnectorEgressSettings
                                   ;
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -263,6 +310,8 @@ public enum VpcConnectorEgressSettings */ public static final int VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Use the VPC Access Connector only for private IP space from RFC1918.
                                    * 
                              @@ -271,6 +320,8 @@ public enum VpcConnectorEgressSettings */ public static final int PRIVATE_RANGES_ONLY_VALUE = 1; /** + * + * *
                                    * Force the use of VPC Access Connector for all egress traffic from the
                                    * function.
                              @@ -280,7 +331,6 @@ public enum VpcConnectorEgressSettings
                                    */
                                   public static final int ALL_TRAFFIC_VALUE = 2;
                               
                              -
                                   public final int getNumber() {
                                     if (this == UNRECOGNIZED) {
                                       throw new java.lang.IllegalArgumentException(
                              @@ -305,10 +355,14 @@ public static VpcConnectorEgressSettings valueOf(int value) {
                                    */
                                   public static VpcConnectorEgressSettings forNumber(int value) {
                                     switch (value) {
                              -        case 0: return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
                              -        case 1: return PRIVATE_RANGES_ONLY;
                              -        case 2: return ALL_TRAFFIC;
                              -        default: return null;
                              +        case 0:
                              +          return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
                              +        case 1:
                              +          return PRIVATE_RANGES_ONLY;
                              +        case 2:
                              +          return ALL_TRAFFIC;
                              +        default:
                              +          return null;
                                     }
                                   }
                               
                              @@ -316,28 +370,28 @@ public static VpcConnectorEgressSettings forNumber(int value) {
                                       internalGetValueMap() {
                                     return internalValueMap;
                                   }
                              -    private static final com.google.protobuf.Internal.EnumLiteMap<
                              -        VpcConnectorEgressSettings> internalValueMap =
                              -          new com.google.protobuf.Internal.EnumLiteMap() {
                              -            public VpcConnectorEgressSettings findValueByNumber(int number) {
                              -              return VpcConnectorEgressSettings.forNumber(number);
                              -            }
                              -          };
                               
                              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
                              -        getValueDescriptor() {
                              +    private static final com.google.protobuf.Internal.EnumLiteMap
                              +        internalValueMap =
                              +            new com.google.protobuf.Internal.EnumLiteMap() {
                              +              public VpcConnectorEgressSettings findValueByNumber(int number) {
                              +                return VpcConnectorEgressSettings.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() {
                              +
                              +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                                     return getDescriptor();
                                   }
                              -    public static final com.google.protobuf.Descriptors.EnumDescriptor
                              -        getDescriptor() {
                              +
                              +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                                     return com.google.cloud.functions.v2.ServiceConfig.getDescriptor().getEnumTypes().get(0);
                                   }
                               
                              @@ -346,8 +400,7 @@ public VpcConnectorEgressSettings findValueByNumber(int number) {
                                   public static VpcConnectorEgressSettings valueOf(
                                       com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                                     if (desc.getType() != getDescriptor()) {
                              -        throw new java.lang.IllegalArgumentException(
                              -          "EnumValueDescriptor is not for this type.");
                              +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                                     }
                                     if (desc.getIndex() == -1) {
                                       return UNRECOGNIZED;
                              @@ -365,6 +418,8 @@ private VpcConnectorEgressSettings(int value) {
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Available ingress settings.
                                  * This controls what traffic can reach the function.
                              @@ -373,9 +428,10 @@ private VpcConnectorEgressSettings(int value) {
                                  *
                                  * Protobuf enum {@code google.cloud.functions.v2.ServiceConfig.IngressSettings}
                                  */
                              -  public enum IngressSettings
                              -      implements com.google.protobuf.ProtocolMessageEnum {
                              +  public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum {
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -384,6 +440,8 @@ public enum IngressSettings */ INGRESS_SETTINGS_UNSPECIFIED(0), /** + * + * *
                                    * Allow HTTP traffic from public and private sources.
                                    * 
                              @@ -392,6 +450,8 @@ public enum IngressSettings */ ALLOW_ALL(1), /** + * + * *
                                    * Allow HTTP traffic from only private VPC sources.
                                    * 
                              @@ -400,6 +460,8 @@ public enum IngressSettings */ ALLOW_INTERNAL_ONLY(2), /** + * + * *
                                    * Allow HTTP traffic from private VPC sources and through GCLB.
                                    * 
                              @@ -411,6 +473,8 @@ public enum IngressSettings ; /** + * + * *
                                    * Unspecified.
                                    * 
                              @@ -419,6 +483,8 @@ public enum IngressSettings */ public static final int INGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Allow HTTP traffic from public and private sources.
                                    * 
                              @@ -427,6 +493,8 @@ public enum IngressSettings */ public static final int ALLOW_ALL_VALUE = 1; /** + * + * *
                                    * Allow HTTP traffic from only private VPC sources.
                                    * 
                              @@ -435,6 +503,8 @@ public enum IngressSettings */ public static final int ALLOW_INTERNAL_ONLY_VALUE = 2; /** + * + * *
                                    * Allow HTTP traffic from private VPC sources and through GCLB.
                                    * 
                              @@ -443,7 +513,6 @@ public enum IngressSettings */ public static final int ALLOW_INTERNAL_AND_GCLB_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -468,40 +537,44 @@ public static IngressSettings valueOf(int value) { */ public static IngressSettings forNumber(int value) { switch (value) { - case 0: return INGRESS_SETTINGS_UNSPECIFIED; - case 1: return ALLOW_ALL; - case 2: return ALLOW_INTERNAL_ONLY; - case 3: return ALLOW_INTERNAL_AND_GCLB; - default: return null; + case 0: + return INGRESS_SETTINGS_UNSPECIFIED; + case 1: + return ALLOW_ALL; + case 2: + return ALLOW_INTERNAL_ONLY; + case 3: + return ALLOW_INTERNAL_AND_GCLB; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - IngressSettings> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IngressSettings findValueByNumber(int number) { - return IngressSettings.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IngressSettings findValueByNumber(int number) { + return IngressSettings.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2.ServiceConfig.getDescriptor().getEnumTypes().get(1); } @@ -510,8 +583,7 @@ public IngressSettings findValueByNumber(int number) { public static IngressSettings valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -531,13 +603,18 @@ private IngressSettings(int value) { public static final int SERVICE_FIELD_NUMBER = 1; private volatile java.lang.Object service_; /** + * + * *
                                  * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The service. */ @java.lang.Override @@ -546,31 +623,33 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -581,6 +660,8 @@ public java.lang.String getService() { public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 2; private int timeoutSeconds_; /** + * + * *
                                  * The function execution timeout. Execution is considered failed and
                                  * can be terminated if the function is not completed at the end of the
                              @@ -588,6 +669,7 @@ public java.lang.String getService() {
                                  * 
                              * * int32 timeout_seconds = 2; + * * @return The timeoutSeconds. */ @java.lang.Override @@ -598,6 +680,8 @@ public int getTimeoutSeconds() { public static final int AVAILABLE_MEMORY_FIELD_NUMBER = 13; private volatile java.lang.Object availableMemory_; /** + * + * *
                                  * The amount of memory available for a function.
                                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -608,6 +692,7 @@ public int getTimeoutSeconds() {
                                  * 
                              * * string available_memory = 13; + * * @return The availableMemory. */ @java.lang.Override @@ -616,14 +701,15 @@ public java.lang.String getAvailableMemory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availableMemory_ = s; return s; } } /** + * + * *
                                  * The amount of memory available for a function.
                                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -634,16 +720,15 @@ public java.lang.String getAvailableMemory() {
                                  * 
                              * * string available_memory = 13; + * * @return The bytes for availableMemory. */ @java.lang.Override - public com.google.protobuf.ByteString - getAvailableMemoryBytes() { + public com.google.protobuf.ByteString getAvailableMemoryBytes() { java.lang.Object ref = availableMemory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); availableMemory_ = b; return b; } else { @@ -652,21 +737,22 @@ public java.lang.String getAvailableMemory() { } public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 4; + private static final class EnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_ServiceConfig_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -678,28 +764,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 4; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -707,11 +795,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -719,16 +808,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -736,10 +827,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 4; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -751,6 +842,8 @@ public java.lang.String getEnvironmentVariablesOrThrow( public static final int MAX_INSTANCE_COUNT_FIELD_NUMBER = 5; private int maxInstanceCount_; /** + * + * *
                                  * The limit on the maximum number of function instances that may coexist at a
                                  * given time.
                              @@ -765,6 +858,7 @@ public java.lang.String getEnvironmentVariablesOrThrow(
                                  * 
                              * * int32 max_instance_count = 5; + * * @return The maxInstanceCount. */ @java.lang.Override @@ -775,6 +869,8 @@ public int getMaxInstanceCount() { public static final int MIN_INSTANCE_COUNT_FIELD_NUMBER = 12; private int minInstanceCount_; /** + * + * *
                                  * The limit on the minimum number of function instances that may coexist at a
                                  * given time.
                              @@ -787,6 +883,7 @@ public int getMaxInstanceCount() {
                                  * 
                              * * int32 min_instance_count = 12; + * * @return The minInstanceCount. */ @java.lang.Override @@ -797,12 +894,15 @@ public int getMinInstanceCount() { public static final int VPC_CONNECTOR_FIELD_NUMBER = 6; private volatile java.lang.Object vpcConnector_; /** + * + * *
                                  * 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) = { ... } + * * @return The vpcConnector. */ @java.lang.Override @@ -811,30 +911,30 @@ public java.lang.String getVpcConnector() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * * @return The bytes for vpcConnector. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcConnectorBytes() { + public com.google.protobuf.ByteString getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -845,69 +945,100 @@ public java.lang.String getVpcConnector() { public static final int VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER = 7; private int vpcConnectorEgressSettings_; /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override + public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The vpcConnectorEgressSettings. */ - @java.lang.Override public com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { + @java.lang.Override + public com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings + getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings result = com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); - return result == null ? com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings result = + com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.valueOf( + vpcConnectorEgressSettings_); + return result == null + ? com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED + : result; } public static final int INGRESS_SETTINGS_FIELD_NUMBER = 8; private int ingressSettings_; /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override public int getIngressSettingsValue() { + @java.lang.Override + public int getIngressSettingsValue() { return ingressSettings_; } /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * * @return The ingressSettings. */ - @java.lang.Override public com.google.cloud.functions.v2.ServiceConfig.IngressSettings getIngressSettings() { + @java.lang.Override + public com.google.cloud.functions.v2.ServiceConfig.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.ServiceConfig.IngressSettings result = com.google.cloud.functions.v2.ServiceConfig.IngressSettings.valueOf(ingressSettings_); - return result == null ? com.google.cloud.functions.v2.ServiceConfig.IngressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v2.ServiceConfig.IngressSettings result = + com.google.cloud.functions.v2.ServiceConfig.IngressSettings.valueOf(ingressSettings_); + return result == null + ? com.google.cloud.functions.v2.ServiceConfig.IngressSettings.UNRECOGNIZED + : result; } public static final int URI_FIELD_NUMBER = 9; private volatile java.lang.Object uri_; /** + * + * *
                                  * Output only. URI of the Service deployed.
                                  * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ @java.lang.Override @@ -916,29 +1047,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
                                  * Output only. URI of the Service deployed.
                                  * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -949,12 +1080,15 @@ public java.lang.String getUri() { public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 10; private volatile java.lang.Object serviceAccountEmail_; /** + * + * *
                                  * The email of the service's service account. If empty, defaults to
                                  * `{project_number}-compute@developer.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 10; + * * @return The serviceAccountEmail. */ @java.lang.Override @@ -963,30 +1097,30 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** + * + * *
                                  * The email of the service's service account. If empty, defaults to
                                  * `{project_number}-compute@developer.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 10; + * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -997,6 +1131,8 @@ public java.lang.String getServiceAccountEmail() { public static final int ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER = 16; private boolean allTrafficOnLatestRevision_; /** + * + * *
                                  * Whether 100% of traffic is routed to the latest revision.
                                  * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -1006,6 +1142,7 @@ public java.lang.String getServiceAccountEmail() {
                                  * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @return The allTrafficOnLatestRevision. */ @java.lang.Override @@ -1016,56 +1153,72 @@ public boolean getAllTrafficOnLatestRevision() { public static final int SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER = 17; private java.util.List secretEnvironmentVariables_; /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override - public java.util.List getSecretEnvironmentVariablesList() { + public java.util.List + getSecretEnvironmentVariablesList() { return secretEnvironmentVariables_; } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override - public java.util.List + public java.util.List getSecretEnvironmentVariablesOrBuilderList() { return secretEnvironmentVariables_; } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override public int getSecretEnvironmentVariablesCount() { return secretEnvironmentVariables_.size(); } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override public com.google.cloud.functions.v2.SecretEnvVar getSecretEnvironmentVariables(int index) { return secretEnvironmentVariables_.get(index); } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override public com.google.cloud.functions.v2.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( @@ -1076,6 +1229,8 @@ public com.google.cloud.functions.v2.SecretEnvVarOrBuilder getSecretEnvironmentV public static final int SECRET_VOLUMES_FIELD_NUMBER = 19; private java.util.List secretVolumes_; /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1087,6 +1242,8 @@ public java.util.List getSecretVolum return secretVolumes_; } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1094,11 +1251,13 @@ public java.util.List getSecretVolum * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; */ @java.lang.Override - public java.util.List + public java.util.List getSecretVolumesOrBuilderList() { return secretVolumes_; } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1110,6 +1269,8 @@ public int getSecretVolumesCount() { return secretVolumes_.size(); } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1121,6 +1282,8 @@ public com.google.cloud.functions.v2.SecretVolume getSecretVolumes(int index) { return secretVolumes_.get(index); } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1128,19 +1291,21 @@ public com.google.cloud.functions.v2.SecretVolume getSecretVolumes(int index) { * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; */ @java.lang.Override - public com.google.cloud.functions.v2.SecretVolumeOrBuilder getSecretVolumesOrBuilder( - int index) { + public com.google.cloud.functions.v2.SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index) { return secretVolumes_.get(index); } public static final int REVISION_FIELD_NUMBER = 18; private volatile java.lang.Object revision_; /** + * + * *
                                  * Output only. The name of service revision.
                                  * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revision. */ @java.lang.Override @@ -1149,29 +1314,29 @@ public java.lang.String getRevision() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; } } /** + * + * *
                                  * Output only. The name of service revision.
                                  * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revision. */ @java.lang.Override - public com.google.protobuf.ByteString - getRevisionBytes() { + public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revision_ = b; return b; } else { @@ -1180,6 +1345,7 @@ public java.lang.String getRevision() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1191,16 +1357,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } if (timeoutSeconds_ != 0) { output.writeInt32(2, timeoutSeconds_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -1211,10 +1375,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vpcConnector_); } - if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + if (vpcConnectorEgressSettings_ + != com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings + .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { output.writeEnum(7, vpcConnectorEgressSettings_); } - if (ingressSettings_ != com.google.cloud.functions.v2.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + if (ingressSettings_ + != com.google.cloud.functions.v2.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { output.writeEnum(8, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { @@ -1254,33 +1423,34 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } if (timeoutSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, timeoutSeconds_); - } - for (java.util.Map.Entry entry - : internalGetEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, environmentVariables__); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, timeoutSeconds_); + } + for (java.util.Map.Entry entry : + internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry environmentVariables__ = + EnvironmentVariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, environmentVariables__); } if (maxInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, maxInstanceCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxInstanceCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vpcConnector_); } - if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, vpcConnectorEgressSettings_); + if (vpcConnectorEgressSettings_ + != com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings + .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, vpcConnectorEgressSettings_); } - if (ingressSettings_ != com.google.cloud.functions.v2.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, ingressSettings_); + if (ingressSettings_ + != com.google.cloud.functions.v2.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, uri_); @@ -1289,26 +1459,25 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, serviceAccountEmail_); } if (minInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(12, minInstanceCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, minInstanceCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableMemory_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, availableMemory_); } if (allTrafficOnLatestRevision_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, allTrafficOnLatestRevision_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(16, allTrafficOnLatestRevision_); } for (int i = 0; i < secretEnvironmentVariables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, secretEnvironmentVariables_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, secretEnvironmentVariables_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, revision_); } for (int i = 0; i < secretVolumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, secretVolumes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, secretVolumes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1318,41 +1487,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.ServiceConfig)) { return super.equals(obj); } - com.google.cloud.functions.v2.ServiceConfig other = (com.google.cloud.functions.v2.ServiceConfig) obj; - - if (!getService() - .equals(other.getService())) return false; - if (getTimeoutSeconds() - != other.getTimeoutSeconds()) return false; - if (!getAvailableMemory() - .equals(other.getAvailableMemory())) return false; - if (!internalGetEnvironmentVariables().equals( - other.internalGetEnvironmentVariables())) return false; - if (getMaxInstanceCount() - != other.getMaxInstanceCount()) return false; - if (getMinInstanceCount() - != other.getMinInstanceCount()) return false; - if (!getVpcConnector() - .equals(other.getVpcConnector())) return false; + com.google.cloud.functions.v2.ServiceConfig other = + (com.google.cloud.functions.v2.ServiceConfig) obj; + + if (!getService().equals(other.getService())) return false; + if (getTimeoutSeconds() != other.getTimeoutSeconds()) return false; + if (!getAvailableMemory().equals(other.getAvailableMemory())) return false; + if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) + return false; + if (getMaxInstanceCount() != other.getMaxInstanceCount()) return false; + if (getMinInstanceCount() != other.getMinInstanceCount()) return false; + if (!getVpcConnector().equals(other.getVpcConnector())) return false; if (vpcConnectorEgressSettings_ != other.vpcConnectorEgressSettings_) return false; if (ingressSettings_ != other.ingressSettings_) return false; - if (!getUri() - .equals(other.getUri())) return false; - if (!getServiceAccountEmail() - .equals(other.getServiceAccountEmail())) return false; - if (getAllTrafficOnLatestRevision() - != other.getAllTrafficOnLatestRevision()) return false; - if (!getSecretEnvironmentVariablesList() - .equals(other.getSecretEnvironmentVariablesList())) return false; - if (!getSecretVolumesList() - .equals(other.getSecretVolumesList())) return false; - if (!getRevision() - .equals(other.getRevision())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; + if (getAllTrafficOnLatestRevision() != other.getAllTrafficOnLatestRevision()) return false; + if (!getSecretEnvironmentVariablesList().equals(other.getSecretEnvironmentVariablesList())) + return false; + if (!getSecretVolumesList().equals(other.getSecretVolumesList())) return false; + if (!getRevision().equals(other.getRevision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1389,8 +1548,7 @@ public int hashCode() { hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountEmail().hashCode(); hash = (37 * hash) + ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllTrafficOnLatestRevision()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllTrafficOnLatestRevision()); if (getSecretEnvironmentVariablesCount() > 0) { hash = (37 * hash) + SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + getSecretEnvironmentVariablesList().hashCode(); @@ -1406,97 +1564,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2.ServiceConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2.ServiceConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ServiceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ServiceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ServiceConfig 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.ServiceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.ServiceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2.ServiceConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ServiceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.ServiceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.ServiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ServiceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.ServiceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.ServiceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.ServiceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes the Service being deployed.
                                  * Currently Supported : Cloud Run (fully managed).
                              @@ -1504,43 +1669,43 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2.ServiceConfig}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ServiceConfig)
                                     com.google.cloud.functions.v2.ServiceConfigOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ServiceConfig_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_ServiceConfig_descriptor;
                                   }
                               
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMapField(int number) {
                                     switch (number) {
                                       case 4:
                                         return internalGetEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMutableMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
                                     switch (number) {
                                       case 4:
                                         return internalGetMutableEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ServiceConfig_fieldAccessorTable
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_ServiceConfig_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2.ServiceConfig.class, com.google.cloud.functions.v2.ServiceConfig.Builder.class);
                              +              com.google.cloud.functions.v2.ServiceConfig.class,
                              +              com.google.cloud.functions.v2.ServiceConfig.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2.ServiceConfig.newBuilder()
                              @@ -1548,18 +1713,18 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getSecretEnvironmentVariablesFieldBuilder();
                                       getSecretVolumesFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -1604,9 +1769,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_ServiceConfig_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_ServiceConfig_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -1625,7 +1790,8 @@ public com.google.cloud.functions.v2.ServiceConfig build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2.ServiceConfig buildPartial() {
                              -      com.google.cloud.functions.v2.ServiceConfig result = new com.google.cloud.functions.v2.ServiceConfig(this);
                              +      com.google.cloud.functions.v2.ServiceConfig result =
                              +          new com.google.cloud.functions.v2.ServiceConfig(this);
                                     int from_bitField0_ = bitField0_;
                                     result.service_ = service_;
                                     result.timeoutSeconds_ = timeoutSeconds_;
                              @@ -1642,7 +1808,8 @@ public com.google.cloud.functions.v2.ServiceConfig buildPartial() {
                                     result.allTrafficOnLatestRevision_ = allTrafficOnLatestRevision_;
                                     if (secretEnvironmentVariablesBuilder_ == null) {
                                       if (((bitField0_ & 0x00000002) != 0)) {
                              -          secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                              +          secretEnvironmentVariables_ =
                              +              java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                                         bitField0_ = (bitField0_ & ~0x00000002);
                                       }
                                       result.secretEnvironmentVariables_ = secretEnvironmentVariables_;
                              @@ -1667,38 +1834,39 @@ public com.google.cloud.functions.v2.ServiceConfig buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2.ServiceConfig)other);
                              +        return mergeFrom((com.google.cloud.functions.v2.ServiceConfig) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1718,8 +1886,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2.ServiceConfig other) {
                                       availableMemory_ = other.availableMemory_;
                                       onChanged();
                                     }
                              -      internalGetMutableEnvironmentVariables().mergeFrom(
                              -          other.internalGetEnvironmentVariables());
                              +      internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables());
                                     if (other.getMaxInstanceCount() != 0) {
                                       setMaxInstanceCount(other.getMaxInstanceCount());
                                     }
                              @@ -1765,9 +1932,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2.ServiceConfig other) {
                                           secretEnvironmentVariablesBuilder_ = null;
                                           secretEnvironmentVariables_ = other.secretEnvironmentVariables_;
                                           bitField0_ = (bitField0_ & ~0x00000002);
                              -            secretEnvironmentVariablesBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getSecretEnvironmentVariablesFieldBuilder() : null;
                              +            secretEnvironmentVariablesBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getSecretEnvironmentVariablesFieldBuilder()
                              +                    : null;
                                         } else {
                                           secretEnvironmentVariablesBuilder_.addAllMessages(other.secretEnvironmentVariables_);
                                         }
                              @@ -1791,9 +1959,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2.ServiceConfig other) {
                                           secretVolumesBuilder_ = null;
                                           secretVolumes_ = other.secretVolumes_;
                                           bitField0_ = (bitField0_ & ~0x00000004);
                              -            secretVolumesBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getSecretVolumesFieldBuilder() : null;
                              +            secretVolumesBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getSecretVolumesFieldBuilder()
                              +                    : null;
                                         } else {
                                           secretVolumesBuilder_.addAllMessages(other.secretVolumes_);
                                         }
                              @@ -1831,24 +2000,29 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object service_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -1857,22 +2031,25 @@ public java.lang.String getService() { } } /** + * + * *
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for service. */ - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -1880,67 +2057,82 @@ public java.lang.String getService() { } } /** - *
                              +     *
                              +     *
                              +     * 
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService( - java.lang.String value) { + public Builder setService(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + service_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearService() { - + service_ = getDefaultInstance().getService(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; onChanged(); return this; } - private int timeoutSeconds_ ; + private int timeoutSeconds_; /** + * + * *
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -1948,6 +2140,7 @@ public Builder setServiceBytes(
                                    * 
                              * * int32 timeout_seconds = 2; + * * @return The timeoutSeconds. */ @java.lang.Override @@ -1955,6 +2148,8 @@ public int getTimeoutSeconds() { return timeoutSeconds_; } /** + * + * *
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -1962,16 +2157,19 @@ public int getTimeoutSeconds() {
                                    * 
                              * * int32 timeout_seconds = 2; + * * @param value The timeoutSeconds to set. * @return This builder for chaining. */ public Builder setTimeoutSeconds(int value) { - + timeoutSeconds_ = value; onChanged(); return this; } /** + * + * *
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -1979,10 +2177,11 @@ public Builder setTimeoutSeconds(int value) {
                                    * 
                              * * int32 timeout_seconds = 2; + * * @return This builder for chaining. */ public Builder clearTimeoutSeconds() { - + timeoutSeconds_ = 0; onChanged(); return this; @@ -1990,6 +2189,8 @@ public Builder clearTimeoutSeconds() { private java.lang.Object availableMemory_ = ""; /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2000,13 +2201,13 @@ public Builder clearTimeoutSeconds() {
                                    * 
                              * * string available_memory = 13; + * * @return The availableMemory. */ public java.lang.String getAvailableMemory() { java.lang.Object ref = availableMemory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availableMemory_ = s; return s; @@ -2015,6 +2216,8 @@ public java.lang.String getAvailableMemory() { } } /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2025,15 +2228,14 @@ public java.lang.String getAvailableMemory() {
                                    * 
                              * * string available_memory = 13; + * * @return The bytes for availableMemory. */ - public com.google.protobuf.ByteString - getAvailableMemoryBytes() { + public com.google.protobuf.ByteString getAvailableMemoryBytes() { java.lang.Object ref = availableMemory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); availableMemory_ = b; return b; } else { @@ -2041,6 +2243,8 @@ public java.lang.String getAvailableMemory() { } } /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2051,20 +2255,22 @@ public java.lang.String getAvailableMemory() {
                                    * 
                              * * string available_memory = 13; + * * @param value The availableMemory to set. * @return This builder for chaining. */ - public Builder setAvailableMemory( - java.lang.String value) { + public Builder setAvailableMemory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + availableMemory_ = value; onChanged(); return this; } /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2075,15 +2281,18 @@ public Builder setAvailableMemory(
                                    * 
                              * * string available_memory = 13; + * * @return This builder for chaining. */ public Builder clearAvailableMemory() { - + availableMemory_ = getDefaultInstance().getAvailableMemory(); onChanged(); return this; } /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2094,37 +2303,40 @@ public Builder clearAvailableMemory() {
                                    * 
                              * * string available_memory = 13; + * * @param value The bytes for availableMemory to set. * @return This builder for chaining. */ - public Builder setAvailableMemoryBytes( - com.google.protobuf.ByteString value) { + public Builder setAvailableMemoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + availableMemory_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } + private com.google.protobuf.MapField - internalGetMutableEnvironmentVariables() { - onChanged();; + internalGetMutableEnvironmentVariables() { + onChanged(); + ; if (environmentVariables_ == null) { - environmentVariables_ = com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); + environmentVariables_ = + com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); @@ -2136,28 +2348,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 4; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              @@ -2165,11 +2379,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              @@ -2177,16 +2392,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              @@ -2194,10 +2411,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 4; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -2207,69 +2424,69 @@ public java.lang.String getEnvironmentVariablesOrThrow( } public Builder clearEnvironmentVariables() { - internalGetMutableEnvironmentVariables().getMutableMap() - .clear(); + internalGetMutableEnvironmentVariables().getMutableMap().clear(); return this; } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 4; */ - - public Builder removeEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableEnvironmentVariables().getMutableMap() - .remove(key); + public Builder removeEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEnvironmentVariables().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableEnvironmentVariables() { + public java.util.Map getMutableEnvironmentVariables() { return internalGetMutableEnvironmentVariables().getMutableMap(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 4; */ - public Builder putEnvironmentVariables( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putEnvironmentVariables(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableEnvironmentVariables().getMutableMap() - .put(key, value); + internalGetMutableEnvironmentVariables().getMutableMap().put(key, value); return this; } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 4; */ - public Builder putAllEnvironmentVariables( java.util.Map values) { - internalGetMutableEnvironmentVariables().getMutableMap() - .putAll(values); + internalGetMutableEnvironmentVariables().getMutableMap().putAll(values); return this; } - private int maxInstanceCount_ ; + private int maxInstanceCount_; /** + * + * *
                                    * The limit on the maximum number of function instances that may coexist at a
                                    * given time.
                              @@ -2284,6 +2501,7 @@ public Builder putAllEnvironmentVariables(
                                    * 
                              * * int32 max_instance_count = 5; + * * @return The maxInstanceCount. */ @java.lang.Override @@ -2291,6 +2509,8 @@ public int getMaxInstanceCount() { return maxInstanceCount_; } /** + * + * *
                                    * The limit on the maximum number of function instances that may coexist at a
                                    * given time.
                              @@ -2305,16 +2525,19 @@ public int getMaxInstanceCount() {
                                    * 
                              * * int32 max_instance_count = 5; + * * @param value The maxInstanceCount to set. * @return This builder for chaining. */ public Builder setMaxInstanceCount(int value) { - + maxInstanceCount_ = value; onChanged(); return this; } /** + * + * *
                                    * The limit on the maximum number of function instances that may coexist at a
                                    * given time.
                              @@ -2329,17 +2552,20 @@ public Builder setMaxInstanceCount(int value) {
                                    * 
                              * * int32 max_instance_count = 5; + * * @return This builder for chaining. */ public Builder clearMaxInstanceCount() { - + maxInstanceCount_ = 0; onChanged(); return this; } - private int minInstanceCount_ ; + private int minInstanceCount_; /** + * + * *
                                    * The limit on the minimum number of function instances that may coexist at a
                                    * given time.
                              @@ -2352,6 +2578,7 @@ public Builder clearMaxInstanceCount() {
                                    * 
                              * * int32 min_instance_count = 12; + * * @return The minInstanceCount. */ @java.lang.Override @@ -2359,6 +2586,8 @@ public int getMinInstanceCount() { return minInstanceCount_; } /** + * + * *
                                    * The limit on the minimum number of function instances that may coexist at a
                                    * given time.
                              @@ -2371,16 +2600,19 @@ public int getMinInstanceCount() {
                                    * 
                              * * int32 min_instance_count = 12; + * * @param value The minInstanceCount to set. * @return This builder for chaining. */ public Builder setMinInstanceCount(int value) { - + minInstanceCount_ = value; onChanged(); return this; } /** + * + * *
                                    * The limit on the minimum number of function instances that may coexist at a
                                    * given time.
                              @@ -2393,10 +2625,11 @@ public Builder setMinInstanceCount(int value) {
                                    * 
                              * * int32 min_instance_count = 12; + * * @return This builder for chaining. */ public Builder clearMinInstanceCount() { - + minInstanceCount_ = 0; onChanged(); return this; @@ -2404,19 +2637,21 @@ public Builder clearMinInstanceCount() { private java.lang.Object vpcConnector_ = ""; /** + * + * *
                                    * 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) = { ... } + * * @return The vpcConnector. */ public java.lang.String getVpcConnector() { java.lang.Object ref = vpcConnector_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; @@ -2425,21 +2660,22 @@ public java.lang.String getVpcConnector() { } } /** + * + * *
                                    * 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) = { ... } + * * @return The bytes for vpcConnector. */ - public com.google.protobuf.ByteString - getVpcConnectorBytes() { + public com.google.protobuf.ByteString getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -2447,57 +2683,64 @@ public java.lang.String getVpcConnector() { } } /** + * + * *
                                    * 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) = { ... } + * * @param value The vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnector( - java.lang.String value) { + public Builder setVpcConnector(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vpcConnector_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * * @return This builder for chaining. */ public Builder clearVpcConnector() { - + vpcConnector_ = getDefaultInstance().getVpcConnector(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * * @param value The bytes for vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnectorBytes( - com.google.protobuf.ByteString value) { + public Builder setVpcConnectorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcConnector_ = value; onChanged(); return this; @@ -2505,78 +2748,110 @@ public Builder setVpcConnectorBytes( private int vpcConnectorEgressSettings_ = 0; /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override + public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @param value The enum numeric value on the wire for vpcConnectorEgressSettings to set. * @return This builder for chaining. */ public Builder setVpcConnectorEgressSettingsValue(int value) { - + vpcConnectorEgressSettings_ = value; onChanged(); return this; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The vpcConnectorEgressSettings. */ @java.lang.Override - public com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { + public com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings + getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings result = com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); - return result == null ? com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings result = + com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.valueOf( + vpcConnectorEgressSettings_); + return result == null + ? com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED + : result; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @param value The vpcConnectorEgressSettings to set. * @return This builder for chaining. */ - public Builder setVpcConnectorEgressSettings(com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings value) { + public Builder setVpcConnectorEgressSettings( + com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings value) { if (value == null) { throw new NullPointerException(); } - + vpcConnectorEgressSettings_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return This builder for chaining. */ public Builder clearVpcConnectorEgressSettings() { - + vpcConnectorEgressSettings_ = 0; onChanged(); return this; @@ -2584,78 +2859,98 @@ public Builder clearVpcConnectorEgressSettings() { private int ingressSettings_ = 0; /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override public int getIngressSettingsValue() { + @java.lang.Override + public int getIngressSettingsValue() { return ingressSettings_; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * * @param value The enum numeric value on the wire for ingressSettings to set. * @return This builder for chaining. */ public Builder setIngressSettingsValue(int value) { - + ingressSettings_ = value; onChanged(); return this; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * * @return The ingressSettings. */ @java.lang.Override public com.google.cloud.functions.v2.ServiceConfig.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.ServiceConfig.IngressSettings result = com.google.cloud.functions.v2.ServiceConfig.IngressSettings.valueOf(ingressSettings_); - return result == null ? com.google.cloud.functions.v2.ServiceConfig.IngressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v2.ServiceConfig.IngressSettings result = + com.google.cloud.functions.v2.ServiceConfig.IngressSettings.valueOf(ingressSettings_); + return result == null + ? com.google.cloud.functions.v2.ServiceConfig.IngressSettings.UNRECOGNIZED + : result; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * * @param value The ingressSettings to set. * @return This builder for chaining. */ - public Builder setIngressSettings(com.google.cloud.functions.v2.ServiceConfig.IngressSettings value) { + public Builder setIngressSettings( + com.google.cloud.functions.v2.ServiceConfig.IngressSettings value) { if (value == null) { throw new NullPointerException(); } - + ingressSettings_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * * @return This builder for chaining. */ public Builder clearIngressSettings() { - + ingressSettings_ = 0; onChanged(); return this; @@ -2663,18 +2958,20 @@ public Builder clearIngressSettings() { private java.lang.Object uri_ = ""; /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -2683,20 +2980,21 @@ public java.lang.String getUri() { } } /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -2704,54 +3002,61 @@ public java.lang.String getUri() { } } /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; @@ -2759,19 +3064,21 @@ public Builder setUriBytes( private java.lang.Object serviceAccountEmail_ = ""; /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -2780,21 +3087,22 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -2802,64 +3110,73 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail( - java.lang.String value) { + public Builder setServiceAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; } - private boolean allTrafficOnLatestRevision_ ; + private boolean allTrafficOnLatestRevision_; /** + * + * *
                                    * Whether 100% of traffic is routed to the latest revision.
                                    * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -2869,6 +3186,7 @@ public Builder setServiceAccountEmailBytes(
                                    * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @return The allTrafficOnLatestRevision. */ @java.lang.Override @@ -2876,6 +3194,8 @@ public boolean getAllTrafficOnLatestRevision() { return allTrafficOnLatestRevision_; } /** + * + * *
                                    * Whether 100% of traffic is routed to the latest revision.
                                    * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -2885,16 +3205,19 @@ public boolean getAllTrafficOnLatestRevision() {
                                    * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @param value The allTrafficOnLatestRevision to set. * @return This builder for chaining. */ public Builder setAllTrafficOnLatestRevision(boolean value) { - + allTrafficOnLatestRevision_ = value; onChanged(); return this; } /** + * + * *
                                    * Whether 100% of traffic is routed to the latest revision.
                                    * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -2904,35 +3227,46 @@ public Builder setAllTrafficOnLatestRevision(boolean value) {
                                    * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @return This builder for chaining. */ public Builder clearAllTrafficOnLatestRevision() { - + allTrafficOnLatestRevision_ = false; onChanged(); return this; } private java.util.List secretEnvironmentVariables_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSecretEnvironmentVariablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - secretEnvironmentVariables_ = new java.util.ArrayList(secretEnvironmentVariables_); + secretEnvironmentVariables_ = + new java.util.ArrayList( + secretEnvironmentVariables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.SecretEnvVar, com.google.cloud.functions.v2.SecretEnvVar.Builder, com.google.cloud.functions.v2.SecretEnvVarOrBuilder> secretEnvironmentVariablesBuilder_; + com.google.cloud.functions.v2.SecretEnvVar, + com.google.cloud.functions.v2.SecretEnvVar.Builder, + com.google.cloud.functions.v2.SecretEnvVarOrBuilder> + secretEnvironmentVariablesBuilder_; /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ - public java.util.List getSecretEnvironmentVariablesList() { + public java.util.List + getSecretEnvironmentVariablesList() { if (secretEnvironmentVariablesBuilder_ == null) { return java.util.Collections.unmodifiableList(secretEnvironmentVariables_); } else { @@ -2940,11 +3274,14 @@ public java.util.List getSecretEnvir } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ public int getSecretEnvironmentVariablesCount() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -2954,11 +3291,14 @@ public int getSecretEnvironmentVariablesCount() { } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ public com.google.cloud.functions.v2.SecretEnvVar getSecretEnvironmentVariables(int index) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -2968,11 +3308,14 @@ public com.google.cloud.functions.v2.SecretEnvVar getSecretEnvironmentVariables( } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v2.SecretEnvVar value) { @@ -2989,11 +3332,14 @@ public Builder setSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v2.SecretEnvVar.Builder builderForValue) { @@ -3007,11 +3353,14 @@ public Builder setSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ public Builder addSecretEnvironmentVariables(com.google.cloud.functions.v2.SecretEnvVar value) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3027,11 +3376,14 @@ public Builder addSecretEnvironmentVariables(com.google.cloud.functions.v2.Secre return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v2.SecretEnvVar value) { @@ -3048,11 +3400,14 @@ public Builder addSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ public Builder addSecretEnvironmentVariables( com.google.cloud.functions.v2.SecretEnvVar.Builder builderForValue) { @@ -3066,11 +3421,14 @@ public Builder addSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v2.SecretEnvVar.Builder builderForValue) { @@ -3084,18 +3442,20 @@ public Builder addSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ public Builder addAllSecretEnvironmentVariables( java.lang.Iterable values) { if (secretEnvironmentVariablesBuilder_ == null) { ensureSecretEnvironmentVariablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, secretEnvironmentVariables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretEnvironmentVariables_); onChanged(); } else { secretEnvironmentVariablesBuilder_.addAllMessages(values); @@ -3103,11 +3463,14 @@ public Builder addAllSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ public Builder clearSecretEnvironmentVariables() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3120,11 +3483,14 @@ public Builder clearSecretEnvironmentVariables() { return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ public Builder removeSecretEnvironmentVariables(int index) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3137,39 +3503,49 @@ public Builder removeSecretEnvironmentVariables(int index) { return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ public com.google.cloud.functions.v2.SecretEnvVar.Builder getSecretEnvironmentVariablesBuilder( int index) { return getSecretEnvironmentVariablesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ - public com.google.cloud.functions.v2.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( - int index) { + public com.google.cloud.functions.v2.SecretEnvVarOrBuilder + getSecretEnvironmentVariablesOrBuilder(int index) { if (secretEnvironmentVariablesBuilder_ == null) { - return secretEnvironmentVariables_.get(index); } else { + return secretEnvironmentVariables_.get(index); + } else { return secretEnvironmentVariablesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ - public java.util.List - getSecretEnvironmentVariablesOrBuilderList() { + public java.util.List + getSecretEnvironmentVariablesOrBuilderList() { if (secretEnvironmentVariablesBuilder_ != null) { return secretEnvironmentVariablesBuilder_.getMessageOrBuilderList(); } else { @@ -3177,45 +3553,61 @@ public com.google.cloud.functions.v2.SecretEnvVarOrBuilder getSecretEnvironmentV } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ - public com.google.cloud.functions.v2.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder() { - return getSecretEnvironmentVariablesFieldBuilder().addBuilder( - com.google.cloud.functions.v2.SecretEnvVar.getDefaultInstance()); + public com.google.cloud.functions.v2.SecretEnvVar.Builder + addSecretEnvironmentVariablesBuilder() { + return getSecretEnvironmentVariablesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2.SecretEnvVar.getDefaultInstance()); } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ public com.google.cloud.functions.v2.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder( int index) { - return getSecretEnvironmentVariablesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2.SecretEnvVar.getDefaultInstance()); + return getSecretEnvironmentVariablesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2.SecretEnvVar.getDefaultInstance()); } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ - public java.util.List - getSecretEnvironmentVariablesBuilderList() { + public java.util.List + getSecretEnvironmentVariablesBuilderList() { return getSecretEnvironmentVariablesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.SecretEnvVar, com.google.cloud.functions.v2.SecretEnvVar.Builder, com.google.cloud.functions.v2.SecretEnvVarOrBuilder> + com.google.cloud.functions.v2.SecretEnvVar, + com.google.cloud.functions.v2.SecretEnvVar.Builder, + com.google.cloud.functions.v2.SecretEnvVarOrBuilder> getSecretEnvironmentVariablesFieldBuilder() { if (secretEnvironmentVariablesBuilder_ == null) { - secretEnvironmentVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.SecretEnvVar, com.google.cloud.functions.v2.SecretEnvVar.Builder, com.google.cloud.functions.v2.SecretEnvVarOrBuilder>( + secretEnvironmentVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.SecretEnvVar, + com.google.cloud.functions.v2.SecretEnvVar.Builder, + com.google.cloud.functions.v2.SecretEnvVarOrBuilder>( secretEnvironmentVariables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3226,18 +3618,25 @@ public com.google.cloud.functions.v2.SecretEnvVar.Builder addSecretEnvironmentVa } private java.util.List secretVolumes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSecretVolumesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - secretVolumes_ = new java.util.ArrayList(secretVolumes_); + secretVolumes_ = + new java.util.ArrayList(secretVolumes_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.SecretVolume, com.google.cloud.functions.v2.SecretVolume.Builder, com.google.cloud.functions.v2.SecretVolumeOrBuilder> secretVolumesBuilder_; + com.google.cloud.functions.v2.SecretVolume, + com.google.cloud.functions.v2.SecretVolume.Builder, + com.google.cloud.functions.v2.SecretVolumeOrBuilder> + secretVolumesBuilder_; /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3252,6 +3651,8 @@ public java.util.List getSecretVolum } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3266,6 +3667,8 @@ public int getSecretVolumesCount() { } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3280,14 +3683,15 @@ public com.google.cloud.functions.v2.SecretVolume getSecretVolumes(int index) { } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; */ - public Builder setSecretVolumes( - int index, com.google.cloud.functions.v2.SecretVolume value) { + public Builder setSecretVolumes(int index, com.google.cloud.functions.v2.SecretVolume value) { if (secretVolumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3301,6 +3705,8 @@ public Builder setSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3319,6 +3725,8 @@ public Builder setSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3339,14 +3747,15 @@ public Builder addSecretVolumes(com.google.cloud.functions.v2.SecretVolume value return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; */ - public Builder addSecretVolumes( - int index, com.google.cloud.functions.v2.SecretVolume value) { + public Builder addSecretVolumes(int index, com.google.cloud.functions.v2.SecretVolume value) { if (secretVolumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3360,6 +3769,8 @@ public Builder addSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3378,6 +3789,8 @@ public Builder addSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3396,6 +3809,8 @@ public Builder addSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3406,8 +3821,7 @@ public Builder addAllSecretVolumes( java.lang.Iterable values) { if (secretVolumesBuilder_ == null) { ensureSecretVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, secretVolumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretVolumes_); onChanged(); } else { secretVolumesBuilder_.addAllMessages(values); @@ -3415,6 +3829,8 @@ public Builder addAllSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3432,6 +3848,8 @@ public Builder clearSecretVolumes() { return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3449,17 +3867,20 @@ public Builder removeSecretVolumes(int index) { return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; */ - public com.google.cloud.functions.v2.SecretVolume.Builder getSecretVolumesBuilder( - int index) { + public com.google.cloud.functions.v2.SecretVolume.Builder getSecretVolumesBuilder(int index) { return getSecretVolumesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3469,19 +3890,22 @@ public com.google.cloud.functions.v2.SecretVolume.Builder getSecretVolumesBuilde public com.google.cloud.functions.v2.SecretVolumeOrBuilder getSecretVolumesOrBuilder( int index) { if (secretVolumesBuilder_ == null) { - return secretVolumes_.get(index); } else { + return secretVolumes_.get(index); + } else { return secretVolumesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; */ - public java.util.List - getSecretVolumesOrBuilderList() { + public java.util.List + getSecretVolumesOrBuilderList() { if (secretVolumesBuilder_ != null) { return secretVolumesBuilder_.getMessageOrBuilderList(); } else { @@ -3489,6 +3913,8 @@ public com.google.cloud.functions.v2.SecretVolumeOrBuilder getSecretVolumesOrBui } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3496,38 +3922,47 @@ public com.google.cloud.functions.v2.SecretVolumeOrBuilder getSecretVolumesOrBui * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; */ public com.google.cloud.functions.v2.SecretVolume.Builder addSecretVolumesBuilder() { - return getSecretVolumesFieldBuilder().addBuilder( - com.google.cloud.functions.v2.SecretVolume.getDefaultInstance()); + return getSecretVolumesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2.SecretVolume.getDefaultInstance()); } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; */ - public com.google.cloud.functions.v2.SecretVolume.Builder addSecretVolumesBuilder( - int index) { - return getSecretVolumesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2.SecretVolume.getDefaultInstance()); + public com.google.cloud.functions.v2.SecretVolume.Builder addSecretVolumesBuilder(int index) { + return getSecretVolumesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2.SecretVolume.getDefaultInstance()); } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; */ - public java.util.List - getSecretVolumesBuilderList() { + public java.util.List + getSecretVolumesBuilderList() { return getSecretVolumesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.SecretVolume, com.google.cloud.functions.v2.SecretVolume.Builder, com.google.cloud.functions.v2.SecretVolumeOrBuilder> + com.google.cloud.functions.v2.SecretVolume, + com.google.cloud.functions.v2.SecretVolume.Builder, + com.google.cloud.functions.v2.SecretVolumeOrBuilder> getSecretVolumesFieldBuilder() { if (secretVolumesBuilder_ == null) { - secretVolumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.SecretVolume, com.google.cloud.functions.v2.SecretVolume.Builder, com.google.cloud.functions.v2.SecretVolumeOrBuilder>( + secretVolumesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.SecretVolume, + com.google.cloud.functions.v2.SecretVolume.Builder, + com.google.cloud.functions.v2.SecretVolumeOrBuilder>( secretVolumes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3539,18 +3974,20 @@ public com.google.cloud.functions.v2.SecretVolume.Builder addSecretVolumesBuilde private java.lang.Object revision_ = ""; /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revision. */ public java.lang.String getRevision() { java.lang.Object ref = revision_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; @@ -3559,20 +3996,21 @@ public java.lang.String getRevision() { } } /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revision. */ - public com.google.protobuf.ByteString - getRevisionBytes() { + public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revision_ = b; return b; } else { @@ -3580,61 +4018,68 @@ public java.lang.String getRevision() { } } /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The revision to set. * @return This builder for chaining. */ - public Builder setRevision( - java.lang.String value) { + public Builder setRevision(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + revision_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRevision() { - + revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for revision to set. * @return This builder for chaining. */ - public Builder setRevisionBytes( - com.google.protobuf.ByteString value) { + public Builder setRevisionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revision_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3644,12 +4089,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.ServiceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ServiceConfig) private static final com.google.cloud.functions.v2.ServiceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ServiceConfig(); } @@ -3658,16 +4103,16 @@ public static com.google.cloud.functions.v2.ServiceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServiceConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServiceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3682,6 +4127,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.ServiceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java similarity index 78% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java index 0bffcd65..07bae17a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java @@ -1,37 +1,64 @@ +/* + * 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 ServiceConfigOrBuilder extends +public interface ServiceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.ServiceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The service. */ java.lang.String getService(); /** + * + * *
                                  * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for service. */ - com.google.protobuf.ByteString - getServiceBytes(); + com.google.protobuf.ByteString getServiceBytes(); /** + * + * *
                                  * The function execution timeout. Execution is considered failed and
                                  * can be terminated if the function is not completed at the end of the
                              @@ -39,11 +66,14 @@ public interface ServiceConfigOrBuilder extends
                                  * 
                              * * int32 timeout_seconds = 2; + * * @return The timeoutSeconds. */ int getTimeoutSeconds(); /** + * + * *
                                  * The amount of memory available for a function.
                                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -54,10 +84,13 @@ public interface ServiceConfigOrBuilder extends
                                  * 
                              * * string available_memory = 13; + * * @return The availableMemory. */ java.lang.String getAvailableMemory(); /** + * + * *
                                  * The amount of memory available for a function.
                                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -68,12 +101,14 @@ public interface ServiceConfigOrBuilder extends
                                  * 
                              * * string available_memory = 13; + * * @return The bytes for availableMemory. */ - com.google.protobuf.ByteString - getAvailableMemoryBytes(); + com.google.protobuf.ByteString getAvailableMemoryBytes(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -82,30 +117,31 @@ public interface ServiceConfigOrBuilder extends */ int getEnvironmentVariablesCount(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 4; */ - boolean containsEnvironmentVariables( - java.lang.String key); - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + boolean containsEnvironmentVariables(java.lang.String key); + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getEnvironmentVariables(); + java.util.Map getEnvironmentVariables(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 4; */ - java.util.Map - getEnvironmentVariablesMap(); + java.util.Map getEnvironmentVariablesMap(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -114,22 +150,24 @@ boolean containsEnvironmentVariables( */ /* nullable */ -java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 4; */ - - java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key); + java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key); /** + * + * *
                                  * The limit on the maximum number of function instances that may coexist at a
                                  * given time.
                              @@ -144,11 +182,14 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * 
                              * * int32 max_instance_count = 5; + * * @return The maxInstanceCount. */ int getMaxInstanceCount(); /** + * + * *
                                  * The limit on the minimum number of function instances that may coexist at a
                                  * given time.
                              @@ -161,117 +202,152 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * 
                              * * int32 min_instance_count = 12; + * * @return The minInstanceCount. */ int getMinInstanceCount(); /** + * + * *
                                  * 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) = { ... } + * * @return The vpcConnector. */ java.lang.String getVpcConnector(); /** + * + * *
                                  * 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) = { ... } + * * @return The bytes for vpcConnector. */ - com.google.protobuf.ByteString - getVpcConnectorBytes(); + com.google.protobuf.ByteString getVpcConnectorBytes(); /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ int getVpcConnectorEgressSettingsValue(); /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The vpcConnectorEgressSettings. */ - com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings(); + com.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings + getVpcConnectorEgressSettings(); /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * * @return The enum numeric value on the wire for ingressSettings. */ int getIngressSettingsValue(); /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * * .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8; + * * @return The ingressSettings. */ com.google.cloud.functions.v2.ServiceConfig.IngressSettings getIngressSettings(); /** + * + * *
                                  * Output only. URI of the Service deployed.
                                  * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
                                  * Output only. URI of the Service deployed.
                                  * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
                                  * The email of the service's service account. If empty, defaults to
                                  * `{project_number}-compute@developer.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 10; + * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** + * + * *
                                  * The email of the service's service account. If empty, defaults to
                                  * `{project_number}-compute@developer.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 10; + * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString - getServiceAccountEmailBytes(); + com.google.protobuf.ByteString getServiceAccountEmailBytes(); /** + * + * *
                                  * Whether 100% of traffic is routed to the latest revision.
                                  * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -281,64 +357,82 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @return The allTrafficOnLatestRevision. */ boolean getAllTrafficOnLatestRevision(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ - java.util.List - getSecretEnvironmentVariablesList(); + java.util.List getSecretEnvironmentVariablesList(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ com.google.cloud.functions.v2.SecretEnvVar getSecretEnvironmentVariables(int index); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ int getSecretEnvironmentVariablesCount(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ - java.util.List + java.util.List getSecretEnvironmentVariablesOrBuilderList(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17; + * */ com.google.cloud.functions.v2.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( int index); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              * * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; */ - java.util.List - getSecretVolumesList(); + java.util.List getSecretVolumesList(); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -347,6 +441,8 @@ com.google.cloud.functions.v2.SecretEnvVarOrBuilder getSecretEnvironmentVariable */ com.google.cloud.functions.v2.SecretVolume getSecretVolumes(int index); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -355,41 +451,49 @@ com.google.cloud.functions.v2.SecretEnvVarOrBuilder getSecretEnvironmentVariable */ int getSecretVolumesCount(); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              * * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; */ - java.util.List + java.util.List getSecretVolumesOrBuilderList(); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              * * repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19; */ - com.google.cloud.functions.v2.SecretVolumeOrBuilder getSecretVolumesOrBuilder( - int index); + com.google.cloud.functions.v2.SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index); /** + * + * *
                                  * Output only. The name of service revision.
                                  * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revision. */ java.lang.String getRevision(); /** + * + * *
                                  * Output only. The name of service revision.
                                  * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revision. */ - com.google.protobuf.ByteString - getRevisionBytes(); + com.google.protobuf.ByteString getRevisionBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java index c3725b9e..02859b8c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java @@ -1,39 +1,55 @@ +/* + * 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; /** + * + * *
                                * The location of the function source code.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.Source} */ -public final class Source extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Source extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.Source) SourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Source.newBuilder() to construct. private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Source() { - } + + private Source() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Source(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Source( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,41 +68,45 @@ private Source( case 0: done = true; break; - case 10: { - com.google.cloud.functions.v2.StorageSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.functions.v2.StorageSource) source_).toBuilder(); + case 10: + { + com.google.cloud.functions.v2.StorageSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.functions.v2.StorageSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.functions.v2.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.functions.v2.StorageSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - source_ = - input.readMessage(com.google.cloud.functions.v2.StorageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.functions.v2.StorageSource) source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.functions.v2.RepoSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.functions.v2.RepoSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.functions.v2.RepoSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.functions.v2.RepoSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; } - sourceCase_ = 1; - break; - } - case 18: { - com.google.cloud.functions.v2.RepoSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.functions.v2.RepoSource) source_).toBuilder(); - } - source_ = - input.readMessage(com.google.cloud.functions.v2.RepoSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.functions.v2.RepoSource) source_); - source_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - sourceCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,35 +114,40 @@ private Source( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Source_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Source_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.Source.class, com.google.cloud.functions.v2.Source.Builder.class); + com.google.cloud.functions.v2.Source.class, + com.google.cloud.functions.v2.Source.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STORAGE_SOURCE(1), REPO_SOURCE(2), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -138,30 +163,36 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return STORAGE_SOURCE; - case 2: return REPO_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return STORAGE_SOURCE; + case 2: + return REPO_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int STORAGE_SOURCE_FIELD_NUMBER = 1; /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              * * .google.cloud.functions.v2.StorageSource storage_source = 1; + * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -169,21 +200,26 @@ public boolean hasStorageSource() { return sourceCase_ == 1; } /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              * * .google.cloud.functions.v2.StorageSource storage_source = 1; + * * @return The storageSource. */ @java.lang.Override public com.google.cloud.functions.v2.StorageSource getStorageSource() { if (sourceCase_ == 1) { - return (com.google.cloud.functions.v2.StorageSource) source_; + return (com.google.cloud.functions.v2.StorageSource) source_; } return com.google.cloud.functions.v2.StorageSource.getDefaultInstance(); } /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              @@ -193,19 +229,22 @@ public com.google.cloud.functions.v2.StorageSource getStorageSource() { @java.lang.Override public com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.functions.v2.StorageSource) source_; + return (com.google.cloud.functions.v2.StorageSource) source_; } return com.google.cloud.functions.v2.StorageSource.getDefaultInstance(); } public static final int REPO_SOURCE_FIELD_NUMBER = 2; /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                                  * 
                              * * .google.cloud.functions.v2.RepoSource repo_source = 2; + * * @return Whether the repoSource field is set. */ @java.lang.Override @@ -213,22 +252,27 @@ public boolean hasRepoSource() { return sourceCase_ == 2; } /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                                  * 
                              * * .google.cloud.functions.v2.RepoSource repo_source = 2; + * * @return The repoSource. */ @java.lang.Override public com.google.cloud.functions.v2.RepoSource getRepoSource() { if (sourceCase_ == 2) { - return (com.google.cloud.functions.v2.RepoSource) source_; + return (com.google.cloud.functions.v2.RepoSource) source_; } return com.google.cloud.functions.v2.RepoSource.getDefaultInstance(); } /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                              @@ -239,12 +283,13 @@ public com.google.cloud.functions.v2.RepoSource getRepoSource() {
                                 @java.lang.Override
                                 public com.google.cloud.functions.v2.RepoSourceOrBuilder getRepoSourceOrBuilder() {
                                   if (sourceCase_ == 2) {
                              -       return (com.google.cloud.functions.v2.RepoSource) source_;
                              +      return (com.google.cloud.functions.v2.RepoSource) source_;
                                   }
                                   return com.google.cloud.functions.v2.RepoSource.getDefaultInstance();
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -256,8 +301,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (sourceCase_ == 1) {
                                     output.writeMessage(1, (com.google.cloud.functions.v2.StorageSource) source_);
                                   }
                              @@ -274,12 +318,14 @@ public int getSerializedSize() {
                               
                                   size = 0;
                                   if (sourceCase_ == 1) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(1, (com.google.cloud.functions.v2.StorageSource) source_);
                              +      size +=
                              +          com.google.protobuf.CodedOutputStream.computeMessageSize(
                              +              1, (com.google.cloud.functions.v2.StorageSource) source_);
                                   }
                                   if (sourceCase_ == 2) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(2, (com.google.cloud.functions.v2.RepoSource) source_);
                              +      size +=
                              +          com.google.protobuf.CodedOutputStream.computeMessageSize(
                              +              2, (com.google.cloud.functions.v2.RepoSource) source_);
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -289,7 +335,7 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2.Source)) {
                                     return super.equals(obj);
                              @@ -299,12 +345,10 @@ public boolean equals(final java.lang.Object obj) {
                                   if (!getSourceCase().equals(other.getSourceCase())) return false;
                                   switch (sourceCase_) {
                                     case 1:
                              -        if (!getStorageSource()
                              -            .equals(other.getStorageSource())) return false;
                              +        if (!getStorageSource().equals(other.getStorageSource())) return false;
                                       break;
                                     case 2:
                              -        if (!getRepoSource()
                              -            .equals(other.getRepoSource())) return false;
                              +        if (!getRepoSource().equals(other.getRepoSource())) return false;
                                       break;
                                     case 0:
                                     default:
                              @@ -337,118 +381,126 @@ public int hashCode() {
                                   return hash;
                                 }
                               
                              -  public static com.google.cloud.functions.v2.Source parseFrom(
                              -      java.nio.ByteBuffer data)
                              +  public static com.google.cloud.functions.v2.Source parseFrom(java.nio.ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.Source parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.Source parseFrom(
                              -      com.google.protobuf.ByteString data)
                              +
                              +  public static com.google.cloud.functions.v2.Source parseFrom(com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.Source 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.Source parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.Source parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.Source parseFrom(java.io.InputStream input)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.Source parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.Source parseDelimitedFrom(java.io.InputStream input)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.Source parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.Source parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.Source parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              +
                                 public static Builder newBuilder(com.google.cloud.functions.v2.Source prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The location of the function source code.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.Source} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.Source) com.google.cloud.functions.v2.SourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Source_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Source_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.Source.class, com.google.cloud.functions.v2.Source.Builder.class); + com.google.cloud.functions.v2.Source.class, + com.google.cloud.functions.v2.Source.Builder.class); } // Construct using com.google.cloud.functions.v2.Source.newBuilder() @@ -456,16 +508,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Source_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_Source_descriptor; } @java.lang.Override @@ -520,38 +571,39 @@ public com.google.cloud.functions.v2.Source buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.Source)other); + return mergeFrom((com.google.cloud.functions.v2.Source) other); } else { super.mergeFrom(other); return this; @@ -561,17 +613,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.functions.v2.Source other) { if (other == com.google.cloud.functions.v2.Source.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case STORAGE_SOURCE: { - mergeStorageSource(other.getStorageSource()); - break; - } - case REPO_SOURCE: { - mergeRepoSource(other.getRepoSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case STORAGE_SOURCE: + { + mergeStorageSource(other.getStorageSource()); + break; + } + case REPO_SOURCE: + { + mergeRepoSource(other.getRepoSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -601,12 +656,12 @@ public Builder mergeFrom( } return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -616,15 +671,20 @@ public Builder clearSource() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder> storageSourceBuilder_; + com.google.cloud.functions.v2.StorageSource, + com.google.cloud.functions.v2.StorageSource.Builder, + com.google.cloud.functions.v2.StorageSourceOrBuilder> + storageSourceBuilder_; /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              * * .google.cloud.functions.v2.StorageSource storage_source = 1; + * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -632,11 +692,14 @@ public boolean hasStorageSource() { return sourceCase_ == 1; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              * * .google.cloud.functions.v2.StorageSource storage_source = 1; + * * @return The storageSource. */ @java.lang.Override @@ -654,6 +717,8 @@ public com.google.cloud.functions.v2.StorageSource getStorageSource() { } } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -674,6 +739,8 @@ public Builder setStorageSource(com.google.cloud.functions.v2.StorageSource valu return this; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -692,6 +759,8 @@ public Builder setStorageSource( return this; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -700,10 +769,13 @@ public Builder setStorageSource( */ public Builder mergeStorageSource(com.google.cloud.functions.v2.StorageSource value) { if (storageSourceBuilder_ == null) { - if (sourceCase_ == 1 && - source_ != com.google.cloud.functions.v2.StorageSource.getDefaultInstance()) { - source_ = com.google.cloud.functions.v2.StorageSource.newBuilder((com.google.cloud.functions.v2.StorageSource) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 1 + && source_ != com.google.cloud.functions.v2.StorageSource.getDefaultInstance()) { + source_ = + com.google.cloud.functions.v2.StorageSource.newBuilder( + (com.google.cloud.functions.v2.StorageSource) source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -719,6 +791,8 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2.StorageSource va return this; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -742,6 +816,8 @@ public Builder clearStorageSource() { return this; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -752,6 +828,8 @@ public com.google.cloud.functions.v2.StorageSource.Builder getStorageSourceBuild return getStorageSourceFieldBuilder().getBuilder(); } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -770,6 +848,8 @@ public com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBu } } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -777,33 +857,45 @@ public com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBu * .google.cloud.functions.v2.StorageSource storage_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder> + com.google.cloud.functions.v2.StorageSource, + com.google.cloud.functions.v2.StorageSource.Builder, + com.google.cloud.functions.v2.StorageSourceOrBuilder> getStorageSourceFieldBuilder() { if (storageSourceBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.cloud.functions.v2.StorageSource.getDefaultInstance(); } - storageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder>( + storageSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.StorageSource, + com.google.cloud.functions.v2.StorageSource.Builder, + com.google.cloud.functions.v2.StorageSourceOrBuilder>( (com.google.cloud.functions.v2.StorageSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 1; - onChanged();; + onChanged(); + ; return storageSourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.RepoSource, com.google.cloud.functions.v2.RepoSource.Builder, com.google.cloud.functions.v2.RepoSourceOrBuilder> repoSourceBuilder_; + com.google.cloud.functions.v2.RepoSource, + com.google.cloud.functions.v2.RepoSource.Builder, + com.google.cloud.functions.v2.RepoSourceOrBuilder> + repoSourceBuilder_; /** + * + * *
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                                    * 
                              * * .google.cloud.functions.v2.RepoSource repo_source = 2; + * * @return Whether the repoSource field is set. */ @java.lang.Override @@ -811,12 +903,15 @@ public boolean hasRepoSource() { return sourceCase_ == 2; } /** + * + * *
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                                    * 
                              * * .google.cloud.functions.v2.RepoSource repo_source = 2; + * * @return The repoSource. */ @java.lang.Override @@ -834,6 +929,8 @@ public com.google.cloud.functions.v2.RepoSource getRepoSource() { } } /** + * + * *
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -855,6 +952,8 @@ public Builder setRepoSource(com.google.cloud.functions.v2.RepoSource value) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -862,8 +961,7 @@ public Builder setRepoSource(com.google.cloud.functions.v2.RepoSource value) {
                                    *
                                    * .google.cloud.functions.v2.RepoSource repo_source = 2;
                                    */
                              -    public Builder setRepoSource(
                              -        com.google.cloud.functions.v2.RepoSource.Builder builderForValue) {
                              +    public Builder setRepoSource(com.google.cloud.functions.v2.RepoSource.Builder builderForValue) {
                                     if (repoSourceBuilder_ == null) {
                                       source_ = builderForValue.build();
                                       onChanged();
                              @@ -874,6 +972,8 @@ public Builder setRepoSource(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -883,10 +983,13 @@ public Builder setRepoSource(
                                    */
                                   public Builder mergeRepoSource(com.google.cloud.functions.v2.RepoSource value) {
                                     if (repoSourceBuilder_ == null) {
                              -        if (sourceCase_ == 2 &&
                              -            source_ != com.google.cloud.functions.v2.RepoSource.getDefaultInstance()) {
                              -          source_ = com.google.cloud.functions.v2.RepoSource.newBuilder((com.google.cloud.functions.v2.RepoSource) source_)
                              -              .mergeFrom(value).buildPartial();
                              +        if (sourceCase_ == 2
                              +            && source_ != com.google.cloud.functions.v2.RepoSource.getDefaultInstance()) {
                              +          source_ =
                              +              com.google.cloud.functions.v2.RepoSource.newBuilder(
                              +                      (com.google.cloud.functions.v2.RepoSource) source_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         source_ = value;
                                       }
                              @@ -902,6 +1005,8 @@ public Builder mergeRepoSource(com.google.cloud.functions.v2.RepoSource value) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -926,6 +1031,8 @@ public Builder clearRepoSource() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -937,6 +1044,8 @@ public com.google.cloud.functions.v2.RepoSource.Builder getRepoSourceBuilder() {
                                     return getRepoSourceFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -956,6 +1065,8 @@ public com.google.cloud.functions.v2.RepoSourceOrBuilder getRepoSourceOrBuilder(
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -964,26 +1075,32 @@ public com.google.cloud.functions.v2.RepoSourceOrBuilder getRepoSourceOrBuilder(
                                    * .google.cloud.functions.v2.RepoSource repo_source = 2;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2.RepoSource, com.google.cloud.functions.v2.RepoSource.Builder, com.google.cloud.functions.v2.RepoSourceOrBuilder> 
                              +            com.google.cloud.functions.v2.RepoSource,
                              +            com.google.cloud.functions.v2.RepoSource.Builder,
                              +            com.google.cloud.functions.v2.RepoSourceOrBuilder>
                                       getRepoSourceFieldBuilder() {
                                     if (repoSourceBuilder_ == null) {
                                       if (!(sourceCase_ == 2)) {
                                         source_ = com.google.cloud.functions.v2.RepoSource.getDefaultInstance();
                                       }
                              -        repoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2.RepoSource, com.google.cloud.functions.v2.RepoSource.Builder, com.google.cloud.functions.v2.RepoSourceOrBuilder>(
                              +        repoSourceBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2.RepoSource,
                              +                com.google.cloud.functions.v2.RepoSource.Builder,
                              +                com.google.cloud.functions.v2.RepoSourceOrBuilder>(
                                               (com.google.cloud.functions.v2.RepoSource) source_,
                                               getParentForChildren(),
                                               isClean());
                                       source_ = null;
                                     }
                                     sourceCase_ = 2;
                              -      onChanged();;
                              +      onChanged();
                              +      ;
                                     return repoSourceBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -993,12 +1110,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.Source)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.Source)
                                 private static final com.google.cloud.functions.v2.Source DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2.Source();
                                 }
                              @@ -1007,16 +1124,16 @@ public static com.google.cloud.functions.v2.Source getDefaultInstance() {
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public Source parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new Source(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public Source parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new Source(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -1031,6 +1148,4 @@ public com.google.protobuf.Parser getParserForType() {
                                 public com.google.cloud.functions.v2.Source getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java
                              similarity index 74%
                              rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java
                              rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java
                              index cf45eb55..c379183c 100644
                              --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java
                              @@ -1,31 +1,55 @@
                              +/*
                              + * 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 SourceOrBuilder extends
                              +public interface SourceOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.Source)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              * * .google.cloud.functions.v2.StorageSource storage_source = 1; + * * @return Whether the storageSource field is set. */ boolean hasStorageSource(); /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              * * .google.cloud.functions.v2.StorageSource storage_source = 1; + * * @return The storageSource. */ com.google.cloud.functions.v2.StorageSource getStorageSource(); /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              @@ -35,26 +59,34 @@ public interface SourceOrBuilder extends com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBuilder(); /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                                  * 
                              * * .google.cloud.functions.v2.RepoSource repo_source = 2; + * * @return Whether the repoSource field is set. */ boolean hasRepoSource(); /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                                  * 
                              * * .google.cloud.functions.v2.RepoSource repo_source = 2; + * * @return The repoSource. */ com.google.cloud.functions.v2.RepoSource getRepoSource(); /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                              diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java
                              similarity index 71%
                              rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java
                              rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java
                              index 37f1e13d..594f2e81 100644
                              --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java
                              +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java
                              @@ -1,9 +1,26 @@
                              +/*
                              + * 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;
                               
                               /**
                              + *
                              + *
                                * 
                                * Provenance of the source. Ways to find the original source, or verify that
                                * some source was used for this build.
                              @@ -11,30 +28,29 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2.SourceProvenance}
                                */
                              -public final class SourceProvenance extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class SourceProvenance extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.SourceProvenance)
                                   SourceProvenanceOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use SourceProvenance.newBuilder() to construct.
                                 private SourceProvenance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              -  private SourceProvenance() {
                              -  }
                              +
                              +  private SourceProvenance() {}
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new SourceProvenance();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private SourceProvenance(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -53,39 +69,45 @@ private SourceProvenance(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            com.google.cloud.functions.v2.StorageSource.Builder subBuilder = null;
                              -            if (resolvedStorageSource_ != null) {
                              -              subBuilder = resolvedStorageSource_.toBuilder();
                              -            }
                              -            resolvedStorageSource_ = input.readMessage(com.google.cloud.functions.v2.StorageSource.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(resolvedStorageSource_);
                              -              resolvedStorageSource_ = subBuilder.buildPartial();
                              -            }
                              +          case 10:
                              +            {
                              +              com.google.cloud.functions.v2.StorageSource.Builder subBuilder = null;
                              +              if (resolvedStorageSource_ != null) {
                              +                subBuilder = resolvedStorageSource_.toBuilder();
                              +              }
                              +              resolvedStorageSource_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2.StorageSource.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(resolvedStorageSource_);
                              +                resolvedStorageSource_ = subBuilder.buildPartial();
                              +              }
                               
                              -            break;
                              -          }
                              -          case 18: {
                              -            com.google.cloud.functions.v2.RepoSource.Builder subBuilder = null;
                              -            if (resolvedRepoSource_ != null) {
                              -              subBuilder = resolvedRepoSource_.toBuilder();
                              -            }
                              -            resolvedRepoSource_ = input.readMessage(com.google.cloud.functions.v2.RepoSource.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(resolvedRepoSource_);
                              -              resolvedRepoSource_ = subBuilder.buildPartial();
                              +              break;
                                           }
                              +          case 18:
                              +            {
                              +              com.google.cloud.functions.v2.RepoSource.Builder subBuilder = null;
                              +              if (resolvedRepoSource_ != null) {
                              +                subBuilder = resolvedRepoSource_.toBuilder();
                              +              }
                              +              resolvedRepoSource_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2.RepoSource.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(resolvedRepoSource_);
                              +                resolvedRepoSource_ = subBuilder.buildPartial();
                              +              }
                               
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -93,35 +115,40 @@ private SourceProvenance(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     this.unknownFields = unknownFields.build();
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SourceProvenance_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_SourceProvenance_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SourceProvenance_fieldAccessorTable
                              +    return com.google.cloud.functions.v2.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2_SourceProvenance_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2.SourceProvenance.class, com.google.cloud.functions.v2.SourceProvenance.Builder.class);
                              +            com.google.cloud.functions.v2.SourceProvenance.class,
                              +            com.google.cloud.functions.v2.SourceProvenance.Builder.class);
                                 }
                               
                                 public static final int RESOLVED_STORAGE_SOURCE_FIELD_NUMBER = 1;
                                 private com.google.cloud.functions.v2.StorageSource resolvedStorageSource_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                                  * 
                              * * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + * * @return Whether the resolvedStorageSource field is set. */ @java.lang.Override @@ -129,19 +156,26 @@ public boolean hasResolvedStorageSource() { return resolvedStorageSource_ != null; } /** + * + * *
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                                  * 
                              * * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + * * @return The resolvedStorageSource. */ @java.lang.Override public com.google.cloud.functions.v2.StorageSource getResolvedStorageSource() { - return resolvedStorageSource_ == null ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance() : resolvedStorageSource_; + return resolvedStorageSource_ == null + ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance() + : resolvedStorageSource_; } /** + * + * *
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                              @@ -157,12 +191,15 @@ public com.google.cloud.functions.v2.StorageSourceOrBuilder getResolvedStorageSo
                                 public static final int RESOLVED_REPO_SOURCE_FIELD_NUMBER = 2;
                                 private com.google.cloud.functions.v2.RepoSource resolvedRepoSource_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                                  * 
                              * * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + * * @return Whether the resolvedRepoSource field is set. */ @java.lang.Override @@ -170,19 +207,26 @@ public boolean hasResolvedRepoSource() { return resolvedRepoSource_ != null; } /** + * + * *
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                                  * 
                              * * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + * * @return The resolvedRepoSource. */ @java.lang.Override public com.google.cloud.functions.v2.RepoSource getResolvedRepoSource() { - return resolvedRepoSource_ == null ? com.google.cloud.functions.v2.RepoSource.getDefaultInstance() : resolvedRepoSource_; + return resolvedRepoSource_ == null + ? com.google.cloud.functions.v2.RepoSource.getDefaultInstance() + : resolvedRepoSource_; } /** + * + * *
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                              @@ -196,6 +240,7 @@ public com.google.cloud.functions.v2.RepoSourceOrBuilder getResolvedRepoSourceOr
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -207,8 +252,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (resolvedStorageSource_ != null) {
                                     output.writeMessage(1, getResolvedStorageSource());
                                   }
                              @@ -225,12 +269,11 @@ public int getSerializedSize() {
                               
                                   size = 0;
                                   if (resolvedStorageSource_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(1, getResolvedStorageSource());
                              +      size +=
                              +          com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResolvedStorageSource());
                                   }
                                   if (resolvedRepoSource_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(2, getResolvedRepoSource());
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResolvedRepoSource());
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -240,22 +283,21 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2.SourceProvenance)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v2.SourceProvenance other = (com.google.cloud.functions.v2.SourceProvenance) obj;
                              +    com.google.cloud.functions.v2.SourceProvenance other =
                              +        (com.google.cloud.functions.v2.SourceProvenance) obj;
                               
                                   if (hasResolvedStorageSource() != other.hasResolvedStorageSource()) return false;
                                   if (hasResolvedStorageSource()) {
                              -      if (!getResolvedStorageSource()
                              -          .equals(other.getResolvedStorageSource())) return false;
                              +      if (!getResolvedStorageSource().equals(other.getResolvedStorageSource())) return false;
                                   }
                                   if (hasResolvedRepoSource() != other.hasResolvedRepoSource()) return false;
                                   if (hasResolvedRepoSource()) {
                              -      if (!getResolvedRepoSource()
                              -          .equals(other.getResolvedRepoSource())) return false;
                              +      if (!getResolvedRepoSource().equals(other.getResolvedRepoSource())) return false;
                                   }
                                   if (!unknownFields.equals(other.unknownFields)) return false;
                                   return true;
                              @@ -281,97 +323,104 @@ public int hashCode() {
                                   return hash;
                                 }
                               
                              -  public static com.google.cloud.functions.v2.SourceProvenance parseFrom(
                              -      java.nio.ByteBuffer data)
                              +  public static com.google.cloud.functions.v2.SourceProvenance parseFrom(java.nio.ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SourceProvenance parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.SourceProvenance parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SourceProvenance 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.SourceProvenance parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SourceProvenance parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SourceProvenance parseFrom(java.io.InputStream input)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SourceProvenance parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2.SourceProvenance parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2.SourceProvenance parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SourceProvenance parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SourceProvenance parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.SourceProvenance parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              +
                                 public static Builder newBuilder(com.google.cloud.functions.v2.SourceProvenance prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Provenance of the source. Ways to find the original source, or verify that
                                  * some source was used for this build.
                              @@ -379,21 +428,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2.SourceProvenance}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.SourceProvenance)
                                     com.google.cloud.functions.v2.SourceProvenanceOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SourceProvenance_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_SourceProvenance_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SourceProvenance_fieldAccessorTable
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_SourceProvenance_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2.SourceProvenance.class, com.google.cloud.functions.v2.SourceProvenance.Builder.class);
                              +              com.google.cloud.functions.v2.SourceProvenance.class,
                              +              com.google.cloud.functions.v2.SourceProvenance.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2.SourceProvenance.newBuilder()
                              @@ -401,16 +452,15 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              -      }
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -430,9 +480,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_SourceProvenance_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2_SourceProvenance_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -451,7 +501,8 @@ public com.google.cloud.functions.v2.SourceProvenance build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2.SourceProvenance buildPartial() {
                              -      com.google.cloud.functions.v2.SourceProvenance result = new com.google.cloud.functions.v2.SourceProvenance(this);
                              +      com.google.cloud.functions.v2.SourceProvenance result =
                              +          new com.google.cloud.functions.v2.SourceProvenance(this);
                                     if (resolvedStorageSourceBuilder_ == null) {
                                       result.resolvedStorageSource_ = resolvedStorageSource_;
                                     } else {
                              @@ -470,38 +521,39 @@ public com.google.cloud.functions.v2.SourceProvenance buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2.SourceProvenance)other);
                              +        return mergeFrom((com.google.cloud.functions.v2.SourceProvenance) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -547,36 +599,49 @@ public Builder mergeFrom(
                               
                                   private com.google.cloud.functions.v2.StorageSource resolvedStorageSource_;
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder> resolvedStorageSourceBuilder_;
                              +            com.google.cloud.functions.v2.StorageSource,
                              +            com.google.cloud.functions.v2.StorageSource.Builder,
                              +            com.google.cloud.functions.v2.StorageSourceOrBuilder>
                              +        resolvedStorageSourceBuilder_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                                    * 
                              * * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + * * @return Whether the resolvedStorageSource field is set. */ public boolean hasResolvedStorageSource() { return resolvedStorageSourceBuilder_ != null || resolvedStorageSource_ != null; } /** + * + * *
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                                    * 
                              * * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + * * @return The resolvedStorageSource. */ public com.google.cloud.functions.v2.StorageSource getResolvedStorageSource() { if (resolvedStorageSourceBuilder_ == null) { - return resolvedStorageSource_ == null ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance() : resolvedStorageSource_; + return resolvedStorageSource_ == null + ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance() + : resolvedStorageSource_; } else { return resolvedStorageSourceBuilder_.getMessage(); } } /** + * + * *
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -598,6 +663,8 @@ public Builder setResolvedStorageSource(com.google.cloud.functions.v2.StorageSou
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -617,6 +684,8 @@ public Builder setResolvedStorageSource(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -628,7 +697,9 @@ public Builder mergeResolvedStorageSource(com.google.cloud.functions.v2.StorageS
                                     if (resolvedStorageSourceBuilder_ == null) {
                                       if (resolvedStorageSource_ != null) {
                                         resolvedStorageSource_ =
                              -            com.google.cloud.functions.v2.StorageSource.newBuilder(resolvedStorageSource_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2.StorageSource.newBuilder(resolvedStorageSource_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         resolvedStorageSource_ = value;
                                       }
                              @@ -640,6 +711,8 @@ public Builder mergeResolvedStorageSource(com.google.cloud.functions.v2.StorageS
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -659,6 +732,8 @@ public Builder clearResolvedStorageSource() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -667,11 +742,13 @@ public Builder clearResolvedStorageSource() {
                                    * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1;
                                    */
                                   public com.google.cloud.functions.v2.StorageSource.Builder getResolvedStorageSourceBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getResolvedStorageSourceFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -679,15 +756,19 @@ public com.google.cloud.functions.v2.StorageSource.Builder getResolvedStorageSou
                                    *
                                    * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1;
                                    */
                              -    public com.google.cloud.functions.v2.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder() {
                              +    public com.google.cloud.functions.v2.StorageSourceOrBuilder
                              +        getResolvedStorageSourceOrBuilder() {
                                     if (resolvedStorageSourceBuilder_ != null) {
                                       return resolvedStorageSourceBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return resolvedStorageSource_ == null ?
                              -            com.google.cloud.functions.v2.StorageSource.getDefaultInstance() : resolvedStorageSource_;
                              +        return resolvedStorageSource_ == null
                              +            ? com.google.cloud.functions.v2.StorageSource.getDefaultInstance()
                              +            : resolvedStorageSource_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -696,14 +777,17 @@ public com.google.cloud.functions.v2.StorageSourceOrBuilder getResolvedStorageSo
                                    * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder> 
                              +            com.google.cloud.functions.v2.StorageSource,
                              +            com.google.cloud.functions.v2.StorageSource.Builder,
                              +            com.google.cloud.functions.v2.StorageSourceOrBuilder>
                                       getResolvedStorageSourceFieldBuilder() {
                                     if (resolvedStorageSourceBuilder_ == null) {
                              -        resolvedStorageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2.StorageSource, com.google.cloud.functions.v2.StorageSource.Builder, com.google.cloud.functions.v2.StorageSourceOrBuilder>(
                              -                getResolvedStorageSource(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        resolvedStorageSourceBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2.StorageSource,
                              +                com.google.cloud.functions.v2.StorageSource.Builder,
                              +                com.google.cloud.functions.v2.StorageSourceOrBuilder>(
                              +                getResolvedStorageSource(), getParentForChildren(), isClean());
                                       resolvedStorageSource_ = null;
                                     }
                                     return resolvedStorageSourceBuilder_;
                              @@ -711,36 +795,49 @@ public com.google.cloud.functions.v2.StorageSourceOrBuilder getResolvedStorageSo
                               
                                   private com.google.cloud.functions.v2.RepoSource resolvedRepoSource_;
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2.RepoSource, com.google.cloud.functions.v2.RepoSource.Builder, com.google.cloud.functions.v2.RepoSourceOrBuilder> resolvedRepoSourceBuilder_;
                              +            com.google.cloud.functions.v2.RepoSource,
                              +            com.google.cloud.functions.v2.RepoSource.Builder,
                              +            com.google.cloud.functions.v2.RepoSourceOrBuilder>
                              +        resolvedRepoSourceBuilder_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                                    * 
                              * * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + * * @return Whether the resolvedRepoSource field is set. */ public boolean hasResolvedRepoSource() { return resolvedRepoSourceBuilder_ != null || resolvedRepoSource_ != null; } /** + * + * *
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                                    * 
                              * * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + * * @return The resolvedRepoSource. */ public com.google.cloud.functions.v2.RepoSource getResolvedRepoSource() { if (resolvedRepoSourceBuilder_ == null) { - return resolvedRepoSource_ == null ? com.google.cloud.functions.v2.RepoSource.getDefaultInstance() : resolvedRepoSource_; + return resolvedRepoSource_ == null + ? com.google.cloud.functions.v2.RepoSource.getDefaultInstance() + : resolvedRepoSource_; } else { return resolvedRepoSourceBuilder_.getMessage(); } } /** + * + * *
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -762,6 +859,8 @@ public Builder setResolvedRepoSource(com.google.cloud.functions.v2.RepoSource va
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -781,6 +880,8 @@ public Builder setResolvedRepoSource(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -792,7 +893,9 @@ public Builder mergeResolvedRepoSource(com.google.cloud.functions.v2.RepoSource
                                     if (resolvedRepoSourceBuilder_ == null) {
                                       if (resolvedRepoSource_ != null) {
                                         resolvedRepoSource_ =
                              -            com.google.cloud.functions.v2.RepoSource.newBuilder(resolvedRepoSource_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2.RepoSource.newBuilder(resolvedRepoSource_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         resolvedRepoSource_ = value;
                                       }
                              @@ -804,6 +907,8 @@ public Builder mergeResolvedRepoSource(com.google.cloud.functions.v2.RepoSource
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -823,6 +928,8 @@ public Builder clearResolvedRepoSource() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -831,11 +938,13 @@ public Builder clearResolvedRepoSource() {
                                    * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2;
                                    */
                                   public com.google.cloud.functions.v2.RepoSource.Builder getResolvedRepoSourceBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getResolvedRepoSourceFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -847,11 +956,14 @@ public com.google.cloud.functions.v2.RepoSourceOrBuilder getResolvedRepoSourceOr
                                     if (resolvedRepoSourceBuilder_ != null) {
                                       return resolvedRepoSourceBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return resolvedRepoSource_ == null ?
                              -            com.google.cloud.functions.v2.RepoSource.getDefaultInstance() : resolvedRepoSource_;
                              +        return resolvedRepoSource_ == null
                              +            ? com.google.cloud.functions.v2.RepoSource.getDefaultInstance()
                              +            : resolvedRepoSource_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -860,21 +972,24 @@ public com.google.cloud.functions.v2.RepoSourceOrBuilder getResolvedRepoSourceOr
                                    * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2.RepoSource, com.google.cloud.functions.v2.RepoSource.Builder, com.google.cloud.functions.v2.RepoSourceOrBuilder> 
                              +            com.google.cloud.functions.v2.RepoSource,
                              +            com.google.cloud.functions.v2.RepoSource.Builder,
                              +            com.google.cloud.functions.v2.RepoSourceOrBuilder>
                                       getResolvedRepoSourceFieldBuilder() {
                                     if (resolvedRepoSourceBuilder_ == null) {
                              -        resolvedRepoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2.RepoSource, com.google.cloud.functions.v2.RepoSource.Builder, com.google.cloud.functions.v2.RepoSourceOrBuilder>(
                              -                getResolvedRepoSource(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        resolvedRepoSourceBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2.RepoSource,
                              +                com.google.cloud.functions.v2.RepoSource.Builder,
                              +                com.google.cloud.functions.v2.RepoSourceOrBuilder>(
                              +                getResolvedRepoSource(), getParentForChildren(), isClean());
                                       resolvedRepoSource_ = null;
                                     }
                                     return resolvedRepoSourceBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -884,12 +999,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.SourceProvenance)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.SourceProvenance)
                                 private static final com.google.cloud.functions.v2.SourceProvenance DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2.SourceProvenance();
                                 }
                              @@ -898,16 +1013,16 @@ public static com.google.cloud.functions.v2.SourceProvenance getDefaultInstance(
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public SourceProvenance parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new SourceProvenance(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public SourceProvenance parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new SourceProvenance(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -922,6 +1037,4 @@ public com.google.protobuf.Parser getParserForType() {
                                 public com.google.cloud.functions.v2.SourceProvenance getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenanceOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenanceOrBuilder.java
                              similarity index 75%
                              rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenanceOrBuilder.java
                              rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenanceOrBuilder.java
                              index c7bebdca..e83241b0 100644
                              --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenanceOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenanceOrBuilder.java
                              @@ -1,33 +1,57 @@
                              +/*
                              + * 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 SourceProvenanceOrBuilder extends
                              +public interface SourceProvenanceOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.SourceProvenance)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                                  * 
                              * * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + * * @return Whether the resolvedStorageSource field is set. */ boolean hasResolvedStorageSource(); /** + * + * *
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                                  * 
                              * * .google.cloud.functions.v2.StorageSource resolved_storage_source = 1; + * * @return The resolvedStorageSource. */ com.google.cloud.functions.v2.StorageSource getResolvedStorageSource(); /** + * + * *
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                              @@ -38,26 +62,34 @@ public interface SourceProvenanceOrBuilder extends
                                 com.google.cloud.functions.v2.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                                  * 
                              * * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + * * @return Whether the resolvedRepoSource field is set. */ boolean hasResolvedRepoSource(); /** + * + * *
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                                  * 
                              * * .google.cloud.functions.v2.RepoSource resolved_repo_source = 2; + * * @return The resolvedRepoSource. */ com.google.cloud.functions.v2.RepoSource getResolvedRepoSource(); /** + * + * *
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                              diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java
                              similarity index 75%
                              rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java
                              rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java
                              index cf9a9dc8..3296dd6e 100644
                              --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java
                              +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java
                              @@ -1,24 +1,42 @@
                              +/*
                              + * 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;
                               
                               /**
                              + *
                              + *
                                * 
                                * Each Stage of the deployment process
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.Stage} */ -public final class Stage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Stage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.Stage) StageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Stage.newBuilder() to construct. private Stage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Stage() { name_ = 0; message_ = ""; @@ -30,16 +48,15 @@ private Stage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Stage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Stage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,52 +76,60 @@ private Stage( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - name_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + message_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - resource_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + resource_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceUri_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stateMessages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + resourceUri_ = s; + break; } - stateMessages_.add( - input.readMessage(com.google.cloud.functions.v2.StateMessage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stateMessages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stateMessages_.add( + input.readMessage( + com.google.cloud.functions.v2.StateMessage.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,8 +137,7 @@ private Stage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_); @@ -122,29 +146,35 @@ private Stage( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Stage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_Stage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Stage_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_Stage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.Stage.class, com.google.cloud.functions.v2.Stage.Builder.class); + com.google.cloud.functions.v2.Stage.class, + com.google.cloud.functions.v2.Stage.Builder.class); } /** + * + * *
                                  * Possible names for a Stage
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2.Stage.Name} */ - public enum Name - implements com.google.protobuf.ProtocolMessageEnum { + public enum Name implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified. Invalid name.
                                    * 
                              @@ -153,6 +183,8 @@ public enum Name */ NAME_UNSPECIFIED(0), /** + * + * *
                                    * Artifact Regsitry Stage
                                    * 
                              @@ -161,6 +193,8 @@ public enum Name */ ARTIFACT_REGISTRY(1), /** + * + * *
                                    * Build Stage
                                    * 
                              @@ -169,6 +203,8 @@ public enum Name */ BUILD(2), /** + * + * *
                                    * Service Stage
                                    * 
                              @@ -177,6 +213,8 @@ public enum Name */ SERVICE(3), /** + * + * *
                                    * Trigger Stage
                                    * 
                              @@ -185,6 +223,8 @@ public enum Name */ TRIGGER(4), /** + * + * *
                                    * Service Rollback Stage
                                    * 
                              @@ -193,6 +233,8 @@ public enum Name */ SERVICE_ROLLBACK(5), /** + * + * *
                                    * Trigger Rollback Stage
                                    * 
                              @@ -204,6 +246,8 @@ public enum Name ; /** + * + * *
                                    * Not specified. Invalid name.
                                    * 
                              @@ -212,6 +256,8 @@ public enum Name */ public static final int NAME_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Artifact Regsitry Stage
                                    * 
                              @@ -220,6 +266,8 @@ public enum Name */ public static final int ARTIFACT_REGISTRY_VALUE = 1; /** + * + * *
                                    * Build Stage
                                    * 
                              @@ -228,6 +276,8 @@ public enum Name */ public static final int BUILD_VALUE = 2; /** + * + * *
                                    * Service Stage
                                    * 
                              @@ -236,6 +286,8 @@ public enum Name */ public static final int SERVICE_VALUE = 3; /** + * + * *
                                    * Trigger Stage
                                    * 
                              @@ -244,6 +296,8 @@ public enum Name */ public static final int TRIGGER_VALUE = 4; /** + * + * *
                                    * Service Rollback Stage
                                    * 
                              @@ -252,6 +306,8 @@ public enum Name */ public static final int SERVICE_ROLLBACK_VALUE = 5; /** + * + * *
                                    * Trigger Rollback Stage
                                    * 
                              @@ -260,7 +316,6 @@ public enum Name */ public static final int TRIGGER_ROLLBACK_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -285,53 +340,57 @@ public static Name valueOf(int value) { */ public static Name forNumber(int value) { switch (value) { - case 0: return NAME_UNSPECIFIED; - case 1: return ARTIFACT_REGISTRY; - case 2: return BUILD; - case 3: return SERVICE; - case 4: return TRIGGER; - case 5: return SERVICE_ROLLBACK; - case 6: return TRIGGER_ROLLBACK; - default: return null; + case 0: + return NAME_UNSPECIFIED; + case 1: + return ARTIFACT_REGISTRY; + case 2: + return BUILD; + case 3: + return SERVICE; + case 4: + return TRIGGER; + case 5: + return SERVICE_ROLLBACK; + case 6: + return TRIGGER_ROLLBACK; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Name> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Name findValueByNumber(int number) { - return Name.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Name findValueByNumber(int number) { + return Name.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2.Stage.getDescriptor().getEnumTypes().get(0); } private static final Name[] VALUES = values(); - public static Name valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Name valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -349,15 +408,18 @@ private Name(int value) { } /** + * + * *
                                  * Possible states for a Stage
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2.Stage.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified. Invalid state.
                                    * 
                              @@ -366,6 +428,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
                                    * Stage has not started.
                                    * 
                              @@ -374,6 +438,8 @@ public enum State */ NOT_STARTED(1), /** + * + * *
                                    * Stage is in progress.
                                    * 
                              @@ -382,6 +448,8 @@ public enum State */ IN_PROGRESS(2), /** + * + * *
                                    * Stage has completed.
                                    * 
                              @@ -393,6 +461,8 @@ public enum State ; /** + * + * *
                                    * Not specified. Invalid state.
                                    * 
                              @@ -401,6 +471,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Stage has not started.
                                    * 
                              @@ -409,6 +481,8 @@ public enum State */ public static final int NOT_STARTED_VALUE = 1; /** + * + * *
                                    * Stage is in progress.
                                    * 
                              @@ -417,6 +491,8 @@ public enum State */ public static final int IN_PROGRESS_VALUE = 2; /** + * + * *
                                    * Stage has completed.
                                    * 
                              @@ -425,7 +501,6 @@ public enum State */ public static final int COMPLETE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -450,50 +525,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return NOT_STARTED; - case 2: return IN_PROGRESS; - case 3: return COMPLETE; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return NOT_STARTED; + case 2: + return IN_PROGRESS; + case 3: + return COMPLETE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2.Stage.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -513,38 +589,50 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private int name_; /** + * + * *
                                  * Name of the Stage. This will be unique for each Stage.
                                  * 
                              * * .google.cloud.functions.v2.Stage.Name name = 1; + * * @return The enum numeric value on the wire for name. */ - @java.lang.Override public int getNameValue() { + @java.lang.Override + public int getNameValue() { return name_; } /** + * + * *
                                  * Name of the Stage. This will be unique for each Stage.
                                  * 
                              * * .google.cloud.functions.v2.Stage.Name name = 1; + * * @return The name. */ - @java.lang.Override public com.google.cloud.functions.v2.Stage.Name getName() { + @java.lang.Override + public com.google.cloud.functions.v2.Stage.Name getName() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.Stage.Name result = com.google.cloud.functions.v2.Stage.Name.valueOf(name_); + com.google.cloud.functions.v2.Stage.Name result = + com.google.cloud.functions.v2.Stage.Name.valueOf(name_); return result == null ? com.google.cloud.functions.v2.Stage.Name.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** + * + * *
                                  * Message describing the Stage
                                  * 
                              * * string message = 2; + * * @return The message. */ @java.lang.Override @@ -553,29 +641,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
                                  * Message describing the Stage
                                  * 
                              * * string message = 2; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -586,38 +674,50 @@ public java.lang.String getMessage() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
                                  * Current state of the Stage
                                  * 
                              * * .google.cloud.functions.v2.Stage.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
                                  * Current state of the Stage
                                  * 
                              * * .google.cloud.functions.v2.Stage.State state = 3; + * * @return The state. */ - @java.lang.Override public com.google.cloud.functions.v2.Stage.State getState() { + @java.lang.Override + public com.google.cloud.functions.v2.Stage.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.Stage.State result = com.google.cloud.functions.v2.Stage.State.valueOf(state_); + com.google.cloud.functions.v2.Stage.State result = + com.google.cloud.functions.v2.Stage.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2.Stage.State.UNRECOGNIZED : result; } public static final int RESOURCE_FIELD_NUMBER = 4; private volatile java.lang.Object resource_; /** + * + * *
                                  * Resource of the Stage
                                  * 
                              * * string resource = 4; + * * @return The resource. */ @java.lang.Override @@ -626,29 +726,29 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
                                  * Resource of the Stage
                                  * 
                              * * string resource = 4; + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -659,11 +759,14 @@ public java.lang.String getResource() { public static final int RESOURCE_URI_FIELD_NUMBER = 5; private volatile java.lang.Object resourceUri_; /** + * + * *
                                  * Link to the current Stage resource
                                  * 
                              * * string resource_uri = 5; + * * @return The resourceUri. */ @java.lang.Override @@ -672,29 +775,29 @@ public java.lang.String getResourceUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUri_ = s; return s; } } /** + * + * *
                                  * Link to the current Stage resource
                                  * 
                              * * string resource_uri = 5; + * * @return The bytes for resourceUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceUriBytes() { + public com.google.protobuf.ByteString getResourceUriBytes() { java.lang.Object ref = resourceUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUri_ = b; return b; } else { @@ -705,6 +808,8 @@ public java.lang.String getResourceUri() { public static final int STATE_MESSAGES_FIELD_NUMBER = 6; private java.util.List stateMessages_; /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -716,6 +821,8 @@ public java.util.List getStateMessag return stateMessages_; } /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -723,11 +830,13 @@ public java.util.List getStateMessag * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; */ @java.lang.Override - public java.util.List + public java.util.List getStateMessagesOrBuilderList() { return stateMessages_; } /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -739,6 +848,8 @@ public int getStateMessagesCount() { return stateMessages_.size(); } /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -750,6 +861,8 @@ public com.google.cloud.functions.v2.StateMessage getStateMessages(int index) { return stateMessages_.get(index); } /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -757,12 +870,12 @@ public com.google.cloud.functions.v2.StateMessage getStateMessages(int index) { * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; */ @java.lang.Override - public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder( - int index) { + public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder(int index) { return stateMessages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -774,8 +887,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (name_ != com.google.cloud.functions.v2.Stage.Name.NAME_UNSPECIFIED.getNumber()) { output.writeEnum(1, name_); } @@ -804,15 +916,13 @@ public int getSerializedSize() { size = 0; if (name_ != com.google.cloud.functions.v2.Stage.Name.NAME_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, name_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } if (state_ != com.google.cloud.functions.v2.Stage.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); @@ -821,8 +931,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, resourceUri_); } for (int i = 0; i < stateMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, stateMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, stateMessages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -832,7 +941,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.Stage)) { return super.equals(obj); @@ -840,15 +949,11 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.functions.v2.Stage other = (com.google.cloud.functions.v2.Stage) obj; if (name_ != other.name_) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (state_ != other.state_) return false; - if (!getResource() - .equals(other.getResource())) return false; - if (!getResourceUri() - .equals(other.getResourceUri())) return false; - if (!getStateMessagesList() - .equals(other.getStateMessagesList())) return false; + if (!getResource().equals(other.getResource())) return false; + if (!getResourceUri().equals(other.getResourceUri())) return false; + if (!getStateMessagesList().equals(other.getStateMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -879,118 +984,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2.Stage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2.Stage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.Stage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Stage parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.functions.v2.Stage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.Stage 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.Stage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.Stage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2.Stage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.Stage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.Stage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.Stage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.Stage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.Stage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.Stage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Each Stage of the deployment process
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.Stage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.Stage) com.google.cloud.functions.v2.StageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Stage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_Stage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Stage_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_Stage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.Stage.class, com.google.cloud.functions.v2.Stage.Builder.class); + com.google.cloud.functions.v2.Stage.class, + com.google.cloud.functions.v2.Stage.Builder.class); } // Construct using com.google.cloud.functions.v2.Stage.newBuilder() @@ -998,17 +1111,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStateMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1032,9 +1145,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_Stage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_Stage_descriptor; } @java.lang.Override @@ -1077,38 +1190,39 @@ public com.google.cloud.functions.v2.Stage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.Stage)other); + return mergeFrom((com.google.cloud.functions.v2.Stage) other); } else { super.mergeFrom(other); return this; @@ -1153,9 +1267,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2.Stage other) { stateMessagesBuilder_ = null; stateMessages_ = other.stateMessages_; bitField0_ = (bitField0_ & ~0x00000001); - stateMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStateMessagesFieldBuilder() : null; + stateMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStateMessagesFieldBuilder() + : null; } else { stateMessagesBuilder_.addAllMessages(other.stateMessages_); } @@ -1189,55 +1304,70 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private int name_ = 0; /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2.Stage.Name name = 1; + * * @return The enum numeric value on the wire for name. */ - @java.lang.Override public int getNameValue() { + @java.lang.Override + public int getNameValue() { return name_; } /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2.Stage.Name name = 1; + * * @param value The enum numeric value on the wire for name to set. * @return This builder for chaining. */ public Builder setNameValue(int value) { - + name_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2.Stage.Name name = 1; + * * @return The name. */ @java.lang.Override public com.google.cloud.functions.v2.Stage.Name getName() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.Stage.Name result = com.google.cloud.functions.v2.Stage.Name.valueOf(name_); + com.google.cloud.functions.v2.Stage.Name result = + com.google.cloud.functions.v2.Stage.Name.valueOf(name_); return result == null ? com.google.cloud.functions.v2.Stage.Name.UNRECOGNIZED : result; } /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2.Stage.Name name = 1; + * * @param value The name to set. * @return This builder for chaining. */ @@ -1245,21 +1375,24 @@ public Builder setName(com.google.cloud.functions.v2.Stage.Name value) { if (value == null) { throw new NullPointerException(); } - + name_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2.Stage.Name name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = 0; onChanged(); return this; @@ -1267,18 +1400,20 @@ public Builder clearName() { private java.lang.Object message_ = ""; /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -1287,20 +1422,21 @@ public java.lang.String getMessage() { } } /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -1308,54 +1444,61 @@ public java.lang.String getMessage() { } } /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; @@ -1363,51 +1506,65 @@ public Builder setMessageBytes( private int state_ = 0; /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2.Stage.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2.Stage.State state = 3; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2.Stage.State state = 3; + * * @return The state. */ @java.lang.Override public com.google.cloud.functions.v2.Stage.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.Stage.State result = com.google.cloud.functions.v2.Stage.State.valueOf(state_); + com.google.cloud.functions.v2.Stage.State result = + com.google.cloud.functions.v2.Stage.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2.Stage.State.UNRECOGNIZED : result; } /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2.Stage.State state = 3; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1415,21 +1572,24 @@ public Builder setState(com.google.cloud.functions.v2.Stage.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2.Stage.State state = 3; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1437,18 +1597,20 @@ public Builder clearState() { private java.lang.Object resource_ = ""; /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -1457,20 +1619,21 @@ public java.lang.String getResource() { } } /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -1478,54 +1641,61 @@ public java.lang.String getResource() { } } /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -1533,18 +1703,20 @@ public Builder setResourceBytes( private java.lang.Object resourceUri_ = ""; /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @return The resourceUri. */ public java.lang.String getResourceUri() { java.lang.Object ref = resourceUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUri_ = s; return s; @@ -1553,20 +1725,21 @@ public java.lang.String getResourceUri() { } } /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @return The bytes for resourceUri. */ - public com.google.protobuf.ByteString - getResourceUriBytes() { + public com.google.protobuf.ByteString getResourceUriBytes() { java.lang.Object ref = resourceUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUri_ = b; return b; } else { @@ -1574,72 +1747,86 @@ public java.lang.String getResourceUri() { } } /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @param value The resourceUri to set. * @return This builder for chaining. */ - public Builder setResourceUri( - java.lang.String value) { + public Builder setResourceUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUri_ = value; onChanged(); return this; } /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @return This builder for chaining. */ public Builder clearResourceUri() { - + resourceUri_ = getDefaultInstance().getResourceUri(); onChanged(); return this; } /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @param value The bytes for resourceUri to set. * @return This builder for chaining. */ - public Builder setResourceUriBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUri_ = value; onChanged(); return this; } private java.util.List stateMessages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStateMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - stateMessages_ = new java.util.ArrayList(stateMessages_); + stateMessages_ = + new java.util.ArrayList(stateMessages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.StateMessage, com.google.cloud.functions.v2.StateMessage.Builder, com.google.cloud.functions.v2.StateMessageOrBuilder> stateMessagesBuilder_; + com.google.cloud.functions.v2.StateMessage, + com.google.cloud.functions.v2.StateMessage.Builder, + com.google.cloud.functions.v2.StateMessageOrBuilder> + stateMessagesBuilder_; /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1654,6 +1841,8 @@ public java.util.List getStateMessag } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1668,6 +1857,8 @@ public int getStateMessagesCount() { } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1682,14 +1873,15 @@ public com.google.cloud.functions.v2.StateMessage getStateMessages(int index) { } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              * * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; */ - public Builder setStateMessages( - int index, com.google.cloud.functions.v2.StateMessage value) { + public Builder setStateMessages(int index, com.google.cloud.functions.v2.StateMessage value) { if (stateMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1703,6 +1895,8 @@ public Builder setStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1721,6 +1915,8 @@ public Builder setStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1741,14 +1937,15 @@ public Builder addStateMessages(com.google.cloud.functions.v2.StateMessage value return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              * * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; */ - public Builder addStateMessages( - int index, com.google.cloud.functions.v2.StateMessage value) { + public Builder addStateMessages(int index, com.google.cloud.functions.v2.StateMessage value) { if (stateMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1762,6 +1959,8 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1780,6 +1979,8 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1798,6 +1999,8 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1808,8 +2011,7 @@ public Builder addAllStateMessages( java.lang.Iterable values) { if (stateMessagesBuilder_ == null) { ensureStateMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stateMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateMessages_); onChanged(); } else { stateMessagesBuilder_.addAllMessages(values); @@ -1817,6 +2019,8 @@ public Builder addAllStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1834,6 +2038,8 @@ public Builder clearStateMessages() { return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1851,17 +2057,20 @@ public Builder removeStateMessages(int index) { return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              * * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; */ - public com.google.cloud.functions.v2.StateMessage.Builder getStateMessagesBuilder( - int index) { + public com.google.cloud.functions.v2.StateMessage.Builder getStateMessagesBuilder(int index) { return getStateMessagesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1871,19 +2080,22 @@ public com.google.cloud.functions.v2.StateMessage.Builder getStateMessagesBuilde public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder( int index) { if (stateMessagesBuilder_ == null) { - return stateMessages_.get(index); } else { + return stateMessages_.get(index); + } else { return stateMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              * * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; */ - public java.util.List - getStateMessagesOrBuilderList() { + public java.util.List + getStateMessagesOrBuilderList() { if (stateMessagesBuilder_ != null) { return stateMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -1891,6 +2103,8 @@ public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBui } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1898,38 +2112,47 @@ public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBui * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; */ public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilder() { - return getStateMessagesFieldBuilder().addBuilder( - com.google.cloud.functions.v2.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2.StateMessage.getDefaultInstance()); } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              * * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; */ - public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilder( - int index) { - return getStateMessagesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2.StateMessage.getDefaultInstance()); + public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilder(int index) { + return getStateMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2.StateMessage.getDefaultInstance()); } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              * * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; */ - public java.util.List - getStateMessagesBuilderList() { + public java.util.List + getStateMessagesBuilderList() { return getStateMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.StateMessage, com.google.cloud.functions.v2.StateMessage.Builder, com.google.cloud.functions.v2.StateMessageOrBuilder> + com.google.cloud.functions.v2.StateMessage, + com.google.cloud.functions.v2.StateMessage.Builder, + com.google.cloud.functions.v2.StateMessageOrBuilder> getStateMessagesFieldBuilder() { if (stateMessagesBuilder_ == null) { - stateMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2.StateMessage, com.google.cloud.functions.v2.StateMessage.Builder, com.google.cloud.functions.v2.StateMessageOrBuilder>( + stateMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2.StateMessage, + com.google.cloud.functions.v2.StateMessage.Builder, + com.google.cloud.functions.v2.StateMessageOrBuilder>( stateMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1938,9 +2161,9 @@ public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilde } return stateMessagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1950,12 +2173,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.Stage) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.Stage) private static final com.google.cloud.functions.v2.Stage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.Stage(); } @@ -1964,16 +2187,16 @@ public static com.google.cloud.functions.v2.Stage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Stage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Stage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Stage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1988,6 +2211,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.Stage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StageOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StageOrBuilder.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StageOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StageOrBuilder.java index d1b51104..f99ae3ba 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StageOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StageOrBuilder.java @@ -1,120 +1,166 @@ +/* + * 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 StageOrBuilder extends +public interface StageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.Stage) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Name of the Stage. This will be unique for each Stage.
                                  * 
                              * * .google.cloud.functions.v2.Stage.Name name = 1; + * * @return The enum numeric value on the wire for name. */ int getNameValue(); /** + * + * *
                                  * Name of the Stage. This will be unique for each Stage.
                                  * 
                              * * .google.cloud.functions.v2.Stage.Name name = 1; + * * @return The name. */ com.google.cloud.functions.v2.Stage.Name getName(); /** + * + * *
                                  * Message describing the Stage
                                  * 
                              * * string message = 2; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
                                  * Message describing the Stage
                                  * 
                              * * string message = 2; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); /** + * + * *
                                  * Current state of the Stage
                                  * 
                              * * .google.cloud.functions.v2.Stage.State state = 3; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
                                  * Current state of the Stage
                                  * 
                              * * .google.cloud.functions.v2.Stage.State state = 3; + * * @return The state. */ com.google.cloud.functions.v2.Stage.State getState(); /** + * + * *
                                  * Resource of the Stage
                                  * 
                              * * string resource = 4; + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
                                  * Resource of the Stage
                                  * 
                              * * string resource = 4; + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
                                  * Link to the current Stage resource
                                  * 
                              * * string resource_uri = 5; + * * @return The resourceUri. */ java.lang.String getResourceUri(); /** + * + * *
                                  * Link to the current Stage resource
                                  * 
                              * * string resource_uri = 5; + * * @return The bytes for resourceUri. */ - com.google.protobuf.ByteString - getResourceUriBytes(); + com.google.protobuf.ByteString getResourceUriBytes(); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              * * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; */ - java.util.List - getStateMessagesList(); + java.util.List getStateMessagesList(); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -123,6 +169,8 @@ public interface StageOrBuilder extends */ com.google.cloud.functions.v2.StateMessage getStateMessages(int index); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -131,21 +179,24 @@ public interface StageOrBuilder extends */ int getStateMessagesCount(); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              * * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; */ - java.util.List + java.util.List getStateMessagesOrBuilderList(); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              * * repeated .google.cloud.functions.v2.StateMessage state_messages = 6; */ - com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder( - int index); + com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBuilder(int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java index a341285b..f7f6eaeb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Informational messages about the state of the Cloud Function or Operation.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.StateMessage} */ -public final class StateMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StateMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.StateMessage) StateMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StateMessage.newBuilder() to construct. private StateMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StateMessage() { severity_ = 0; type_ = ""; @@ -27,16 +45,15 @@ private StateMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StateMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StateMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private StateMessage( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - severity_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + severity_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + type_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + message_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,36 +107,41 @@ private StateMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StateMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_StateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StateMessage_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_StateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.StateMessage.class, com.google.cloud.functions.v2.StateMessage.Builder.class); + com.google.cloud.functions.v2.StateMessage.class, + com.google.cloud.functions.v2.StateMessage.Builder.class); } /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2.StateMessage.Severity} */ - public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified. Invalid severity.
                                    * 
                              @@ -125,6 +150,8 @@ public enum Severity */ SEVERITY_UNSPECIFIED(0), /** + * + * *
                                    * ERROR-level severity.
                                    * 
                              @@ -133,6 +160,8 @@ public enum Severity */ ERROR(1), /** + * + * *
                                    * WARNING-level severity.
                                    * 
                              @@ -141,6 +170,8 @@ public enum Severity */ WARNING(2), /** + * + * *
                                    * INFO-level severity.
                                    * 
                              @@ -152,6 +183,8 @@ public enum Severity ; /** + * + * *
                                    * Not specified. Invalid severity.
                                    * 
                              @@ -160,6 +193,8 @@ public enum Severity */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * ERROR-level severity.
                                    * 
                              @@ -168,6 +203,8 @@ public enum Severity */ public static final int ERROR_VALUE = 1; /** + * + * *
                                    * WARNING-level severity.
                                    * 
                              @@ -176,6 +213,8 @@ public enum Severity */ public static final int WARNING_VALUE = 2; /** + * + * *
                                    * INFO-level severity.
                                    * 
                              @@ -184,7 +223,6 @@ public enum Severity */ public static final int INFO_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -209,50 +247,51 @@ public static Severity valueOf(int value) { */ public static Severity forNumber(int value) { switch (value) { - case 0: return SEVERITY_UNSPECIFIED; - case 1: return ERROR; - case 2: return WARNING; - case 3: return INFO; - default: return null; + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return ERROR; + case 2: + return WARNING; + case 3: + return INFO; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Severity> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2.StateMessage.getDescriptor().getEnumTypes().get(0); } private static final Severity[] VALUES = values(); - public static Severity valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -272,38 +311,52 @@ private Severity(int value) { public static final int SEVERITY_FIELD_NUMBER = 1; private int severity_; /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * * @return The severity. */ - @java.lang.Override public com.google.cloud.functions.v2.StateMessage.Severity getSeverity() { + @java.lang.Override + public com.google.cloud.functions.v2.StateMessage.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.StateMessage.Severity result = com.google.cloud.functions.v2.StateMessage.Severity.valueOf(severity_); - return result == null ? com.google.cloud.functions.v2.StateMessage.Severity.UNRECOGNIZED : result; + com.google.cloud.functions.v2.StateMessage.Severity result = + com.google.cloud.functions.v2.StateMessage.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.functions.v2.StateMessage.Severity.UNRECOGNIZED + : result; } public static final int TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object type_; /** + * + * *
                                  * One-word CamelCase type of the state message.
                                  * 
                              * * string type = 2; + * * @return The type. */ @java.lang.Override @@ -312,29 +365,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
                                  * One-word CamelCase type of the state message.
                                  * 
                              * * string type = 2; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -345,11 +398,14 @@ public java.lang.String getType() { public static final int MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object message_; /** + * + * *
                                  * The message.
                                  * 
                              * * string message = 3; + * * @return The message. */ @java.lang.Override @@ -358,29 +414,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
                                  * The message.
                                  * 
                              * * string message = 3; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -389,6 +445,7 @@ public java.lang.String getMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -400,9 +457,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (severity_ != com.google.cloud.functions.v2.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (severity_ + != com.google.cloud.functions.v2.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { output.writeEnum(1, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { @@ -420,9 +477,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (severity_ != com.google.cloud.functions.v2.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, severity_); + if (severity_ + != com.google.cloud.functions.v2.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); @@ -438,18 +495,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.StateMessage)) { return super.equals(obj); } - com.google.cloud.functions.v2.StateMessage other = (com.google.cloud.functions.v2.StateMessage) obj; + com.google.cloud.functions.v2.StateMessage other = + (com.google.cloud.functions.v2.StateMessage) obj; if (severity_ != other.severity_) return false; - if (!getType() - .equals(other.getType())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getType().equals(other.getType())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,118 +528,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2.StateMessage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2.StateMessage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.StateMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StateMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.StateMessage 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.StateMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.StateMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2.StateMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.StateMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.StateMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.StateMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.StateMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.StateMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.StateMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.StateMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Informational messages about the state of the Cloud Function or Operation.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.StateMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.StateMessage) com.google.cloud.functions.v2.StateMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StateMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_StateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StateMessage_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_StateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.StateMessage.class, com.google.cloud.functions.v2.StateMessage.Builder.class); + com.google.cloud.functions.v2.StateMessage.class, + com.google.cloud.functions.v2.StateMessage.Builder.class); } // Construct using com.google.cloud.functions.v2.StateMessage.newBuilder() @@ -591,16 +656,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -614,9 +678,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StateMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_StateMessage_descriptor; } @java.lang.Override @@ -635,7 +699,8 @@ public com.google.cloud.functions.v2.StateMessage build() { @java.lang.Override public com.google.cloud.functions.v2.StateMessage buildPartial() { - com.google.cloud.functions.v2.StateMessage result = new com.google.cloud.functions.v2.StateMessage(this); + com.google.cloud.functions.v2.StateMessage result = + new com.google.cloud.functions.v2.StateMessage(this); result.severity_ = severity_; result.type_ = type_; result.message_ = message_; @@ -647,38 +712,39 @@ public com.google.cloud.functions.v2.StateMessage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.StateMessage)other); + return mergeFrom((com.google.cloud.functions.v2.StateMessage) other); } else { super.mergeFrom(other); return this; @@ -729,51 +795,67 @@ public Builder mergeFrom( private int severity_ = 0; /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * * @return The severity. */ @java.lang.Override public com.google.cloud.functions.v2.StateMessage.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2.StateMessage.Severity result = com.google.cloud.functions.v2.StateMessage.Severity.valueOf(severity_); - return result == null ? com.google.cloud.functions.v2.StateMessage.Severity.UNRECOGNIZED : result; + com.google.cloud.functions.v2.StateMessage.Severity result = + com.google.cloud.functions.v2.StateMessage.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.functions.v2.StateMessage.Severity.UNRECOGNIZED + : result; } /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * * @param value The severity to set. * @return This builder for chaining. */ @@ -781,21 +863,24 @@ public Builder setSeverity(com.google.cloud.functions.v2.StateMessage.Severity v if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -803,18 +888,20 @@ public Builder clearSeverity() { private java.lang.Object type_ = ""; /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -823,20 +910,21 @@ public java.lang.String getType() { } } /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -844,54 +932,61 @@ public java.lang.String getType() { } } /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -899,18 +994,20 @@ public Builder setTypeBytes( private java.lang.Object message_ = ""; /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -919,20 +1016,21 @@ public java.lang.String getMessage() { } } /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -940,61 +1038,68 @@ public java.lang.String getMessage() { } } /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1004,12 +1109,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.StateMessage) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.StateMessage) private static final com.google.cloud.functions.v2.StateMessage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.StateMessage(); } @@ -1018,16 +1123,16 @@ public static com.google.cloud.functions.v2.StateMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StateMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1042,6 +1147,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.StateMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessageOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessageOrBuilder.java similarity index 62% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessageOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessageOrBuilder.java index 2592fa78..6d7f25bb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessageOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessageOrBuilder.java @@ -1,68 +1,100 @@ +/* + * 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 StateMessageOrBuilder extends +public interface StateMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.StateMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * .google.cloud.functions.v2.StateMessage.Severity severity = 1; + * * @return The severity. */ com.google.cloud.functions.v2.StateMessage.Severity getSeverity(); /** + * + * *
                                  * One-word CamelCase type of the state message.
                                  * 
                              * * string type = 2; + * * @return The type. */ java.lang.String getType(); /** + * + * *
                                  * One-word CamelCase type of the state message.
                                  * 
                              * * string type = 2; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
                                  * The message.
                                  * 
                              * * string message = 3; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
                                  * The message.
                                  * 
                              * * string message = 3; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java index fcdae0ab..27d3a966 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Location of the source in an archive file in Google Cloud Storage.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.StorageSource} */ -public final class StorageSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StorageSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.StorageSource) StorageSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StorageSource.newBuilder() to construct. private StorageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StorageSource() { bucket_ = ""; object_ = ""; @@ -26,16 +44,15 @@ private StorageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StorageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StorageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private StorageSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - bucket_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - object_ = s; - break; - } - case 24: { + bucket_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - generation_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + object_ = s; + break; + } + case 24: + { + generation_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,29 +104,33 @@ private StorageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StorageSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_StorageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StorageSource_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_StorageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.StorageSource.class, com.google.cloud.functions.v2.StorageSource.Builder.class); + com.google.cloud.functions.v2.StorageSource.class, + com.google.cloud.functions.v2.StorageSource.Builder.class); } public static final int BUCKET_FIELD_NUMBER = 1; private volatile java.lang.Object bucket_; /** + * + * *
                                  * Google Cloud Storage bucket containing the source (see
                                  * [Bucket Name
                              @@ -115,6 +138,7 @@ private StorageSource(
                                  * 
                              * * string bucket = 1; + * * @return The bucket. */ @java.lang.Override @@ -123,14 +147,15 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** + * + * *
                                  * Google Cloud Storage bucket containing the source (see
                                  * [Bucket Name
                              @@ -138,16 +163,15 @@ public java.lang.String getBucket() {
                                  * 
                              * * string bucket = 1; + * * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString - getBucketBytes() { + public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucket_ = b; return b; } else { @@ -158,6 +182,8 @@ public java.lang.String getBucket() { public static final int OBJECT_FIELD_NUMBER = 2; private volatile java.lang.Object object_; /** + * + * *
                                  * Google Cloud Storage object containing the source.
                                  * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -165,6 +191,7 @@ public java.lang.String getBucket() {
                                  * 
                              * * string object = 2; + * * @return The object. */ @java.lang.Override @@ -173,14 +200,15 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** + * + * *
                                  * Google Cloud Storage object containing the source.
                                  * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -188,16 +216,15 @@ public java.lang.String getObject() {
                                  * 
                              * * string object = 2; + * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString - getObjectBytes() { + public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { @@ -208,12 +235,15 @@ public java.lang.String getObject() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_; /** + * + * *
                                  * Google Cloud Storage generation for the object. If the generation is
                                  * omitted, the latest generation will be used.
                                  * 
                              * * int64 generation = 3; + * * @return The generation. */ @java.lang.Override @@ -222,6 +252,7 @@ public long getGeneration() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -260,8 +290,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, generation_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -271,19 +300,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2.StorageSource)) { return super.equals(obj); } - com.google.cloud.functions.v2.StorageSource other = (com.google.cloud.functions.v2.StorageSource) obj; + com.google.cloud.functions.v2.StorageSource other = + (com.google.cloud.functions.v2.StorageSource) obj; - if (!getBucket() - .equals(other.getBucket())) return false; - if (!getObject() - .equals(other.getObject())) return false; - if (getGeneration() - != other.getGeneration()) return false; + if (!getBucket().equals(other.getBucket())) return false; + if (!getObject().equals(other.getObject())) return false; + if (getGeneration() != other.getGeneration()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,125 +327,133 @@ public int hashCode() { hash = (37 * hash) + OBJECT_FIELD_NUMBER; hash = (53 * hash) + getObject().hashCode(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.functions.v2.StorageSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2.StorageSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.StorageSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StorageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.StorageSource 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.StorageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2.StorageSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2.StorageSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.StorageSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2.StorageSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2.StorageSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.StorageSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2.StorageSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2.StorageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2.StorageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Location of the source in an archive file in Google Cloud Storage.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.StorageSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.StorageSource) com.google.cloud.functions.v2.StorageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StorageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_StorageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StorageSource_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_StorageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.StorageSource.class, com.google.cloud.functions.v2.StorageSource.Builder.class); + com.google.cloud.functions.v2.StorageSource.class, + com.google.cloud.functions.v2.StorageSource.Builder.class); } // Construct using com.google.cloud.functions.v2.StorageSource.newBuilder() @@ -426,16 +461,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_StorageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_StorageSource_descriptor; } @java.lang.Override @@ -470,7 +504,8 @@ public com.google.cloud.functions.v2.StorageSource build() { @java.lang.Override public com.google.cloud.functions.v2.StorageSource buildPartial() { - com.google.cloud.functions.v2.StorageSource result = new com.google.cloud.functions.v2.StorageSource(this); + com.google.cloud.functions.v2.StorageSource result = + new com.google.cloud.functions.v2.StorageSource(this); result.bucket_ = bucket_; result.object_ = object_; result.generation_ = generation_; @@ -482,38 +517,39 @@ public com.google.cloud.functions.v2.StorageSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.StorageSource)other); + return mergeFrom((com.google.cloud.functions.v2.StorageSource) other); } else { super.mergeFrom(other); return this; @@ -564,6 +600,8 @@ public Builder mergeFrom( private java.lang.Object bucket_ = ""; /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -571,13 +609,13 @@ public Builder mergeFrom(
                                    * 
                              * * string bucket = 1; + * * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; @@ -586,6 +624,8 @@ public java.lang.String getBucket() { } } /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -593,15 +633,14 @@ public java.lang.String getBucket() {
                                    * 
                              * * string bucket = 1; + * * @return The bytes for bucket. */ - public com.google.protobuf.ByteString - getBucketBytes() { + public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucket_ = b; return b; } else { @@ -609,6 +648,8 @@ public java.lang.String getBucket() { } } /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -616,20 +657,22 @@ public java.lang.String getBucket() {
                                    * 
                              * * string bucket = 1; + * * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket( - java.lang.String value) { + public Builder setBucket(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bucket_ = value; onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -637,15 +680,18 @@ public Builder setBucket(
                                    * 
                              * * string bucket = 1; + * * @return This builder for chaining. */ public Builder clearBucket() { - + bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -653,16 +699,16 @@ public Builder clearBucket() {
                                    * 
                              * * string bucket = 1; + * * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes( - com.google.protobuf.ByteString value) { + public Builder setBucketBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; onChanged(); return this; @@ -670,6 +716,8 @@ public Builder setBucketBytes( private java.lang.Object object_ = ""; /** + * + * *
                                    * Google Cloud Storage object containing the source.
                                    * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -677,13 +725,13 @@ public Builder setBucketBytes(
                                    * 
                              * * string object = 2; + * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -692,6 +740,8 @@ 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
                              @@ -699,15 +749,14 @@ public java.lang.String getObject() {
                                    * 
                              * * string object = 2; + * * @return The bytes for object. */ - public com.google.protobuf.ByteString - getObjectBytes() { + public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { @@ -715,6 +764,8 @@ 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
                              @@ -722,20 +773,22 @@ public java.lang.String getObject() {
                                    * 
                              * * string object = 2; + * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject( - java.lang.String value) { + public Builder setObject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + object_ = value; onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage object containing the source.
                                    * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -743,15 +796,18 @@ public Builder setObject(
                                    * 
                              * * string object = 2; + * * @return This builder for chaining. */ public Builder clearObject() { - + object_ = getDefaultInstance().getObject(); onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage object containing the source.
                                    * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -759,29 +815,32 @@ public Builder clearObject() {
                                    * 
                              * * string object = 2; + * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes( - com.google.protobuf.ByteString value) { + public Builder setObjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + object_ = value; onChanged(); return this; } - private long generation_ ; + private long generation_; /** + * + * *
                                    * Google Cloud Storage generation for the object. If the generation is
                                    * omitted, the latest generation will be used.
                                    * 
                              * * int64 generation = 3; + * * @return The generation. */ @java.lang.Override @@ -789,39 +848,45 @@ public long getGeneration() { return generation_; } /** + * + * *
                                    * Google Cloud Storage generation for the object. If the generation is
                                    * omitted, the latest generation will be used.
                                    * 
                              * * int64 generation = 3; + * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { - + generation_ = value; onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage generation for the object. If the generation is
                                    * omitted, the latest generation will be used.
                                    * 
                              * * int64 generation = 3; + * * @return This builder for chaining. */ public Builder clearGeneration() { - + generation_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -831,12 +896,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.StorageSource) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.StorageSource) private static final com.google.cloud.functions.v2.StorageSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.StorageSource(); } @@ -845,16 +910,16 @@ public static com.google.cloud.functions.v2.StorageSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StorageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,6 +934,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2.StorageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java index ab65a7a9..f917b451 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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 StorageSourceOrBuilder extends +public interface StorageSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.StorageSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Google Cloud Storage bucket containing the source (see
                                  * [Bucket Name
                              @@ -15,10 +33,13 @@ public interface StorageSourceOrBuilder extends
                                  * 
                              * * string bucket = 1; + * * @return The bucket. */ java.lang.String getBucket(); /** + * + * *
                                  * Google Cloud Storage bucket containing the source (see
                                  * [Bucket Name
                              @@ -26,12 +47,14 @@ public interface StorageSourceOrBuilder extends
                                  * 
                              * * string bucket = 1; + * * @return The bytes for bucket. */ - com.google.protobuf.ByteString - getBucketBytes(); + 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
                              @@ -39,10 +62,13 @@ public interface StorageSourceOrBuilder extends
                                  * 
                              * * string object = 2; + * * @return The object. */ java.lang.String getObject(); /** + * + * *
                                  * Google Cloud Storage object containing the source.
                                  * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -50,18 +76,21 @@ public interface StorageSourceOrBuilder extends
                                  * 
                              * * string object = 2; + * * @return The bytes for object. */ - com.google.protobuf.ByteString - getObjectBytes(); + com.google.protobuf.ByteString getObjectBytes(); /** + * + * *
                                  * Google Cloud Storage generation for the object. If the generation is
                                  * omitted, the latest generation will be used.
                                  * 
                              * * int64 generation = 3; + * * @return The generation. */ long getGeneration(); diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java index 65ba0f46..1076c76d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java @@ -1,39 +1,55 @@ +/* + * 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; /** + * + * *
                                * Request for the `UpdateFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2.UpdateFunctionRequest} */ -public final class UpdateFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.UpdateFunctionRequest) UpdateFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateFunctionRequest.newBuilder() to construct. private UpdateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFunctionRequest() { - } + + private UpdateFunctionRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateFunctionRequest( case 0: done = true; break; - case 10: { - com.google.cloud.functions.v2.Function.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); - } - function_ = input.readMessage(com.google.cloud.functions.v2.Function.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.functions.v2.Function.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); + } + function_ = + input.readMessage( + com.google.cloud.functions.v2.Function.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,41 @@ private UpdateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.UpdateFunctionRequest.class, com.google.cloud.functions.v2.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v2.UpdateFunctionRequest.class, + com.google.cloud.functions.v2.UpdateFunctionRequest.Builder.class); } public static final int FUNCTION_FIELD_NUMBER = 1; private com.google.cloud.functions.v2.Function function_; /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ @java.lang.Override @@ -127,23 +155,34 @@ public boolean hasFunction() { return function_ != null; } /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ @java.lang.Override public com.google.cloud.functions.v2.Function getFunction() { - return function_ == null ? com.google.cloud.functions.v2.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2.Function.getDefaultInstance() + : function_; } /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() { @@ -153,6 +192,8 @@ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -160,6 +201,7 @@ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() {
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -167,6 +209,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -174,6 +218,7 @@ public boolean hasUpdateMask() {
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -181,6 +226,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -195,6 +242,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -206,8 +254,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (function_ != null) {
                                     output.writeMessage(1, getFunction());
                                   }
                              @@ -224,12 +271,10 @@ public int getSerializedSize() {
                               
                                   size = 0;
                                   if (function_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(1, getFunction());
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunction());
                                   }
                                   if (updateMask_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(2, getUpdateMask());
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -239,22 +284,21 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2.UpdateFunctionRequest)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v2.UpdateFunctionRequest other = (com.google.cloud.functions.v2.UpdateFunctionRequest) obj;
                              +    com.google.cloud.functions.v2.UpdateFunctionRequest other =
                              +        (com.google.cloud.functions.v2.UpdateFunctionRequest) obj;
                               
                                   if (hasFunction() != other.hasFunction()) return false;
                                   if (hasFunction()) {
                              -      if (!getFunction()
                              -          .equals(other.getFunction())) return false;
                              +      if (!getFunction().equals(other.getFunction())) return false;
                                   }
                                   if (hasUpdateMask() != other.hasUpdateMask()) return false;
                                   if (hasUpdateMask()) {
                              -      if (!getUpdateMask()
                              -          .equals(other.getUpdateMask())) return false;
                              +      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
                                   }
                                   if (!unknownFields.equals(other.unknownFields)) return false;
                                   return true;
                              @@ -281,117 +325,126 @@ public int hashCode() {
                                 }
                               
                                 public static com.google.cloud.functions.v2.UpdateFunctionRequest parseFrom(
                              -      java.nio.ByteBuffer data)
                              -      throws com.google.protobuf.InvalidProtocolBufferException {
                              +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.UpdateFunctionRequest parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.UpdateFunctionRequest parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.UpdateFunctionRequest 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.UpdateFunctionRequest parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.UpdateFunctionRequest parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2.UpdateFunctionRequest parseFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2.UpdateFunctionRequest parseFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.UpdateFunctionRequest parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2.UpdateFunctionRequest parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2.UpdateFunctionRequest parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.UpdateFunctionRequest parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.UpdateFunctionRequest parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2.UpdateFunctionRequest parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              +
                                 public static Builder newBuilder(com.google.cloud.functions.v2.UpdateFunctionRequest prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Request for the `UpdateFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2.UpdateFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.UpdateFunctionRequest) com.google.cloud.functions.v2.UpdateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2.UpdateFunctionRequest.class, com.google.cloud.functions.v2.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v2.UpdateFunctionRequest.class, + com.google.cloud.functions.v2.UpdateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2.UpdateFunctionRequest.newBuilder() @@ -399,16 +452,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2.FunctionsProto.internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor; } @java.lang.Override @@ -449,7 +501,8 @@ public com.google.cloud.functions.v2.UpdateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2.UpdateFunctionRequest buildPartial() { - com.google.cloud.functions.v2.UpdateFunctionRequest result = new com.google.cloud.functions.v2.UpdateFunctionRequest(this); + com.google.cloud.functions.v2.UpdateFunctionRequest result = + new com.google.cloud.functions.v2.UpdateFunctionRequest(this); if (functionBuilder_ == null) { result.function_ = function_; } else { @@ -468,38 +521,39 @@ public com.google.cloud.functions.v2.UpdateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2.UpdateFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v2.UpdateFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -507,7 +561,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2.UpdateFunctionRequest other) { - if (other == com.google.cloud.functions.v2.UpdateFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2.UpdateFunctionRequest.getDefaultInstance()) + return this; if (other.hasFunction()) { mergeFunction(other.getFunction()); } @@ -533,7 +588,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2.UpdateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2.UpdateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -545,39 +601,58 @@ public Builder mergeFrom( private com.google.cloud.functions.v2.Function function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder> functionBuilder_; + com.google.cloud.functions.v2.Function, + com.google.cloud.functions.v2.Function.Builder, + com.google.cloud.functions.v2.FunctionOrBuilder> + functionBuilder_; /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ public com.google.cloud.functions.v2.Function getFunction() { if (functionBuilder_ == null) { - return function_ == null ? com.google.cloud.functions.v2.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2.Function.getDefaultInstance() + : function_; } else { return functionBuilder_.getMessage(); } } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFunction(com.google.cloud.functions.v2.Function value) { if (functionBuilder_ == null) { @@ -593,14 +668,17 @@ public Builder setFunction(com.google.cloud.functions.v2.Function value) { return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setFunction( - com.google.cloud.functions.v2.Function.Builder builderForValue) { + public Builder setFunction(com.google.cloud.functions.v2.Function.Builder builderForValue) { if (functionBuilder_ == null) { function_ = builderForValue.build(); onChanged(); @@ -611,17 +689,23 @@ public Builder setFunction( return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFunction(com.google.cloud.functions.v2.Function value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v2.Function.newBuilder(function_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v2.Function.newBuilder(function_) + .mergeFrom(value) + .buildPartial(); } else { function_ = value; } @@ -633,11 +717,15 @@ public Builder mergeFunction(com.google.cloud.functions.v2.Function value) { return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -651,48 +739,64 @@ public Builder clearFunction() { return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v2.Function.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null ? - com.google.cloud.functions.v2.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2.Function.getDefaultInstance() + : function_; } } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder> + com.google.cloud.functions.v2.Function, + com.google.cloud.functions.v2.Function.Builder, + com.google.cloud.functions.v2.FunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2.Function, com.google.cloud.functions.v2.Function.Builder, com.google.cloud.functions.v2.FunctionOrBuilder>( - getFunction(), - getParentForChildren(), - isClean()); + functionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2.Function, + com.google.cloud.functions.v2.Function.Builder, + com.google.cloud.functions.v2.FunctionOrBuilder>( + getFunction(), getParentForChildren(), isClean()); function_ = null; } return functionBuilder_; @@ -700,8 +804,13 @@ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -709,12 +818,15 @@ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() {
                                    * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -722,16 +834,21 @@ public boolean hasUpdateMask() {
                                    * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -754,6 +871,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -762,8 +881,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                                    *
                                    * .google.protobuf.FieldMask update_mask = 2;
                                    */
                              -    public Builder setUpdateMask(
                              -        com.google.protobuf.FieldMask.Builder builderForValue) {
                              +    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
                                     if (updateMaskBuilder_ == null) {
                                       updateMask_ = builderForValue.build();
                                       onChanged();
                              @@ -774,6 +892,8 @@ public Builder setUpdateMask(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -786,7 +906,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                                     if (updateMaskBuilder_ == null) {
                                       if (updateMask_ != null) {
                                         updateMask_ =
                              -            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
                              +              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
                                       } else {
                                         updateMask_ = value;
                                       }
                              @@ -798,6 +918,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -818,6 +940,8 @@ public Builder clearUpdateMask() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -827,11 +951,13 @@ public Builder clearUpdateMask() {
                                    * .google.protobuf.FieldMask update_mask = 2;
                                    */
                                   public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getUpdateMaskFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -844,11 +970,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                                     if (updateMaskBuilder_ != null) {
                                       return updateMaskBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return updateMask_ == null ?
                              -            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
                              +        return updateMask_ == null
                              +            ? com.google.protobuf.FieldMask.getDefaultInstance()
                              +            : updateMask_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -858,21 +987,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                                    * .google.protobuf.FieldMask update_mask = 2;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
                              +            com.google.protobuf.FieldMask,
                              +            com.google.protobuf.FieldMask.Builder,
                              +            com.google.protobuf.FieldMaskOrBuilder>
                                       getUpdateMaskFieldBuilder() {
                                     if (updateMaskBuilder_ == null) {
                              -        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
                              -                getUpdateMask(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        updateMaskBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.protobuf.FieldMask,
                              +                com.google.protobuf.FieldMask.Builder,
                              +                com.google.protobuf.FieldMaskOrBuilder>(
                              +                getUpdateMask(), getParentForChildren(), isClean());
                                       updateMask_ = null;
                                     }
                                     return updateMaskBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -882,12 +1014,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.UpdateFunctionRequest)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.UpdateFunctionRequest)
                                 private static final com.google.cloud.functions.v2.UpdateFunctionRequest DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2.UpdateFunctionRequest();
                                 }
                              @@ -896,16 +1028,16 @@ public static com.google.cloud.functions.v2.UpdateFunctionRequest getDefaultInst
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public UpdateFunctionRequest parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new UpdateFunctionRequest(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public UpdateFunctionRequest parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new UpdateFunctionRequest(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -920,6 +1052,4 @@ public com.google.protobuf.Parser getParserForType() {
                                 public com.google.cloud.functions.v2.UpdateFunctionRequest getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequestOrBuilder.java
                              similarity index 60%
                              rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequestOrBuilder.java
                              rename to proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequestOrBuilder.java
                              index 4dfe37fb..16e8d11e 100644
                              --- a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequestOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequestOrBuilder.java
                              @@ -1,40 +1,72 @@
                              +/*
                              + * 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 UpdateFunctionRequestOrBuilder extends
                              +public interface UpdateFunctionRequestOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.UpdateFunctionRequest)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ boolean hasFunction(); /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ com.google.cloud.functions.v2.Function getFunction(); /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder(); /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -42,10 +74,13 @@ public interface UpdateFunctionRequestOrBuilder extends
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -53,10 +88,13 @@ public interface UpdateFunctionRequestOrBuilder extends
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              diff --git a/owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/proto/google/cloud/functions/v2/functions.proto b/proto-google-cloud-functions-v2/src/main/proto/google/cloud/functions/v2/functions.proto
                              similarity index 100%
                              rename from owl-bot-staging/v2/proto-google-cloud-functions-v2/src/main/proto/google/cloud/functions/v2/functions.proto
                              rename to proto-google-cloud-functions-v2/src/main/proto/google/cloud/functions/v2/functions.proto
                              diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java
                              similarity index 70%
                              rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java
                              rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java
                              index 917eec77..cc229f07 100644
                              --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java
                              +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java
                              @@ -1,9 +1,26 @@
                              +/*
                              + * 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/v2alpha/functions.proto
                               
                               package com.google.cloud.functions.v2alpha;
                               
                               /**
                              + *
                              + *
                                * 
                                * Describes the Build step of the function that builds a container from the
                                * given source.
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2alpha.BuildConfig}
                                */
                              -public final class BuildConfig extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class BuildConfig extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.BuildConfig)
                                   BuildConfigOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use BuildConfig.newBuilder() to construct.
                                 private BuildConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private BuildConfig() {
                                   build_ = "";
                                   runtime_ = "";
                              @@ -30,16 +48,15 @@ private BuildConfig() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new BuildConfig();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private BuildConfig(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -59,82 +76,99 @@ private BuildConfig(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            build_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              build_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            runtime_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              runtime_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            entryPoint_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            com.google.cloud.functions.v2alpha.Source.Builder subBuilder = null;
                              -            if (source_ != null) {
                              -              subBuilder = source_.toBuilder();
                              +              entryPoint_ = s;
                              +              break;
                                           }
                              -            source_ = input.readMessage(com.google.cloud.functions.v2alpha.Source.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(source_);
                              -              source_ = subBuilder.buildPartial();
                              +          case 34:
                              +            {
                              +              com.google.cloud.functions.v2alpha.Source.Builder subBuilder = null;
                              +              if (source_ != null) {
                              +                subBuilder = source_.toBuilder();
                              +              }
                              +              source_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2alpha.Source.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(source_);
                              +                source_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              +          case 42:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            break;
                              -          }
                              -          case 42: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            workerPool_ = s;
                              -            break;
                              -          }
                              -          case 50: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              environmentVariables_ = com.google.protobuf.MapField.newMapField(
                              -                  EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              -              mutable_bitField0_ |= 0x00000001;
                              +              workerPool_ = s;
                              +              break;
                                           }
                              -            com.google.protobuf.MapEntry
                              -            environmentVariables__ = input.readMessage(
                              -                EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              -            environmentVariables_.getMutableMap().put(
                              -                environmentVariables__.getKey(), environmentVariables__.getValue());
                              -            break;
                              -          }
                              -          case 58: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 50:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                environmentVariables_ =
                              +                    com.google.protobuf.MapField.newMapField(
                              +                        EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              com.google.protobuf.MapEntry
                              +                  environmentVariables__ =
                              +                      input.readMessage(
                              +                          EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
                              +                          extensionRegistry);
                              +              environmentVariables_
                              +                  .getMutableMap()
                              +                  .put(environmentVariables__.getKey(), environmentVariables__.getValue());
                              +              break;
                              +            }
                              +          case 58:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            dockerRepository_ = s;
                              -            break;
                              -          }
                              -          case 66: {
                              -            com.google.cloud.functions.v2alpha.SourceProvenance.Builder subBuilder = null;
                              -            if (sourceProvenance_ != null) {
                              -              subBuilder = sourceProvenance_.toBuilder();
                              +              dockerRepository_ = s;
                              +              break;
                                           }
                              -            sourceProvenance_ = input.readMessage(com.google.cloud.functions.v2alpha.SourceProvenance.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(sourceProvenance_);
                              -              sourceProvenance_ = subBuilder.buildPartial();
                              +          case 66:
                              +            {
                              +              com.google.cloud.functions.v2alpha.SourceProvenance.Builder subBuilder = null;
                              +              if (sourceProvenance_ != null) {
                              +                subBuilder = sourceProvenance_.toBuilder();
                              +              }
                              +              sourceProvenance_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2alpha.SourceProvenance.parser(),
                              +                      extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(sourceProvenance_);
                              +                sourceProvenance_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              -
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -142,47 +176,53 @@ private BuildConfig(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     this.unknownFields = unknownFields.build();
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor;
                                 }
                               
                                 @SuppressWarnings({"rawtypes"})
                                 @java.lang.Override
                              -  protected com.google.protobuf.MapField internalGetMapField(
                              -      int number) {
                              +  protected com.google.protobuf.MapField internalGetMapField(int number) {
                                   switch (number) {
                                     case 6:
                                       return internalGetEnvironmentVariables();
                                     default:
                              -        throw new RuntimeException(
                              -            "Invalid map field number: " + number);
                              +        throw new RuntimeException("Invalid map field number: " + number);
                                   }
                                 }
                              +
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2alpha.BuildConfig.class, com.google.cloud.functions.v2alpha.BuildConfig.Builder.class);
                              +            com.google.cloud.functions.v2alpha.BuildConfig.class,
                              +            com.google.cloud.functions.v2alpha.BuildConfig.Builder.class);
                                 }
                               
                                 public static final int BUILD_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object build_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ @java.lang.Override @@ -191,30 +231,32 @@ public java.lang.String getBuild() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ @java.lang.Override - public com.google.protobuf.ByteString - getBuildBytes() { + public com.google.protobuf.ByteString getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); build_ = b; return b; } else { @@ -225,6 +267,8 @@ public java.lang.String getBuild() { public static final int RUNTIME_FIELD_NUMBER = 2; private volatile java.lang.Object runtime_; /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -234,6 +278,7 @@ public java.lang.String getBuild() {
                                  * 
                              * * string runtime = 2; + * * @return The runtime. */ @java.lang.Override @@ -242,14 +287,15 @@ public java.lang.String getRuntime() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; } } /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -259,16 +305,15 @@ public java.lang.String getRuntime() {
                                  * 
                              * * string runtime = 2; + * * @return The bytes for runtime. */ @java.lang.Override - public com.google.protobuf.ByteString - getRuntimeBytes() { + public com.google.protobuf.ByteString getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtime_ = b; return b; } else { @@ -279,6 +324,8 @@ public java.lang.String getRuntime() { public static final int ENTRY_POINT_FIELD_NUMBER = 3; private volatile java.lang.Object entryPoint_; /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -289,6 +336,7 @@ public java.lang.String getRuntime() {
                                  * 
                              * * string entry_point = 3; + * * @return The entryPoint. */ @java.lang.Override @@ -297,14 +345,15 @@ public java.lang.String getEntryPoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; } } /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -315,16 +364,15 @@ public java.lang.String getEntryPoint() {
                                  * 
                              * * string entry_point = 3; + * * @return The bytes for entryPoint. */ @java.lang.Override - public com.google.protobuf.ByteString - getEntryPointBytes() { + public com.google.protobuf.ByteString getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -335,11 +383,14 @@ public java.lang.String getEntryPoint() { public static final int SOURCE_FIELD_NUMBER = 4; private com.google.cloud.functions.v2alpha.Source source_; /** + * + * *
                                  * The location of the function source code.
                                  * 
                              * * .google.cloud.functions.v2alpha.Source source = 4; + * * @return Whether the source field is set. */ @java.lang.Override @@ -347,18 +398,25 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
                                  * The location of the function source code.
                                  * 
                              * * .google.cloud.functions.v2alpha.Source source = 4; + * * @return The source. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Source getSource() { - return source_ == null ? com.google.cloud.functions.v2alpha.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.functions.v2alpha.Source.getDefaultInstance() + : source_; } /** + * + * *
                                  * The location of the function source code.
                                  * 
                              @@ -373,11 +431,16 @@ public com.google.cloud.functions.v2alpha.SourceOrBuilder getSourceOrBuilder() { public static final int SOURCE_PROVENANCE_FIELD_NUMBER = 8; private com.google.cloud.functions.v2alpha.SourceProvenance sourceProvenance_; /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the sourceProvenance field is set. */ @java.lang.Override @@ -385,32 +448,46 @@ public boolean hasSourceProvenance() { return sourceProvenance_ != null; } /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceProvenance. */ @java.lang.Override public com.google.cloud.functions.v2alpha.SourceProvenance getSourceProvenance() { - return sourceProvenance_ == null ? com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance() : sourceProvenance_; + return sourceProvenance_ == null + ? com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance() + : sourceProvenance_; } /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { + public com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder + getSourceProvenanceOrBuilder() { return getSourceProvenance(); } public static final int WORKER_POOL_FIELD_NUMBER = 5; private volatile java.lang.Object workerPool_; /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -426,6 +503,7 @@ public com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder getSourcePro
                                  * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The workerPool. */ @java.lang.Override @@ -434,14 +512,15 @@ public java.lang.String getWorkerPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerPool_ = s; return s; } } /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -457,16 +536,15 @@ public java.lang.String getWorkerPool() {
                                  * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for workerPool. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkerPoolBytes() { + public com.google.protobuf.ByteString getWorkerPoolBytes() { java.lang.Object ref = workerPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workerPool_ = b; return b; } else { @@ -475,21 +553,22 @@ public java.lang.String getWorkerPool() { } public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 6; + private static final class EnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -501,28 +580,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              * * map<string, string> environment_variables = 6; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -530,11 +611,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -542,16 +624,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -559,10 +643,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 6; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -574,6 +658,8 @@ public java.lang.String getEnvironmentVariablesOrThrow( public static final int DOCKER_REPOSITORY_FIELD_NUMBER = 7; private volatile 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
                              @@ -587,7 +673,10 @@ public java.lang.String getEnvironmentVariablesOrThrow(
                                  * Repository format must be 'DOCKER'.
                                  * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The dockerRepository. */ @java.lang.Override @@ -596,14 +685,15 @@ public java.lang.String getDockerRepository() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; } } /** + * + * *
                                  * Optional. User managed repository created in Artifact Registry optionally with a
                                  * customer managed encryption key. This is the repository to which the
                              @@ -617,17 +707,18 @@ public java.lang.String getDockerRepository() {
                                  * Repository format must be 'DOCKER'.
                                  * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for dockerRepository. */ @java.lang.Override - public com.google.protobuf.ByteString - getDockerRepositoryBytes() { + public com.google.protobuf.ByteString getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -636,6 +727,7 @@ public java.lang.String getDockerRepository() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -647,8 +739,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(build_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, build_); } @@ -664,8 +755,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workerPool_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -695,28 +785,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entryPoint_); } if (source_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workerPool_); } - for (java.util.Map.Entry entry - : internalGetEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, environmentVariables__); + for (java.util.Map.Entry entry : + internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry environmentVariables__ = + EnvironmentVariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, environmentVariables__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dockerRepository_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, dockerRepository_); } if (sourceProvenance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSourceProvenance()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSourceProvenance()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -726,35 +814,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.BuildConfig)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.BuildConfig other = (com.google.cloud.functions.v2alpha.BuildConfig) obj; + com.google.cloud.functions.v2alpha.BuildConfig other = + (com.google.cloud.functions.v2alpha.BuildConfig) obj; - if (!getBuild() - .equals(other.getBuild())) return false; - if (!getRuntime() - .equals(other.getRuntime())) return false; - if (!getEntryPoint() - .equals(other.getEntryPoint())) return false; + if (!getBuild().equals(other.getBuild())) return false; + if (!getRuntime().equals(other.getRuntime())) return false; + if (!getEntryPoint().equals(other.getEntryPoint())) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource() - .equals(other.getSource())) return false; + if (!getSource().equals(other.getSource())) return false; } if (hasSourceProvenance() != other.hasSourceProvenance()) return false; if (hasSourceProvenance()) { - if (!getSourceProvenance() - .equals(other.getSourceProvenance())) return false; - } - if (!getWorkerPool() - .equals(other.getWorkerPool())) return false; - if (!internalGetEnvironmentVariables().equals( - other.internalGetEnvironmentVariables())) return false; - if (!getDockerRepository() - .equals(other.getDockerRepository())) return false; + if (!getSourceProvenance().equals(other.getSourceProvenance())) return false; + } + if (!getWorkerPool().equals(other.getWorkerPool())) return false; + if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) + return false; + if (!getDockerRepository().equals(other.getDockerRepository())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -793,97 +875,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.BuildConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.BuildConfig 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.v2alpha.BuildConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.BuildConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.BuildConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.BuildConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.BuildConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2alpha.BuildConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                              @@ -891,43 +980,43 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2alpha.BuildConfig}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.BuildConfig)
                                     com.google.cloud.functions.v2alpha.BuildConfigOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor;
                                   }
                               
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMapField(int number) {
                                     switch (number) {
                                       case 6:
                                         return internalGetEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMutableMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
                                     switch (number) {
                                       case 6:
                                         return internalGetMutableEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2alpha.BuildConfig.class, com.google.cloud.functions.v2alpha.BuildConfig.Builder.class);
                              +              com.google.cloud.functions.v2alpha.BuildConfig.class,
                              +              com.google.cloud.functions.v2alpha.BuildConfig.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2alpha.BuildConfig.newBuilder()
                              @@ -935,16 +1024,15 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              -      }
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -975,9 +1063,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -996,7 +1084,8 @@ public com.google.cloud.functions.v2alpha.BuildConfig build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2alpha.BuildConfig buildPartial() {
                              -      com.google.cloud.functions.v2alpha.BuildConfig result = new com.google.cloud.functions.v2alpha.BuildConfig(this);
                              +      com.google.cloud.functions.v2alpha.BuildConfig result =
                              +          new com.google.cloud.functions.v2alpha.BuildConfig(this);
                                     int from_bitField0_ = bitField0_;
                                     result.build_ = build_;
                                     result.runtime_ = runtime_;
                              @@ -1023,38 +1112,39 @@ public com.google.cloud.functions.v2alpha.BuildConfig buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2alpha.BuildConfig)other);
                              +        return mergeFrom((com.google.cloud.functions.v2alpha.BuildConfig) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1085,8 +1175,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.BuildConfig other) {
                                       workerPool_ = other.workerPool_;
                                       onChanged();
                                     }
                              -      internalGetMutableEnvironmentVariables().mergeFrom(
                              -          other.internalGetEnvironmentVariables());
                              +      internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables());
                                     if (!other.getDockerRepository().isEmpty()) {
                                       dockerRepository_ = other.dockerRepository_;
                                       onChanged();
                              @@ -1119,23 +1208,28 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object build_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ public java.lang.String getBuild() { java.lang.Object ref = build_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; @@ -1144,21 +1238,24 @@ public java.lang.String getBuild() { } } /** + * + * *
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ - public com.google.protobuf.ByteString - getBuildBytes() { + public com.google.protobuf.ByteString getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); build_ = b; return b; } else { @@ -1166,57 +1263,70 @@ public java.lang.String getBuild() { } } /** + * + * *
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The build to set. * @return This builder for chaining. */ - public Builder setBuild( - java.lang.String value) { + public Builder setBuild(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + build_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearBuild() { - + build_ = getDefaultInstance().getBuild(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for build to set. * @return This builder for chaining. */ - public Builder setBuildBytes( - com.google.protobuf.ByteString value) { + public Builder setBuildBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + build_ = value; onChanged(); return this; @@ -1224,6 +1334,8 @@ public Builder setBuildBytes( private java.lang.Object runtime_ = ""; /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1233,13 +1345,13 @@ public Builder setBuildBytes(
                                    * 
                              * * string runtime = 2; + * * @return The runtime. */ public java.lang.String getRuntime() { java.lang.Object ref = runtime_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; @@ -1248,6 +1360,8 @@ public java.lang.String getRuntime() { } } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1257,15 +1371,14 @@ public java.lang.String getRuntime() {
                                    * 
                              * * string runtime = 2; + * * @return The bytes for runtime. */ - public com.google.protobuf.ByteString - getRuntimeBytes() { + public com.google.protobuf.ByteString getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtime_ = b; return b; } else { @@ -1273,6 +1386,8 @@ public java.lang.String getRuntime() { } } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1282,20 +1397,22 @@ public java.lang.String getRuntime() {
                                    * 
                              * * string runtime = 2; + * * @param value The runtime to set. * @return This builder for chaining. */ - public Builder setRuntime( - java.lang.String value) { + public Builder setRuntime(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + runtime_ = value; onChanged(); return this; } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1305,15 +1422,18 @@ public Builder setRuntime(
                                    * 
                              * * string runtime = 2; + * * @return This builder for chaining. */ public Builder clearRuntime() { - + runtime_ = getDefaultInstance().getRuntime(); onChanged(); return this; } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1323,16 +1443,16 @@ public Builder clearRuntime() {
                                    * 
                              * * string runtime = 2; + * * @param value The bytes for runtime to set. * @return This builder for chaining. */ - public Builder setRuntimeBytes( - com.google.protobuf.ByteString value) { + public Builder setRuntimeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + runtime_ = value; onChanged(); return this; @@ -1340,6 +1460,8 @@ public Builder setRuntimeBytes( private java.lang.Object entryPoint_ = ""; /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1350,13 +1472,13 @@ public Builder setRuntimeBytes(
                                    * 
                              * * string entry_point = 3; + * * @return The entryPoint. */ public java.lang.String getEntryPoint() { java.lang.Object ref = entryPoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; @@ -1365,6 +1487,8 @@ public java.lang.String getEntryPoint() { } } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1375,15 +1499,14 @@ public java.lang.String getEntryPoint() {
                                    * 
                              * * string entry_point = 3; + * * @return The bytes for entryPoint. */ - public com.google.protobuf.ByteString - getEntryPointBytes() { + public com.google.protobuf.ByteString getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -1391,6 +1514,8 @@ public java.lang.String getEntryPoint() { } } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1401,20 +1526,22 @@ public java.lang.String getEntryPoint() {
                                    * 
                              * * string entry_point = 3; + * * @param value The entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPoint( - java.lang.String value) { + public Builder setEntryPoint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entryPoint_ = value; onChanged(); return this; } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1425,15 +1552,18 @@ public Builder setEntryPoint(
                                    * 
                              * * string entry_point = 3; + * * @return This builder for chaining. */ public Builder clearEntryPoint() { - + entryPoint_ = getDefaultInstance().getEntryPoint(); onChanged(); return this; } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1444,16 +1574,16 @@ public Builder clearEntryPoint() {
                                    * 
                              * * string entry_point = 3; + * * @param value The bytes for entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPointBytes( - com.google.protobuf.ByteString value) { + public Builder setEntryPointBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryPoint_ = value; onChanged(); return this; @@ -1461,34 +1591,47 @@ public Builder setEntryPointBytes( private com.google.cloud.functions.v2alpha.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Source, com.google.cloud.functions.v2alpha.Source.Builder, com.google.cloud.functions.v2alpha.SourceOrBuilder> sourceBuilder_; + com.google.cloud.functions.v2alpha.Source, + com.google.cloud.functions.v2alpha.Source.Builder, + com.google.cloud.functions.v2alpha.SourceOrBuilder> + sourceBuilder_; /** + * + * *
                                    * The location of the function source code.
                                    * 
                              * * .google.cloud.functions.v2alpha.Source source = 4; + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              * * .google.cloud.functions.v2alpha.Source source = 4; + * * @return The source. */ public com.google.cloud.functions.v2alpha.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.functions.v2alpha.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.functions.v2alpha.Source.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1509,14 +1652,15 @@ public Builder setSource(com.google.cloud.functions.v2alpha.Source value) { return this; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              * * .google.cloud.functions.v2alpha.Source source = 4; */ - public Builder setSource( - com.google.cloud.functions.v2alpha.Source.Builder builderForValue) { + public Builder setSource(com.google.cloud.functions.v2alpha.Source.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -1527,6 +1671,8 @@ public Builder setSource( return this; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1537,7 +1683,9 @@ public Builder mergeSource(com.google.cloud.functions.v2alpha.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.functions.v2alpha.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v2alpha.Source.newBuilder(source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -1549,6 +1697,8 @@ public Builder mergeSource(com.google.cloud.functions.v2alpha.Source value) { return this; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1567,6 +1717,8 @@ public Builder clearSource() { return this; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1574,11 +1726,13 @@ public Builder clearSource() { * .google.cloud.functions.v2alpha.Source source = 4; */ public com.google.cloud.functions.v2alpha.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1589,11 +1743,14 @@ public com.google.cloud.functions.v2alpha.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null ? - com.google.cloud.functions.v2alpha.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.functions.v2alpha.Source.getDefaultInstance() + : source_; } } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1601,14 +1758,17 @@ public com.google.cloud.functions.v2alpha.SourceOrBuilder getSourceOrBuilder() { * .google.cloud.functions.v2alpha.Source source = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Source, com.google.cloud.functions.v2alpha.Source.Builder, com.google.cloud.functions.v2alpha.SourceOrBuilder> + com.google.cloud.functions.v2alpha.Source, + com.google.cloud.functions.v2alpha.Source.Builder, + com.google.cloud.functions.v2alpha.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Source, com.google.cloud.functions.v2alpha.Source.Builder, com.google.cloud.functions.v2alpha.SourceOrBuilder>( - getSource(), - getParentForChildren(), - isClean()); + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2alpha.Source, + com.google.cloud.functions.v2alpha.Source.Builder, + com.google.cloud.functions.v2alpha.SourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; @@ -1616,39 +1776,58 @@ public com.google.cloud.functions.v2alpha.SourceOrBuilder getSourceOrBuilder() { private com.google.cloud.functions.v2alpha.SourceProvenance sourceProvenance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.SourceProvenance, com.google.cloud.functions.v2alpha.SourceProvenance.Builder, com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder> sourceProvenanceBuilder_; + com.google.cloud.functions.v2alpha.SourceProvenance, + com.google.cloud.functions.v2alpha.SourceProvenance.Builder, + com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder> + sourceProvenanceBuilder_; /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the sourceProvenance field is set. */ public boolean hasSourceProvenance() { return sourceProvenanceBuilder_ != null || sourceProvenance_ != null; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceProvenance. */ public com.google.cloud.functions.v2alpha.SourceProvenance getSourceProvenance() { if (sourceProvenanceBuilder_ == null) { - return sourceProvenance_ == null ? com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance() : sourceProvenance_; + return sourceProvenance_ == null + ? com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance() + : sourceProvenance_; } else { return sourceProvenanceBuilder_.getMessage(); } } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSourceProvenance(com.google.cloud.functions.v2alpha.SourceProvenance value) { if (sourceProvenanceBuilder_ == null) { @@ -1664,11 +1843,15 @@ public Builder setSourceProvenance(com.google.cloud.functions.v2alpha.SourceProv return this; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSourceProvenance( com.google.cloud.functions.v2alpha.SourceProvenance.Builder builderForValue) { @@ -1682,17 +1865,24 @@ public Builder setSourceProvenance( return this; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeSourceProvenance(com.google.cloud.functions.v2alpha.SourceProvenance value) { + public Builder mergeSourceProvenance( + com.google.cloud.functions.v2alpha.SourceProvenance value) { if (sourceProvenanceBuilder_ == null) { if (sourceProvenance_ != null) { sourceProvenance_ = - com.google.cloud.functions.v2alpha.SourceProvenance.newBuilder(sourceProvenance_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v2alpha.SourceProvenance.newBuilder(sourceProvenance_) + .mergeFrom(value) + .buildPartial(); } else { sourceProvenance_ = value; } @@ -1704,11 +1894,15 @@ public Builder mergeSourceProvenance(com.google.cloud.functions.v2alpha.SourcePr return this; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSourceProvenance() { if (sourceProvenanceBuilder_ == null) { @@ -1722,48 +1916,66 @@ public Builder clearSourceProvenance() { return this; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.functions.v2alpha.SourceProvenance.Builder getSourceProvenanceBuilder() { - + public com.google.cloud.functions.v2alpha.SourceProvenance.Builder + getSourceProvenanceBuilder() { + onChanged(); return getSourceProvenanceFieldBuilder().getBuilder(); } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { + public com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder + getSourceProvenanceOrBuilder() { if (sourceProvenanceBuilder_ != null) { return sourceProvenanceBuilder_.getMessageOrBuilder(); } else { - return sourceProvenance_ == null ? - com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance() : sourceProvenance_; + return sourceProvenance_ == null + ? com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance() + : sourceProvenance_; } } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.SourceProvenance, com.google.cloud.functions.v2alpha.SourceProvenance.Builder, com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder> + com.google.cloud.functions.v2alpha.SourceProvenance, + com.google.cloud.functions.v2alpha.SourceProvenance.Builder, + com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder> getSourceProvenanceFieldBuilder() { if (sourceProvenanceBuilder_ == null) { - sourceProvenanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.SourceProvenance, com.google.cloud.functions.v2alpha.SourceProvenance.Builder, com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder>( - getSourceProvenance(), - getParentForChildren(), - isClean()); + sourceProvenanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2alpha.SourceProvenance, + com.google.cloud.functions.v2alpha.SourceProvenance.Builder, + com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder>( + getSourceProvenance(), getParentForChildren(), isClean()); sourceProvenance_ = null; } return sourceProvenanceBuilder_; @@ -1771,6 +1983,8 @@ public com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder getSourcePro private java.lang.Object workerPool_ = ""; /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1786,13 +2000,13 @@ public com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder getSourcePro
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The workerPool. */ public java.lang.String getWorkerPool() { java.lang.Object ref = workerPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerPool_ = s; return s; @@ -1801,6 +2015,8 @@ public java.lang.String getWorkerPool() { } } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1816,15 +2032,14 @@ public java.lang.String getWorkerPool() {
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for workerPool. */ - public com.google.protobuf.ByteString - getWorkerPoolBytes() { + public com.google.protobuf.ByteString getWorkerPoolBytes() { java.lang.Object ref = workerPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workerPool_ = b; return b; } else { @@ -1832,6 +2047,8 @@ public java.lang.String getWorkerPool() { } } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1847,20 +2064,22 @@ public java.lang.String getWorkerPool() {
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @param value The workerPool to set. * @return This builder for chaining. */ - public Builder setWorkerPool( - java.lang.String value) { + public Builder setWorkerPool(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workerPool_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1876,15 +2095,18 @@ public Builder setWorkerPool(
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearWorkerPool() { - + workerPool_ = getDefaultInstance().getWorkerPool(); onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1900,37 +2122,40 @@ public Builder clearWorkerPool() {
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for workerPool to set. * @return This builder for chaining. */ - public Builder setWorkerPoolBytes( - com.google.protobuf.ByteString value) { + public Builder setWorkerPoolBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerPool_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } + private com.google.protobuf.MapField - internalGetMutableEnvironmentVariables() { - onChanged();; + internalGetMutableEnvironmentVariables() { + onChanged(); + ; if (environmentVariables_ == null) { - environmentVariables_ = com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); + environmentVariables_ = + com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); @@ -1942,28 +2167,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              * * map<string, string> environment_variables = 6; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              @@ -1971,11 +2198,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              @@ -1983,16 +2211,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              @@ -2000,10 +2230,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 6; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -2013,69 +2243,69 @@ public java.lang.String getEnvironmentVariablesOrThrow( } public Builder clearEnvironmentVariables() { - internalGetMutableEnvironmentVariables().getMutableMap() - .clear(); + internalGetMutableEnvironmentVariables().getMutableMap().clear(); return this; } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              * * map<string, string> environment_variables = 6; */ - - public Builder removeEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableEnvironmentVariables().getMutableMap() - .remove(key); + public Builder removeEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEnvironmentVariables().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableEnvironmentVariables() { + public java.util.Map getMutableEnvironmentVariables() { return internalGetMutableEnvironmentVariables().getMutableMap(); } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              * * map<string, string> environment_variables = 6; */ - public Builder putEnvironmentVariables( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putEnvironmentVariables(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableEnvironmentVariables().getMutableMap() - .put(key, value); + internalGetMutableEnvironmentVariables().getMutableMap().put(key, value); return this; } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              * * map<string, string> environment_variables = 6; */ - public Builder putAllEnvironmentVariables( java.util.Map values) { - internalGetMutableEnvironmentVariables().getMutableMap() - .putAll(values); + internalGetMutableEnvironmentVariables().getMutableMap().putAll(values); 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
                              @@ -2089,14 +2319,16 @@ public Builder putAllEnvironmentVariables(
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The dockerRepository. */ public java.lang.String getDockerRepository() { java.lang.Object ref = dockerRepository_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; @@ -2105,6 +2337,8 @@ 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
                              @@ -2118,16 +2352,17 @@ public java.lang.String getDockerRepository() {
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for dockerRepository. */ - public com.google.protobuf.ByteString - getDockerRepositoryBytes() { + public com.google.protobuf.ByteString getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -2135,6 +2370,8 @@ 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
                              @@ -2148,21 +2385,25 @@ public java.lang.String getDockerRepository() {
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepository( - java.lang.String value) { + public Builder setDockerRepository(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dockerRepository_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. User managed repository created in Artifact Registry optionally with a
                                    * customer managed encryption key. This is the repository to which the
                              @@ -2176,16 +2417,21 @@ public Builder setDockerRepository(
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearDockerRepository() { - + dockerRepository_ = getDefaultInstance().getDockerRepository(); onChanged(); return this; } /** + * + * *
                                    * Optional. User managed repository created in Artifact Registry optionally with a
                                    * customer managed encryption key. This is the repository to which the
                              @@ -2199,24 +2445,26 @@ public Builder clearDockerRepository() {
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepositoryBytes( - com.google.protobuf.ByteString value) { + public Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dockerRepository_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2226,12 +2474,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.BuildConfig) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.BuildConfig) private static final com.google.cloud.functions.v2alpha.BuildConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.BuildConfig(); } @@ -2240,16 +2488,16 @@ public static com.google.cloud.functions.v2alpha.BuildConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BuildConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BuildConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuildConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BuildConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2264,6 +2512,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.BuildConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java similarity index 75% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java index c5187e41..67f27dbc 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java @@ -1,35 +1,62 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface BuildConfigOrBuilder extends +public interface BuildConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.BuildConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ java.lang.String getBuild(); /** + * + * *
                                  * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ - com.google.protobuf.ByteString - getBuildBytes(); + com.google.protobuf.ByteString getBuildBytes(); /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -39,10 +66,13 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string runtime = 2; + * * @return The runtime. */ java.lang.String getRuntime(); /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -52,12 +82,14 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string runtime = 2; + * * @return The bytes for runtime. */ - com.google.protobuf.ByteString - getRuntimeBytes(); + com.google.protobuf.ByteString getRuntimeBytes(); /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -68,10 +100,13 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string entry_point = 3; + * * @return The entryPoint. */ java.lang.String getEntryPoint(); /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -82,30 +117,38 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string entry_point = 3; + * * @return The bytes for entryPoint. */ - com.google.protobuf.ByteString - getEntryPointBytes(); + com.google.protobuf.ByteString getEntryPointBytes(); /** + * + * *
                                  * The location of the function source code.
                                  * 
                              * * .google.cloud.functions.v2alpha.Source source = 4; + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
                                  * The location of the function source code.
                                  * 
                              * * .google.cloud.functions.v2alpha.Source source = 4; + * * @return The source. */ com.google.cloud.functions.v2alpha.Source getSource(); /** + * + * *
                                  * The location of the function source code.
                                  * 
                              @@ -115,33 +158,49 @@ public interface BuildConfigOrBuilder extends com.google.cloud.functions.v2alpha.SourceOrBuilder getSourceOrBuilder(); /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the sourceProvenance field is set. */ boolean hasSourceProvenance(); /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceProvenance. */ com.google.cloud.functions.v2alpha.SourceProvenance getSourceProvenance(); /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder(); /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -157,10 +216,13 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The workerPool. */ java.lang.String getWorkerPool(); /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -176,12 +238,14 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for workerPool. */ - com.google.protobuf.ByteString - getWorkerPoolBytes(); + com.google.protobuf.ByteString getWorkerPoolBytes(); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -190,30 +254,31 @@ public interface BuildConfigOrBuilder extends */ int getEnvironmentVariablesCount(); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              * * map<string, string> environment_variables = 6; */ - boolean containsEnvironmentVariables( - java.lang.String key); - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + boolean containsEnvironmentVariables(java.lang.String key); + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getEnvironmentVariables(); + java.util.Map getEnvironmentVariables(); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              * * map<string, string> environment_variables = 6; */ - java.util.Map - getEnvironmentVariablesMap(); + java.util.Map getEnvironmentVariablesMap(); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -222,22 +287,24 @@ boolean containsEnvironmentVariables( */ /* nullable */ -java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              * * map<string, string> environment_variables = 6; */ - - java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key); + 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
                              @@ -251,11 +318,16 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * Repository format must be 'DOCKER'.
                                  * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The dockerRepository. */ 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
                              @@ -269,9 +341,11 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * Repository format must be 'DOCKER'.
                                  * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for dockerRepository. */ - com.google.protobuf.ByteString - getDockerRepositoryBytes(); + com.google.protobuf.ByteString getDockerRepositoryBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java similarity index 65% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java index 9e3def53..7865a8a7 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java @@ -1,24 +1,42 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Request for the `CreateFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.CreateFunctionRequest} */ -public final class CreateFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.CreateFunctionRequest) CreateFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateFunctionRequest.newBuilder() to construct. private CreateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateFunctionRequest() { parent_ = ""; functionId_ = ""; @@ -26,16 +44,15 @@ private CreateFunctionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateFunctionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.functions.v2alpha.Function.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); - } - function_ = input.readMessage(com.google.cloud.functions.v2alpha.Function.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.functions.v2alpha.Function.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); + } + function_ = + input.readMessage( + com.google.cloud.functions.v2alpha.Function.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - functionId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + functionId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.CreateFunctionRequest.class, com.google.cloud.functions.v2alpha.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.CreateFunctionRequest.class, + com.google.cloud.functions.v2alpha.CreateFunctionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,30 +159,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,11 +195,16 @@ public java.lang.String getParent() { public static final int FUNCTION_FIELD_NUMBER = 2; private com.google.cloud.functions.v2alpha.Function function_; /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ @java.lang.Override @@ -176,23 +212,34 @@ public boolean hasFunction() { return function_ != null; } /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Function getFunction() { - return function_ == null ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() + : function_; } /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder() { @@ -202,6 +249,8 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder public static final int FUNCTION_ID_FIELD_NUMBER = 3; private volatile java.lang.Object functionId_; /** + * + * *
                                  * The ID to use for the function, which will become the final component of
                                  * the function's resource name.
                              @@ -210,6 +259,7 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder
                                  * 
                              * * string function_id = 3; + * * @return The functionId. */ @java.lang.Override @@ -218,14 +268,15 @@ public java.lang.String getFunctionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } } /** + * + * *
                                  * The ID to use for the function, which will become the final component of
                                  * the function's resource name.
                              @@ -234,16 +285,15 @@ public java.lang.String getFunctionId() {
                                  * 
                              * * string function_id = 3; + * * @return The bytes for functionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFunctionIdBytes() { + public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); functionId_ = b; return b; } else { @@ -252,6 +302,7 @@ public java.lang.String getFunctionId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +314,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,8 +337,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (function_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFunction()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFunction()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, functionId_); @@ -301,22 +350,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.CreateFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.CreateFunctionRequest other = (com.google.cloud.functions.v2alpha.CreateFunctionRequest) obj; + com.google.cloud.functions.v2alpha.CreateFunctionRequest other = + (com.google.cloud.functions.v2alpha.CreateFunctionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasFunction() != other.hasFunction()) return false; if (hasFunction()) { - if (!getFunction() - .equals(other.getFunction())) return false; + if (!getFunction().equals(other.getFunction())) return false; } - if (!getFunctionId() - .equals(other.getFunctionId())) return false; + if (!getFunctionId().equals(other.getFunctionId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,117 +389,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.CreateFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.CreateFunctionRequest 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.v2alpha.CreateFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.CreateFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.CreateFunctionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2alpha.CreateFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `CreateFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.CreateFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.CreateFunctionRequest) com.google.cloud.functions.v2alpha.CreateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.CreateFunctionRequest.class, com.google.cloud.functions.v2alpha.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.CreateFunctionRequest.class, + com.google.cloud.functions.v2alpha.CreateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.CreateFunctionRequest.newBuilder() @@ -460,16 +517,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; } @java.lang.Override @@ -508,7 +564,8 @@ public com.google.cloud.functions.v2alpha.CreateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.CreateFunctionRequest buildPartial() { - com.google.cloud.functions.v2alpha.CreateFunctionRequest result = new com.google.cloud.functions.v2alpha.CreateFunctionRequest(this); + com.google.cloud.functions.v2alpha.CreateFunctionRequest result = + new com.google.cloud.functions.v2alpha.CreateFunctionRequest(this); result.parent_ = parent_; if (functionBuilder_ == null) { result.function_ = function_; @@ -524,38 +581,39 @@ public com.google.cloud.functions.v2alpha.CreateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.CreateFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v2alpha.CreateFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -563,7 +621,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.CreateFunctionRequest other) { - if (other == com.google.cloud.functions.v2alpha.CreateFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2alpha.CreateFunctionRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -594,7 +653,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.CreateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.CreateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,19 +666,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -627,21 +691,24 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -649,57 +716,70 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -707,39 +787,58 @@ public Builder setParentBytes( private com.google.cloud.functions.v2alpha.Function function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder> functionBuilder_; + com.google.cloud.functions.v2alpha.Function, + com.google.cloud.functions.v2alpha.Function.Builder, + com.google.cloud.functions.v2alpha.FunctionOrBuilder> + functionBuilder_; /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ public com.google.cloud.functions.v2alpha.Function getFunction() { if (functionBuilder_ == null) { - return function_ == null ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() + : function_; } else { return functionBuilder_.getMessage(); } } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFunction(com.google.cloud.functions.v2alpha.Function value) { if (functionBuilder_ == null) { @@ -755,11 +854,15 @@ public Builder setFunction(com.google.cloud.functions.v2alpha.Function value) { return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFunction( com.google.cloud.functions.v2alpha.Function.Builder builderForValue) { @@ -773,17 +876,23 @@ public Builder setFunction( return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFunction(com.google.cloud.functions.v2alpha.Function value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v2alpha.Function.newBuilder(function_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v2alpha.Function.newBuilder(function_) + .mergeFrom(value) + .buildPartial(); } else { function_ = value; } @@ -795,11 +904,15 @@ public Builder mergeFunction(com.google.cloud.functions.v2alpha.Function value) return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -813,48 +926,64 @@ public Builder clearFunction() { return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v2alpha.Function.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null ? - com.google.cloud.functions.v2alpha.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() + : function_; } } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder> + com.google.cloud.functions.v2alpha.Function, + com.google.cloud.functions.v2alpha.Function.Builder, + com.google.cloud.functions.v2alpha.FunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder>( - getFunction(), - getParentForChildren(), - isClean()); + functionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2alpha.Function, + com.google.cloud.functions.v2alpha.Function.Builder, + com.google.cloud.functions.v2alpha.FunctionOrBuilder>( + getFunction(), getParentForChildren(), isClean()); function_ = null; } return functionBuilder_; @@ -862,6 +991,8 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder private java.lang.Object functionId_ = ""; /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -870,13 +1001,13 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder
                                    * 
                              * * string function_id = 3; + * * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; @@ -885,6 +1016,8 @@ public java.lang.String getFunctionId() { } } /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -893,15 +1026,14 @@ public java.lang.String getFunctionId() {
                                    * 
                              * * string function_id = 3; + * * @return The bytes for functionId. */ - public com.google.protobuf.ByteString - getFunctionIdBytes() { + public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); functionId_ = b; return b; } else { @@ -909,6 +1041,8 @@ public java.lang.String getFunctionId() { } } /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -917,20 +1051,22 @@ public java.lang.String getFunctionId() {
                                    * 
                              * * string function_id = 3; + * * @param value The functionId to set. * @return This builder for chaining. */ - public Builder setFunctionId( - java.lang.String value) { + public Builder setFunctionId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + functionId_ = value; onChanged(); return this; } /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -939,15 +1075,18 @@ public Builder setFunctionId(
                                    * 
                              * * string function_id = 3; + * * @return This builder for chaining. */ public Builder clearFunctionId() { - + functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -956,23 +1095,23 @@ public Builder clearFunctionId() {
                                    * 
                              * * string function_id = 3; + * * @param value The bytes for functionId to set. * @return This builder for chaining. */ - public Builder setFunctionIdBytes( - com.google.protobuf.ByteString value) { + public Builder setFunctionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + functionId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -982,12 +1121,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.CreateFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.CreateFunctionRequest) private static final com.google.cloud.functions.v2alpha.CreateFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.CreateFunctionRequest(); } @@ -996,16 +1135,16 @@ public static com.google.cloud.functions.v2alpha.CreateFunctionRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1020,6 +1159,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.CreateFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java index 8acde70d..44bd88c4 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface CreateFunctionRequestOrBuilder extends +public interface CreateFunctionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.CreateFunctionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ boolean hasFunction(); /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ com.google.cloud.functions.v2alpha.Function getFunction(); /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ 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.
                              @@ -65,10 +106,13 @@ public interface CreateFunctionRequestOrBuilder extends
                                  * 
                              * * string function_id = 3; + * * @return The functionId. */ java.lang.String getFunctionId(); /** + * + * *
                                  * The ID to use for the function, which will become the final component of
                                  * the function's resource name.
                              @@ -77,8 +121,8 @@ public interface CreateFunctionRequestOrBuilder extends
                                  * 
                              * * string function_id = 3; + * * @return The bytes for functionId. */ - com.google.protobuf.ByteString - getFunctionIdBytes(); + com.google.protobuf.ByteString getFunctionIdBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java similarity index 64% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java index e0d5eb72..4bd8cd10 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java @@ -1,40 +1,57 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Request for the `DeleteFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.DeleteFunctionRequest} */ -public final class DeleteFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.DeleteFunctionRequest) DeleteFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteFunctionRequest.newBuilder() to construct. private DeleteFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteFunctionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private DeleteFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.DeleteFunctionRequest.class, com.google.cloud.functions.v2alpha.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.DeleteFunctionRequest.class, + com.google.cloud.functions.v2alpha.DeleteFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
                                  * Required. The name of the function which should be deleted.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -109,29 +134,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * Required. The name of the function which should be deleted.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.DeleteFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.DeleteFunctionRequest other = (com.google.cloud.functions.v2alpha.DeleteFunctionRequest) obj; + com.google.cloud.functions.v2alpha.DeleteFunctionRequest other = + (com.google.cloud.functions.v2alpha.DeleteFunctionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.DeleteFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest 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.v2alpha.DeleteFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.DeleteFunctionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2alpha.DeleteFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `DeleteFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.DeleteFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.DeleteFunctionRequest) com.google.cloud.functions.v2alpha.DeleteFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.DeleteFunctionRequest.class, com.google.cloud.functions.v2alpha.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.DeleteFunctionRequest.class, + com.google.cloud.functions.v2alpha.DeleteFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.DeleteFunctionRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.functions.v2alpha.DeleteFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.DeleteFunctionRequest buildPartial() { - com.google.cloud.functions.v2alpha.DeleteFunctionRequest result = new com.google.cloud.functions.v2alpha.DeleteFunctionRequest(this); + com.google.cloud.functions.v2alpha.DeleteFunctionRequest result = + new com.google.cloud.functions.v2alpha.DeleteFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.functions.v2alpha.DeleteFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.DeleteFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v2alpha.DeleteFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.DeleteFunctionRequest other) { - if (other == com.google.cloud.functions.v2alpha.DeleteFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2alpha.DeleteFunctionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.DeleteFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.DeleteFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.DeleteFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.DeleteFunctionRequest) private static final com.google.cloud.functions.v2alpha.DeleteFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.DeleteFunctionRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.functions.v2alpha.DeleteFunctionRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.DeleteFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java new file mode 100644 index 00000000..34b9ca93 --- /dev/null +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/v2alpha/functions.proto + +package com.google.cloud.functions.v2alpha; + +public interface DeleteFunctionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.DeleteFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * Required. The name of the function which should be deleted.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                              +   * Required. The name of the function which should be deleted.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Environment.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Environment.java similarity index 65% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Environment.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Environment.java index 08641799..289502af 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Environment.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Environment.java @@ -1,18 +1,36 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * The environment the function is hosted on.
                                * 
                              * * Protobuf enum {@code google.cloud.functions.v2alpha.Environment} */ -public enum Environment - implements com.google.protobuf.ProtocolMessageEnum { +public enum Environment implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                  * Unspecified
                                  * 
                              @@ -21,6 +39,8 @@ public enum Environment */ ENVIRONMENT_UNSPECIFIED(0), /** + * + * *
                                  * Gen 1
                                  * 
                              @@ -29,6 +49,8 @@ public enum Environment */ GEN_1(1), /** + * + * *
                                  * Gen 2
                                  * 
                              @@ -40,6 +62,8 @@ public enum Environment ; /** + * + * *
                                  * Unspecified
                                  * 
                              @@ -48,6 +72,8 @@ public enum Environment */ public static final int ENVIRONMENT_UNSPECIFIED_VALUE = 0; /** + * + * *
                                  * Gen 1
                                  * 
                              @@ -56,6 +82,8 @@ public enum Environment */ public static final int GEN_1_VALUE = 1; /** + * + * *
                                  * Gen 2
                                  * 
                              @@ -64,7 +92,6 @@ public enum Environment */ public static final int GEN_2_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,49 @@ public static Environment valueOf(int value) { */ public static Environment forNumber(int value) { switch (value) { - case 0: return ENVIRONMENT_UNSPECIFIED; - case 1: return GEN_1; - case 2: return GEN_2; - default: return null; + case 0: + return ENVIRONMENT_UNSPECIFIED; + case 1: + return GEN_1; + case 2: + return GEN_2; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Environment> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Environment findValueByNumber(int number) { - return Environment.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Environment findValueByNumber(int number) { + return Environment.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto.getDescriptor().getEnumTypes().get(0); } private static final Environment[] VALUES = values(); - public static Environment valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Environment valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +174,3 @@ private Environment(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2alpha.Environment) } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java similarity index 72% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java index b9dd0205..d148dbc7 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java @@ -1,24 +1,42 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Filters events based on exact matches on the CloudEvents attributes.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.EventFilter} */ -public final class EventFilter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EventFilter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.EventFilter) EventFilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EventFilter.newBuilder() to construct. private EventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EventFilter() { attribute_ = ""; value_ = ""; @@ -27,16 +45,15 @@ private EventFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventFilter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EventFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private EventFilter( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - attribute_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + attribute_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + value_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - operator_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + operator_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,34 +107,39 @@ private EventFilter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.EventFilter.class, com.google.cloud.functions.v2alpha.EventFilter.Builder.class); + com.google.cloud.functions.v2alpha.EventFilter.class, + com.google.cloud.functions.v2alpha.EventFilter.Builder.class); } public static final int ATTRIBUTE_FIELD_NUMBER = 1; private volatile java.lang.Object attribute_; /** + * + * *
                                  * Required. The name of a CloudEvents attribute.
                                  * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attribute. */ @java.lang.Override @@ -123,29 +148,29 @@ public java.lang.String getAttribute() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; } } /** + * + * *
                                  * Required. The name of a CloudEvents attribute.
                                  * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attribute. */ @java.lang.Override - public com.google.protobuf.ByteString - getAttributeBytes() { + public com.google.protobuf.ByteString getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attribute_ = b; return b; } else { @@ -156,11 +181,14 @@ public java.lang.String getAttribute() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
                                  * Required. The value for the attribute.
                                  * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ @java.lang.Override @@ -169,29 +197,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
                                  * Required. The value for the attribute.
                                  * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -202,6 +230,8 @@ public java.lang.String getValue() { public static final int OPERATOR_FIELD_NUMBER = 3; private volatile java.lang.Object operator_; /** + * + * *
                                  * Optional. The operator used for matching the events with the value of the
                                  * filter. If not specified, only events that have an exact key-value pair
                              @@ -210,6 +240,7 @@ public java.lang.String getValue() {
                                  * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The operator. */ @java.lang.Override @@ -218,14 +249,15 @@ public java.lang.String getOperator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operator_ = s; return s; } } /** + * + * *
                                  * Optional. The operator used for matching the events with the value of the
                                  * filter. If not specified, only events that have an exact key-value pair
                              @@ -234,16 +266,15 @@ public java.lang.String getOperator() {
                                  * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for operator. */ @java.lang.Override - public com.google.protobuf.ByteString - getOperatorBytes() { + public com.google.protobuf.ByteString getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operator_ = b; return b; } else { @@ -252,6 +283,7 @@ public java.lang.String getOperator() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +295,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attribute_); } @@ -300,19 +331,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.EventFilter)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.EventFilter other = (com.google.cloud.functions.v2alpha.EventFilter) obj; + com.google.cloud.functions.v2alpha.EventFilter other = + (com.google.cloud.functions.v2alpha.EventFilter) obj; - if (!getAttribute() - .equals(other.getAttribute())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!getOperator() - .equals(other.getOperator())) return false; + if (!getAttribute().equals(other.getAttribute())) return false; + if (!getValue().equals(other.getValue())) return false; + if (!getOperator().equals(other.getOperator())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -335,118 +364,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.EventFilter parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.EventFilter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.EventFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.EventFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.EventFilter 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.v2alpha.EventFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.EventFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.EventFilter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.EventFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.EventFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.EventFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.EventFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.EventFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.EventFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2alpha.EventFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Filters events based on exact matches on the CloudEvents attributes.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.EventFilter} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.EventFilter) com.google.cloud.functions.v2alpha.EventFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.EventFilter.class, com.google.cloud.functions.v2alpha.EventFilter.Builder.class); + com.google.cloud.functions.v2alpha.EventFilter.class, + com.google.cloud.functions.v2alpha.EventFilter.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.EventFilter.newBuilder() @@ -454,16 +492,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +514,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; } @java.lang.Override @@ -498,7 +535,8 @@ public com.google.cloud.functions.v2alpha.EventFilter build() { @java.lang.Override public com.google.cloud.functions.v2alpha.EventFilter buildPartial() { - com.google.cloud.functions.v2alpha.EventFilter result = new com.google.cloud.functions.v2alpha.EventFilter(this); + com.google.cloud.functions.v2alpha.EventFilter result = + new com.google.cloud.functions.v2alpha.EventFilter(this); result.attribute_ = attribute_; result.value_ = value_; result.operator_ = operator_; @@ -510,38 +548,39 @@ public com.google.cloud.functions.v2alpha.EventFilter buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.EventFilter)other); + return mergeFrom((com.google.cloud.functions.v2alpha.EventFilter) other); } else { super.mergeFrom(other); return this; @@ -593,18 +632,20 @@ public Builder mergeFrom( private java.lang.Object attribute_ = ""; /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attribute. */ public java.lang.String getAttribute() { java.lang.Object ref = attribute_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; @@ -613,20 +654,21 @@ public java.lang.String getAttribute() { } } /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attribute. */ - public com.google.protobuf.ByteString - getAttributeBytes() { + public com.google.protobuf.ByteString getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attribute_ = b; return b; } else { @@ -634,54 +676,61 @@ public java.lang.String getAttribute() { } } /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The attribute to set. * @return This builder for chaining. */ - public Builder setAttribute( - java.lang.String value) { + public Builder setAttribute(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attribute_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAttribute() { - + attribute_ = getDefaultInstance().getAttribute(); onChanged(); return this; } /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for attribute to set. * @return This builder for chaining. */ - public Builder setAttributeBytes( - com.google.protobuf.ByteString value) { + public Builder setAttributeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attribute_ = value; onChanged(); return this; @@ -689,18 +738,20 @@ public Builder setAttributeBytes( private java.lang.Object value_ = ""; /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -709,20 +760,21 @@ public java.lang.String getValue() { } } /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -730,54 +782,61 @@ public java.lang.String getValue() { } } /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; @@ -785,6 +844,8 @@ public Builder setValueBytes( private java.lang.Object operator_ = ""; /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -793,13 +854,13 @@ public Builder setValueBytes(
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The operator. */ public java.lang.String getOperator() { java.lang.Object ref = operator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operator_ = s; return s; @@ -808,6 +869,8 @@ public java.lang.String getOperator() { } } /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -816,15 +879,14 @@ public java.lang.String getOperator() {
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for operator. */ - public com.google.protobuf.ByteString - getOperatorBytes() { + public com.google.protobuf.ByteString getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operator_ = b; return b; } else { @@ -832,6 +894,8 @@ public java.lang.String getOperator() { } } /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -840,20 +904,22 @@ public java.lang.String getOperator() {
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The operator to set. * @return This builder for chaining. */ - public Builder setOperator( - java.lang.String value) { + public Builder setOperator(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operator_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -862,15 +928,18 @@ public Builder setOperator(
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOperator() { - + operator_ = getDefaultInstance().getOperator(); onChanged(); return this; } /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -879,23 +948,23 @@ public Builder clearOperator() {
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for operator to set. * @return This builder for chaining. */ - public Builder setOperatorBytes( - com.google.protobuf.ByteString value) { + public Builder setOperatorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operator_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -905,12 +974,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.EventFilter) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.EventFilter) private static final com.google.cloud.functions.v2alpha.EventFilter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.EventFilter(); } @@ -919,16 +988,16 @@ public static com.google.cloud.functions.v2alpha.EventFilter getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventFilter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventFilter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,6 +1012,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.EventFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java similarity index 69% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java index bddd280f..47ae6b37 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilterOrBuilder.java @@ -1,53 +1,81 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface EventFilterOrBuilder extends +public interface EventFilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.EventFilter) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Required. The name of a CloudEvents attribute.
                                  * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attribute. */ java.lang.String getAttribute(); /** + * + * *
                                  * Required. The name of a CloudEvents attribute.
                                  * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attribute. */ - com.google.protobuf.ByteString - getAttributeBytes(); + com.google.protobuf.ByteString getAttributeBytes(); /** + * + * *
                                  * Required. The value for the attribute.
                                  * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
                                  * Required. The value for the attribute.
                                  * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
                                  * Optional. The operator used for matching the events with the value of the
                                  * filter. If not specified, only events that have an exact key-value pair
                              @@ -56,10 +84,13 @@ public interface EventFilterOrBuilder extends
                                  * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The operator. */ java.lang.String getOperator(); /** + * + * *
                                  * Optional. The operator used for matching the events with the value of the
                                  * filter. If not specified, only events that have an exact key-value pair
                              @@ -68,8 +99,8 @@ public interface EventFilterOrBuilder extends
                                  * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for operator. */ - com.google.protobuf.ByteString - getOperatorBytes(); + com.google.protobuf.ByteString getOperatorBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java similarity index 73% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java index 0fcd3524..95129990 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java @@ -1,9 +1,26 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Describes EventTrigger, used to request events to be sent from another
                                * service.
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2alpha.EventTrigger}
                                */
                              -public final class EventTrigger extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class EventTrigger extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.EventTrigger)
                                   EventTriggerOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use EventTrigger.newBuilder() to construct.
                                 private EventTrigger(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private EventTrigger() {
                                   trigger_ = "";
                                   triggerRegion_ = "";
                              @@ -33,16 +51,15 @@ private EventTrigger() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new EventTrigger();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private EventTrigger(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -62,64 +79,74 @@ private EventTrigger(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            trigger_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              trigger_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            triggerRegion_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              triggerRegion_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            eventType_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              eventFilters_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000001;
                              +              eventType_ = s;
                              +              break;
                                           }
                              -            eventFilters_.add(
                              -                input.readMessage(com.google.cloud.functions.v2alpha.EventFilter.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          case 42: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 34:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                eventFilters_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              eventFilters_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2alpha.EventFilter.parser(), extensionRegistry));
                              +              break;
                              +            }
                              +          case 42:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            pubsubTopic_ = s;
                              -            break;
                              -          }
                              -          case 50: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              pubsubTopic_ = s;
                              +              break;
                              +            }
                              +          case 50:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            serviceAccountEmail_ = s;
                              -            break;
                              -          }
                              -          case 56: {
                              -            int rawValue = input.readEnum();
                              +              serviceAccountEmail_ = s;
                              +              break;
                              +            }
                              +          case 56:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            retryPolicy_ = rawValue;
                              -            break;
                              -          }
                              -          case 66: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              retryPolicy_ = rawValue;
                              +              break;
                              +            }
                              +          case 66:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            channel_ = s;
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              channel_ = s;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -127,8 +154,7 @@ private EventTrigger(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000001) != 0)) {
                                       eventFilters_ = java.util.Collections.unmodifiableList(eventFilters_);
                              @@ -137,20 +163,25 @@ private EventTrigger(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2alpha.EventTrigger.class, com.google.cloud.functions.v2alpha.EventTrigger.Builder.class);
                              +            com.google.cloud.functions.v2alpha.EventTrigger.class,
                              +            com.google.cloud.functions.v2alpha.EventTrigger.Builder.class);
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Describes the retry policy in case of function's execution failure.
                                  * Retried execution is charged as any other execution.
                              @@ -158,9 +189,10 @@ private EventTrigger(
                                  *
                                  * Protobuf enum {@code google.cloud.functions.v2alpha.EventTrigger.RetryPolicy}
                                  */
                              -  public enum RetryPolicy
                              -      implements com.google.protobuf.ProtocolMessageEnum {
                              +  public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum {
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Not specified.
                                    * 
                              @@ -169,6 +201,8 @@ public enum RetryPolicy */ RETRY_POLICY_UNSPECIFIED(0), /** + * + * *
                                    * Do not retry.
                                    * 
                              @@ -177,6 +211,8 @@ public enum RetryPolicy */ RETRY_POLICY_DO_NOT_RETRY(1), /** + * + * *
                                    * Retry on any failure, retry up to 7 days with an exponential backoff
                                    * (capped at 10 seconds).
                              @@ -189,6 +225,8 @@ public enum RetryPolicy
                                   ;
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Not specified.
                                    * 
                              @@ -197,6 +235,8 @@ public enum RetryPolicy */ public static final int RETRY_POLICY_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Do not retry.
                                    * 
                              @@ -205,6 +245,8 @@ public enum RetryPolicy */ public static final int RETRY_POLICY_DO_NOT_RETRY_VALUE = 1; /** + * + * *
                                    * Retry on any failure, retry up to 7 days with an exponential backoff
                                    * (capped at 10 seconds).
                              @@ -214,7 +256,6 @@ public enum RetryPolicy
                                    */
                                   public static final int RETRY_POLICY_RETRY_VALUE = 2;
                               
                              -
                                   public final int getNumber() {
                                     if (this == UNRECOGNIZED) {
                                       throw new java.lang.IllegalArgumentException(
                              @@ -239,49 +280,49 @@ public static RetryPolicy valueOf(int value) {
                                    */
                                   public static RetryPolicy forNumber(int value) {
                                     switch (value) {
                              -        case 0: return RETRY_POLICY_UNSPECIFIED;
                              -        case 1: return RETRY_POLICY_DO_NOT_RETRY;
                              -        case 2: return RETRY_POLICY_RETRY;
                              -        default: return null;
                              +        case 0:
                              +          return RETRY_POLICY_UNSPECIFIED;
                              +        case 1:
                              +          return RETRY_POLICY_DO_NOT_RETRY;
                              +        case 2:
                              +          return RETRY_POLICY_RETRY;
                              +        default:
                              +          return null;
                                     }
                                   }
                               
                              -    public static com.google.protobuf.Internal.EnumLiteMap
                              -        internalGetValueMap() {
                              +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
                                     return internalValueMap;
                                   }
                              -    private static final com.google.protobuf.Internal.EnumLiteMap<
                              -        RetryPolicy> internalValueMap =
                              -          new com.google.protobuf.Internal.EnumLiteMap() {
                              -            public RetryPolicy findValueByNumber(int number) {
                              -              return RetryPolicy.forNumber(number);
                              -            }
                              -          };
                               
                              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
                              -        getValueDescriptor() {
                              +    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
                              +        new com.google.protobuf.Internal.EnumLiteMap() {
                              +          public RetryPolicy findValueByNumber(int number) {
                              +            return RetryPolicy.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() {
                              +
                              +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                                     return getDescriptor();
                                   }
                              -    public static final com.google.protobuf.Descriptors.EnumDescriptor
                              -        getDescriptor() {
                              +
                              +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                                     return com.google.cloud.functions.v2alpha.EventTrigger.getDescriptor().getEnumTypes().get(0);
                                   }
                               
                                   private static final RetryPolicy[] VALUES = values();
                               
                              -    public static RetryPolicy valueOf(
                              -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                              +    public static RetryPolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                                     if (desc.getType() != getDescriptor()) {
                              -        throw new java.lang.IllegalArgumentException(
                              -          "EnumValueDescriptor is not for this type.");
                              +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                                     }
                                     if (desc.getIndex() == -1) {
                                       return UNRECOGNIZED;
                              @@ -301,12 +342,17 @@ private RetryPolicy(int value) {
                                 public static final int TRIGGER_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The trigger. */ @java.lang.Override @@ -315,30 +361,32 @@ public java.lang.String getTrigger() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trigger_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for trigger. */ @java.lang.Override - public com.google.protobuf.ByteString - getTriggerBytes() { + public com.google.protobuf.ByteString getTriggerBytes() { java.lang.Object ref = trigger_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trigger_ = b; return b; } else { @@ -349,6 +397,8 @@ public java.lang.String getTrigger() { public static final int TRIGGER_REGION_FIELD_NUMBER = 2; private volatile java.lang.Object triggerRegion_; /** + * + * *
                                  * The region that the trigger will be in. The trigger will only receive
                                  * events originating in this region. It can be the same
                              @@ -357,6 +407,7 @@ public java.lang.String getTrigger() {
                                  * 
                              * * string trigger_region = 2; + * * @return The triggerRegion. */ @java.lang.Override @@ -365,14 +416,15 @@ public java.lang.String getTriggerRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); triggerRegion_ = s; return s; } } /** + * + * *
                                  * The region that the trigger will be in. The trigger will only receive
                                  * events originating in this region. It can be the same
                              @@ -381,16 +433,15 @@ public java.lang.String getTriggerRegion() {
                                  * 
                              * * string trigger_region = 2; + * * @return The bytes for triggerRegion. */ @java.lang.Override - public com.google.protobuf.ByteString - getTriggerRegionBytes() { + public com.google.protobuf.ByteString getTriggerRegionBytes() { java.lang.Object ref = triggerRegion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); triggerRegion_ = b; return b; } else { @@ -401,6 +452,8 @@ public java.lang.String getTriggerRegion() { public static final int EVENT_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object eventType_; /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `google.cloud.audit.log.v1.written` or
                              @@ -408,6 +461,7 @@ public java.lang.String getTriggerRegion() {
                                  * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The eventType. */ @java.lang.Override @@ -416,14 +470,15 @@ public java.lang.String getEventType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; } } /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `google.cloud.audit.log.v1.written` or
                              @@ -431,16 +486,15 @@ public java.lang.String getEventType() {
                                  * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for eventType. */ @java.lang.Override - public com.google.protobuf.ByteString - getEventTypeBytes() { + public com.google.protobuf.ByteString getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventType_ = b; return b; } else { @@ -451,6 +505,8 @@ public java.lang.String getEventType() { public static final int EVENT_FILTERS_FIELD_NUMBER = 4; private java.util.List eventFilters_; /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -462,6 +518,8 @@ public java.util.List getEventFi return eventFilters_; } /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -469,11 +527,13 @@ public java.util.List getEventFi * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ @java.lang.Override - public java.util.List + public java.util.List getEventFiltersOrBuilderList() { return eventFilters_; } /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -485,6 +545,8 @@ public int getEventFiltersCount() { return eventFilters_.size(); } /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -496,6 +558,8 @@ public com.google.cloud.functions.v2alpha.EventFilter getEventFilters(int index) return eventFilters_.get(index); } /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -511,6 +575,8 @@ public com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOr public static final int PUBSUB_TOPIC_FIELD_NUMBER = 5; private volatile java.lang.Object pubsubTopic_; /** + * + * *
                                  * 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:
                              @@ -520,7 +586,10 @@ public com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOr
                                  * will not be deleted at function deletion.
                                  * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The pubsubTopic. */ @java.lang.Override @@ -529,14 +598,15 @@ public java.lang.String getPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; } } /** + * + * *
                                  * 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:
                              @@ -546,17 +616,18 @@ public java.lang.String getPubsubTopic() {
                                  * will not be deleted at function deletion.
                                  * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -567,6 +638,8 @@ public java.lang.String getPubsubTopic() { public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 6; private volatile java.lang.Object serviceAccountEmail_; /** + * + * *
                                  * Optional. The email of the trigger's service account. The service account must have
                                  * permission to invoke Cloud Run services, the permission is
                              @@ -576,6 +649,7 @@ public java.lang.String getPubsubTopic() {
                                  * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccountEmail. */ @java.lang.Override @@ -584,14 +658,15 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** + * + * *
                                  * Optional. The email of the trigger's service account. The service account must have
                                  * permission to invoke Cloud Run services, the permission is
                              @@ -601,16 +676,15 @@ public java.lang.String getServiceAccountEmail() {
                                  * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -621,40 +695,60 @@ public java.lang.String getServiceAccountEmail() { public static final int RETRY_POLICY_FIELD_NUMBER = 7; private int retryPolicy_; /** + * + * *
                                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                  * 
                              * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for retryPolicy. */ - @java.lang.Override public int getRetryPolicyValue() { + @java.lang.Override + public int getRetryPolicyValue() { return retryPolicy_; } /** + * + * *
                                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                  * 
                              * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The retryPolicy. */ - @java.lang.Override public com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy getRetryPolicy() { + @java.lang.Override + public com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy getRetryPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy result = com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.valueOf(retryPolicy_); - return result == null ? com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.UNRECOGNIZED : result; + com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy result = + com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.valueOf(retryPolicy_); + return result == null + ? com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.UNRECOGNIZED + : result; } public static final int CHANNEL_FIELD_NUMBER = 8; private volatile java.lang.Object channel_; /** + * + * *
                                  * Optional. The name of the channel associated with the trigger in
                                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                                  * You must provide a channel to receive events from Eventarc SaaS partners.
                                  * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The channel. */ @java.lang.Override @@ -663,31 +757,33 @@ public java.lang.String getChannel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; } } /** + * + * *
                                  * Optional. The name of the channel associated with the trigger in
                                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                                  * You must provide a channel to receive events from Eventarc SaaS partners.
                                  * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for channel. */ @java.lang.Override - public com.google.protobuf.ByteString - getChannelBytes() { + public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); channel_ = b; return b; } else { @@ -696,6 +792,7 @@ public java.lang.String getChannel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -707,8 +804,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trigger_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trigger_); } @@ -727,7 +823,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAccountEmail_); } - if (retryPolicy_ != com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED.getNumber()) { + if (retryPolicy_ + != com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED + .getNumber()) { output.writeEnum(7, retryPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { @@ -752,8 +850,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, eventType_); } for (int i = 0; i < eventFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, eventFilters_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, eventFilters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pubsubTopic_); @@ -761,9 +858,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAccountEmail_); } - if (retryPolicy_ != com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, retryPolicy_); + if (retryPolicy_ + != com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, retryPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, channel_); @@ -776,28 +874,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.EventTrigger)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.EventTrigger other = (com.google.cloud.functions.v2alpha.EventTrigger) obj; - - if (!getTrigger() - .equals(other.getTrigger())) return false; - if (!getTriggerRegion() - .equals(other.getTriggerRegion())) return false; - if (!getEventType() - .equals(other.getEventType())) return false; - if (!getEventFiltersList() - .equals(other.getEventFiltersList())) return false; - if (!getPubsubTopic() - .equals(other.getPubsubTopic())) return false; - if (!getServiceAccountEmail() - .equals(other.getServiceAccountEmail())) return false; + com.google.cloud.functions.v2alpha.EventTrigger other = + (com.google.cloud.functions.v2alpha.EventTrigger) obj; + + if (!getTrigger().equals(other.getTrigger())) return false; + if (!getTriggerRegion().equals(other.getTriggerRegion())) return false; + if (!getEventType().equals(other.getEventType())) return false; + if (!getEventFiltersList().equals(other.getEventFiltersList())) return false; + if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (retryPolicy_ != other.retryPolicy_) return false; - if (!getChannel() - .equals(other.getChannel())) return false; + if (!getChannel().equals(other.getChannel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -832,97 +924,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.EventTrigger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.EventTrigger 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.v2alpha.EventTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.EventTrigger parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.EventTrigger parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.EventTrigger parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.EventTrigger parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2alpha.EventTrigger prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes EventTrigger, used to request events to be sent from another
                                  * service.
                              @@ -930,21 +1029,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2alpha.EventTrigger}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.EventTrigger)
                                     com.google.cloud.functions.v2alpha.EventTriggerOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2alpha.EventTrigger.class, com.google.cloud.functions.v2alpha.EventTrigger.Builder.class);
                              +              com.google.cloud.functions.v2alpha.EventTrigger.class,
                              +              com.google.cloud.functions.v2alpha.EventTrigger.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2alpha.EventTrigger.newBuilder()
                              @@ -952,17 +1053,17 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getEventFiltersFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -990,9 +1091,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -1011,7 +1112,8 @@ public com.google.cloud.functions.v2alpha.EventTrigger build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2alpha.EventTrigger buildPartial() {
                              -      com.google.cloud.functions.v2alpha.EventTrigger result = new com.google.cloud.functions.v2alpha.EventTrigger(this);
                              +      com.google.cloud.functions.v2alpha.EventTrigger result =
                              +          new com.google.cloud.functions.v2alpha.EventTrigger(this);
                                     int from_bitField0_ = bitField0_;
                                     result.trigger_ = trigger_;
                                     result.triggerRegion_ = triggerRegion_;
                              @@ -1037,38 +1139,39 @@ public com.google.cloud.functions.v2alpha.EventTrigger buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2alpha.EventTrigger)other);
                              +        return mergeFrom((com.google.cloud.functions.v2alpha.EventTrigger) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1076,7 +1179,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                                   }
                               
                                   public Builder mergeFrom(com.google.cloud.functions.v2alpha.EventTrigger other) {
                              -      if (other == com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance()) return this;
                              +      if (other == com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance())
                              +        return this;
                                     if (!other.getTrigger().isEmpty()) {
                                       trigger_ = other.trigger_;
                                       onChanged();
                              @@ -1107,9 +1211,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.EventTrigger other)
                                           eventFiltersBuilder_ = null;
                                           eventFilters_ = other.eventFilters_;
                                           bitField0_ = (bitField0_ & ~0x00000001);
                              -            eventFiltersBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getEventFiltersFieldBuilder() : null;
                              +            eventFiltersBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getEventFiltersFieldBuilder()
                              +                    : null;
                                         } else {
                                           eventFiltersBuilder_.addAllMessages(other.eventFilters_);
                                         }
                              @@ -1158,23 +1263,28 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The trigger. */ public java.lang.String getTrigger() { java.lang.Object ref = trigger_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trigger_ = s; return s; @@ -1183,21 +1293,24 @@ 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}`.
                                    * 
                              * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for trigger. */ - public com.google.protobuf.ByteString - getTriggerBytes() { + public com.google.protobuf.ByteString getTriggerBytes() { java.lang.Object ref = trigger_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trigger_ = b; return b; } else { @@ -1205,57 +1318,70 @@ 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}`.
                                    * 
                              * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The trigger to set. * @return This builder for chaining. */ - public Builder setTrigger( - java.lang.String value) { + public Builder setTrigger(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trigger_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTrigger() { - + trigger_ = getDefaultInstance().getTrigger(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for trigger to set. * @return This builder for chaining. */ - public Builder setTriggerBytes( - com.google.protobuf.ByteString value) { + public Builder setTriggerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trigger_ = value; onChanged(); return this; @@ -1263,6 +1389,8 @@ public Builder setTriggerBytes( private java.lang.Object triggerRegion_ = ""; /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1271,13 +1399,13 @@ public Builder setTriggerBytes(
                                    * 
                              * * string trigger_region = 2; + * * @return The triggerRegion. */ public java.lang.String getTriggerRegion() { java.lang.Object ref = triggerRegion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); triggerRegion_ = s; return s; @@ -1286,6 +1414,8 @@ public java.lang.String getTriggerRegion() { } } /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1294,15 +1424,14 @@ public java.lang.String getTriggerRegion() {
                                    * 
                              * * string trigger_region = 2; + * * @return The bytes for triggerRegion. */ - public com.google.protobuf.ByteString - getTriggerRegionBytes() { + public com.google.protobuf.ByteString getTriggerRegionBytes() { java.lang.Object ref = triggerRegion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); triggerRegion_ = b; return b; } else { @@ -1310,6 +1439,8 @@ public java.lang.String getTriggerRegion() { } } /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1318,20 +1449,22 @@ public java.lang.String getTriggerRegion() {
                                    * 
                              * * string trigger_region = 2; + * * @param value The triggerRegion to set. * @return This builder for chaining. */ - public Builder setTriggerRegion( - java.lang.String value) { + public Builder setTriggerRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + triggerRegion_ = value; onChanged(); return this; } /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1340,15 +1473,18 @@ public Builder setTriggerRegion(
                                    * 
                              * * string trigger_region = 2; + * * @return This builder for chaining. */ public Builder clearTriggerRegion() { - + triggerRegion_ = getDefaultInstance().getTriggerRegion(); onChanged(); return this; } /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1357,16 +1493,16 @@ public Builder clearTriggerRegion() {
                                    * 
                              * * string trigger_region = 2; + * * @param value The bytes for triggerRegion to set. * @return This builder for chaining. */ - public Builder setTriggerRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setTriggerRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + triggerRegion_ = value; onChanged(); return this; @@ -1374,6 +1510,8 @@ public Builder setTriggerRegionBytes( private java.lang.Object eventType_ = ""; /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1381,13 +1519,13 @@ public Builder setTriggerRegionBytes(
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The eventType. */ public java.lang.String getEventType() { java.lang.Object ref = eventType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; @@ -1396,6 +1534,8 @@ public java.lang.String getEventType() { } } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1403,15 +1543,14 @@ public java.lang.String getEventType() {
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for eventType. */ - public com.google.protobuf.ByteString - getEventTypeBytes() { + public com.google.protobuf.ByteString getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventType_ = b; return b; } else { @@ -1419,6 +1558,8 @@ public java.lang.String getEventType() { } } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1426,20 +1567,22 @@ public java.lang.String getEventType() {
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType( - java.lang.String value) { + public Builder setEventType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + eventType_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1447,15 +1590,18 @@ public Builder setEventType(
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearEventType() { - + eventType_ = getDefaultInstance().getEventType(); onChanged(); return this; } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1463,34 +1609,41 @@ public Builder clearEventType() {
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for eventType to set. * @return This builder for chaining. */ - public Builder setEventTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventType_ = value; onChanged(); return this; } private java.util.List eventFilters_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEventFiltersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - eventFilters_ = new java.util.ArrayList(eventFilters_); + eventFilters_ = + new java.util.ArrayList(eventFilters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.EventFilter, com.google.cloud.functions.v2alpha.EventFilter.Builder, com.google.cloud.functions.v2alpha.EventFilterOrBuilder> eventFiltersBuilder_; + com.google.cloud.functions.v2alpha.EventFilter, + com.google.cloud.functions.v2alpha.EventFilter.Builder, + com.google.cloud.functions.v2alpha.EventFilterOrBuilder> + eventFiltersBuilder_; /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1505,6 +1658,8 @@ public java.util.List getEventFi } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1519,6 +1674,8 @@ public int getEventFiltersCount() { } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1533,6 +1690,8 @@ public com.google.cloud.functions.v2alpha.EventFilter getEventFilters(int index) } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1554,6 +1713,8 @@ public Builder setEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1572,6 +1733,8 @@ public Builder setEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1592,6 +1755,8 @@ public Builder addEventFilters(com.google.cloud.functions.v2alpha.EventFilter va return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1613,6 +1778,8 @@ public Builder addEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1631,6 +1798,8 @@ public Builder addEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1649,6 +1818,8 @@ public Builder addEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1659,8 +1830,7 @@ public Builder addAllEventFilters( java.lang.Iterable values) { if (eventFiltersBuilder_ == null) { ensureEventFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, eventFilters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventFilters_); onChanged(); } else { eventFiltersBuilder_.addAllMessages(values); @@ -1668,6 +1838,8 @@ public Builder addAllEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1685,6 +1857,8 @@ public Builder clearEventFilters() { return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1702,6 +1876,8 @@ public Builder removeEventFilters(int index) { return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1713,6 +1889,8 @@ public com.google.cloud.functions.v2alpha.EventFilter.Builder getEventFiltersBui return getEventFiltersFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1722,19 +1900,22 @@ public com.google.cloud.functions.v2alpha.EventFilter.Builder getEventFiltersBui public com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOrBuilder( int index) { if (eventFiltersBuilder_ == null) { - return eventFilters_.get(index); } else { + return eventFilters_.get(index); + } else { return eventFiltersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ - public java.util.List - getEventFiltersOrBuilderList() { + public java.util.List + getEventFiltersOrBuilderList() { if (eventFiltersBuilder_ != null) { return eventFiltersBuilder_.getMessageOrBuilderList(); } else { @@ -1742,6 +1923,8 @@ public com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOr } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1749,10 +1932,12 @@ public com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOr * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ public com.google.cloud.functions.v2alpha.EventFilter.Builder addEventFiltersBuilder() { - return getEventFiltersFieldBuilder().addBuilder( - com.google.cloud.functions.v2alpha.EventFilter.getDefaultInstance()); + return getEventFiltersFieldBuilder() + .addBuilder(com.google.cloud.functions.v2alpha.EventFilter.getDefaultInstance()); } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1761,30 +1946,35 @@ public com.google.cloud.functions.v2alpha.EventFilter.Builder addEventFiltersBui */ public com.google.cloud.functions.v2alpha.EventFilter.Builder addEventFiltersBuilder( int index) { - return getEventFiltersFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2alpha.EventFilter.getDefaultInstance()); + return getEventFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2alpha.EventFilter.getDefaultInstance()); } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ - public java.util.List - getEventFiltersBuilderList() { + public java.util.List + getEventFiltersBuilderList() { return getEventFiltersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.EventFilter, com.google.cloud.functions.v2alpha.EventFilter.Builder, com.google.cloud.functions.v2alpha.EventFilterOrBuilder> + com.google.cloud.functions.v2alpha.EventFilter, + com.google.cloud.functions.v2alpha.EventFilter.Builder, + com.google.cloud.functions.v2alpha.EventFilterOrBuilder> getEventFiltersFieldBuilder() { if (eventFiltersBuilder_ == null) { - eventFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.EventFilter, com.google.cloud.functions.v2alpha.EventFilter.Builder, com.google.cloud.functions.v2alpha.EventFilterOrBuilder>( - eventFilters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + eventFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.EventFilter, + com.google.cloud.functions.v2alpha.EventFilter.Builder, + com.google.cloud.functions.v2alpha.EventFilterOrBuilder>( + eventFilters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); eventFilters_ = null; } return eventFiltersBuilder_; @@ -1792,6 +1982,8 @@ public com.google.cloud.functions.v2alpha.EventFilter.Builder addEventFiltersBui private java.lang.Object pubsubTopic_ = ""; /** + * + * *
                                    * 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:
                              @@ -1801,14 +1993,16 @@ public com.google.cloud.functions.v2alpha.EventFilter.Builder addEventFiltersBui
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; @@ -1817,6 +2011,8 @@ 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:
                              @@ -1826,16 +2022,17 @@ public java.lang.String getPubsubTopic() {
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -1843,6 +2040,8 @@ 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:
                              @@ -1852,21 +2051,25 @@ public java.lang.String getPubsubTopic() {
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic( - java.lang.String value) { + public Builder setPubsubTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopic_ = value; onChanged(); return this; } /** + * + * *
                                    * 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:
                              @@ -1876,16 +2079,21 @@ public Builder setPubsubTopic(
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearPubsubTopic() { - + pubsubTopic_ = getDefaultInstance().getPubsubTopic(); onChanged(); return this; } /** + * + * *
                                    * 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:
                              @@ -1895,17 +2103,19 @@ public Builder clearPubsubTopic() {
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopic_ = value; onChanged(); return this; @@ -1913,6 +2123,8 @@ public Builder setPubsubTopicBytes( private java.lang.Object serviceAccountEmail_ = ""; /** + * + * *
                                    * Optional. The email of the trigger's service account. The service account must have
                                    * permission to invoke Cloud Run services, the permission is
                              @@ -1922,13 +2134,13 @@ public Builder setPubsubTopicBytes(
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -1937,6 +2149,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
                              @@ -1946,15 +2160,14 @@ public java.lang.String getServiceAccountEmail() {
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -1962,6 +2175,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
                              @@ -1971,20 +2186,22 @@ public java.lang.String getServiceAccountEmail() {
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail( - java.lang.String value) { + public Builder setServiceAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. The email of the trigger's service account. The service account must have
                                    * permission to invoke Cloud Run services, the permission is
                              @@ -1994,15 +2211,18 @@ public Builder setServiceAccountEmail(
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** + * + * *
                                    * Optional. The email of the trigger's service account. The service account must have
                                    * permission to invoke Cloud Run services, the permission is
                              @@ -2012,16 +2232,16 @@ public Builder clearServiceAccountEmail() {
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; @@ -2029,73 +2249,103 @@ public Builder setServiceAccountEmailBytes( private int retryPolicy_ = 0; /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for retryPolicy. */ - @java.lang.Override public int getRetryPolicyValue() { + @java.lang.Override + public int getRetryPolicyValue() { return retryPolicy_; } /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for retryPolicy to set. * @return This builder for chaining. */ public Builder setRetryPolicyValue(int value) { - + retryPolicy_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The retryPolicy. */ @java.lang.Override public com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy getRetryPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy result = com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.valueOf(retryPolicy_); - return result == null ? com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.UNRECOGNIZED : result; + com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy result = + com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.valueOf(retryPolicy_); + return result == null + ? com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy.UNRECOGNIZED + : result; } /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The retryPolicy to set. * @return This builder for chaining. */ - public Builder setRetryPolicy(com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy value) { + public Builder setRetryPolicy( + com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy value) { if (value == null) { throw new NullPointerException(); } - + retryPolicy_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearRetryPolicy() { - + retryPolicy_ = 0; onChanged(); return this; @@ -2103,20 +2353,24 @@ public Builder clearRetryPolicy() { private java.lang.Object channel_ = ""; /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The channel. */ public java.lang.String getChannel() { java.lang.Object ref = channel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; @@ -2125,22 +2379,25 @@ public java.lang.String getChannel() { } } /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for channel. */ - public com.google.protobuf.ByteString - getChannelBytes() { + public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); channel_ = b; return b; } else { @@ -2148,67 +2405,80 @@ public java.lang.String getChannel() { } } /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The channel to set. * @return This builder for chaining. */ - public Builder setChannel( - java.lang.String value) { + public Builder setChannel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + channel_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearChannel() { - + channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for channel to set. * @return This builder for chaining. */ - public Builder setChannelBytes( - com.google.protobuf.ByteString value) { + public Builder setChannelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channel_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2218,12 +2488,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.EventTrigger) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.EventTrigger) private static final com.google.cloud.functions.v2alpha.EventTrigger DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.EventTrigger(); } @@ -2232,16 +2502,16 @@ public static com.google.cloud.functions.v2alpha.EventTrigger getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventTrigger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventTrigger(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventTrigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventTrigger(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2256,6 +2526,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.EventTrigger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java similarity index 72% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java index bad1cc32..b716b4ef 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java @@ -1,35 +1,62 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface EventTriggerOrBuilder extends +public interface EventTriggerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.EventTrigger) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The trigger. */ 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}`.
                                  * 
                              * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for trigger. */ - com.google.protobuf.ByteString - getTriggerBytes(); + com.google.protobuf.ByteString getTriggerBytes(); /** + * + * *
                                  * The region that the trigger will be in. The trigger will only receive
                                  * events originating in this region. It can be the same
                              @@ -38,10 +65,13 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string trigger_region = 2; + * * @return The triggerRegion. */ java.lang.String getTriggerRegion(); /** + * + * *
                                  * The region that the trigger will be in. The trigger will only receive
                                  * events originating in this region. It can be the same
                              @@ -50,12 +80,14 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string trigger_region = 2; + * * @return The bytes for triggerRegion. */ - com.google.protobuf.ByteString - getTriggerRegionBytes(); + com.google.protobuf.ByteString getTriggerRegionBytes(); /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `google.cloud.audit.log.v1.written` or
                              @@ -63,10 +95,13 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The eventType. */ java.lang.String getEventType(); /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `google.cloud.audit.log.v1.written` or
                              @@ -74,21 +109,24 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for eventType. */ - com.google.protobuf.ByteString - getEventTypeBytes(); + com.google.protobuf.ByteString getEventTypeBytes(); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ - java.util.List - getEventFiltersList(); + java.util.List getEventFiltersList(); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -97,6 +135,8 @@ public interface EventTriggerOrBuilder extends */ com.google.cloud.functions.v2alpha.EventFilter getEventFilters(int index); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -105,25 +145,30 @@ public interface EventTriggerOrBuilder extends */ int getEventFiltersCount(); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ - java.util.List + java.util.List getEventFiltersOrBuilderList(); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.EventFilter event_filters = 4; */ - com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOrBuilder( - int index); + com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOrBuilder(int index); /** + * + * *
                                  * 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:
                              @@ -133,11 +178,16 @@ com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOrBuilder
                                  * will not be deleted at function deletion.
                                  * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The pubsubTopic. */ 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:
                              @@ -147,13 +197,17 @@ com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOrBuilder
                                  * will not be deleted at function deletion.
                                  * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString - getPubsubTopicBytes(); + 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
                              @@ -163,10 +217,13 @@ com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOrBuilder
                                  * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccountEmail. */ 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
                              @@ -176,51 +233,70 @@ com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOrBuilder
                                  * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString - getServiceAccountEmailBytes(); + com.google.protobuf.ByteString getServiceAccountEmailBytes(); /** + * + * *
                                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                  * 
                              * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for retryPolicy. */ int getRetryPolicyValue(); /** + * + * *
                                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                  * 
                              * - * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2alpha.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The retryPolicy. */ com.google.cloud.functions.v2alpha.EventTrigger.RetryPolicy getRetryPolicy(); /** + * + * *
                                  * Optional. The name of the channel associated with the trigger in
                                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                                  * You must provide a channel to receive events from Eventarc SaaS partners.
                                  * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The channel. */ java.lang.String getChannel(); /** + * + * *
                                  * Optional. The name of the channel associated with the trigger in
                                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                                  * You must provide a channel to receive events from Eventarc SaaS partners.
                                  * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for channel. */ - com.google.protobuf.ByteString - getChannelBytes(); + com.google.protobuf.ByteString getChannelBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java similarity index 68% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java index b13e4d79..269eb5a6 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java @@ -1,9 +1,26 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Describes a Cloud Function that contains user computation executed in
                                * response to an event. It encapsulates function and trigger configurations.
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2alpha.Function}
                                */
                              -public final class Function extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class Function extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.Function)
                                   FunctionOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use Function.newBuilder() to construct.
                                 private Function(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private Function() {
                                   name_ = "";
                                   environment_ = 0;
                              @@ -30,16 +48,15 @@ private Function() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new Function();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private Function(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -59,111 +76,129 @@ private Function(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            name_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            description_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            com.google.cloud.functions.v2alpha.BuildConfig.Builder subBuilder = null;
                              -            if (buildConfig_ != null) {
                              -              subBuilder = buildConfig_.toBuilder();
                              -            }
                              -            buildConfig_ = input.readMessage(com.google.cloud.functions.v2alpha.BuildConfig.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(buildConfig_);
                              -              buildConfig_ = subBuilder.buildPartial();
                              +              name_ = s;
                              +              break;
                                           }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            break;
                              -          }
                              -          case 34: {
                              -            com.google.cloud.functions.v2alpha.ServiceConfig.Builder subBuilder = null;
                              -            if (serviceConfig_ != null) {
                              -              subBuilder = serviceConfig_.toBuilder();
                              +              description_ = s;
                              +              break;
                                           }
                              -            serviceConfig_ = input.readMessage(com.google.cloud.functions.v2alpha.ServiceConfig.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(serviceConfig_);
                              -              serviceConfig_ = subBuilder.buildPartial();
                              +          case 26:
                              +            {
                              +              com.google.cloud.functions.v2alpha.BuildConfig.Builder subBuilder = null;
                              +              if (buildConfig_ != null) {
                              +                subBuilder = buildConfig_.toBuilder();
                              +              }
                              +              buildConfig_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2alpha.BuildConfig.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(buildConfig_);
                              +                buildConfig_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              -
                              -            break;
                              -          }
                              -          case 42: {
                              -            com.google.cloud.functions.v2alpha.EventTrigger.Builder subBuilder = null;
                              -            if (eventTrigger_ != null) {
                              -              subBuilder = eventTrigger_.toBuilder();
                              +          case 34:
                              +            {
                              +              com.google.cloud.functions.v2alpha.ServiceConfig.Builder subBuilder = null;
                              +              if (serviceConfig_ != null) {
                              +                subBuilder = serviceConfig_.toBuilder();
                              +              }
                              +              serviceConfig_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2alpha.ServiceConfig.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(serviceConfig_);
                              +                serviceConfig_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              -            eventTrigger_ = input.readMessage(com.google.cloud.functions.v2alpha.EventTrigger.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(eventTrigger_);
                              -              eventTrigger_ = subBuilder.buildPartial();
                              +          case 42:
                              +            {
                              +              com.google.cloud.functions.v2alpha.EventTrigger.Builder subBuilder = null;
                              +              if (eventTrigger_ != null) {
                              +                subBuilder = eventTrigger_.toBuilder();
                              +              }
                              +              eventTrigger_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2alpha.EventTrigger.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(eventTrigger_);
                              +                eventTrigger_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              +          case 48:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            break;
                              -          }
                              -          case 48: {
                              -            int rawValue = input.readEnum();
                              -
                              -            state_ = rawValue;
                              -            break;
                              -          }
                              -          case 58: {
                              -            com.google.protobuf.Timestamp.Builder subBuilder = null;
                              -            if (updateTime_ != null) {
                              -              subBuilder = updateTime_.toBuilder();
                              +              state_ = rawValue;
                              +              break;
                                           }
                              -            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(updateTime_);
                              -              updateTime_ = subBuilder.buildPartial();
                              +          case 58:
                              +            {
                              +              com.google.protobuf.Timestamp.Builder subBuilder = null;
                              +              if (updateTime_ != null) {
                              +                subBuilder = updateTime_.toBuilder();
                              +              }
                              +              updateTime_ =
                              +                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(updateTime_);
                              +                updateTime_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              -
                              -            break;
                              -          }
                              -          case 66: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              labels_ = com.google.protobuf.MapField.newMapField(
                              -                  LabelsDefaultEntryHolder.defaultEntry);
                              -              mutable_bitField0_ |= 0x00000001;
                              +          case 66:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                labels_ =
                              +                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              com.google.protobuf.MapEntry labels__ =
                              +                  input.readMessage(
                              +                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              +              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
                              +              break;
                                           }
                              -            com.google.protobuf.MapEntry
                              -            labels__ = input.readMessage(
                              -                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              -            labels_.getMutableMap().put(
                              -                labels__.getKey(), labels__.getValue());
                              -            break;
                              -          }
                              -          case 74: {
                              -            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              -              stateMessages_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000002;
                              +          case 74:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              +                stateMessages_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000002;
                              +              }
                              +              stateMessages_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2alpha.StateMessage.parser(), extensionRegistry));
                              +              break;
                                           }
                              -            stateMessages_.add(
                              -                input.readMessage(com.google.cloud.functions.v2alpha.StateMessage.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          case 80: {
                              -            int rawValue = input.readEnum();
                              +          case 80:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            environment_ = rawValue;
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              environment_ = rawValue;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -171,8 +206,7 @@ private Function(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000002) != 0)) {
                                       stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_);
                              @@ -181,41 +215,46 @@ private Function(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Function_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_Function_descriptor;
                                 }
                               
                                 @SuppressWarnings({"rawtypes"})
                                 @java.lang.Override
                              -  protected com.google.protobuf.MapField internalGetMapField(
                              -      int number) {
                              +  protected com.google.protobuf.MapField internalGetMapField(int number) {
                                   switch (number) {
                                     case 8:
                                       return internalGetLabels();
                                     default:
                              -        throw new RuntimeException(
                              -            "Invalid map field number: " + number);
                              +        throw new RuntimeException("Invalid map field number: " + number);
                                   }
                                 }
                              +
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2alpha.Function.class, com.google.cloud.functions.v2alpha.Function.Builder.class);
                              +            com.google.cloud.functions.v2alpha.Function.class,
                              +            com.google.cloud.functions.v2alpha.Function.Builder.class);
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Describes the current state of the function.
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2alpha.Function.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified. Invalid state.
                                    * 
                              @@ -224,6 +263,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
                                    * Function has been successfully deployed and is serving.
                                    * 
                              @@ -232,6 +273,8 @@ public enum State */ ACTIVE(1), /** + * + * *
                                    * Function deployment failed and the function is not serving.
                                    * 
                              @@ -240,6 +283,8 @@ public enum State */ FAILED(2), /** + * + * *
                                    * Function is being created or updated.
                                    * 
                              @@ -248,6 +293,8 @@ public enum State */ DEPLOYING(3), /** + * + * *
                                    * Function is being deleted.
                                    * 
                              @@ -256,6 +303,8 @@ public enum State */ DELETING(4), /** + * + * *
                                    * Function deployment failed and the function serving state is undefined.
                                    * The function should be updated or deleted to move it out of this state.
                              @@ -268,6 +317,8 @@ public enum State
                                   ;
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Not specified. Invalid state.
                                    * 
                              @@ -276,6 +327,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Function has been successfully deployed and is serving.
                                    * 
                              @@ -284,6 +337,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
                                    * Function deployment failed and the function is not serving.
                                    * 
                              @@ -292,6 +347,8 @@ public enum State */ public static final int FAILED_VALUE = 2; /** + * + * *
                                    * Function is being created or updated.
                                    * 
                              @@ -300,6 +357,8 @@ public enum State */ public static final int DEPLOYING_VALUE = 3; /** + * + * *
                                    * Function is being deleted.
                                    * 
                              @@ -308,6 +367,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
                                    * Function deployment failed and the function serving state is undefined.
                                    * The function should be updated or deleted to move it out of this state.
                              @@ -317,7 +378,6 @@ public enum State
                                    */
                                   public static final int UNKNOWN_VALUE = 5;
                               
                              -
                                   public final int getNumber() {
                                     if (this == UNRECOGNIZED) {
                                       throw new java.lang.IllegalArgumentException(
                              @@ -342,52 +402,55 @@ public static State valueOf(int value) {
                                    */
                                   public static State forNumber(int value) {
                                     switch (value) {
                              -        case 0: return STATE_UNSPECIFIED;
                              -        case 1: return ACTIVE;
                              -        case 2: return FAILED;
                              -        case 3: return DEPLOYING;
                              -        case 4: return DELETING;
                              -        case 5: return UNKNOWN;
                              -        default: return null;
                              +        case 0:
                              +          return STATE_UNSPECIFIED;
                              +        case 1:
                              +          return ACTIVE;
                              +        case 2:
                              +          return FAILED;
                              +        case 3:
                              +          return DEPLOYING;
                              +        case 4:
                              +          return DELETING;
                              +        case 5:
                              +          return UNKNOWN;
                              +        default:
                              +          return null;
                                     }
                                   }
                               
                              -    public static com.google.protobuf.Internal.EnumLiteMap
                              -        internalGetValueMap() {
                              +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
                                     return internalValueMap;
                                   }
                              -    private static final com.google.protobuf.Internal.EnumLiteMap<
                              -        State> internalValueMap =
                              -          new com.google.protobuf.Internal.EnumLiteMap() {
                              -            public State findValueByNumber(int number) {
                              -              return State.forNumber(number);
                              -            }
                              -          };
                               
                              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
                              -        getValueDescriptor() {
                              +    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
                              +        new com.google.protobuf.Internal.EnumLiteMap() {
                              +          public State findValueByNumber(int number) {
                              +            return State.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() {
                              +
                              +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                                     return getDescriptor();
                                   }
                              -    public static final com.google.protobuf.Descriptors.EnumDescriptor
                              -        getDescriptor() {
                              +
                              +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                                     return com.google.cloud.functions.v2alpha.Function.getDescriptor().getEnumTypes().get(0);
                                   }
                               
                                   private static final State[] VALUES = values();
                               
                              -    public static State valueOf(
                              -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                              +    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                                     if (desc.getType() != getDescriptor()) {
                              -        throw new java.lang.IllegalArgumentException(
                              -          "EnumValueDescriptor is not for this type.");
                              +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                                     }
                                     if (desc.getIndex() == -1) {
                                       return UNRECOGNIZED;
                              @@ -407,12 +470,15 @@ private State(int value) {
                                 public static final int NAME_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object name_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -421,30 +487,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -455,38 +521,50 @@ public java.lang.String getName() { public static final int ENVIRONMENT_FIELD_NUMBER = 10; private int environment_; /** + * + * *
                                  * Describe whether the function is gen1 or gen2.
                                  * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 10; + * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override public int getEnvironmentValue() { + @java.lang.Override + public int getEnvironmentValue() { return environment_; } /** + * + * *
                                  * Describe whether the function is gen1 or gen2.
                                  * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 10; + * * @return The environment. */ - @java.lang.Override public com.google.cloud.functions.v2alpha.Environment getEnvironment() { + @java.lang.Override + public com.google.cloud.functions.v2alpha.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Environment result = com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); + com.google.cloud.functions.v2alpha.Environment result = + com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2alpha.Environment.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The description. */ @java.lang.Override @@ -495,29 +573,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -528,12 +606,15 @@ public java.lang.String getDescription() { public static final int BUILD_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.functions.v2alpha.BuildConfig buildConfig_; /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                                  * 
                              * * .google.cloud.functions.v2alpha.BuildConfig build_config = 3; + * * @return Whether the buildConfig field is set. */ @java.lang.Override @@ -541,19 +622,26 @@ public boolean hasBuildConfig() { return buildConfig_ != null; } /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                                  * 
                              * * .google.cloud.functions.v2alpha.BuildConfig build_config = 3; + * * @return The buildConfig. */ @java.lang.Override public com.google.cloud.functions.v2alpha.BuildConfig getBuildConfig() { - return buildConfig_ == null ? com.google.cloud.functions.v2alpha.BuildConfig.getDefaultInstance() : buildConfig_; + return buildConfig_ == null + ? com.google.cloud.functions.v2alpha.BuildConfig.getDefaultInstance() + : buildConfig_; } /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                              @@ -569,12 +657,15 @@ public com.google.cloud.functions.v2alpha.BuildConfigOrBuilder getBuildConfigOrB
                                 public static final int SERVICE_CONFIG_FIELD_NUMBER = 4;
                                 private com.google.cloud.functions.v2alpha.ServiceConfig serviceConfig_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                                  * 
                              * * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4; + * * @return Whether the serviceConfig field is set. */ @java.lang.Override @@ -582,19 +673,26 @@ public boolean hasServiceConfig() { return serviceConfig_ != null; } /** + * + * *
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                                  * 
                              * * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4; + * * @return The serviceConfig. */ @java.lang.Override public com.google.cloud.functions.v2alpha.ServiceConfig getServiceConfig() { - return serviceConfig_ == null ? com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance() : serviceConfig_; + return serviceConfig_ == null + ? com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance() + : serviceConfig_; } /** + * + * *
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                              @@ -610,12 +708,15 @@ public com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder getServiceConfi
                                 public static final int EVENT_TRIGGER_FIELD_NUMBER = 5;
                                 private com.google.cloud.functions.v2alpha.EventTrigger eventTrigger_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5; + * * @return Whether the eventTrigger field is set. */ @java.lang.Override @@ -623,19 +724,26 @@ public boolean hasEventTrigger() { return eventTrigger_ != null; } /** + * + * *
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5; + * * @return The eventTrigger. */ @java.lang.Override public com.google.cloud.functions.v2alpha.EventTrigger getEventTrigger() { - return eventTrigger_ == null ? com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance() : eventTrigger_; + return eventTrigger_ == null + ? com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance() + : eventTrigger_; } /** + * + * *
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                              @@ -651,38 +759,55 @@ public com.google.cloud.functions.v2alpha.EventTriggerOrBuilder getEventTriggerO
                                 public static final int STATE_FIELD_NUMBER = 6;
                                 private int state_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Output only. State of the function.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
                                  * Output only. State of the function.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.functions.v2alpha.Function.State getState() { + @java.lang.Override + public com.google.cloud.functions.v2alpha.Function.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Function.State result = com.google.cloud.functions.v2alpha.Function.State.valueOf(state_); + com.google.cloud.functions.v2alpha.Function.State result = + com.google.cloud.functions.v2alpha.Function.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2alpha.Function.State.UNRECOGNIZED : result; } public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
                                  * 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]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -690,11 +815,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
                                  * 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]; + * + * * @return The updateTime. */ @java.lang.Override @@ -702,11 +831,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
                                  * 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]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -714,24 +846,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -740,28 +871,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 8; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -769,11 +902,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -781,16 +915,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -798,12 +932,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -813,56 +946,76 @@ public java.lang.String getLabelsOrThrow( public static final int STATE_MESSAGES_FIELD_NUMBER = 9; private java.util.List stateMessages_; /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getStateMessagesList() { return stateMessages_; } /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getStateMessagesOrBuilderList() { return stateMessages_; } /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getStateMessagesCount() { return stateMessages_.size(); } /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int index) { return stateMessages_.get(index); } /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder( @@ -871,6 +1024,7 @@ public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessages } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -882,8 +1036,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -905,16 +1058,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(7, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); for (int i = 0; i < stateMessages_.size(); i++) { output.writeMessage(9, stateMessages_.get(i)); } - if (environment_ != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (environment_ + != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(10, environment_); } unknownFields.writeTo(output); @@ -933,42 +1083,36 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (buildConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBuildConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBuildConfig()); } if (serviceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getServiceConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceConfig()); } if (eventTrigger_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEventTrigger()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEventTrigger()); } if (state_ != com.google.cloud.functions.v2alpha.Function.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); } for (int i = 0; i < stateMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, stateMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, stateMessages_.get(i)); } - if (environment_ != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, environment_); + if (environment_ + != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, environment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -978,43 +1122,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.Function)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.Function other = (com.google.cloud.functions.v2alpha.Function) obj; + com.google.cloud.functions.v2alpha.Function other = + (com.google.cloud.functions.v2alpha.Function) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (environment_ != other.environment_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasBuildConfig() != other.hasBuildConfig()) return false; if (hasBuildConfig()) { - if (!getBuildConfig() - .equals(other.getBuildConfig())) return false; + if (!getBuildConfig().equals(other.getBuildConfig())) return false; } if (hasServiceConfig() != other.hasServiceConfig()) return false; if (hasServiceConfig()) { - if (!getServiceConfig() - .equals(other.getServiceConfig())) return false; + if (!getServiceConfig().equals(other.getServiceConfig())) return false; } if (hasEventTrigger() != other.hasEventTrigger()) return false; if (hasEventTrigger()) { - if (!getEventTrigger() - .equals(other.getEventTrigger())) return false; + if (!getEventTrigger().equals(other.getEventTrigger())) return false; } if (state_ != other.state_) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getStateMessagesList() - .equals(other.getStateMessagesList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getStateMessagesList().equals(other.getStateMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1063,97 +1200,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.Function parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.Function parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.Function parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.Function parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.Function 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.v2alpha.Function parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.Function parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.Function parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.Function parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.Function parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.Function parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.Function parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.Function parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.Function parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2alpha.Function prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes a Cloud Function that contains user computation executed in
                                  * response to an event. It encapsulates function and trigger configurations.
                              @@ -1161,43 +1305,43 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2alpha.Function}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.Function)
                                     com.google.cloud.functions.v2alpha.FunctionOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Function_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_Function_descriptor;
                                   }
                               
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMapField(int number) {
                                     switch (number) {
                                       case 8:
                                         return internalGetLabels();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMutableMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
                                     switch (number) {
                                       case 8:
                                         return internalGetMutableLabels();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2alpha.Function.class, com.google.cloud.functions.v2alpha.Function.Builder.class);
                              +              com.google.cloud.functions.v2alpha.Function.class,
                              +              com.google.cloud.functions.v2alpha.Function.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2alpha.Function.newBuilder()
                              @@ -1205,17 +1349,17 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getStateMessagesFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -1262,9 +1406,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Function_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_Function_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -1283,7 +1427,8 @@ public com.google.cloud.functions.v2alpha.Function build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2alpha.Function buildPartial() {
                              -      com.google.cloud.functions.v2alpha.Function result = new com.google.cloud.functions.v2alpha.Function(this);
                              +      com.google.cloud.functions.v2alpha.Function result =
                              +          new com.google.cloud.functions.v2alpha.Function(this);
                                     int from_bitField0_ = bitField0_;
                                     result.name_ = name_;
                                     result.environment_ = environment_;
                              @@ -1328,38 +1473,39 @@ public com.google.cloud.functions.v2alpha.Function buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2alpha.Function)other);
                              +        return mergeFrom((com.google.cloud.functions.v2alpha.Function) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1394,8 +1540,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.Function other) {
                                     if (other.hasUpdateTime()) {
                                       mergeUpdateTime(other.getUpdateTime());
                                     }
                              -      internalGetMutableLabels().mergeFrom(
                              -          other.internalGetLabels());
                              +      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
                                     if (stateMessagesBuilder_ == null) {
                                       if (!other.stateMessages_.isEmpty()) {
                                         if (stateMessages_.isEmpty()) {
                              @@ -1414,9 +1559,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.Function other) {
                                           stateMessagesBuilder_ = null;
                                           stateMessages_ = other.stateMessages_;
                                           bitField0_ = (bitField0_ & ~0x00000002);
                              -            stateMessagesBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getStateMessagesFieldBuilder() : null;
                              +            stateMessagesBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getStateMessagesFieldBuilder()
                              +                    : null;
                                         } else {
                                           stateMessagesBuilder_.addAllMessages(other.stateMessages_);
                                         }
                              @@ -1450,23 +1596,26 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object name_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1475,21 +1624,22 @@ public java.lang.String getName() { } } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1497,57 +1647,64 @@ public java.lang.String getName() { } } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1555,51 +1712,65 @@ public Builder setNameBytes( private int environment_ = 0; /** + * + * *
                                    * Describe whether the function is gen1 or gen2.
                                    * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 10; + * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override public int getEnvironmentValue() { + @java.lang.Override + public int getEnvironmentValue() { return environment_; } /** + * + * *
                                    * Describe whether the function is gen1 or gen2.
                                    * 
                              * * .google.cloud.functions.v2alpha.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; onChanged(); return this; } /** + * + * *
                                    * Describe whether the function is gen1 or gen2.
                                    * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 10; + * * @return The environment. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Environment result = com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); + com.google.cloud.functions.v2alpha.Environment result = + com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2alpha.Environment.UNRECOGNIZED : result; } /** + * + * *
                                    * Describe whether the function is gen1 or gen2.
                                    * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 10; + * * @param value The environment to set. * @return This builder for chaining. */ @@ -1607,21 +1778,24 @@ public Builder setEnvironment(com.google.cloud.functions.v2alpha.Environment val if (value == null) { throw new NullPointerException(); } - + environment_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Describe whether the function is gen1 or gen2.
                                    * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 10; + * * @return This builder for chaining. */ public Builder clearEnvironment() { - + environment_ = 0; onChanged(); return this; @@ -1629,18 +1803,20 @@ public Builder clearEnvironment() { 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1649,20 +1825,21 @@ public java.lang.String getDescription() { } } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1670,54 +1847,61 @@ public java.lang.String getDescription() { } } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1725,36 +1909,49 @@ public Builder setDescriptionBytes( private com.google.cloud.functions.v2alpha.BuildConfig buildConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.BuildConfig, com.google.cloud.functions.v2alpha.BuildConfig.Builder, com.google.cloud.functions.v2alpha.BuildConfigOrBuilder> buildConfigBuilder_; + com.google.cloud.functions.v2alpha.BuildConfig, + com.google.cloud.functions.v2alpha.BuildConfig.Builder, + com.google.cloud.functions.v2alpha.BuildConfigOrBuilder> + buildConfigBuilder_; /** + * + * *
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                                    * 
                              * * .google.cloud.functions.v2alpha.BuildConfig build_config = 3; + * * @return Whether the buildConfig field is set. */ public boolean hasBuildConfig() { return buildConfigBuilder_ != null || buildConfig_ != null; } /** + * + * *
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                                    * 
                              * * .google.cloud.functions.v2alpha.BuildConfig build_config = 3; + * * @return The buildConfig. */ public com.google.cloud.functions.v2alpha.BuildConfig getBuildConfig() { if (buildConfigBuilder_ == null) { - return buildConfig_ == null ? com.google.cloud.functions.v2alpha.BuildConfig.getDefaultInstance() : buildConfig_; + return buildConfig_ == null + ? com.google.cloud.functions.v2alpha.BuildConfig.getDefaultInstance() + : buildConfig_; } else { return buildConfigBuilder_.getMessage(); } } /** + * + * *
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1776,6 +1973,8 @@ public Builder setBuildConfig(com.google.cloud.functions.v2alpha.BuildConfig val
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1795,6 +1994,8 @@ public Builder setBuildConfig(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1806,7 +2007,9 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2alpha.BuildConfig v
                                     if (buildConfigBuilder_ == null) {
                                       if (buildConfig_ != null) {
                                         buildConfig_ =
                              -            com.google.cloud.functions.v2alpha.BuildConfig.newBuilder(buildConfig_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2alpha.BuildConfig.newBuilder(buildConfig_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         buildConfig_ = value;
                                       }
                              @@ -1818,6 +2021,8 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2alpha.BuildConfig v
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1837,6 +2042,8 @@ public Builder clearBuildConfig() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1845,11 +2052,13 @@ public Builder clearBuildConfig() {
                                    * .google.cloud.functions.v2alpha.BuildConfig build_config = 3;
                                    */
                                   public com.google.cloud.functions.v2alpha.BuildConfig.Builder getBuildConfigBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getBuildConfigFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1861,11 +2070,14 @@ public com.google.cloud.functions.v2alpha.BuildConfigOrBuilder getBuildConfigOrB
                                     if (buildConfigBuilder_ != null) {
                                       return buildConfigBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return buildConfig_ == null ?
                              -            com.google.cloud.functions.v2alpha.BuildConfig.getDefaultInstance() : buildConfig_;
                              +        return buildConfig_ == null
                              +            ? com.google.cloud.functions.v2alpha.BuildConfig.getDefaultInstance()
                              +            : buildConfig_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1874,14 +2086,17 @@ public com.google.cloud.functions.v2alpha.BuildConfigOrBuilder getBuildConfigOrB
                                    * .google.cloud.functions.v2alpha.BuildConfig build_config = 3;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2alpha.BuildConfig, com.google.cloud.functions.v2alpha.BuildConfig.Builder, com.google.cloud.functions.v2alpha.BuildConfigOrBuilder> 
                              +            com.google.cloud.functions.v2alpha.BuildConfig,
                              +            com.google.cloud.functions.v2alpha.BuildConfig.Builder,
                              +            com.google.cloud.functions.v2alpha.BuildConfigOrBuilder>
                                       getBuildConfigFieldBuilder() {
                                     if (buildConfigBuilder_ == null) {
                              -        buildConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2alpha.BuildConfig, com.google.cloud.functions.v2alpha.BuildConfig.Builder, com.google.cloud.functions.v2alpha.BuildConfigOrBuilder>(
                              -                getBuildConfig(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        buildConfigBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2alpha.BuildConfig,
                              +                com.google.cloud.functions.v2alpha.BuildConfig.Builder,
                              +                com.google.cloud.functions.v2alpha.BuildConfigOrBuilder>(
                              +                getBuildConfig(), getParentForChildren(), isClean());
                                       buildConfig_ = null;
                                     }
                                     return buildConfigBuilder_;
                              @@ -1889,36 +2104,49 @@ public com.google.cloud.functions.v2alpha.BuildConfigOrBuilder getBuildConfigOrB
                               
                                   private com.google.cloud.functions.v2alpha.ServiceConfig serviceConfig_;
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2alpha.ServiceConfig, com.google.cloud.functions.v2alpha.ServiceConfig.Builder, com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder> serviceConfigBuilder_;
                              +            com.google.cloud.functions.v2alpha.ServiceConfig,
                              +            com.google.cloud.functions.v2alpha.ServiceConfig.Builder,
                              +            com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder>
                              +        serviceConfigBuilder_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                                    * 
                              * * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4; + * * @return Whether the serviceConfig field is set. */ public boolean hasServiceConfig() { return serviceConfigBuilder_ != null || serviceConfig_ != null; } /** + * + * *
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                                    * 
                              * * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4; + * * @return The serviceConfig. */ public com.google.cloud.functions.v2alpha.ServiceConfig getServiceConfig() { if (serviceConfigBuilder_ == null) { - return serviceConfig_ == null ? com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance() : serviceConfig_; + return serviceConfig_ == null + ? com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance() + : serviceConfig_; } else { return serviceConfigBuilder_.getMessage(); } } /** + * + * *
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -1940,6 +2168,8 @@ public Builder setServiceConfig(com.google.cloud.functions.v2alpha.ServiceConfig
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -1959,6 +2189,8 @@ public Builder setServiceConfig(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -1970,7 +2202,9 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2alpha.ServiceConf
                                     if (serviceConfigBuilder_ == null) {
                                       if (serviceConfig_ != null) {
                                         serviceConfig_ =
                              -            com.google.cloud.functions.v2alpha.ServiceConfig.newBuilder(serviceConfig_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2alpha.ServiceConfig.newBuilder(serviceConfig_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         serviceConfig_ = value;
                                       }
                              @@ -1982,6 +2216,8 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2alpha.ServiceConf
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -2001,6 +2237,8 @@ public Builder clearServiceConfig() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -2009,11 +2247,13 @@ public Builder clearServiceConfig() {
                                    * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4;
                                    */
                                   public com.google.cloud.functions.v2alpha.ServiceConfig.Builder getServiceConfigBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getServiceConfigFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -2025,11 +2265,14 @@ public com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder getServiceConfi
                                     if (serviceConfigBuilder_ != null) {
                                       return serviceConfigBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return serviceConfig_ == null ?
                              -            com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance() : serviceConfig_;
                              +        return serviceConfig_ == null
                              +            ? com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance()
                              +            : serviceConfig_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -2038,14 +2281,17 @@ public com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder getServiceConfi
                                    * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2alpha.ServiceConfig, com.google.cloud.functions.v2alpha.ServiceConfig.Builder, com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder> 
                              +            com.google.cloud.functions.v2alpha.ServiceConfig,
                              +            com.google.cloud.functions.v2alpha.ServiceConfig.Builder,
                              +            com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder>
                                       getServiceConfigFieldBuilder() {
                                     if (serviceConfigBuilder_ == null) {
                              -        serviceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2alpha.ServiceConfig, com.google.cloud.functions.v2alpha.ServiceConfig.Builder, com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder>(
                              -                getServiceConfig(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        serviceConfigBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2alpha.ServiceConfig,
                              +                com.google.cloud.functions.v2alpha.ServiceConfig.Builder,
                              +                com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder>(
                              +                getServiceConfig(), getParentForChildren(), isClean());
                                       serviceConfig_ = null;
                                     }
                                     return serviceConfigBuilder_;
                              @@ -2053,36 +2299,49 @@ public com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder getServiceConfi
                               
                                   private com.google.cloud.functions.v2alpha.EventTrigger eventTrigger_;
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2alpha.EventTrigger, com.google.cloud.functions.v2alpha.EventTrigger.Builder, com.google.cloud.functions.v2alpha.EventTriggerOrBuilder> eventTriggerBuilder_;
                              +            com.google.cloud.functions.v2alpha.EventTrigger,
                              +            com.google.cloud.functions.v2alpha.EventTrigger.Builder,
                              +            com.google.cloud.functions.v2alpha.EventTriggerOrBuilder>
                              +        eventTriggerBuilder_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                                    * 
                              * * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5; + * * @return Whether the eventTrigger field is set. */ public boolean hasEventTrigger() { return eventTriggerBuilder_ != null || eventTrigger_ != null; } /** + * + * *
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                                    * 
                              * * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5; + * * @return The eventTrigger. */ public com.google.cloud.functions.v2alpha.EventTrigger getEventTrigger() { if (eventTriggerBuilder_ == null) { - return eventTrigger_ == null ? com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance() : eventTrigger_; + return eventTrigger_ == null + ? com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance() + : eventTrigger_; } else { return eventTriggerBuilder_.getMessage(); } } /** + * + * *
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2104,6 +2363,8 @@ public Builder setEventTrigger(com.google.cloud.functions.v2alpha.EventTrigger v
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2123,6 +2384,8 @@ public Builder setEventTrigger(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2134,7 +2397,9 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2alpha.EventTrigger
                                     if (eventTriggerBuilder_ == null) {
                                       if (eventTrigger_ != null) {
                                         eventTrigger_ =
                              -            com.google.cloud.functions.v2alpha.EventTrigger.newBuilder(eventTrigger_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2alpha.EventTrigger.newBuilder(eventTrigger_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         eventTrigger_ = value;
                                       }
                              @@ -2146,6 +2411,8 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2alpha.EventTrigger
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2165,6 +2432,8 @@ public Builder clearEventTrigger() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2173,11 +2442,13 @@ public Builder clearEventTrigger() {
                                    * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5;
                                    */
                                   public com.google.cloud.functions.v2alpha.EventTrigger.Builder getEventTriggerBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getEventTriggerFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2189,11 +2460,14 @@ public com.google.cloud.functions.v2alpha.EventTriggerOrBuilder getEventTriggerO
                                     if (eventTriggerBuilder_ != null) {
                                       return eventTriggerBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return eventTrigger_ == null ?
                              -            com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance() : eventTrigger_;
                              +        return eventTrigger_ == null
                              +            ? com.google.cloud.functions.v2alpha.EventTrigger.getDefaultInstance()
                              +            : eventTrigger_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2202,14 +2476,17 @@ public com.google.cloud.functions.v2alpha.EventTriggerOrBuilder getEventTriggerO
                                    * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2alpha.EventTrigger, com.google.cloud.functions.v2alpha.EventTrigger.Builder, com.google.cloud.functions.v2alpha.EventTriggerOrBuilder> 
                              +            com.google.cloud.functions.v2alpha.EventTrigger,
                              +            com.google.cloud.functions.v2alpha.EventTrigger.Builder,
                              +            com.google.cloud.functions.v2alpha.EventTriggerOrBuilder>
                                       getEventTriggerFieldBuilder() {
                                     if (eventTriggerBuilder_ == null) {
                              -        eventTriggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2alpha.EventTrigger, com.google.cloud.functions.v2alpha.EventTrigger.Builder, com.google.cloud.functions.v2alpha.EventTriggerOrBuilder>(
                              -                getEventTrigger(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        eventTriggerBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2alpha.EventTrigger,
                              +                com.google.cloud.functions.v2alpha.EventTrigger.Builder,
                              +                com.google.cloud.functions.v2alpha.EventTriggerOrBuilder>(
                              +                getEventTrigger(), getParentForChildren(), isClean());
                                       eventTrigger_ = null;
                                     }
                                     return eventTriggerBuilder_;
                              @@ -2217,51 +2494,75 @@ public com.google.cloud.functions.v2alpha.EventTriggerOrBuilder getEventTriggerO
                               
                                   private int state_ = 0;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Function.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Function.State result = com.google.cloud.functions.v2alpha.Function.State.valueOf(state_); - return result == null ? com.google.cloud.functions.v2alpha.Function.State.UNRECOGNIZED : result; + com.google.cloud.functions.v2alpha.Function.State result = + com.google.cloud.functions.v2alpha.Function.State.valueOf(state_); + return result == null + ? com.google.cloud.functions.v2alpha.Function.State.UNRECOGNIZED + : result; } /** + * + * *
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2269,21 +2570,26 @@ public Builder setState(com.google.cloud.functions.v2alpha.Function.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2291,39 +2597,58 @@ public Builder clearState() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
                                    * 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]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
                                    * 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]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
                                    * 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]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2339,14 +2664,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * 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]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2357,17 +2685,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
                                    * 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]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2379,11 +2711,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * 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]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2397,69 +2733,84 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
                                    * 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]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
                                    * 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]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
                                    * 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]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2471,28 +2822,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 8; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              @@ -2500,11 +2853,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              @@ -2512,16 +2866,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              @@ -2529,12 +2884,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2542,85 +2896,92 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 8; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 8; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 8; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.util.List stateMessages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStateMessagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - stateMessages_ = new java.util.ArrayList(stateMessages_); + stateMessages_ = + new java.util.ArrayList( + stateMessages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.StateMessage, com.google.cloud.functions.v2alpha.StateMessage.Builder, com.google.cloud.functions.v2alpha.StateMessageOrBuilder> stateMessagesBuilder_; + com.google.cloud.functions.v2alpha.StateMessage, + com.google.cloud.functions.v2alpha.StateMessage.Builder, + com.google.cloud.functions.v2alpha.StateMessageOrBuilder> + stateMessagesBuilder_; /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getStateMessagesList() { if (stateMessagesBuilder_ == null) { @@ -2630,11 +2991,15 @@ public java.util.List getStateM } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getStateMessagesCount() { if (stateMessagesBuilder_ == null) { @@ -2644,11 +3009,15 @@ public int getStateMessagesCount() { } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int index) { if (stateMessagesBuilder_ == null) { @@ -2658,11 +3027,15 @@ public com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int inde } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateMessages( int index, com.google.cloud.functions.v2alpha.StateMessage value) { @@ -2679,11 +3052,15 @@ public Builder setStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateMessages( int index, com.google.cloud.functions.v2alpha.StateMessage.Builder builderForValue) { @@ -2697,11 +3074,15 @@ public Builder setStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateMessages(com.google.cloud.functions.v2alpha.StateMessage value) { if (stateMessagesBuilder_ == null) { @@ -2717,11 +3098,15 @@ public Builder addStateMessages(com.google.cloud.functions.v2alpha.StateMessage return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateMessages( int index, com.google.cloud.functions.v2alpha.StateMessage value) { @@ -2738,11 +3123,15 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateMessages( com.google.cloud.functions.v2alpha.StateMessage.Builder builderForValue) { @@ -2756,11 +3145,15 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateMessages( int index, com.google.cloud.functions.v2alpha.StateMessage.Builder builderForValue) { @@ -2774,18 +3167,21 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllStateMessages( java.lang.Iterable values) { if (stateMessagesBuilder_ == null) { ensureStateMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stateMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateMessages_); onChanged(); } else { stateMessagesBuilder_.addAllMessages(values); @@ -2793,11 +3189,15 @@ public Builder addAllStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStateMessages() { if (stateMessagesBuilder_ == null) { @@ -2810,11 +3210,15 @@ public Builder clearStateMessages() { return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeStateMessages(int index) { if (stateMessagesBuilder_ == null) { @@ -2827,39 +3231,52 @@ public Builder removeStateMessages(int index) { return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2alpha.StateMessage.Builder getStateMessagesBuilder( int index) { return getStateMessagesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder( int index) { if (stateMessagesBuilder_ == null) { - return stateMessages_.get(index); } else { + return stateMessages_.get(index); + } else { return stateMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStateMessagesOrBuilderList() { + public java.util.List + getStateMessagesOrBuilderList() { if (stateMessagesBuilder_ != null) { return stateMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -2867,45 +3284,63 @@ public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessages } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesBuilder() { - return getStateMessagesFieldBuilder().addBuilder( - com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesBuilder( int index) { - return getStateMessagesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStateMessagesBuilderList() { + public java.util.List + getStateMessagesBuilderList() { return getStateMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.StateMessage, com.google.cloud.functions.v2alpha.StateMessage.Builder, com.google.cloud.functions.v2alpha.StateMessageOrBuilder> + com.google.cloud.functions.v2alpha.StateMessage, + com.google.cloud.functions.v2alpha.StateMessage.Builder, + com.google.cloud.functions.v2alpha.StateMessageOrBuilder> getStateMessagesFieldBuilder() { if (stateMessagesBuilder_ == null) { - stateMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.StateMessage, com.google.cloud.functions.v2alpha.StateMessage.Builder, com.google.cloud.functions.v2alpha.StateMessageOrBuilder>( + stateMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.StateMessage, + com.google.cloud.functions.v2alpha.StateMessage.Builder, + com.google.cloud.functions.v2alpha.StateMessageOrBuilder>( stateMessages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2914,9 +3349,9 @@ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesB } return stateMessagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2926,12 +3361,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.Function) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.Function) private static final com.google.cloud.functions.v2alpha.Function DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.Function(); } @@ -2940,16 +3375,16 @@ public static com.google.cloud.functions.v2alpha.Function getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Function parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Function(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Function parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Function(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2964,6 +3399,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.Function getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java similarity index 100% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java similarity index 73% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java index 9dc28810..ec936cac 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionOrBuilder.java @@ -1,94 +1,134 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface FunctionOrBuilder extends +public interface FunctionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.Function) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                                  * Describe whether the function is gen1 or gen2.
                                  * 
                              * * .google.cloud.functions.v2alpha.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.v2alpha.Environment environment = 10; + * * @return The environment. */ com.google.cloud.functions.v2alpha.Environment getEnvironment(); /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                                  * 
                              * * .google.cloud.functions.v2alpha.BuildConfig build_config = 3; + * * @return Whether the buildConfig field is set. */ boolean hasBuildConfig(); /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                                  * 
                              * * .google.cloud.functions.v2alpha.BuildConfig build_config = 3; + * * @return The buildConfig. */ com.google.cloud.functions.v2alpha.BuildConfig getBuildConfig(); /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                              @@ -99,26 +139,34 @@ public interface FunctionOrBuilder extends
                                 com.google.cloud.functions.v2alpha.BuildConfigOrBuilder getBuildConfigOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                                  * 
                              * * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4; + * * @return Whether the serviceConfig field is set. */ boolean hasServiceConfig(); /** + * + * *
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                                  * 
                              * * .google.cloud.functions.v2alpha.ServiceConfig service_config = 4; + * * @return The serviceConfig. */ com.google.cloud.functions.v2alpha.ServiceConfig getServiceConfig(); /** + * + * *
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                              @@ -129,26 +177,34 @@ public interface FunctionOrBuilder extends
                                 com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder getServiceConfigOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5; + * * @return Whether the eventTrigger field is set. */ boolean hasEventTrigger(); /** + * + * *
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v2alpha.EventTrigger event_trigger = 5; + * * @return The eventTrigger. */ com.google.cloud.functions.v2alpha.EventTrigger getEventTrigger(); /** + * + * *
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                              @@ -159,52 +215,75 @@ public interface FunctionOrBuilder extends
                                 com.google.cloud.functions.v2alpha.EventTriggerOrBuilder getEventTriggerOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Output only. State of the function.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
                                  * Output only. State of the function.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2alpha.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.functions.v2alpha.Function.State getState(); /** + * + * *
                                  * 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]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
                                  * 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]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
                                  * 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]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -213,30 +292,31 @@ public interface FunctionOrBuilder extends */ int getLabelsCount(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 8; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 8; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -245,62 +325,80 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 8; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getStateMessagesList(); + java.util.List getStateMessagesList(); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int index); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getStateMessagesCount(); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getStateMessagesOrBuilderList(); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder( - int index); + com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder(int index); } diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java new file mode 100644 index 00000000..0cb12249 --- /dev/null +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java @@ -0,0 +1,758 @@ +/* + * 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/v2alpha/functions.proto + +package com.google.cloud.functions.v2alpha; + +public final class FunctionsProto { + private FunctionsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_Function_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_Source_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2alpha_Stage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/functions/v2alpha/functio" + + "ns.proto\022\036google.cloud.functions.v2alpha" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032#goo" + + "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" + + "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" + + "nctions.v2alpha.BuildConfig\022E\n\016service_c" + + "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" + + "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\204\007\n\"com.google.cloud.functi" + + "ons.v2alphaB\016FunctionsProtoP\001ZGgoogle.go" + + "lang.org/genproto/googleapis/cloud/funct" + + "ions/v2alpha;functions\242\002\003GCF\352Ao\n*artifac" + + "tregistry.googleapis.com/Repository\022Apro" + + "jects/{project}/locations/{location}/rep" + + "ositories/{repository}\352AY\n\037cloudbuild.go" + + "ogleapis.com/Build\0226projects/{project}/l" + + "ocations/{location}/builds/{build}\352Ai\n$c" + + "loudbuild.googleapis.com/WorkerPool\022Apro" + + "jects/{project}/locations/{location}/wor" + + "kerPools/{worker_pool}\352AX\n\032run.googleapi" + + "s.com/Service\022:projects/{project}/locati" + + "ons/{location}/services/{service}\352Ad\n\"vp" + + "caccess.googleapis.com/Connector\022>projec" + + "ts/{project}/locations/{location}/connec" + + "tors/{connector}\352A]\n\037eventarc.googleapis" + + ".com/Trigger\022:projects/{project}/locatio" + + "ns/{location}/triggers/{trigger}\352A]\n\037eve" + + "ntarc.googleapis.com/Channel\022:projects/{" + + "project}/locations/{location}/channels/{" + + "channel}\352A@\n\033pubsub.googleapis.com/Topic" + + "\022!projects/{project}/topics/{topic}b\006pro" + + "to3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_functions_v2alpha_Function_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_functions_v2alpha_Function_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_Function_descriptor, + new java.lang.String[] { + "Name", + "Environment", + "Description", + "BuildConfig", + "ServiceConfig", + "EventTrigger", + "State", + "UpdateTime", + "Labels", + "StateMessages", + }); + internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor = + internal_static_google_cloud_functions_v2alpha_Function_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_Function_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor, + new java.lang.String[] { + "Severity", "Type", "Message", + }); + internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor, + new java.lang.String[] { + "Bucket", "Object", "Generation", + }); + internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor, + new java.lang.String[] { + "BranchName", + "TagName", + "CommitSha", + "ProjectId", + "RepoName", + "Dir", + "InvertRegex", + "Revision", + }); + internal_static_google_cloud_functions_v2alpha_Source_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_Source_descriptor, + new java.lang.String[] { + "StorageSource", "RepoSource", "Source", + }); + internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor, + new java.lang.String[] { + "ResolvedStorageSource", "ResolvedRepoSource", + }); + internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_functions_v2alpha_BuildConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor, + new java.lang.String[] { + "Build", + "Runtime", + "EntryPoint", + "Source", + "SourceProvenance", + "WorkerPool", + "EnvironmentVariables", + "DockerRepository", + }); + internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_BuildConfig_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor, + new java.lang.String[] { + "Service", + "TimeoutSeconds", + "AvailableMemory", + "EnvironmentVariables", + "MaxInstanceCount", + "MinInstanceCount", + "VpcConnector", + "VpcConnectorEgressSettings", + "IngressSettings", + "Uri", + "ServiceAccountEmail", + "AllTrafficOnLatestRevision", + "SecretEnvironmentVariables", + "SecretVolumes", + "Revision", + }); + internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor, + new java.lang.String[] { + "Key", "ProjectId", "Secret", "Version", + }); + internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor, + new java.lang.String[] { + "MountPath", "ProjectId", "Secret", "Versions", + }); + internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor = + internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor, + new java.lang.String[] { + "Version", "Path", + }); + internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_functions_v2alpha_EventTrigger_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor, + new java.lang.String[] { + "Trigger", + "TriggerRegion", + "EventType", + "EventFilters", + "PubsubTopic", + "ServiceAccountEmail", + "RetryPolicy", + "Channel", + }); + internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_functions_v2alpha_EventFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor, + new java.lang.String[] { + "Attribute", "Value", "Operator", + }); + internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor, + new java.lang.String[] { + "Functions", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor, + new java.lang.String[] { + "Parent", "Function", "FunctionId", + }); + internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor, + new java.lang.String[] { + "Function", "UpdateMask", + }); + internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor, + new java.lang.String[] { + "UploadUrl", "StorageSource", + }); + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor, + new java.lang.String[] { + "DownloadUrl", + }); + internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", + }); + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor, + new java.lang.String[] { + "Runtimes", + }); + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor = + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Stage", "Warnings", "Environment", + }); + internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusDetail", + "CancelRequested", + "ApiVersion", + "RequestResource", + "Stages", + }); + internal_static_google_cloud_functions_v2alpha_Stage_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2alpha_Stage_descriptor, + new java.lang.String[] { + "Name", "Message", "State", "Resource", "ResourceUri", "StateMessages", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java similarity index 64% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java index 02de40ea..fc13cd9c 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java @@ -1,40 +1,57 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Request of `GenerateDownloadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateDownloadUrlRequest} */ -public final class GenerateDownloadUrlRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateDownloadUrlRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) GenerateDownloadUrlRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlRequest.newBuilder() to construct. private GenerateDownloadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateDownloadUrlRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateDownloadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GenerateDownloadUrlRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GenerateDownloadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.class, + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
                                  * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest other = (com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) obj; + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest other = + (com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest 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.v2alpha.GenerateDownloadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request of `GenerateDownloadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateDownloadUrlRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.class, + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest + getDefaultInstanceForType() { return com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest buildPartial() { - com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest result = new com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest(this); + com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest result = + new com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +412,39 @@ public com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest)other); + return mergeFrom((com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +452,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest other) { - if (other == com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +478,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +492,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +517,24 @@ public java.lang.String getName() { } } /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +542,77 @@ public java.lang.String getName() { } } /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +622,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) - private static final com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest DEFAULT_INSTANCE; + private static final com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest(); } @@ -573,16 +637,16 @@ public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +661,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java new file mode 100644 index 00000000..0b401260 --- /dev/null +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/v2alpha/functions.proto + +package com.google.cloud.functions.v2alpha; + +public interface GenerateDownloadUrlRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * 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) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                              +   * 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) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java similarity index 66% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java index cdd7ec3d..c10d78f2 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java @@ -1,40 +1,57 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Response of `GenerateDownloadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateDownloadUrlResponse} */ -public final class GenerateDownloadUrlResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateDownloadUrlResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) GenerateDownloadUrlResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlResponse.newBuilder() to construct. private GenerateDownloadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateDownloadUrlResponse() { downloadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateDownloadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GenerateDownloadUrlResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - downloadUrl_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + downloadUrl_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private GenerateDownloadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.class, + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.Builder.class); } public static final int DOWNLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object downloadUrl_; /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The downloadUrl. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getDownloadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; } } /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The bytes for downloadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getDownloadUrlBytes() { + public com.google.protobuf.ByteString getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getDownloadUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(downloadUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, downloadUrl_); } @@ -178,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse other = (com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) obj; + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse other = + (com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) obj; - if (!getDownloadUrl() - .equals(other.getDownloadUrl())) return false; + if (!getDownloadUrl().equals(other.getDownloadUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +229,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse 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.v2alpha.GenerateDownloadUrlResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Response of `GenerateDownloadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateDownloadUrlResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.class, + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.newBuilder() @@ -324,16 +357,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +375,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse + getDefaultInstanceForType() { return com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.getDefaultInstance(); } @@ -364,7 +397,8 @@ public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse buildPartial() { - com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse result = new com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse(this); + com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse result = + new com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse(this); result.downloadUrl_ = downloadUrl_; onBuilt(); return result; @@ -374,38 +408,39 @@ public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse)other); + return mergeFrom((com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) other); } else { super.mergeFrom(other); return this; @@ -413,7 +448,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse other) { - if (other == com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse.getDefaultInstance()) + return this; if (!other.getDownloadUrl().isEmpty()) { downloadUrl_ = other.downloadUrl_; onChanged(); @@ -437,7 +474,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +488,21 @@ public Builder mergeFrom( private java.lang.Object downloadUrl_ = ""; /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @return The downloadUrl. */ public java.lang.String getDownloadUrl() { java.lang.Object ref = downloadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; @@ -470,21 +511,22 @@ public java.lang.String getDownloadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @return The bytes for downloadUrl. */ - public com.google.protobuf.ByteString - getDownloadUrlBytes() { + public com.google.protobuf.ByteString getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -492,64 +534,71 @@ public java.lang.String getDownloadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @param value The downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrl( - java.lang.String value) { + public Builder setDownloadUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + downloadUrl_ = value; onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @return This builder for chaining. */ public Builder clearDownloadUrl() { - + downloadUrl_ = getDefaultInstance().getDownloadUrl(); onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @param value The bytes for downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setDownloadUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + downloadUrl_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +608,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) - private static final com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse DEFAULT_INSTANCE; + private static final com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse(); } - public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse getDefaultInstance() { + public static com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +645,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java similarity index 52% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java index d42b5744..5dd3cfa2 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponseOrBuilder.java @@ -1,31 +1,52 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface GenerateDownloadUrlResponseOrBuilder extends +public interface GenerateDownloadUrlResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The downloadUrl. */ java.lang.String getDownloadUrl(); /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The bytes for downloadUrl. */ - com.google.protobuf.ByteString - getDownloadUrlBytes(); + com.google.protobuf.ByteString getDownloadUrlBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java similarity index 65% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java index 474292c2..b37f9efe 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java @@ -1,40 +1,57 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Request of `GenerateSourceUploadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateUploadUrlRequest} */ -public final class GenerateUploadUrlRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateUploadUrlRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.GenerateUploadUrlRequest) GenerateUploadUrlRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateUploadUrlRequest.newBuilder() to construct. private GenerateUploadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateUploadUrlRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateUploadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateUploadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GenerateUploadUrlRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GenerateUploadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.class, com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.class, + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest other = (com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) obj; + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest other = + (com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.GenerateUploadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest 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.v2alpha.GenerateUploadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request of `GenerateSourceUploadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateUploadUrlRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.GenerateUploadUrlRequest) com.google.cloud.functions.v2alpha.GenerateUploadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.class, com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.class, + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest buildPartial() { - com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest result = new com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest(this); + com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest result = + new com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest)other); + return mergeFrom((com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest other) { - if (other == com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -470,21 +514,24 @@ 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/*`.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -492,64 +539,77 @@ 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/*`.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.GenerateUploadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.GenerateUploadUrlRequest) private static final com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateUploadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateUploadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateUploadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateUploadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java new file mode 100644 index 00000000..987f404b --- /dev/null +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/v2alpha/functions.proto + +package com.google.cloud.functions.v2alpha; + +public interface GenerateUploadUrlRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GenerateUploadUrlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * 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) = { ... } + * + * + * @return The parent. + */ + 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/*`.
                              +   * 
                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java similarity index 73% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java index 83146336..0f0a5f0a 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java @@ -1,40 +1,57 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Response of `GenerateSourceUploadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateUploadUrlResponse} */ -public final class GenerateUploadUrlResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateUploadUrlResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.GenerateUploadUrlResponse) GenerateUploadUrlResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateUploadUrlResponse.newBuilder() to construct. private GenerateUploadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateUploadUrlResponse() { uploadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateUploadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateUploadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private GenerateUploadUrlResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uploadUrl_ = s; - break; - } - case 18: { - com.google.cloud.functions.v2alpha.StorageSource.Builder subBuilder = null; - if (storageSource_ != null) { - subBuilder = storageSource_.toBuilder(); + uploadUrl_ = s; + break; } - storageSource_ = input.readMessage(com.google.cloud.functions.v2alpha.StorageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(storageSource_); - storageSource_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.functions.v2alpha.StorageSource.Builder subBuilder = null; + if (storageSource_ != null) { + subBuilder = storageSource_.toBuilder(); + } + storageSource_ = + input.readMessage( + com.google.cloud.functions.v2alpha.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storageSource_); + storageSource_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,29 +107,33 @@ private GenerateUploadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.class, com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.class, + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.Builder.class); } public static final int UPLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object uploadUrl_; /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -116,6 +141,7 @@ private GenerateUploadUrlResponse(
                                  * 
                              * * string upload_url = 1; + * * @return The uploadUrl. */ @java.lang.Override @@ -124,14 +150,15 @@ public java.lang.String getUploadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; } } /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -139,16 +166,15 @@ public java.lang.String getUploadUrl() {
                                  * 
                              * * string upload_url = 1; + * * @return The bytes for uploadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getUploadUrlBytes() { + public com.google.protobuf.ByteString getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -159,6 +185,8 @@ public java.lang.String getUploadUrl() { public static final int STORAGE_SOURCE_FIELD_NUMBER = 2; private com.google.cloud.functions.v2alpha.StorageSource storageSource_; /** + * + * *
                                  * The location of the source code in the upload bucket.
                                  * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -169,6 +197,7 @@ public java.lang.String getUploadUrl() {
                                  * 
                              * * .google.cloud.functions.v2alpha.StorageSource storage_source = 2; + * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -176,6 +205,8 @@ public boolean hasStorageSource() { return storageSource_ != null; } /** + * + * *
                                  * The location of the source code in the upload bucket.
                                  * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -186,13 +217,18 @@ public boolean hasStorageSource() {
                                  * 
                              * * .google.cloud.functions.v2alpha.StorageSource storage_source = 2; + * * @return The storageSource. */ @java.lang.Override public com.google.cloud.functions.v2alpha.StorageSource getStorageSource() { - return storageSource_ == null ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() : storageSource_; + return storageSource_ == null + ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() + : storageSource_; } /** + * + * *
                                  * The location of the source code in the upload bucket.
                                  * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -210,6 +246,7 @@ public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourc
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -221,8 +258,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadUrl_)) {
                                     com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadUrl_);
                                   }
                              @@ -242,8 +278,7 @@ public int getSerializedSize() {
                                     size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadUrl_);
                                   }
                                   if (storageSource_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(2, getStorageSource());
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStorageSource());
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -253,19 +288,18 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse other = (com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse) obj;
                              +    com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse other =
                              +        (com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse) obj;
                               
                              -    if (!getUploadUrl()
                              -        .equals(other.getUploadUrl())) return false;
                              +    if (!getUploadUrl().equals(other.getUploadUrl())) return false;
                                   if (hasStorageSource() != other.hasStorageSource()) return false;
                                   if (hasStorageSource()) {
                              -      if (!getStorageSource()
                              -          .equals(other.getStorageSource())) return false;
                              +      if (!getStorageSource().equals(other.getStorageSource())) return false;
                                   }
                                   if (!unknownFields.equals(other.unknownFields)) return false;
                                   return true;
                              @@ -290,117 +324,127 @@ public int hashCode() {
                                 }
                               
                                 public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
                              -      java.nio.ByteBuffer data)
                              -      throws com.google.protobuf.InvalidProtocolBufferException {
                              +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.v2alpha.GenerateUploadUrlResponse parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse 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.v2alpha.GenerateUploadUrlResponse parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              -  public static Builder newBuilder(com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse prototype) {
                              +
                              +  public static Builder newBuilder(
                              +      com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Response of `GenerateSourceUploadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.GenerateUploadUrlResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.GenerateUploadUrlResponse) com.google.cloud.functions.v2alpha.GenerateUploadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.class, com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.class, + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.newBuilder() @@ -408,16 +452,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -433,13 +476,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse + getDefaultInstanceForType() { return com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.getDefaultInstance(); } @@ -454,7 +498,8 @@ public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse buildPartial() { - com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse result = new com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse(this); + com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse result = + new com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse(this); result.uploadUrl_ = uploadUrl_; if (storageSourceBuilder_ == null) { result.storageSource_ = storageSource_; @@ -469,38 +514,39 @@ public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse)other); + return mergeFrom((com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse) other); } else { super.mergeFrom(other); return this; @@ -508,7 +554,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse other) { - if (other == com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse.getDefaultInstance()) + return this; if (!other.getUploadUrl().isEmpty()) { uploadUrl_ = other.uploadUrl_; onChanged(); @@ -535,7 +583,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -547,6 +596,8 @@ public Builder mergeFrom( private java.lang.Object uploadUrl_ = ""; /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -554,13 +605,13 @@ public Builder mergeFrom(
                                    * 
                              * * string upload_url = 1; + * * @return The uploadUrl. */ public java.lang.String getUploadUrl() { java.lang.Object ref = uploadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; @@ -569,6 +620,8 @@ public java.lang.String getUploadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -576,15 +629,14 @@ public java.lang.String getUploadUrl() {
                                    * 
                              * * string upload_url = 1; + * * @return The bytes for uploadUrl. */ - public com.google.protobuf.ByteString - getUploadUrlBytes() { + public com.google.protobuf.ByteString getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -592,6 +644,8 @@ public java.lang.String getUploadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -599,20 +653,22 @@ public java.lang.String getUploadUrl() {
                                    * 
                              * * string upload_url = 1; + * * @param value The uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrl( - java.lang.String value) { + public Builder setUploadUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uploadUrl_ = value; onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -620,15 +676,18 @@ public Builder setUploadUrl(
                                    * 
                              * * string upload_url = 1; + * * @return This builder for chaining. */ public Builder clearUploadUrl() { - + uploadUrl_ = getDefaultInstance().getUploadUrl(); onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -636,16 +695,16 @@ public Builder clearUploadUrl() {
                                    * 
                              * * string upload_url = 1; + * * @param value The bytes for uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uploadUrl_ = value; onChanged(); return this; @@ -653,8 +712,13 @@ public Builder setUploadUrlBytes( private com.google.cloud.functions.v2alpha.StorageSource storageSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> storageSourceBuilder_; + com.google.cloud.functions.v2alpha.StorageSource, + com.google.cloud.functions.v2alpha.StorageSource.Builder, + com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> + storageSourceBuilder_; /** + * + * *
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -665,12 +729,15 @@ public Builder setUploadUrlBytes(
                                    * 
                              * * .google.cloud.functions.v2alpha.StorageSource storage_source = 2; + * * @return Whether the storageSource field is set. */ public boolean hasStorageSource() { return storageSourceBuilder_ != null || storageSource_ != null; } /** + * + * *
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -681,16 +748,21 @@ public boolean hasStorageSource() {
                                    * 
                              * * .google.cloud.functions.v2alpha.StorageSource storage_source = 2; + * * @return The storageSource. */ public com.google.cloud.functions.v2alpha.StorageSource getStorageSource() { if (storageSourceBuilder_ == null) { - return storageSource_ == null ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() : storageSource_; + return storageSource_ == null + ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() + : storageSource_; } else { return storageSourceBuilder_.getMessage(); } } /** + * + * *
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -716,6 +788,8 @@ public Builder setStorageSource(com.google.cloud.functions.v2alpha.StorageSource
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -739,6 +813,8 @@ public Builder setStorageSource(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -754,7 +830,9 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2alpha.StorageSour
                                     if (storageSourceBuilder_ == null) {
                                       if (storageSource_ != null) {
                                         storageSource_ =
                              -            com.google.cloud.functions.v2alpha.StorageSource.newBuilder(storageSource_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2alpha.StorageSource.newBuilder(storageSource_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         storageSource_ = value;
                                       }
                              @@ -766,6 +844,8 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2alpha.StorageSour
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -789,6 +869,8 @@ public Builder clearStorageSource() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -801,11 +883,13 @@ public Builder clearStorageSource() {
                                    * .google.cloud.functions.v2alpha.StorageSource storage_source = 2;
                                    */
                                   public com.google.cloud.functions.v2alpha.StorageSource.Builder getStorageSourceBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getStorageSourceFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -821,11 +905,14 @@ public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourc
                                     if (storageSourceBuilder_ != null) {
                                       return storageSourceBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return storageSource_ == null ?
                              -            com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() : storageSource_;
                              +        return storageSource_ == null
                              +            ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance()
                              +            : storageSource_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -838,21 +925,24 @@ public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourc
                                    * .google.cloud.functions.v2alpha.StorageSource storage_source = 2;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> 
                              +            com.google.cloud.functions.v2alpha.StorageSource,
                              +            com.google.cloud.functions.v2alpha.StorageSource.Builder,
                              +            com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>
                                       getStorageSourceFieldBuilder() {
                                     if (storageSourceBuilder_ == null) {
                              -        storageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>(
                              -                getStorageSource(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        storageSourceBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2alpha.StorageSource,
                              +                com.google.cloud.functions.v2alpha.StorageSource.Builder,
                              +                com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>(
                              +                getStorageSource(), getParentForChildren(), isClean());
                                       storageSource_ = null;
                                     }
                                     return storageSourceBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -862,12 +952,13 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.GenerateUploadUrlResponse)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.GenerateUploadUrlResponse)
                              -  private static final com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse DEFAULT_INSTANCE;
                              +  private static final com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse
                              +      DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse();
                                 }
                              @@ -876,16 +967,16 @@ public static com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse getDe
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public GenerateUploadUrlResponse parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new GenerateUploadUrlResponse(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public GenerateUploadUrlResponse parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new GenerateUploadUrlResponse(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -900,6 +991,4 @@ public com.google.protobuf.Parser getParserForType()
                                 public com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java
                              similarity index 77%
                              rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java
                              rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java
                              index 5d3c1cb3..4c8c39f1 100644
                              --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java
                              @@ -1,13 +1,31 @@
                              +/*
                              + * 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/v2alpha/functions.proto
                               
                               package com.google.cloud.functions.v2alpha;
                               
                              -public interface GenerateUploadUrlResponseOrBuilder extends
                              +public interface GenerateUploadUrlResponseOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GenerateUploadUrlResponse)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -15,10 +33,13 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * string upload_url = 1; + * * @return The uploadUrl. */ java.lang.String getUploadUrl(); /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -26,12 +47,14 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * string upload_url = 1; + * * @return The bytes for uploadUrl. */ - com.google.protobuf.ByteString - getUploadUrlBytes(); + 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
                              @@ -42,10 +65,13 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * .google.cloud.functions.v2alpha.StorageSource storage_source = 2; + * * @return Whether the storageSource field is set. */ 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
                              @@ -56,10 +82,13 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * .google.cloud.functions.v2alpha.StorageSource storage_source = 2; + * * @return The storageSource. */ 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
                              diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java
                              similarity index 64%
                              rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java
                              rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java
                              index 632208b2..8af4a3e7 100644
                              --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java
                              +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java
                              @@ -1,40 +1,57 @@
                              +/*
                              + * 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/v2alpha/functions.proto
                               
                               package com.google.cloud.functions.v2alpha;
                               
                               /**
                              + *
                              + *
                                * 
                                * Request for the `GetFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.GetFunctionRequest} */ -public final class GetFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.GetFunctionRequest) GetFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetFunctionRequest.newBuilder() to construct. private GetFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetFunctionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GetFunctionRequest.class, com.google.cloud.functions.v2alpha.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.GetFunctionRequest.class, + com.google.cloud.functions.v2alpha.GetFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
                                  * Required. The name of the function which details should be obtained.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -109,29 +134,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * Required. The name of the function which details should be obtained.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.GetFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.GetFunctionRequest other = (com.google.cloud.functions.v2alpha.GetFunctionRequest) obj; + com.google.cloud.functions.v2alpha.GetFunctionRequest other = + (com.google.cloud.functions.v2alpha.GetFunctionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.GetFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.GetFunctionRequest 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.v2alpha.GetFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.GetFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.GetFunctionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2alpha.GetFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `GetFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.GetFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.GetFunctionRequest) com.google.cloud.functions.v2alpha.GetFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.GetFunctionRequest.class, com.google.cloud.functions.v2alpha.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.GetFunctionRequest.class, + com.google.cloud.functions.v2alpha.GetFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.GetFunctionRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.functions.v2alpha.GetFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.GetFunctionRequest buildPartial() { - com.google.cloud.functions.v2alpha.GetFunctionRequest result = new com.google.cloud.functions.v2alpha.GetFunctionRequest(this); + com.google.cloud.functions.v2alpha.GetFunctionRequest result = + new com.google.cloud.functions.v2alpha.GetFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.functions.v2alpha.GetFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.GetFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v2alpha.GetFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.GetFunctionRequest other) { - if (other == com.google.cloud.functions.v2alpha.GetFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2alpha.GetFunctionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.GetFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.GetFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.GetFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.GetFunctionRequest) private static final com.google.cloud.functions.v2alpha.GetFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.GetFunctionRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.functions.v2alpha.GetFunctionRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.GetFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java new file mode 100644 index 00000000..e12f66d5 --- /dev/null +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/v2alpha/functions.proto + +package com.google.cloud.functions.v2alpha; + +public interface GetFunctionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.GetFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * Required. The name of the function which details should be obtained.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                              +   * Required. The name of the function which details should be obtained.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java similarity index 72% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java index 0fda216b..2bb71b1c 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java @@ -1,24 +1,42 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Request for the `ListFunctions` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.ListFunctionsRequest} */ -public final class ListFunctionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFunctionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.ListFunctionsRequest) ListFunctionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFunctionsRequest.newBuilder() to construct. private ListFunctionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFunctionsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListFunctionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFunctionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListFunctionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,29 +120,33 @@ private ListFunctionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListFunctionsRequest.class, com.google.cloud.functions.v2alpha.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v2alpha.ListFunctionsRequest.class, + com.google.cloud.functions.v2alpha.ListFunctionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * Required. The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -131,7 +156,10 @@ private ListFunctionsRequest(
                                  * reachable locations along with the names of any unreachable locations.
                                  * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -140,14 +168,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * Required. The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -157,17 +186,18 @@ public java.lang.String getParent() {
                                  * reachable locations along with the names of any unreachable locations.
                                  * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -178,11 +208,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
                                  * Maximum number of functions to return per call.
                                  * 
                              * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -193,6 +226,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -201,6 +236,7 @@ public int getPageSize() {
                                  * 
                              * * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -209,14 +245,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -225,16 +262,15 @@ public java.lang.String getPageToken() {
                                  * 
                              * * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -245,12 +281,15 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
                                  * The filter for Functions that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -259,30 +298,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
                                  * The filter for Functions that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -293,6 +332,8 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
                                  * The sorting order of the resources returned. Value should be a comma
                                  * separated list of fields. The default sorting oder is ascending.
                              @@ -300,6 +341,7 @@ public java.lang.String getFilter() {
                                  * 
                              * * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -308,14 +350,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
                                  * The sorting order of the resources returned. Value should be a comma
                                  * separated list of fields. The default sorting oder is ascending.
                              @@ -323,16 +366,15 @@ public java.lang.String getOrderBy() {
                                  * 
                              * * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -341,6 +383,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -352,8 +395,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -382,8 +424,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -402,23 +443,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.ListFunctionsRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.ListFunctionsRequest other = (com.google.cloud.functions.v2alpha.ListFunctionsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.functions.v2alpha.ListFunctionsRequest other = + (com.google.cloud.functions.v2alpha.ListFunctionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -446,117 +483,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.ListFunctionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListFunctionsRequest 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.v2alpha.ListFunctionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListFunctionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.ListFunctionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2alpha.ListFunctionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `ListFunctions` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.ListFunctionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.ListFunctionsRequest) com.google.cloud.functions.v2alpha.ListFunctionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListFunctionsRequest.class, com.google.cloud.functions.v2alpha.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v2alpha.ListFunctionsRequest.class, + com.google.cloud.functions.v2alpha.ListFunctionsRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.ListFunctionsRequest.newBuilder() @@ -564,16 +611,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -591,9 +637,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; } @java.lang.Override @@ -612,7 +658,8 @@ public com.google.cloud.functions.v2alpha.ListFunctionsRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.ListFunctionsRequest buildPartial() { - com.google.cloud.functions.v2alpha.ListFunctionsRequest result = new com.google.cloud.functions.v2alpha.ListFunctionsRequest(this); + com.google.cloud.functions.v2alpha.ListFunctionsRequest result = + new com.google.cloud.functions.v2alpha.ListFunctionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -626,38 +673,39 @@ public com.google.cloud.functions.v2alpha.ListFunctionsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.ListFunctionsRequest)other); + return mergeFrom((com.google.cloud.functions.v2alpha.ListFunctionsRequest) other); } else { super.mergeFrom(other); return this; @@ -665,7 +713,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListFunctionsRequest other) { - if (other == com.google.cloud.functions.v2alpha.ListFunctionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2alpha.ListFunctionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -704,7 +753,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.ListFunctionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.ListFunctionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -716,6 +766,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -725,14 +777,16 @@ public Builder mergeFrom(
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -741,6 +795,8 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -750,16 +806,17 @@ public java.lang.String getParent() {
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -767,6 +824,8 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -776,21 +835,25 @@ public java.lang.String getParent() {
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -800,16 +863,21 @@ public Builder setParent(
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -819,29 +887,34 @@ public Builder clearParent() {
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
                                    * Maximum number of functions to return per call.
                                    * 
                              * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -849,30 +922,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
                                    * Maximum number of functions to return per call.
                                    * 
                              * * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
                                    * Maximum number of functions to return per call.
                                    * 
                              * * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -880,6 +959,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -888,13 +969,13 @@ public Builder clearPageSize() {
                                    * 
                              * * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -903,6 +984,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -911,15 +994,14 @@ public java.lang.String getPageToken() {
                                    * 
                              * * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -927,6 +1009,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -935,20 +1019,22 @@ public java.lang.String getPageToken() {
                                    * 
                              * * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -957,15 +1043,18 @@ public Builder setPageToken(
                                    * 
                              * * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -974,16 +1063,16 @@ public Builder clearPageToken() {
                                    * 
                              * * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -991,19 +1080,21 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1012,21 +1103,22 @@ public java.lang.String getFilter() { } } /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1034,57 +1126,64 @@ public java.lang.String getFilter() { } } /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1092,6 +1191,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1099,13 +1200,13 @@ public Builder setFilterBytes(
                                    * 
                              * * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1114,6 +1215,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1121,15 +1224,14 @@ public java.lang.String getOrderBy() {
                                    * 
                              * * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1137,6 +1239,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1144,20 +1248,22 @@ public java.lang.String getOrderBy() {
                                    * 
                              * * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1165,15 +1271,18 @@ public Builder setOrderBy(
                                    * 
                              * * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1181,23 +1290,23 @@ public Builder clearOrderBy() {
                                    * 
                              * * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1207,12 +1316,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.ListFunctionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.ListFunctionsRequest) private static final com.google.cloud.functions.v2alpha.ListFunctionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.ListFunctionsRequest(); } @@ -1221,16 +1330,16 @@ public static com.google.cloud.functions.v2alpha.ListFunctionsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1245,6 +1354,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.ListFunctionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java index 7a17c3ea..5d5614eb 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface ListFunctionsRequestOrBuilder extends +public interface ListFunctionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.ListFunctionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Required. The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -17,11 +35,16 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * reachable locations along with the names of any unreachable locations.
                                  * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
                                  * Required. The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -31,23 +54,30 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * reachable locations along with the names of any unreachable locations.
                                  * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
                                  * Maximum number of functions to return per call.
                                  * 
                              * * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -56,10 +86,13 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -68,34 +101,41 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
                                  * The filter for Functions that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
                                  * The filter for Functions that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
                                  * The sorting order of the resources returned. Value should be a comma
                                  * separated list of fields. The default sorting oder is ascending.
                              @@ -103,10 +143,13 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
                                  * The sorting order of the resources returned. Value should be a comma
                                  * separated list of fields. The default sorting oder is ascending.
                              @@ -114,8 +157,8 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java similarity index 74% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java index 5284b3c1..a7088f2d 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java @@ -1,24 +1,42 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Response for the `ListFunctions` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.ListFunctionsResponse} */ -public final class ListFunctionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFunctionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.ListFunctionsResponse) ListFunctionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFunctionsResponse.newBuilder() to construct. private ListFunctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFunctionsResponse() { functions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListFunctionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFunctionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListFunctionsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - functions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + functions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + functions_.add( + input.readMessage( + com.google.cloud.functions.v2alpha.Function.parser(), extensionRegistry)); + break; } - functions_.add( - input.readMessage(com.google.cloud.functions.v2alpha.Function.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListFunctionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { functions_ = java.util.Collections.unmodifiableList(functions_); @@ -107,22 +127,27 @@ private ListFunctionsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListFunctionsResponse.class, com.google.cloud.functions.v2alpha.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v2alpha.ListFunctionsResponse.class, + com.google.cloud.functions.v2alpha.ListFunctionsResponse.Builder.class); } public static final int FUNCTIONS_FIELD_NUMBER = 1; private java.util.List functions_; /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -134,6 +159,8 @@ public java.util.List getFunctionsL return functions_; } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -141,11 +168,13 @@ public java.util.List getFunctionsL * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFunctionsOrBuilderList() { return functions_; } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -157,6 +186,8 @@ public int getFunctionsCount() { return functions_.size(); } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -168,6 +199,8 @@ public com.google.cloud.functions.v2alpha.Function getFunctions(int index) { return functions_.get(index); } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -175,20 +208,22 @@ public com.google.cloud.functions.v2alpha.Function getFunctions(int index) { * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ @java.lang.Override - public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilder( - int index) { + public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilder(int index) { return functions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
                                  * A token, which can be sent as `page_token` to retrieve the next page.
                                  * If this field is omitted, there are no subsequent pages.
                                  * 
                              * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -197,30 +232,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
                                  * A token, which can be sent as `page_token` to retrieve the next page.
                                  * If this field is omitted, there are no subsequent pages.
                                  * 
                              * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -231,37 +266,45 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -269,21 +312,24 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -295,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < functions_.size(); i++) { output.writeMessage(1, functions_.get(i)); } @@ -316,8 +361,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < functions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, functions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, functions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -338,19 +382,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.ListFunctionsResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.ListFunctionsResponse other = (com.google.cloud.functions.v2alpha.ListFunctionsResponse) obj; + com.google.cloud.functions.v2alpha.ListFunctionsResponse other = + (com.google.cloud.functions.v2alpha.ListFunctionsResponse) obj; - if (!getFunctionsList() - .equals(other.getFunctionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getFunctionsList().equals(other.getFunctionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -378,117 +420,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.ListFunctionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListFunctionsResponse 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.v2alpha.ListFunctionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListFunctionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.ListFunctionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2alpha.ListFunctionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Response for the `ListFunctions` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.ListFunctionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.ListFunctionsResponse) com.google.cloud.functions.v2alpha.ListFunctionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListFunctionsResponse.class, com.google.cloud.functions.v2alpha.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v2alpha.ListFunctionsResponse.class, + com.google.cloud.functions.v2alpha.ListFunctionsResponse.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.ListFunctionsResponse.newBuilder() @@ -496,17 +548,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFunctionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -524,9 +576,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; } @java.lang.Override @@ -545,7 +597,8 @@ public com.google.cloud.functions.v2alpha.ListFunctionsResponse build() { @java.lang.Override public com.google.cloud.functions.v2alpha.ListFunctionsResponse buildPartial() { - com.google.cloud.functions.v2alpha.ListFunctionsResponse result = new com.google.cloud.functions.v2alpha.ListFunctionsResponse(this); + com.google.cloud.functions.v2alpha.ListFunctionsResponse result = + new com.google.cloud.functions.v2alpha.ListFunctionsResponse(this); int from_bitField0_ = bitField0_; if (functionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -570,38 +623,39 @@ public com.google.cloud.functions.v2alpha.ListFunctionsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListFunctionsResponse) { - return mergeFrom((com.google.cloud.functions.v2alpha.ListFunctionsResponse)other); + return mergeFrom((com.google.cloud.functions.v2alpha.ListFunctionsResponse) other); } else { super.mergeFrom(other); return this; @@ -609,7 +663,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListFunctionsResponse other) { - if (other == com.google.cloud.functions.v2alpha.ListFunctionsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2alpha.ListFunctionsResponse.getDefaultInstance()) + return this; if (functionsBuilder_ == null) { if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { @@ -628,9 +683,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListFunctionsRespons functionsBuilder_ = null; functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000001); - functionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFunctionsFieldBuilder() : null; + functionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFunctionsFieldBuilder() + : null; } else { functionsBuilder_.addAllMessages(other.functions_); } @@ -669,7 +725,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.ListFunctionsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.ListFunctionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -678,21 +735,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List functions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFunctionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - functions_ = new java.util.ArrayList(functions_); + functions_ = + new java.util.ArrayList(functions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder> functionsBuilder_; + com.google.cloud.functions.v2alpha.Function, + com.google.cloud.functions.v2alpha.Function.Builder, + com.google.cloud.functions.v2alpha.FunctionOrBuilder> + functionsBuilder_; /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -707,6 +772,8 @@ public java.util.List getFunctionsL } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -721,6 +788,8 @@ public int getFunctionsCount() { } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -735,14 +804,15 @@ public com.google.cloud.functions.v2alpha.Function getFunctions(int index) { } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public Builder setFunctions( - int index, com.google.cloud.functions.v2alpha.Function value) { + public Builder setFunctions(int index, com.google.cloud.functions.v2alpha.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -756,6 +826,8 @@ public Builder setFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -774,6 +846,8 @@ public Builder setFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -794,14 +868,15 @@ public Builder addFunctions(com.google.cloud.functions.v2alpha.Function value) { return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public Builder addFunctions( - int index, com.google.cloud.functions.v2alpha.Function value) { + public Builder addFunctions(int index, com.google.cloud.functions.v2alpha.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -815,6 +890,8 @@ public Builder addFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -833,6 +910,8 @@ public Builder addFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -851,6 +930,8 @@ public Builder addFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -861,8 +942,7 @@ public Builder addAllFunctions( java.lang.Iterable values) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, functions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, functions_); onChanged(); } else { functionsBuilder_.addAllMessages(values); @@ -870,6 +950,8 @@ public Builder addAllFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -887,6 +969,8 @@ public Builder clearFunctions() { return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -904,39 +988,44 @@ public Builder removeFunctions(int index) { return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public com.google.cloud.functions.v2alpha.Function.Builder getFunctionsBuilder( - int index) { + public com.google.cloud.functions.v2alpha.Function.Builder getFunctionsBuilder(int index) { return getFunctionsFieldBuilder().getBuilder(index); } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilder( - int index) { + public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilder(int index) { if (functionsBuilder_ == null) { - return functions_.get(index); } else { + return functions_.get(index); + } else { return functionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public java.util.List - getFunctionsOrBuilderList() { + public java.util.List + getFunctionsOrBuilderList() { if (functionsBuilder_ != null) { return functionsBuilder_.getMessageOrBuilderList(); } else { @@ -944,6 +1033,8 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilde } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -951,42 +1042,48 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilde * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ public com.google.cloud.functions.v2alpha.Function.Builder addFunctionsBuilder() { - return getFunctionsFieldBuilder().addBuilder( - com.google.cloud.functions.v2alpha.Function.getDefaultInstance()); + return getFunctionsFieldBuilder() + .addBuilder(com.google.cloud.functions.v2alpha.Function.getDefaultInstance()); } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public com.google.cloud.functions.v2alpha.Function.Builder addFunctionsBuilder( - int index) { - return getFunctionsFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2alpha.Function.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.Function.Builder addFunctionsBuilder(int index) { + return getFunctionsFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2alpha.Function.getDefaultInstance()); } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - public java.util.List - getFunctionsBuilderList() { + public java.util.List + getFunctionsBuilderList() { return getFunctionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder> + com.google.cloud.functions.v2alpha.Function, + com.google.cloud.functions.v2alpha.Function.Builder, + com.google.cloud.functions.v2alpha.FunctionOrBuilder> getFunctionsFieldBuilder() { if (functionsBuilder_ == null) { - functionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder>( - functions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + functionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.Function, + com.google.cloud.functions.v2alpha.Function.Builder, + com.google.cloud.functions.v2alpha.FunctionOrBuilder>( + functions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); functions_ = null; } return functionsBuilder_; @@ -994,19 +1091,21 @@ public com.google.cloud.functions.v2alpha.Function.Builder addFunctionsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,21 +1114,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1037,101 +1137,118 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1139,85 +1256,95 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1227,29 +1354,31 @@ public Builder clearUnreachable() { return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1259,12 +1388,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.ListFunctionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.ListFunctionsResponse) private static final com.google.cloud.functions.v2alpha.ListFunctionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.ListFunctionsResponse(); } @@ -1273,16 +1402,16 @@ public static com.google.cloud.functions.v2alpha.ListFunctionsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1297,6 +1426,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.ListFunctionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java index c97b1176..657b00b2 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface ListFunctionsResponseOrBuilder extends +public interface ListFunctionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.ListFunctionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The functions that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - java.util.List - getFunctionsList(); + java.util.List getFunctionsList(); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -25,6 +44,8 @@ public interface ListFunctionsResponseOrBuilder extends */ com.google.cloud.functions.v2alpha.Function getFunctions(int index); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -33,88 +54,106 @@ public interface ListFunctionsResponseOrBuilder extends */ int getFunctionsCount(); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - java.util.List + java.util.List getFunctionsOrBuilderList(); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.Function functions = 1; */ - com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilder( - int index); + com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionsOrBuilder(int index); /** + * + * *
                                  * A token, which can be sent as `page_token` to retrieve the next page.
                                  * If this field is omitted, there are no subsequent pages.
                                  * 
                              * * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
                                  * A token, which can be sent as `page_token` to retrieve the next page.
                                  * If this field is omitted, there are no subsequent pages.
                                  * 
                              * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java similarity index 67% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java index d177e51c..1af94918 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java @@ -1,24 +1,42 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Request for the `ListRuntimes` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.ListRuntimesRequest} */ -public final class ListRuntimesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuntimesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.ListRuntimesRequest) ListRuntimesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuntimesRequest.newBuilder() to construct. private ListRuntimesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuntimesRequest() { parent_ = ""; filter_ = ""; @@ -26,16 +44,15 @@ private ListRuntimesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListRuntimesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private ListRuntimesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,35 +99,42 @@ private ListRuntimesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListRuntimesRequest.class, com.google.cloud.functions.v2alpha.ListRuntimesRequest.Builder.class); + com.google.cloud.functions.v2alpha.ListRuntimesRequest.class, + com.google.cloud.functions.v2alpha.ListRuntimesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -117,30 +143,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -151,12 +179,15 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
                                  * The filter for Runtimes that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -165,30 +196,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
                                  * The filter for Runtimes that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -197,6 +228,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +240,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -239,17 +270,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.ListRuntimesRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.ListRuntimesRequest other = (com.google.cloud.functions.v2alpha.ListRuntimesRequest) obj; + com.google.cloud.functions.v2alpha.ListRuntimesRequest other = + (com.google.cloud.functions.v2alpha.ListRuntimesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,117 +301,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.ListRuntimesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListRuntimesRequest 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.v2alpha.ListRuntimesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListRuntimesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.ListRuntimesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2alpha.ListRuntimesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `ListRuntimes` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.ListRuntimesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.ListRuntimesRequest) com.google.cloud.functions.v2alpha.ListRuntimesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListRuntimesRequest.class, com.google.cloud.functions.v2alpha.ListRuntimesRequest.Builder.class); + com.google.cloud.functions.v2alpha.ListRuntimesRequest.class, + com.google.cloud.functions.v2alpha.ListRuntimesRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.ListRuntimesRequest.newBuilder() @@ -389,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; } @java.lang.Override @@ -431,7 +470,8 @@ public com.google.cloud.functions.v2alpha.ListRuntimesRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.ListRuntimesRequest buildPartial() { - com.google.cloud.functions.v2alpha.ListRuntimesRequest result = new com.google.cloud.functions.v2alpha.ListRuntimesRequest(this); + com.google.cloud.functions.v2alpha.ListRuntimesRequest result = + new com.google.cloud.functions.v2alpha.ListRuntimesRequest(this); result.parent_ = parent_; result.filter_ = filter_; onBuilt(); @@ -442,38 +482,39 @@ public com.google.cloud.functions.v2alpha.ListRuntimesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.ListRuntimesRequest)other); + return mergeFrom((com.google.cloud.functions.v2alpha.ListRuntimesRequest) other); } else { super.mergeFrom(other); return this; @@ -481,7 +522,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListRuntimesRequest other) { - if (other == com.google.cloud.functions.v2alpha.ListRuntimesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2alpha.ListRuntimesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -509,7 +551,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.ListRuntimesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.ListRuntimesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,19 +564,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -542,21 +589,24 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -564,57 +614,70 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -622,19 +685,21 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -643,21 +708,22 @@ public java.lang.String getFilter() { } } /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -665,64 +731,71 @@ public java.lang.String getFilter() { } } /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -732,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.ListRuntimesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.ListRuntimesRequest) private static final com.google.cloud.functions.v2alpha.ListRuntimesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.ListRuntimesRequest(); } @@ -746,16 +819,16 @@ public static com.google.cloud.functions.v2alpha.ListRuntimesRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRuntimesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRuntimesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -770,6 +843,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.ListRuntimesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java index 4e117127..f89529bf 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequestOrBuilder.java @@ -1,53 +1,83 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface ListRuntimesRequestOrBuilder extends +public interface ListRuntimesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.ListRuntimesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
                                  * The filter for Runtimes that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
                                  * The filter for Runtimes that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java similarity index 71% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java index 9020b672..da1813d5 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java @@ -1,40 +1,57 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Response for the `ListRuntimes` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.ListRuntimesResponse} */ -public final class ListRuntimesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuntimesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.ListRuntimesResponse) ListRuntimesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuntimesResponse.newBuilder() to construct. private ListRuntimesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuntimesResponse() { runtimes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListRuntimesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private ListRuntimesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - runtimes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + runtimes_ = + new java.util.ArrayList< + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime>(); + mutable_bitField0_ |= 0x00000001; + } + runtimes_.add( + input.readMessage( + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.parser(), + extensionRegistry)); + break; } - runtimes_.add( - input.readMessage(com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private ListRuntimesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { runtimes_ = java.util.Collections.unmodifiableList(runtimes_); @@ -87,29 +108,35 @@ private ListRuntimesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListRuntimesResponse.class, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Builder.class); + com.google.cloud.functions.v2alpha.ListRuntimesResponse.class, + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Builder.class); } /** + * + * *
                                  * The various stages that a runtime can be in.
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage} */ - public enum RuntimeStage - implements com.google.protobuf.ProtocolMessageEnum { + public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified.
                                    * 
                              @@ -118,6 +145,8 @@ public enum RuntimeStage */ RUNTIME_STAGE_UNSPECIFIED(0), /** + * + * *
                                    * The runtime is in development.
                                    * 
                              @@ -126,6 +155,8 @@ public enum RuntimeStage */ DEVELOPMENT(1), /** + * + * *
                                    * The runtime is in the Alpha stage.
                                    * 
                              @@ -134,6 +165,8 @@ public enum RuntimeStage */ ALPHA(2), /** + * + * *
                                    * The runtime is in the Beta stage.
                                    * 
                              @@ -142,6 +175,8 @@ public enum RuntimeStage */ BETA(3), /** + * + * *
                                    * The runtime is generally available.
                                    * 
                              @@ -150,6 +185,8 @@ public enum RuntimeStage */ GA(4), /** + * + * *
                                    * The runtime is deprecated.
                                    * 
                              @@ -158,6 +195,8 @@ public enum RuntimeStage */ DEPRECATED(5), /** + * + * *
                                    * The runtime is no longer supported.
                                    * 
                              @@ -169,6 +208,8 @@ public enum RuntimeStage ; /** + * + * *
                                    * Not specified.
                                    * 
                              @@ -177,6 +218,8 @@ public enum RuntimeStage */ public static final int RUNTIME_STAGE_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * The runtime is in development.
                                    * 
                              @@ -185,6 +228,8 @@ public enum RuntimeStage */ public static final int DEVELOPMENT_VALUE = 1; /** + * + * *
                                    * The runtime is in the Alpha stage.
                                    * 
                              @@ -193,6 +238,8 @@ public enum RuntimeStage */ public static final int ALPHA_VALUE = 2; /** + * + * *
                                    * The runtime is in the Beta stage.
                                    * 
                              @@ -201,6 +248,8 @@ public enum RuntimeStage */ public static final int BETA_VALUE = 3; /** + * + * *
                                    * The runtime is generally available.
                                    * 
                              @@ -209,6 +258,8 @@ public enum RuntimeStage */ public static final int GA_VALUE = 4; /** + * + * *
                                    * The runtime is deprecated.
                                    * 
                              @@ -217,6 +268,8 @@ public enum RuntimeStage */ public static final int DEPRECATED_VALUE = 5; /** + * + * *
                                    * The runtime is no longer supported.
                                    * 
                              @@ -225,7 +278,6 @@ public enum RuntimeStage */ public static final int DECOMMISSIONED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -250,53 +302,59 @@ public static RuntimeStage valueOf(int value) { */ public static RuntimeStage forNumber(int value) { switch (value) { - case 0: return RUNTIME_STAGE_UNSPECIFIED; - case 1: return DEVELOPMENT; - case 2: return ALPHA; - case 3: return BETA; - case 4: return GA; - case 5: return DEPRECATED; - case 6: return DECOMMISSIONED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return RUNTIME_STAGE_UNSPECIFIED; + case 1: + return DEVELOPMENT; + case 2: + return ALPHA; + case 3: + return BETA; + case 4: + return GA; + case 5: + return DEPRECATED; + case 6: + return DECOMMISSIONED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RuntimeStage> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RuntimeStage findValueByNumber(int number) { - return RuntimeStage.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RuntimeStage findValueByNumber(int number) { + return RuntimeStage.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.ListRuntimesResponse.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.ListRuntimesResponse.getDescriptor() + .getEnumTypes() + .get(0); } private static final RuntimeStage[] VALUES = values(); - public static RuntimeStage valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RuntimeStage valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -313,130 +371,165 @@ private RuntimeStage(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage) } - public interface RuntimeOrBuilder extends + public interface RuntimeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                    * 
                              * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
                                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                    * 
                              * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                    * 
                              * * string display_name = 5; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
                                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                    * 
                              * * string display_name = 5; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
                                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                    * 
                              * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The enum numeric value on the wire for stage. */ int getStageValue(); /** + * + * *
                                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                    * 
                              * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The stage. */ com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage getStage(); /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @return A list containing the warnings. */ - java.util.List - getWarningsList(); + java.util.List getWarningsList(); /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @return The count of warnings. */ int getWarningsCount(); /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @param index The index of the element to return. * @return The warnings at the given index. */ java.lang.String getWarnings(int index); /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - com.google.protobuf.ByteString - getWarningsBytes(int index); + com.google.protobuf.ByteString getWarningsBytes(int index); /** + * + * *
                                    * The environment for the runtime.
                                    * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 4; + * * @return The enum numeric value on the wire for environment. */ int getEnvironmentValue(); /** + * + * *
                                    * The environment for the runtime.
                                    * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 4; + * * @return The environment. */ com.google.cloud.functions.v2alpha.Environment getEnvironment(); } /** + * + * *
                                  * Describes a runtime and any special information (e.g., deprecation status)
                                  * related to it.
                              @@ -444,15 +537,16 @@ public interface RuntimeOrBuilder extends
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime}
                                  */
                              -  public static final class Runtime extends
                              -      com.google.protobuf.GeneratedMessageV3 implements
                              +  public static final class Runtime extends com.google.protobuf.GeneratedMessageV3
                              +      implements
                                     // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime)
                                     RuntimeOrBuilder {
                              -  private static final long serialVersionUID = 0L;
                              +    private static final long serialVersionUID = 0L;
                                   // Use Runtime.newBuilder() to construct.
                                   private Runtime(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                     super(builder);
                                   }
                              +
                                   private Runtime() {
                                     name_ = "";
                                     displayName_ = "";
                              @@ -463,16 +557,15 @@ private Runtime() {
                               
                                   @java.lang.Override
                                   @SuppressWarnings({"unused"})
                              -    protected java.lang.Object newInstance(
                              -        UnusedPrivateParameter unused) {
                              +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                     return new Runtime();
                                   }
                               
                                   @java.lang.Override
                              -    public final com.google.protobuf.UnknownFieldSet
                              -    getUnknownFields() {
                              +    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                     return this.unknownFields;
                                   }
                              +
                                   private Runtime(
                                       com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -492,46 +585,51 @@ private Runtime(
                                           case 0:
                                             done = true;
                                             break;
                              -            case 10: {
                              -              java.lang.String s = input.readStringRequireUtf8();
                              +            case 10:
                              +              {
                              +                java.lang.String s = input.readStringRequireUtf8();
                               
                              -              name_ = s;
                              -              break;
                              -            }
                              -            case 16: {
                              -              int rawValue = input.readEnum();
                              +                name_ = s;
                              +                break;
                              +              }
                              +            case 16:
                              +              {
                              +                int rawValue = input.readEnum();
                               
                              -              stage_ = rawValue;
                              -              break;
                              -            }
                              -            case 26: {
                              -              java.lang.String s = input.readStringRequireUtf8();
                              -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -                warnings_ = new com.google.protobuf.LazyStringArrayList();
                              -                mutable_bitField0_ |= 0x00000001;
                              +                stage_ = rawValue;
                              +                break;
                                             }
                              -              warnings_.add(s);
                              -              break;
                              -            }
                              -            case 32: {
                              -              int rawValue = input.readEnum();
                              +            case 26:
                              +              {
                              +                java.lang.String s = input.readStringRequireUtf8();
                              +                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                  warnings_ = new com.google.protobuf.LazyStringArrayList();
                              +                  mutable_bitField0_ |= 0x00000001;
                              +                }
                              +                warnings_.add(s);
                              +                break;
                              +              }
                              +            case 32:
                              +              {
                              +                int rawValue = input.readEnum();
                               
                              -              environment_ = rawValue;
                              -              break;
                              -            }
                              -            case 42: {
                              -              java.lang.String s = input.readStringRequireUtf8();
                              +                environment_ = rawValue;
                              +                break;
                              +              }
                              +            case 42:
                              +              {
                              +                java.lang.String s = input.readStringRequireUtf8();
                               
                              -              displayName_ = s;
                              -              break;
                              -            }
                              -            default: {
                              -              if (!parseUnknownField(
                              -                  input, unknownFields, extensionRegistry, tag)) {
                              -                done = true;
                              +                displayName_ = s;
                              +                break;
                              +              }
                              +            default:
                              +              {
                              +                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                  done = true;
                              +                }
                              +                break;
                                             }
                              -              break;
                              -            }
                                         }
                                       }
                                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -539,8 +637,7 @@ private Runtime(
                                     } catch (com.google.protobuf.UninitializedMessageException e) {
                                       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                     } catch (java.io.IOException e) {
                              -        throw new com.google.protobuf.InvalidProtocolBufferException(
                              -            e).setUnfinishedMessage(this);
                              +        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                     } finally {
                                       if (((mutable_bitField0_ & 0x00000001) != 0)) {
                                         warnings_ = warnings_.getUnmodifiableView();
                              @@ -549,27 +646,33 @@ private Runtime(
                                       makeExtensionsImmutable();
                                     }
                                   }
                              -    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;
                              +
                              +    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;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder.class);
                              +              com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.class,
                              +              com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder.class);
                                   }
                               
                                   public static final int NAME_FIELD_NUMBER = 1;
                                   private volatile java.lang.Object name_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                    * 
                              * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -578,29 +681,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                    * 
                              * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -611,11 +714,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
                                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                    * 
                              * * string display_name = 5; + * * @return The displayName. */ @java.lang.Override @@ -624,29 +730,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
                                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                    * 
                              * * string display_name = 5; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -657,61 +763,80 @@ public java.lang.String getDisplayName() { public static final int STAGE_FIELD_NUMBER = 2; private int stage_; /** + * + * *
                                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                    * 
                              * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The enum numeric value on the wire for stage. */ - @java.lang.Override public int getStageValue() { + @java.lang.Override + public int getStageValue() { return stage_; } /** + * + * *
                                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                    * 
                              * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The stage. */ - @java.lang.Override public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage getStage() { + @java.lang.Override + public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage getStage() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.valueOf(stage_); - return result == null ? com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; + com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage result = + com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.valueOf(stage_); + return result == null + ? com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED + : result; } public static final int WARNINGS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList warnings_; /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_; } /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -719,47 +844,59 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } public static final int ENVIRONMENT_FIELD_NUMBER = 4; private int environment_; /** + * + * *
                                    * The environment for the runtime.
                                    * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 4; + * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override public int getEnvironmentValue() { + @java.lang.Override + public int getEnvironmentValue() { return environment_; } /** + * + * *
                                    * The environment for the runtime.
                                    * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 4; + * * @return The environment. */ - @java.lang.Override public com.google.cloud.functions.v2alpha.Environment getEnvironment() { + @java.lang.Override + public com.google.cloud.functions.v2alpha.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Environment result = com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); + com.google.cloud.functions.v2alpha.Environment result = + com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2alpha.Environment.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -771,18 +908,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (stage_ != com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.RUNTIME_STAGE_UNSPECIFIED.getNumber()) { + if (stage_ + != com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage + .RUNTIME_STAGE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, stage_); } for (int i = 0; i < warnings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warnings_.getRaw(i)); } - if (environment_ != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (environment_ + != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(4, environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { @@ -800,9 +940,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (stage_ != com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.RUNTIME_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, stage_); + if (stage_ + != com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage + .RUNTIME_STAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stage_); } { int dataSize = 0; @@ -812,9 +954,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getWarningsList().size(); } - if (environment_ != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, environment_); + if (environment_ + != com.google.cloud.functions.v2alpha.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -827,20 +969,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime other = (com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) obj; + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime other = + (com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (stage_ != other.stage_) return false; - if (!getWarningsList() - .equals(other.getWarningsList())) return false; + if (!getWarningsList().equals(other.getWarningsList())) return false; if (environment_ != other.environment_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -871,87 +1011,95 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.ListRuntimesResponse.Runtime parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime 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.v2alpha.ListRuntimesResponse.Runtime parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime 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.v2alpha.ListRuntimesResponse.Runtime + 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.v2alpha.ListRuntimesResponse.Runtime parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -961,6 +1109,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                                    * Describes a runtime and any special information (e.g., deprecation status)
                                    * related to it.
                              @@ -968,38 +1118,41 @@ protected Builder newBuilderForType(
                                    *
                                    * Protobuf type {@code google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime}
                                    */
                              -    public static final class Builder extends
                              -        com.google.protobuf.GeneratedMessageV3.Builder implements
                              +    public static final class Builder
                              +        extends com.google.protobuf.GeneratedMessageV3.Builder
                              +        implements
                                       // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime)
                                       com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder {
                              -      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;
                              +      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;
                                     }
                               
                                     @java.lang.Override
                                     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                         internalGetFieldAccessorTable() {
                              -        return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable
                              +        return com.google.cloud.functions.v2alpha.FunctionsProto
                              +            .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_fieldAccessorTable
                                           .ensureFieldAccessorsInitialized(
                              -                com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder.class);
                              +                com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.class,
                              +                com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder.class);
                                     }
                               
                              -      // Construct using com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.newBuilder()
                              +      // Construct using
                              +      // com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.newBuilder()
                                     private Builder() {
                                       maybeForceBuilderInitialization();
                                     }
                               
                              -      private Builder(
                              -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                       super(parent);
                                       maybeForceBuilderInitialization();
                                     }
                              +
                                     private void maybeForceBuilderInitialization() {
                              -        if (com.google.protobuf.GeneratedMessageV3
                              -                .alwaysUseFieldBuilders) {
                              -        }
                              +        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                     }
                              +
                                     @java.lang.Override
                                     public Builder clear() {
                                       super.clear();
                              @@ -1017,13 +1170,14 @@ public Builder clear() {
                                     }
                               
                                     @java.lang.Override
                              -      public com.google.protobuf.Descriptors.Descriptor
                              -          getDescriptorForType() {
                              -        return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor;
                              +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +        return com.google.cloud.functions.v2alpha.FunctionsProto
                              +            .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor;
                                     }
                               
                                     @java.lang.Override
                              -      public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getDefaultInstanceForType() {
                              +      public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime
                              +          getDefaultInstanceForType() {
                                       return com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance();
                                     }
                               
                              @@ -1038,7 +1192,8 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime build() {
                               
                                     @java.lang.Override
                                     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);
                              +        com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime result =
                              +            new com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime(this);
                                       int from_bitField0_ = bitField0_;
                                       result.name_ = name_;
                                       result.displayName_ = displayName_;
                              @@ -1057,46 +1212,52 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime buildPart
                                     public Builder clone() {
                                       return super.clone();
                                     }
                              +
                                     @java.lang.Override
                                     public Builder setField(
                              -          com.google.protobuf.Descriptors.FieldDescriptor field,
                              -          java.lang.Object value) {
                              +          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) {
                              +      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) {
                              +      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) {
                              +          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) {
                              +          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) {
                              -          return mergeFrom((com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime)other);
                              +          return mergeFrom((com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) other);
                                       } else {
                                         super.mergeFrom(other);
                                         return this;
                                       }
                                     }
                               
                              -      public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime other) {
                              -        if (other == com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance()) return this;
                              +      public Builder mergeFrom(
                              +          com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime other) {
                              +        if (other
                              +            == com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance())
                              +          return this;
                                       if (!other.getName().isEmpty()) {
                                         name_ = other.name_;
                                         onChanged();
                              @@ -1140,7 +1301,9 @@ public Builder mergeFrom(
                                       try {
                                         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                                       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              -          parsedMessage = (com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) e.getUnfinishedMessage();
                              +          parsedMessage =
                              +              (com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime)
                              +                  e.getUnfinishedMessage();
                                         throw e.unwrapIOException();
                                       } finally {
                                         if (parsedMessage != null) {
                              @@ -1149,22 +1312,25 @@ public Builder mergeFrom(
                                       }
                                       return this;
                                     }
                              +
                                     private int bitField0_;
                               
                                     private java.lang.Object name_ = "";
                                     /**
                              +       *
                              +       *
                                      * 
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1173,20 +1339,21 @@ public java.lang.String getName() { } } /** + * + * *
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1194,54 +1361,61 @@ public java.lang.String getName() { } } /** + * + * *
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1249,18 +1423,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1269,20 +1445,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1290,54 +1467,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1345,114 +1529,144 @@ public Builder setDisplayNameBytes( private int stage_ = 0; /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The enum numeric value on the wire for stage. */ - @java.lang.Override public int getStageValue() { + @java.lang.Override + public int getStageValue() { return stage_; } /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; + * * @param value The enum numeric value on the wire for stage to set. * @return This builder for chaining. */ public Builder setStageValue(int value) { - + stage_ = value; onChanged(); return this; } /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The stage. */ @java.lang.Override public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage getStage() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.valueOf(stage_); - return result == null ? com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; + com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage result = + com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.valueOf(stage_); + return result == null + ? com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED + : result; } /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; + * * @param value The stage to set. * @return This builder for chaining. */ - public Builder setStage(com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage value) { + public Builder setStage( + com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage value) { if (value == null) { throw new NullPointerException(); } - + stage_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return This builder for chaining. */ public Builder clearStage() { - + stage_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList warnings_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWarningsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_.getUnmodifiableView(); } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -1460,80 +1674,90 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param index The index to set the value at. * @param value The warnings to set. * @return This builder for chaining. */ - public Builder setWarnings( - int index, java.lang.String value) { + public Builder setWarnings(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.set(index, value); onChanged(); return this; } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param value The warnings to add. * @return This builder for chaining. */ - public Builder addWarnings( - java.lang.String value) { + public Builder addWarnings(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.add(value); onChanged(); return this; } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param values The warnings to add. * @return This builder for chaining. */ - public Builder addAllWarnings( - java.lang.Iterable values) { + public Builder addAllWarnings(java.lang.Iterable values) { ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, warnings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); onChanged(); return this; } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @return This builder for chaining. */ public Builder clearWarnings() { @@ -1543,20 +1767,22 @@ public Builder clearWarnings() { return this; } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param value The bytes of the warnings to add. * @return This builder for chaining. */ - public Builder addWarningsBytes( - com.google.protobuf.ByteString value) { + public Builder addWarningsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.add(value); onChanged(); @@ -1565,51 +1791,67 @@ public Builder addWarningsBytes( private int environment_ = 0; /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 4; + * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override public int getEnvironmentValue() { + @java.lang.Override + public int getEnvironmentValue() { return environment_; } /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 4; + * * @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; onChanged(); return this; } /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 4; + * * @return The environment. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Environment result = com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); - return result == null ? com.google.cloud.functions.v2alpha.Environment.UNRECOGNIZED : result; + com.google.cloud.functions.v2alpha.Environment result = + com.google.cloud.functions.v2alpha.Environment.valueOf(environment_); + return result == null + ? com.google.cloud.functions.v2alpha.Environment.UNRECOGNIZED + : result; } /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 4; + * * @param value The environment to set. * @return This builder for chaining. */ @@ -1617,25 +1859,29 @@ public Builder setEnvironment(com.google.cloud.functions.v2alpha.Environment val if (value == null) { throw new NullPointerException(); } - + environment_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2alpha.Environment environment = 4; + * * @return This builder for chaining. */ public Builder clearEnvironment() { - + environment_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1648,30 +1894,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) - private static final com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime DEFAULT_INSTANCE; + private static final com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime(); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getDefaultInstance() { + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Runtime parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Runtime(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Runtime parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Runtime(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1683,73 +1931,91 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int RUNTIMES_FIELD_NUMBER = 1; private java.util.List runtimes_; /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ @java.lang.Override - public java.util.List getRuntimesList() { + public java.util.List + getRuntimesList() { return runtimes_; } /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder> getRuntimesOrBuilderList() { return runtimes_; } /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ @java.lang.Override public int getRuntimesCount() { return runtimes_.size(); } /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ @java.lang.Override public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getRuntimes(int index) { return runtimes_.get(index); } /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ @java.lang.Override - public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( - int index) { + public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder + getRuntimesOrBuilder(int index) { return runtimes_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1761,8 +2027,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < runtimes_.size(); i++) { output.writeMessage(1, runtimes_.get(i)); } @@ -1776,8 +2041,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < runtimes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, runtimes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runtimes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1787,15 +2051,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.ListRuntimesResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.ListRuntimesResponse other = (com.google.cloud.functions.v2alpha.ListRuntimesResponse) obj; + com.google.cloud.functions.v2alpha.ListRuntimesResponse other = + (com.google.cloud.functions.v2alpha.ListRuntimesResponse) obj; - if (!getRuntimesList() - .equals(other.getRuntimesList())) return false; + if (!getRuntimesList().equals(other.getRuntimesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1817,117 +2081,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.ListRuntimesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse 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.v2alpha.ListRuntimesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ListRuntimesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.ListRuntimesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2alpha.ListRuntimesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Response for the `ListRuntimes` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.ListRuntimesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.ListRuntimesResponse) com.google.cloud.functions.v2alpha.ListRuntimesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.ListRuntimesResponse.class, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Builder.class); + com.google.cloud.functions.v2alpha.ListRuntimesResponse.class, + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.ListRuntimesResponse.newBuilder() @@ -1935,17 +2209,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRuntimesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1959,9 +2233,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; } @java.lang.Override @@ -1980,7 +2254,8 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse build() { @java.lang.Override public com.google.cloud.functions.v2alpha.ListRuntimesResponse buildPartial() { - com.google.cloud.functions.v2alpha.ListRuntimesResponse result = new com.google.cloud.functions.v2alpha.ListRuntimesResponse(this); + com.google.cloud.functions.v2alpha.ListRuntimesResponse result = + new com.google.cloud.functions.v2alpha.ListRuntimesResponse(this); int from_bitField0_ = bitField0_; if (runtimesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1999,38 +2274,39 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.ListRuntimesResponse)other); + return mergeFrom((com.google.cloud.functions.v2alpha.ListRuntimesResponse) other); } else { super.mergeFrom(other); return this; @@ -2038,7 +2314,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListRuntimesResponse other) { - if (other == com.google.cloud.functions.v2alpha.ListRuntimesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2alpha.ListRuntimesResponse.getDefaultInstance()) + return this; if (runtimesBuilder_ == null) { if (!other.runtimes_.isEmpty()) { if (runtimes_.isEmpty()) { @@ -2057,9 +2334,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListRuntimesResponse runtimesBuilder_ = null; runtimes_ = other.runtimes_; bitField0_ = (bitField0_ & ~0x00000001); - runtimesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRuntimesFieldBuilder() : null; + runtimesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRuntimesFieldBuilder() + : null; } else { runtimesBuilder_.addAllMessages(other.runtimes_); } @@ -2084,7 +2362,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.ListRuntimesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.ListRuntimesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2093,28 +2372,39 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List runtimes_ = - java.util.Collections.emptyList(); + private java.util.List + runtimes_ = java.util.Collections.emptyList(); + private void ensureRuntimesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - runtimes_ = new java.util.ArrayList(runtimes_); + runtimes_ = + new java.util.ArrayList< + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime>(runtimes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder> runtimesBuilder_; + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime, + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder, + com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder> + runtimesBuilder_; /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public java.util.List getRuntimesList() { + public java.util.List + getRuntimesList() { if (runtimesBuilder_ == null) { return java.util.Collections.unmodifiableList(runtimes_); } else { @@ -2122,11 +2412,14 @@ public java.util.List * The runtimes that match the request. *
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ public int getRuntimesCount() { if (runtimesBuilder_ == null) { @@ -2136,11 +2429,14 @@ public int getRuntimesCount() { } } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getRuntimes(int index) { if (runtimesBuilder_ == null) { @@ -2150,11 +2446,14 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getRuntim } } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder setRuntimes( int index, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime value) { @@ -2171,14 +2470,18 @@ public Builder setRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder setRuntimes( - int index, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder builderForValue) { + int index, + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.set(index, builderForValue.build()); @@ -2189,13 +2492,17 @@ public Builder setRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public Builder addRuntimes(com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime value) { + public Builder addRuntimes( + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime value) { if (runtimesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2209,11 +2516,14 @@ public Builder addRuntimes(com.google.cloud.functions.v2alpha.ListRuntimesRespon return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder addRuntimes( int index, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime value) { @@ -2230,11 +2540,14 @@ public Builder addRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder addRuntimes( com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder builderForValue) { @@ -2248,14 +2561,18 @@ public Builder addRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder addRuntimes( - int index, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder builderForValue) { + int index, + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.add(index, builderForValue.build()); @@ -2266,18 +2583,22 @@ public Builder addRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder addAllRuntimes( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime> + values) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, runtimes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, runtimes_); onChanged(); } else { runtimesBuilder_.addAllMessages(values); @@ -2285,11 +2606,14 @@ public Builder addAllRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder clearRuntimes() { if (runtimesBuilder_ == null) { @@ -2302,11 +2626,14 @@ public Builder clearRuntimes() { return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder removeRuntimes(int index) { if (runtimesBuilder_ == null) { @@ -2319,39 +2646,50 @@ public Builder removeRuntimes(int index) { return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder getRuntimesBuilder( - int index) { + public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder + getRuntimesBuilder(int index) { return getRuntimesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( - int index) { + public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder + getRuntimesOrBuilder(int index) { if (runtimesBuilder_ == null) { - return runtimes_.get(index); } else { + return runtimes_.get(index); + } else { return runtimesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public java.util.List - getRuntimesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder> + getRuntimesOrBuilderList() { if (runtimesBuilder_ != null) { return runtimesBuilder_.getMessageOrBuilderList(); } else { @@ -2359,56 +2697,72 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder } } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder() { - return getRuntimesFieldBuilder().addBuilder( - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder + addRuntimesBuilder() { + return getRuntimesFieldBuilder() + .addBuilder( + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance()); } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder( - int index) { - return getRuntimesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder + addRuntimesBuilder(int index) { + return getRuntimesFieldBuilder() + .addBuilder( + index, + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.getDefaultInstance()); } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public java.util.List - getRuntimesBuilderList() { + public java.util.List + getRuntimesBuilderList() { return getRuntimesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder> + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime, + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder, + com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder> getRuntimesFieldBuilder() { if (runtimesBuilder_ == null) { - runtimesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder>( - runtimes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + runtimesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime, + com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime.Builder, + com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder>( + runtimes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); runtimes_ = null; } return runtimesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2418,12 +2772,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.ListRuntimesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.ListRuntimesResponse) private static final com.google.cloud.functions.v2alpha.ListRuntimesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.ListRuntimesResponse(); } @@ -2432,16 +2786,16 @@ public static com.google.cloud.functions.v2alpha.ListRuntimesResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRuntimesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRuntimesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2456,6 +2810,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.ListRuntimesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java similarity index 58% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java index 467d43c9..b1312b13 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponseOrBuilder.java @@ -1,52 +1,82 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface ListRuntimesResponseOrBuilder extends +public interface ListRuntimesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.ListRuntimesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ - java.util.List - getRuntimesList(); + java.util.List getRuntimesList(); /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime getRuntimes(int index); /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ int getRuntimesCount(); /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ - java.util.List + java.util.List getRuntimesOrBuilderList(); /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime runtimes = 1; + * */ com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( int index); diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java similarity index 100% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java similarity index 74% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java index c92d3d21..1841b404 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Represents the metadata of the long-running operation.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -29,16 +47,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,90 +75,102 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + target_ = s; + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - statusDetail_ = s; - break; - } - case 48: { - - cancelRequested_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - case 66: { - com.google.protobuf.Any.Builder subBuilder = null; - if (requestResource_ != null) { - subBuilder = requestResource_.toBuilder(); + statusDetail_ = s; + break; } - requestResource_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestResource_); - requestResource_ = subBuilder.buildPartial(); + case 48: + { + cancelRequested_ = input.readBool(); + break; } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + apiVersion_ = s; + break; } - stages_.add( - input.readMessage(com.google.cloud.functions.v2alpha.Stage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 66: + { + com.google.protobuf.Any.Builder subBuilder = null; + if (requestResource_ != null) { + subBuilder = requestResource_.toBuilder(); + } + requestResource_ = + input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestResource_); + requestResource_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stages_.add( + input.readMessage( + com.google.cloud.functions.v2alpha.Stage.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -149,8 +178,7 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stages_ = java.util.Collections.unmodifiableList(stages_); @@ -159,27 +187,33 @@ private OperationMetadata( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.OperationMetadata.class, com.google.cloud.functions.v2alpha.OperationMetadata.Builder.class); + com.google.cloud.functions.v2alpha.OperationMetadata.class, + com.google.cloud.functions.v2alpha.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
                                  * The time the operation was created.
                                  * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -187,11 +221,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
                                  * The time the operation was created.
                                  * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -199,6 +236,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
                                  * The time the operation was created.
                                  * 
                              @@ -213,11 +252,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -225,11 +267,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -237,6 +282,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              @@ -251,11 +298,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
                                  * Server-defined resource path for the target of the operation.
                                  * 
                              * * string target = 3; + * * @return The target. */ @java.lang.Override @@ -264,29 +314,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
                                  * Server-defined resource path for the target of the operation.
                                  * 
                              * * string target = 3; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -297,11 +347,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
                                  * Name of the verb executed by the operation.
                                  * 
                              * * string verb = 4; + * * @return The verb. */ @java.lang.Override @@ -310,29 +363,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
                                  * Name of the verb executed by the operation.
                                  * 
                              * * string verb = 4; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -343,11 +396,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
                                  * Human-readable status of the operation, if any.
                                  * 
                              * * string status_detail = 5; + * * @return The statusDetail. */ @java.lang.Override @@ -356,29 +412,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
                                  * Human-readable status of the operation, if any.
                                  * 
                              * * string status_detail = 5; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -389,6 +445,8 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
                                  * Identifies whether the user has requested cancellation
                                  * of the operation. Operations that have successfully been cancelled
                              @@ -397,6 +455,7 @@ public java.lang.String getStatusDetail() {
                                  * 
                              * * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -407,11 +466,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
                                  * API version used to start the operation.
                                  * 
                              * * string api_version = 7; + * * @return The apiVersion. */ @java.lang.Override @@ -420,29 +482,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
                                  * API version used to start the operation.
                                  * 
                              * * string api_version = 7; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -453,11 +515,14 @@ public java.lang.String getApiVersion() { public static final int REQUEST_RESOURCE_FIELD_NUMBER = 8; private com.google.protobuf.Any requestResource_; /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return Whether the requestResource field is set. */ @java.lang.Override @@ -465,18 +530,25 @@ public boolean hasRequestResource() { return requestResource_ != null; } /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return The requestResource. */ @java.lang.Override public com.google.protobuf.Any getRequestResource() { - return requestResource_ == null ? com.google.protobuf.Any.getDefaultInstance() : requestResource_; + return requestResource_ == null + ? com.google.protobuf.Any.getDefaultInstance() + : requestResource_; } /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              @@ -491,6 +563,8 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { public static final int STAGES_FIELD_NUMBER = 9; private java.util.List stages_; /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -502,6 +576,8 @@ public java.util.List getStagesList() return stages_; } /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -509,11 +585,13 @@ public java.util.List getStagesList() * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ @java.lang.Override - public java.util.List + public java.util.List getStagesOrBuilderList() { return stages_; } /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -525,6 +603,8 @@ public int getStagesCount() { return stages_.size(); } /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -536,6 +616,8 @@ public com.google.cloud.functions.v2alpha.Stage getStages(int index) { return stages_.get(index); } /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -543,12 +625,12 @@ public com.google.cloud.functions.v2alpha.Stage getStages(int index) { * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ @java.lang.Override - public com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder( - int index) { + public com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder(int index) { return stages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -560,8 +642,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -599,12 +680,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -616,19 +695,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } if (requestResource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getRequestResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRequestResource()); } for (int i = 0; i < stages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, stages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, stages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -638,40 +714,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.OperationMetadata other = (com.google.cloud.functions.v2alpha.OperationMetadata) obj; + com.google.cloud.functions.v2alpha.OperationMetadata other = + (com.google.cloud.functions.v2alpha.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (hasRequestResource() != other.hasRequestResource()) return false; if (hasRequestResource()) { - if (!getRequestResource() - .equals(other.getRequestResource())) return false; + if (!getRequestResource().equals(other.getRequestResource())) return false; } - if (!getStagesList() - .equals(other.getStagesList())) return false; + if (!getStagesList().equals(other.getStagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -698,8 +766,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); if (hasRequestResource()) { @@ -716,117 +783,126 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.OperationMetadata 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.v2alpha.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2alpha.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Represents the metadata of the long-running operation.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.OperationMetadata) com.google.cloud.functions.v2alpha.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.OperationMetadata.class, com.google.cloud.functions.v2alpha.OperationMetadata.Builder.class); + com.google.cloud.functions.v2alpha.OperationMetadata.class, + com.google.cloud.functions.v2alpha.OperationMetadata.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.OperationMetadata.newBuilder() @@ -834,17 +910,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -886,9 +962,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; } @java.lang.Override @@ -907,7 +983,8 @@ public com.google.cloud.functions.v2alpha.OperationMetadata build() { @java.lang.Override public com.google.cloud.functions.v2alpha.OperationMetadata buildPartial() { - com.google.cloud.functions.v2alpha.OperationMetadata result = new com.google.cloud.functions.v2alpha.OperationMetadata(this); + com.google.cloud.functions.v2alpha.OperationMetadata result = + new com.google.cloud.functions.v2alpha.OperationMetadata(this); int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -946,38 +1023,39 @@ public com.google.cloud.functions.v2alpha.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.OperationMetadata)other); + return mergeFrom((com.google.cloud.functions.v2alpha.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -985,7 +1063,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.OperationMetadata other) { - if (other == com.google.cloud.functions.v2alpha.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2alpha.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1032,9 +1111,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.OperationMetadata ot stagesBuilder_ = null; stages_ = other.stages_; bitField0_ = (bitField0_ & ~0x00000001); - stagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStagesFieldBuilder() : null; + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStagesFieldBuilder() + : null; } else { stagesBuilder_.addAllMessages(other.stages_); } @@ -1059,7 +1139,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1068,38 +1149,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
                                    * The time the operation was created.
                                    * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1120,14 +1215,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              * * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1138,6 +1234,8 @@ public Builder setCreateTime( return this; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1148,7 +1246,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1160,6 +1258,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1178,6 +1278,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1185,11 +1287,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1200,11 +1304,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1212,14 +1319,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1227,24 +1337,33 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1255,6 +1374,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1275,14 +1396,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              * * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1293,6 +1415,8 @@ public Builder setEndTime( return this; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1303,7 +1427,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1315,6 +1439,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1333,6 +1459,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1340,11 +1468,13 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1355,11 +1485,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1367,14 +1498,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1382,18 +1516,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1402,20 +1538,21 @@ public java.lang.String getTarget() { } } /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1423,54 +1560,61 @@ public java.lang.String getTarget() { } } /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1478,18 +1622,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1498,20 +1644,21 @@ public java.lang.String getVerb() { } } /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1519,54 +1666,61 @@ public java.lang.String getVerb() { } } /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1574,18 +1728,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1594,20 +1750,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1615,61 +1772,70 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
                                    * Identifies whether the user has requested cancellation
                                    * of the operation. Operations that have successfully been cancelled
                              @@ -1678,6 +1844,7 @@ public Builder setStatusDetailBytes(
                                    * 
                              * * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -1685,6 +1852,8 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
                                    * Identifies whether the user has requested cancellation
                                    * of the operation. Operations that have successfully been cancelled
                              @@ -1693,16 +1862,19 @@ public boolean getCancelRequested() {
                                    * 
                              * * bool cancel_requested = 6; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
                                    * Identifies whether the user has requested cancellation
                                    * of the operation. Operations that have successfully been cancelled
                              @@ -1711,10 +1883,11 @@ public Builder setCancelRequested(boolean value) {
                                    * 
                              * * bool cancel_requested = 6; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1722,18 +1895,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1742,20 +1917,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1763,54 +1939,61 @@ public java.lang.String getApiVersion() { } } /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; @@ -1818,34 +2001,47 @@ public Builder setApiVersionBytes( private com.google.protobuf.Any requestResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> requestResourceBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + requestResourceBuilder_; /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return Whether the requestResource field is set. */ public boolean hasRequestResource() { return requestResourceBuilder_ != null || requestResource_ != null; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return The requestResource. */ public com.google.protobuf.Any getRequestResource() { if (requestResourceBuilder_ == null) { - return requestResource_ == null ? com.google.protobuf.Any.getDefaultInstance() : requestResource_; + return requestResource_ == null + ? com.google.protobuf.Any.getDefaultInstance() + : requestResource_; } else { return requestResourceBuilder_.getMessage(); } } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1866,14 +2062,15 @@ public Builder setRequestResource(com.google.protobuf.Any value) { return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              * * .google.protobuf.Any request_resource = 8; */ - public Builder setRequestResource( - com.google.protobuf.Any.Builder builderForValue) { + public Builder setRequestResource(com.google.protobuf.Any.Builder builderForValue) { if (requestResourceBuilder_ == null) { requestResource_ = builderForValue.build(); onChanged(); @@ -1884,6 +2081,8 @@ public Builder setRequestResource( return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1894,7 +2093,7 @@ public Builder mergeRequestResource(com.google.protobuf.Any value) { if (requestResourceBuilder_ == null) { if (requestResource_ != null) { requestResource_ = - com.google.protobuf.Any.newBuilder(requestResource_).mergeFrom(value).buildPartial(); + com.google.protobuf.Any.newBuilder(requestResource_).mergeFrom(value).buildPartial(); } else { requestResource_ = value; } @@ -1906,6 +2105,8 @@ public Builder mergeRequestResource(com.google.protobuf.Any value) { return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1924,6 +2125,8 @@ public Builder clearRequestResource() { return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1931,11 +2134,13 @@ public Builder clearRequestResource() { * .google.protobuf.Any request_resource = 8; */ public com.google.protobuf.Any.Builder getRequestResourceBuilder() { - + onChanged(); return getRequestResourceFieldBuilder().getBuilder(); } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1946,11 +2151,14 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { if (requestResourceBuilder_ != null) { return requestResourceBuilder_.getMessageOrBuilder(); } else { - return requestResource_ == null ? - com.google.protobuf.Any.getDefaultInstance() : requestResource_; + return requestResource_ == null + ? com.google.protobuf.Any.getDefaultInstance() + : requestResource_; } } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1958,32 +2166,41 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { * .google.protobuf.Any request_resource = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> getRequestResourceFieldBuilder() { if (requestResourceBuilder_ == null) { - requestResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getRequestResource(), - getParentForChildren(), - isClean()); + requestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder>( + getRequestResource(), getParentForChildren(), isClean()); requestResource_ = null; } return requestResourceBuilder_; } private java.util.List stages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stages_ = new java.util.ArrayList(stages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.Stage, com.google.cloud.functions.v2alpha.Stage.Builder, com.google.cloud.functions.v2alpha.StageOrBuilder> stagesBuilder_; + com.google.cloud.functions.v2alpha.Stage, + com.google.cloud.functions.v2alpha.Stage.Builder, + com.google.cloud.functions.v2alpha.StageOrBuilder> + stagesBuilder_; /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -1998,6 +2215,8 @@ public java.util.List getStagesList() } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2012,6 +2231,8 @@ public int getStagesCount() { } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2026,14 +2247,15 @@ public com.google.cloud.functions.v2alpha.Stage getStages(int index) { } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public Builder setStages( - int index, com.google.cloud.functions.v2alpha.Stage value) { + public Builder setStages(int index, com.google.cloud.functions.v2alpha.Stage value) { if (stagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2047,6 +2269,8 @@ public Builder setStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2065,6 +2289,8 @@ public Builder setStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2085,14 +2311,15 @@ public Builder addStages(com.google.cloud.functions.v2alpha.Stage value) { return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public Builder addStages( - int index, com.google.cloud.functions.v2alpha.Stage value) { + public Builder addStages(int index, com.google.cloud.functions.v2alpha.Stage value) { if (stagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2106,14 +2333,15 @@ public Builder addStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public Builder addStages( - com.google.cloud.functions.v2alpha.Stage.Builder builderForValue) { + public Builder addStages(com.google.cloud.functions.v2alpha.Stage.Builder builderForValue) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); stages_.add(builderForValue.build()); @@ -2124,6 +2352,8 @@ public Builder addStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2142,6 +2372,8 @@ public Builder addStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2152,8 +2384,7 @@ public Builder addAllStages( java.lang.Iterable values) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stages_); onChanged(); } else { stagesBuilder_.addAllMessages(values); @@ -2161,6 +2392,8 @@ public Builder addAllStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2178,6 +2411,8 @@ public Builder clearStages() { return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2195,39 +2430,44 @@ public Builder removeStages(int index) { return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public com.google.cloud.functions.v2alpha.Stage.Builder getStagesBuilder( - int index) { + public com.google.cloud.functions.v2alpha.Stage.Builder getStagesBuilder(int index) { return getStagesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder( - int index) { + public com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder(int index) { if (stagesBuilder_ == null) { - return stages_.get(index); } else { + return stages_.get(index); + } else { return stagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public java.util.List - getStagesOrBuilderList() { + public java.util.List + getStagesOrBuilderList() { if (stagesBuilder_ != null) { return stagesBuilder_.getMessageOrBuilderList(); } else { @@ -2235,6 +2475,8 @@ public com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder( } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2242,49 +2484,54 @@ public com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder( * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ public com.google.cloud.functions.v2alpha.Stage.Builder addStagesBuilder() { - return getStagesFieldBuilder().addBuilder( - com.google.cloud.functions.v2alpha.Stage.getDefaultInstance()); + return getStagesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2alpha.Stage.getDefaultInstance()); } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public com.google.cloud.functions.v2alpha.Stage.Builder addStagesBuilder( - int index) { - return getStagesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2alpha.Stage.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.Stage.Builder addStagesBuilder(int index) { + return getStagesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2alpha.Stage.getDefaultInstance()); } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - public java.util.List - getStagesBuilderList() { + public java.util.List getStagesBuilderList() { return getStagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.Stage, com.google.cloud.functions.v2alpha.Stage.Builder, com.google.cloud.functions.v2alpha.StageOrBuilder> + com.google.cloud.functions.v2alpha.Stage, + com.google.cloud.functions.v2alpha.Stage.Builder, + com.google.cloud.functions.v2alpha.StageOrBuilder> getStagesFieldBuilder() { if (stagesBuilder_ == null) { - stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.Stage, com.google.cloud.functions.v2alpha.Stage.Builder, com.google.cloud.functions.v2alpha.StageOrBuilder>( - stages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + stagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.Stage, + com.google.cloud.functions.v2alpha.Stage.Builder, + com.google.cloud.functions.v2alpha.StageOrBuilder>( + stages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); stages_ = null; } return stagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2294,12 +2541,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.OperationMetadata) private static final com.google.cloud.functions.v2alpha.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.OperationMetadata(); } @@ -2308,16 +2555,16 @@ public static com.google.cloud.functions.v2alpha.OperationMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2332,6 +2579,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java similarity index 80% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java index f9c67f5f..20c25953 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The time the operation was created.
                                  * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
                                  * The time the operation was created.
                                  * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
                                  * The time the operation was created.
                                  * 
                              @@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              @@ -62,66 +94,83 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
                                  * Server-defined resource path for the target of the operation.
                                  * 
                              * * string target = 3; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
                                  * Server-defined resource path for the target of the operation.
                                  * 
                              * * string target = 3; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
                                  * Name of the verb executed by the operation.
                                  * 
                              * * string verb = 4; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
                                  * Name of the verb executed by the operation.
                                  * 
                              * * string verb = 4; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
                                  * Human-readable status of the operation, if any.
                                  * 
                              * * string status_detail = 5; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
                                  * Human-readable status of the operation, if any.
                                  * 
                              * * string status_detail = 5; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
                                  * Identifies whether the user has requested cancellation
                                  * of the operation. Operations that have successfully been cancelled
                              @@ -130,49 +179,63 @@ public interface OperationMetadataOrBuilder extends
                                  * 
                              * * bool cancel_requested = 6; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
                                  * API version used to start the operation.
                                  * 
                              * * string api_version = 7; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
                                  * API version used to start the operation.
                                  * 
                              * * string api_version = 7; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return Whether the requestResource field is set. */ boolean hasRequestResource(); /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return The requestResource. */ com.google.protobuf.Any getRequestResource(); /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              @@ -182,15 +245,18 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder(); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - java.util.List - getStagesList(); + java.util.List getStagesList(); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -199,6 +265,8 @@ public interface OperationMetadataOrBuilder extends */ com.google.cloud.functions.v2alpha.Stage getStages(int index); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -207,21 +275,24 @@ public interface OperationMetadataOrBuilder extends */ int getStagesCount(); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - java.util.List + java.util.List getStagesOrBuilderList(); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.Stage stages = 9; */ - com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder( - int index); + com.google.cloud.functions.v2alpha.StageOrBuilder getStagesOrBuilder(int index); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java similarity index 75% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java index 4562de7b..aa51dcaa 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java @@ -1,24 +1,42 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Location of the source in a Google Cloud Source Repository.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.RepoSource} */ -public final class RepoSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RepoSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.RepoSource) RepoSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RepoSource.newBuilder() to construct. private RepoSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RepoSource() { projectId_ = ""; repoName_ = ""; @@ -27,16 +45,15 @@ private RepoSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RepoSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RepoSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,54 +72,60 @@ private RepoSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - repoName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 3; - revision_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 4; - revision_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 5; - revision_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - dir_ = s; - break; - } - case 56: { + repoName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 3; + revision_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 4; + revision_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 5; + revision_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - invertRegex_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + dir_ = s; + break; + } + case 56: + { + invertRegex_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,36 +133,41 @@ private RepoSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.RepoSource.class, com.google.cloud.functions.v2alpha.RepoSource.Builder.class); + com.google.cloud.functions.v2alpha.RepoSource.class, + com.google.cloud.functions.v2alpha.RepoSource.Builder.class); } private int revisionCase_ = 0; private java.lang.Object revision_; + public enum RevisionCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BRANCH_NAME(3), TAG_NAME(4), COMMIT_SHA(5), REVISION_NOT_SET(0); private final int value; + private RevisionCase(int value) { this.value = value; } @@ -155,26 +183,32 @@ public static RevisionCase valueOf(int value) { public static RevisionCase forNumber(int value) { switch (value) { - case 3: return BRANCH_NAME; - case 4: return TAG_NAME; - case 5: return COMMIT_SHA; - case 0: return REVISION_NOT_SET; - default: return null; + case 3: + return BRANCH_NAME; + case 4: + return TAG_NAME; + case 5: + return COMMIT_SHA; + case 0: + return REVISION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RevisionCase - getRevisionCase() { - return RevisionCase.forNumber( - revisionCase_); + public RevisionCase getRevisionCase() { + return RevisionCase.forNumber(revisionCase_); } public static final int BRANCH_NAME_FIELD_NUMBER = 3; /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -182,12 +216,15 @@ public int getNumber() {
                                  * 
                              * * string branch_name = 3; + * * @return Whether the branchName field is set. */ public boolean hasBranchName() { return revisionCase_ == 3; } /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -195,6 +232,7 @@ public boolean hasBranchName() {
                                  * 
                              * * string branch_name = 3; + * * @return The branchName. */ public java.lang.String getBranchName() { @@ -205,8 +243,7 @@ public java.lang.String getBranchName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 3) { revision_ = s; @@ -215,6 +252,8 @@ public java.lang.String getBranchName() { } } /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -222,18 +261,17 @@ public java.lang.String getBranchName() {
                                  * 
                              * * string branch_name = 3; + * * @return The bytes for branchName. */ - public com.google.protobuf.ByteString - getBranchNameBytes() { + public com.google.protobuf.ByteString getBranchNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 3) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 3) { revision_ = b; } @@ -245,6 +283,8 @@ public java.lang.String getBranchName() { public static final int TAG_NAME_FIELD_NUMBER = 4; /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -252,12 +292,15 @@ public java.lang.String getBranchName() {
                                  * 
                              * * string tag_name = 4; + * * @return Whether the tagName field is set. */ public boolean hasTagName() { return revisionCase_ == 4; } /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -265,6 +308,7 @@ public boolean hasTagName() {
                                  * 
                              * * string tag_name = 4; + * * @return The tagName. */ public java.lang.String getTagName() { @@ -275,8 +319,7 @@ public java.lang.String getTagName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 4) { revision_ = s; @@ -285,6 +328,8 @@ public java.lang.String getTagName() { } } /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -292,18 +337,17 @@ public java.lang.String getTagName() {
                                  * 
                              * * string tag_name = 4; + * * @return The bytes for tagName. */ - public com.google.protobuf.ByteString - getTagNameBytes() { + public com.google.protobuf.ByteString getTagNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 4) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 4) { revision_ = b; } @@ -315,22 +359,28 @@ public java.lang.String getTagName() { public static final int COMMIT_SHA_FIELD_NUMBER = 5; /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return Whether the commitSha field is set. */ public boolean hasCommitSha() { return revisionCase_ == 5; } /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return The commitSha. */ public java.lang.String getCommitSha() { @@ -341,8 +391,7 @@ public java.lang.String getCommitSha() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 5) { revision_ = s; @@ -351,23 +400,24 @@ public java.lang.String getCommitSha() { } } /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return The bytes for commitSha. */ - public com.google.protobuf.ByteString - getCommitShaBytes() { + public com.google.protobuf.ByteString getCommitShaBytes() { java.lang.Object ref = ""; if (revisionCase_ == 5) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 5) { revision_ = b; } @@ -380,12 +430,15 @@ public java.lang.String getCommitSha() { public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
                                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                                  * project ID requesting the build is assumed.
                                  * 
                              * * string project_id = 1; + * * @return The projectId. */ @java.lang.Override @@ -394,30 +447,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
                                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                                  * project ID requesting the build is assumed.
                                  * 
                              * * string project_id = 1; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -428,11 +481,14 @@ public java.lang.String getProjectId() { public static final int REPO_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object repoName_; /** + * + * *
                                  * Name of the Cloud Source Repository.
                                  * 
                              * * string repo_name = 2; + * * @return The repoName. */ @java.lang.Override @@ -441,29 +497,29 @@ public java.lang.String getRepoName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); repoName_ = s; return s; } } /** + * + * *
                                  * Name of the Cloud Source Repository.
                                  * 
                              * * string repo_name = 2; + * * @return The bytes for repoName. */ @java.lang.Override - public com.google.protobuf.ByteString - getRepoNameBytes() { + public com.google.protobuf.ByteString getRepoNameBytes() { java.lang.Object ref = repoName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); repoName_ = b; return b; } else { @@ -474,6 +530,8 @@ public java.lang.String getRepoName() { public static final int DIR_FIELD_NUMBER = 6; private volatile java.lang.Object dir_; /** + * + * *
                                  * 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
                              @@ -482,6 +540,7 @@ public java.lang.String getRepoName() {
                                  * 
                              * * string dir = 6; + * * @return The dir. */ @java.lang.Override @@ -490,14 +549,15 @@ public java.lang.String getDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dir_ = s; return s; } } /** + * + * *
                                  * 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
                              @@ -506,16 +566,15 @@ public java.lang.String getDir() {
                                  * 
                              * * string dir = 6; + * * @return The bytes for dir. */ @java.lang.Override - public com.google.protobuf.ByteString - getDirBytes() { + public com.google.protobuf.ByteString getDirBytes() { java.lang.Object ref = dir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dir_ = b; return b; } else { @@ -526,12 +585,15 @@ public java.lang.String getDir() { public static final int INVERT_REGEX_FIELD_NUMBER = 7; private boolean invertRegex_; /** + * + * *
                                  * Only trigger a build if the revision regex does NOT match the revision
                                  * regex.
                                  * 
                              * * bool invert_regex = 7; + * * @return The invertRegex. */ @java.lang.Override @@ -540,6 +602,7 @@ public boolean getInvertRegex() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -551,8 +614,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -602,8 +664,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dir_); } if (invertRegex_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, invertRegex_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, invertRegex_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -613,34 +674,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.RepoSource)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.RepoSource other = (com.google.cloud.functions.v2alpha.RepoSource) obj; + com.google.cloud.functions.v2alpha.RepoSource other = + (com.google.cloud.functions.v2alpha.RepoSource) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRepoName() - .equals(other.getRepoName())) return false; - if (!getDir() - .equals(other.getDir())) return false; - if (getInvertRegex() - != other.getInvertRegex()) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRepoName().equals(other.getRepoName())) return false; + if (!getDir().equals(other.getDir())) return false; + if (getInvertRegex() != other.getInvertRegex()) return false; if (!getRevisionCase().equals(other.getRevisionCase())) return false; switch (revisionCase_) { case 3: - if (!getBranchName() - .equals(other.getBranchName())) return false; + if (!getBranchName().equals(other.getBranchName())) return false; break; case 4: - if (!getTagName() - .equals(other.getTagName())) return false; + if (!getTagName().equals(other.getTagName())) return false; break; case 5: - if (!getCommitSha() - .equals(other.getCommitSha())) return false; + if (!getCommitSha().equals(other.getCommitSha())) return false; break; case 0: default: @@ -663,8 +718,7 @@ public int hashCode() { hash = (37 * hash) + DIR_FIELD_NUMBER; hash = (53 * hash) + getDir().hashCode(); hash = (37 * hash) + INVERT_REGEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInvertRegex()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInvertRegex()); switch (revisionCase_) { case 3: hash = (37 * hash) + BRANCH_NAME_FIELD_NUMBER; @@ -686,118 +740,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.RepoSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.RepoSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.RepoSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.RepoSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.RepoSource 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.v2alpha.RepoSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.RepoSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.RepoSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.RepoSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.RepoSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.RepoSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.RepoSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.RepoSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.RepoSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2alpha.RepoSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Location of the source in a Google Cloud Source Repository.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.RepoSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.RepoSource) com.google.cloud.functions.v2alpha.RepoSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_RepoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.RepoSource.class, com.google.cloud.functions.v2alpha.RepoSource.Builder.class); + com.google.cloud.functions.v2alpha.RepoSource.class, + com.google.cloud.functions.v2alpha.RepoSource.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.RepoSource.newBuilder() @@ -805,16 +868,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -832,9 +894,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; } @java.lang.Override @@ -853,7 +915,8 @@ public com.google.cloud.functions.v2alpha.RepoSource build() { @java.lang.Override public com.google.cloud.functions.v2alpha.RepoSource buildPartial() { - com.google.cloud.functions.v2alpha.RepoSource result = new com.google.cloud.functions.v2alpha.RepoSource(this); + com.google.cloud.functions.v2alpha.RepoSource result = + new com.google.cloud.functions.v2alpha.RepoSource(this); if (revisionCase_ == 3) { result.revision_ = revision_; } @@ -876,38 +939,39 @@ public com.google.cloud.functions.v2alpha.RepoSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.RepoSource)other); + return mergeFrom((com.google.cloud.functions.v2alpha.RepoSource) other); } else { super.mergeFrom(other); return this; @@ -932,27 +996,31 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.RepoSource other) { setInvertRegex(other.getInvertRegex()); } switch (other.getRevisionCase()) { - case BRANCH_NAME: { - revisionCase_ = 3; - revision_ = other.revision_; - onChanged(); - break; - } - case TAG_NAME: { - revisionCase_ = 4; - revision_ = other.revision_; - onChanged(); - break; - } - case COMMIT_SHA: { - revisionCase_ = 5; - revision_ = other.revision_; - onChanged(); - break; - } - case REVISION_NOT_SET: { - break; - } + case BRANCH_NAME: + { + revisionCase_ = 3; + revision_ = other.revision_; + onChanged(); + break; + } + case TAG_NAME: + { + revisionCase_ = 4; + revision_ = other.revision_; + onChanged(); + break; + } + case COMMIT_SHA: + { + revisionCase_ = 5; + revision_ = other.revision_; + onChanged(); + break; + } + case REVISION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -982,12 +1050,12 @@ public Builder mergeFrom( } return this; } + private int revisionCase_ = 0; private java.lang.Object revision_; - public RevisionCase - getRevisionCase() { - return RevisionCase.forNumber( - revisionCase_); + + public RevisionCase getRevisionCase() { + return RevisionCase.forNumber(revisionCase_); } public Builder clearRevision() { @@ -997,8 +1065,9 @@ public Builder clearRevision() { return this; } - /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1006,6 +1075,7 @@ public Builder clearRevision() {
                                    * 
                              * * string branch_name = 3; + * * @return Whether the branchName field is set. */ @java.lang.Override @@ -1013,6 +1083,8 @@ public boolean hasBranchName() { return revisionCase_ == 3; } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1020,6 +1092,7 @@ public boolean hasBranchName() {
                                    * 
                              * * string branch_name = 3; + * * @return The branchName. */ @java.lang.Override @@ -1029,8 +1102,7 @@ public java.lang.String getBranchName() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 3) { revision_ = s; @@ -1041,6 +1113,8 @@ public java.lang.String getBranchName() { } } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1048,19 +1122,18 @@ public java.lang.String getBranchName() {
                                    * 
                              * * string branch_name = 3; + * * @return The bytes for branchName. */ @java.lang.Override - public com.google.protobuf.ByteString - getBranchNameBytes() { + public com.google.protobuf.ByteString getBranchNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 3) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 3) { revision_ = b; } @@ -1070,6 +1143,8 @@ public java.lang.String getBranchName() { } } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1077,20 +1152,22 @@ public java.lang.String getBranchName() {
                                    * 
                              * * string branch_name = 3; + * * @param value The branchName to set. * @return This builder for chaining. */ - public Builder setBranchName( - java.lang.String value) { + public Builder setBranchName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 3; + throw new NullPointerException(); + } + revisionCase_ = 3; revision_ = value; onChanged(); return this; } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1098,6 +1175,7 @@ public Builder setBranchName(
                                    * 
                              * * string branch_name = 3; + * * @return This builder for chaining. */ public Builder clearBranchName() { @@ -1109,6 +1187,8 @@ public Builder clearBranchName() { return this; } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1116,15 +1196,15 @@ public Builder clearBranchName() {
                                    * 
                              * * string branch_name = 3; + * * @param value The bytes for branchName to set. * @return This builder for chaining. */ - public Builder setBranchNameBytes( - com.google.protobuf.ByteString value) { + public Builder setBranchNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 3; revision_ = value; onChanged(); @@ -1132,6 +1212,8 @@ public Builder setBranchNameBytes( } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1139,6 +1221,7 @@ public Builder setBranchNameBytes(
                                    * 
                              * * string tag_name = 4; + * * @return Whether the tagName field is set. */ @java.lang.Override @@ -1146,6 +1229,8 @@ public boolean hasTagName() { return revisionCase_ == 4; } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1153,6 +1238,7 @@ public boolean hasTagName() {
                                    * 
                              * * string tag_name = 4; + * * @return The tagName. */ @java.lang.Override @@ -1162,8 +1248,7 @@ public java.lang.String getTagName() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 4) { revision_ = s; @@ -1174,6 +1259,8 @@ public java.lang.String getTagName() { } } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1181,19 +1268,18 @@ public java.lang.String getTagName() {
                                    * 
                              * * string tag_name = 4; + * * @return The bytes for tagName. */ @java.lang.Override - public com.google.protobuf.ByteString - getTagNameBytes() { + public com.google.protobuf.ByteString getTagNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 4) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 4) { revision_ = b; } @@ -1203,6 +1289,8 @@ public java.lang.String getTagName() { } } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1210,20 +1298,22 @@ public java.lang.String getTagName() {
                                    * 
                              * * string tag_name = 4; + * * @param value The tagName to set. * @return This builder for chaining. */ - public Builder setTagName( - java.lang.String value) { + public Builder setTagName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 4; + throw new NullPointerException(); + } + revisionCase_ = 4; revision_ = value; onChanged(); return this; } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1231,6 +1321,7 @@ public Builder setTagName(
                                    * 
                              * * string tag_name = 4; + * * @return This builder for chaining. */ public Builder clearTagName() { @@ -1242,6 +1333,8 @@ public Builder clearTagName() { return this; } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1249,15 +1342,15 @@ public Builder clearTagName() {
                                    * 
                              * * string tag_name = 4; + * * @param value The bytes for tagName to set. * @return This builder for chaining. */ - public Builder setTagNameBytes( - com.google.protobuf.ByteString value) { + public Builder setTagNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 4; revision_ = value; onChanged(); @@ -1265,11 +1358,14 @@ public Builder setTagNameBytes( } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @return Whether the commitSha field is set. */ @java.lang.Override @@ -1277,11 +1373,14 @@ public boolean hasCommitSha() { return revisionCase_ == 5; } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @return The commitSha. */ @java.lang.Override @@ -1291,8 +1390,7 @@ public java.lang.String getCommitSha() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 5) { revision_ = s; @@ -1303,24 +1401,25 @@ public java.lang.String getCommitSha() { } } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @return The bytes for commitSha. */ @java.lang.Override - public com.google.protobuf.ByteString - getCommitShaBytes() { + public com.google.protobuf.ByteString getCommitShaBytes() { java.lang.Object ref = ""; if (revisionCase_ == 5) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 5) { revision_ = b; } @@ -1330,30 +1429,35 @@ public java.lang.String getCommitSha() { } } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @param value The commitSha to set. * @return This builder for chaining. */ - public Builder setCommitSha( - java.lang.String value) { + public Builder setCommitSha(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 5; + throw new NullPointerException(); + } + revisionCase_ = 5; revision_ = value; onChanged(); return this; } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @return This builder for chaining. */ public Builder clearCommitSha() { @@ -1365,20 +1469,22 @@ public Builder clearCommitSha() { return this; } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @param value The bytes for commitSha to set. * @return This builder for chaining. */ - public Builder setCommitShaBytes( - com.google.protobuf.ByteString value) { + public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 5; revision_ = value; onChanged(); @@ -1387,19 +1493,21 @@ public Builder setCommitShaBytes( private java.lang.Object projectId_ = ""; /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1408,21 +1516,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1430,57 +1539,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1488,18 +1604,20 @@ public Builder setProjectIdBytes( private java.lang.Object repoName_ = ""; /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @return The repoName. */ public java.lang.String getRepoName() { java.lang.Object ref = repoName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); repoName_ = s; return s; @@ -1508,20 +1626,21 @@ public java.lang.String getRepoName() { } } /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @return The bytes for repoName. */ - public com.google.protobuf.ByteString - getRepoNameBytes() { + public com.google.protobuf.ByteString getRepoNameBytes() { java.lang.Object ref = repoName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); repoName_ = b; return b; } else { @@ -1529,54 +1648,61 @@ public java.lang.String getRepoName() { } } /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @param value The repoName to set. * @return This builder for chaining. */ - public Builder setRepoName( - java.lang.String value) { + public Builder setRepoName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + repoName_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @return This builder for chaining. */ public Builder clearRepoName() { - + repoName_ = getDefaultInstance().getRepoName(); onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @param value The bytes for repoName to set. * @return This builder for chaining. */ - public Builder setRepoNameBytes( - com.google.protobuf.ByteString value) { + public Builder setRepoNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repoName_ = value; onChanged(); return this; @@ -1584,6 +1710,8 @@ public Builder setRepoNameBytes( private java.lang.Object dir_ = ""; /** + * + * *
                                    * 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
                              @@ -1592,13 +1720,13 @@ public Builder setRepoNameBytes(
                                    * 
                              * * string dir = 6; + * * @return The dir. */ public java.lang.String getDir() { java.lang.Object ref = dir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dir_ = s; return s; @@ -1607,6 +1735,8 @@ 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
                              @@ -1615,15 +1745,14 @@ public java.lang.String getDir() {
                                    * 
                              * * string dir = 6; + * * @return The bytes for dir. */ - public com.google.protobuf.ByteString - getDirBytes() { + public com.google.protobuf.ByteString getDirBytes() { java.lang.Object ref = dir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dir_ = b; return b; } else { @@ -1631,6 +1760,8 @@ 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
                              @@ -1639,20 +1770,22 @@ public java.lang.String getDir() {
                                    * 
                              * * string dir = 6; + * * @param value The dir to set. * @return This builder for chaining. */ - public Builder setDir( - java.lang.String value) { + public Builder setDir(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dir_ = value; onChanged(); return this; } /** + * + * *
                                    * 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
                              @@ -1661,15 +1794,18 @@ public Builder setDir(
                                    * 
                              * * string dir = 6; + * * @return This builder for chaining. */ public Builder clearDir() { - + dir_ = getDefaultInstance().getDir(); onChanged(); return this; } /** + * + * *
                                    * 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
                              @@ -1678,29 +1814,32 @@ public Builder clearDir() {
                                    * 
                              * * string dir = 6; + * * @param value The bytes for dir to set. * @return This builder for chaining. */ - public Builder setDirBytes( - com.google.protobuf.ByteString value) { + public Builder setDirBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dir_ = value; onChanged(); return this; } - private boolean invertRegex_ ; + private boolean invertRegex_; /** + * + * *
                                    * Only trigger a build if the revision regex does NOT match the revision
                                    * regex.
                                    * 
                              * * bool invert_regex = 7; + * * @return The invertRegex. */ @java.lang.Override @@ -1708,39 +1847,45 @@ public boolean getInvertRegex() { return invertRegex_; } /** + * + * *
                                    * Only trigger a build if the revision regex does NOT match the revision
                                    * regex.
                                    * 
                              * * bool invert_regex = 7; + * * @param value The invertRegex to set. * @return This builder for chaining. */ public Builder setInvertRegex(boolean value) { - + invertRegex_ = value; onChanged(); return this; } /** + * + * *
                                    * Only trigger a build if the revision regex does NOT match the revision
                                    * regex.
                                    * 
                              * * bool invert_regex = 7; + * * @return This builder for chaining. */ public Builder clearInvertRegex() { - + invertRegex_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1750,12 +1895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.RepoSource) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.RepoSource) private static final com.google.cloud.functions.v2alpha.RepoSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.RepoSource(); } @@ -1764,16 +1909,16 @@ public static com.google.cloud.functions.v2alpha.RepoSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepoSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RepoSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepoSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RepoSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1788,6 +1933,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.RepoSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java similarity index 79% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java index 9916a4a1..3c91711f 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface RepoSourceOrBuilder extends +public interface RepoSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.RepoSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -15,10 +33,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string branch_name = 3; + * * @return Whether the branchName field is set. */ boolean hasBranchName(); /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -26,10 +47,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string branch_name = 3; + * * @return The branchName. */ java.lang.String getBranchName(); /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -37,12 +61,14 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string branch_name = 3; + * * @return The bytes for branchName. */ - com.google.protobuf.ByteString - getBranchNameBytes(); + com.google.protobuf.ByteString getBranchNameBytes(); /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -50,10 +76,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string tag_name = 4; + * * @return Whether the tagName field is set. */ boolean hasTagName(); /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -61,10 +90,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string tag_name = 4; + * * @return The tagName. */ java.lang.String getTagName(); /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -72,83 +104,103 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string tag_name = 4; + * * @return The bytes for tagName. */ - com.google.protobuf.ByteString - getTagNameBytes(); + com.google.protobuf.ByteString getTagNameBytes(); /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return Whether the commitSha field is set. */ boolean hasCommitSha(); /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return The commitSha. */ java.lang.String getCommitSha(); /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return The bytes for commitSha. */ - com.google.protobuf.ByteString - getCommitShaBytes(); + com.google.protobuf.ByteString getCommitShaBytes(); /** + * + * *
                                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                                  * project ID requesting the build is assumed.
                                  * 
                              * * string project_id = 1; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
                                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                                  * project ID requesting the build is assumed.
                                  * 
                              * * string project_id = 1; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
                                  * Name of the Cloud Source Repository.
                                  * 
                              * * string repo_name = 2; + * * @return The repoName. */ java.lang.String getRepoName(); /** + * + * *
                                  * Name of the Cloud Source Repository.
                                  * 
                              * * string repo_name = 2; + * * @return The bytes for repoName. */ - com.google.protobuf.ByteString - getRepoNameBytes(); + 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
                              @@ -157,10 +209,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string dir = 6; + * * @return The dir. */ 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
                              @@ -169,18 +224,21 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string dir = 6; + * * @return The bytes for dir. */ - com.google.protobuf.ByteString - getDirBytes(); + com.google.protobuf.ByteString getDirBytes(); /** + * + * *
                                  * Only trigger a build if the revision regex does NOT match the revision
                                  * regex.
                                  * 
                              * * bool invert_regex = 7; + * * @return The invertRegex. */ boolean getInvertRegex(); diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java similarity index 73% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java index 8b88f779..be76c360 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java @@ -1,9 +1,26 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Configuration for a secret environment variable. It has the information
                                * necessary to fetch the secret value from secret manager and expose it as an
                              @@ -12,15 +29,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2alpha.SecretEnvVar}
                                */
                              -public final class SecretEnvVar extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class SecretEnvVar extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.SecretEnvVar)
                                   SecretEnvVarOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use SecretEnvVar.newBuilder() to construct.
                                 private SecretEnvVar(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private SecretEnvVar() {
                                   key_ = "";
                                   projectId_ = "";
                              @@ -30,16 +48,15 @@ private SecretEnvVar() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new SecretEnvVar();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private SecretEnvVar(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -58,37 +75,41 @@ private SecretEnvVar(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            key_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              key_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            projectId_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              projectId_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            secret_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              secret_ = s;
                              +              break;
                              +            }
                              +          case 34:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            version_ = s;
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              version_ = s;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -96,34 +117,39 @@ private SecretEnvVar(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     this.unknownFields = unknownFields.build();
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2alpha.SecretEnvVar.class, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder.class);
                              +            com.google.cloud.functions.v2alpha.SecretEnvVar.class,
                              +            com.google.cloud.functions.v2alpha.SecretEnvVar.Builder.class);
                                 }
                               
                                 public static final int KEY_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object key_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The key. */ @java.lang.Override @@ -132,29 +158,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -165,6 +191,8 @@ public java.lang.String getKey() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** + * + * *
                                  * Project identifier (preferably project number but can also be the
                                  * project ID) of the project that contains the secret. If not set, it is
                              @@ -172,6 +200,7 @@ public java.lang.String getKey() {
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -180,14 +209,15 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
                                  * Project identifier (preferably project number but can also be the
                                  * project ID) of the project that contains the secret. If not set, it is
                              @@ -195,16 +225,15 @@ public java.lang.String getProjectId() {
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -215,11 +244,14 @@ public java.lang.String getProjectId() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ @java.lang.Override @@ -228,29 +260,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -261,6 +293,8 @@ public java.lang.String getSecret() { public static final int VERSION_FIELD_NUMBER = 4; private volatile java.lang.Object version_; /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -269,6 +303,7 @@ public java.lang.String getSecret() {
                                  * 
                              * * string version = 4; + * * @return The version. */ @java.lang.Override @@ -277,14 +312,15 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -293,16 +329,15 @@ public java.lang.String getVersion() {
                                  * 
                              * * string version = 4; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -311,6 +346,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,8 +358,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -365,21 +400,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.SecretEnvVar)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.SecretEnvVar other = (com.google.cloud.functions.v2alpha.SecretEnvVar) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getSecret() - .equals(other.getSecret())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; + com.google.cloud.functions.v2alpha.SecretEnvVar other = + (com.google.cloud.functions.v2alpha.SecretEnvVar) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getSecret().equals(other.getSecret())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -404,97 +436,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.SecretEnvVar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.SecretEnvVar 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.v2alpha.SecretEnvVar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.SecretEnvVar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.SecretEnvVar parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.SecretEnvVar parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.SecretEnvVar parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2alpha.SecretEnvVar prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Configuration for a secret environment variable. It has the information
                                  * necessary to fetch the secret value from secret manager and expose it as an
                              @@ -503,21 +542,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2alpha.SecretEnvVar}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.SecretEnvVar)
                                     com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_SecretEnvVar_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2alpha.SecretEnvVar.class, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder.class);
                              +              com.google.cloud.functions.v2alpha.SecretEnvVar.class,
                              +              com.google.cloud.functions.v2alpha.SecretEnvVar.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2alpha.SecretEnvVar.newBuilder()
                              @@ -525,16 +566,15 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              -      }
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -550,9 +590,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -571,7 +611,8 @@ public com.google.cloud.functions.v2alpha.SecretEnvVar build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2alpha.SecretEnvVar buildPartial() {
                              -      com.google.cloud.functions.v2alpha.SecretEnvVar result = new com.google.cloud.functions.v2alpha.SecretEnvVar(this);
                              +      com.google.cloud.functions.v2alpha.SecretEnvVar result =
                              +          new com.google.cloud.functions.v2alpha.SecretEnvVar(this);
                                     result.key_ = key_;
                                     result.projectId_ = projectId_;
                                     result.secret_ = secret_;
                              @@ -584,38 +625,39 @@ public com.google.cloud.functions.v2alpha.SecretEnvVar buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2alpha.SecretEnvVar)other);
                              +        return mergeFrom((com.google.cloud.functions.v2alpha.SecretEnvVar) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -623,7 +665,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                                   }
                               
                                   public Builder mergeFrom(com.google.cloud.functions.v2alpha.SecretEnvVar other) {
                              -      if (other == com.google.cloud.functions.v2alpha.SecretEnvVar.getDefaultInstance()) return this;
                              +      if (other == com.google.cloud.functions.v2alpha.SecretEnvVar.getDefaultInstance())
                              +        return this;
                                     if (!other.getKey().isEmpty()) {
                                       key_ = other.key_;
                                       onChanged();
                              @@ -671,18 +714,20 @@ public Builder mergeFrom(
                               
                                   private java.lang.Object key_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -691,20 +736,21 @@ public java.lang.String getKey() { } } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -712,54 +758,61 @@ public java.lang.String getKey() { } } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -767,6 +820,8 @@ public Builder setKeyBytes( private java.lang.Object projectId_ = ""; /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -774,13 +829,13 @@ public Builder setKeyBytes(
                                    * 
                              * * string project_id = 2; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -789,6 +844,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -796,15 +853,14 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -812,6 +868,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -819,20 +877,22 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -840,15 +900,18 @@ public Builder setProjectId(
                                    * 
                              * * string project_id = 2; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -856,16 +919,16 @@ public Builder clearProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -873,18 +936,20 @@ public Builder setProjectIdBytes( private java.lang.Object secret_ = ""; /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -893,20 +958,21 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -914,54 +980,61 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret( - java.lang.String value) { + public Builder setSecret(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes( - com.google.protobuf.ByteString value) { + public Builder setSecretBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; @@ -969,6 +1042,8 @@ public Builder setSecretBytes( private java.lang.Object version_ = ""; /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -977,13 +1052,13 @@ public Builder setSecretBytes(
                                    * 
                              * * string version = 4; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -992,6 +1067,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1000,15 +1077,14 @@ public java.lang.String getVersion() {
                                    * 
                              * * string version = 4; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -1016,6 +1092,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1024,20 +1102,22 @@ public java.lang.String getVersion() {
                                    * 
                              * * string version = 4; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1046,15 +1126,18 @@ public Builder setVersion(
                                    * 
                              * * string version = 4; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1063,23 +1146,23 @@ public Builder clearVersion() {
                                    * 
                              * * string version = 4; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1089,12 +1172,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.SecretEnvVar) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.SecretEnvVar) private static final com.google.cloud.functions.v2alpha.SecretEnvVar DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.SecretEnvVar(); } @@ -1103,16 +1186,16 @@ public static com.google.cloud.functions.v2alpha.SecretEnvVar getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretEnvVar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretEnvVar(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretEnvVar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretEnvVar(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1127,6 +1210,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.SecretEnvVar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java similarity index 71% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java index 999c04c4..4464f7be 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVarOrBuilder.java @@ -1,33 +1,56 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface SecretEnvVarOrBuilder extends +public interface SecretEnvVarOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.SecretEnvVar) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
                                  * Project identifier (preferably project number but can also be the
                                  * project ID) of the project that contains the secret. If not set, it is
                              @@ -35,10 +58,13 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
                                  * Project identifier (preferably project number but can also be the
                                  * project ID) of the project that contains the secret. If not set, it is
                              @@ -46,32 +72,39 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ java.lang.String getSecret(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - com.google.protobuf.ByteString - getSecretBytes(); + com.google.protobuf.ByteString getSecretBytes(); /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -80,10 +113,13 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string version = 4; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -92,8 +128,8 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string version = 4; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java similarity index 75% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java index 4767a57c..46554421 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java @@ -1,9 +1,26 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Configuration for a secret volume. It has the information necessary to fetch
                                * the secret value from secret manager and make it available as files mounted
                              @@ -12,15 +29,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2alpha.SecretVolume}
                                */
                              -public final class SecretVolume extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class SecretVolume extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.SecretVolume)
                                   SecretVolumeOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use SecretVolume.newBuilder() to construct.
                                 private SecretVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private SecretVolume() {
                                   mountPath_ = "";
                                   projectId_ = "";
                              @@ -30,16 +48,15 @@ private SecretVolume() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new SecretVolume();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private SecretVolume(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -59,40 +76,48 @@ private SecretVolume(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            mountPath_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              mountPath_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            projectId_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              projectId_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            secret_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              versions_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000001;
                              +              secret_ = s;
                              +              break;
                                           }
                              -            versions_.add(
                              -                input.readMessage(com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +          case 34:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                versions_ =
                              +                    new java.util.ArrayList<
                              +                        com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion>();
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              versions_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.parser(),
                              +                      extensionRegistry));
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -100,8 +125,7 @@ private SecretVolume(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000001) != 0)) {
                                       versions_ = java.util.Collections.unmodifiableList(versions_);
                              @@ -110,24 +134,30 @@ private SecretVolume(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2alpha.SecretVolume.class, com.google.cloud.functions.v2alpha.SecretVolume.Builder.class);
                              +            com.google.cloud.functions.v2alpha.SecretVolume.class,
                              +            com.google.cloud.functions.v2alpha.SecretVolume.Builder.class);
                                 }
                               
                              -  public interface SecretVersionOrBuilder extends
                              +  public interface SecretVersionOrBuilder
                              +      extends
                                     // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.SecretVolume.SecretVersion)
                                     com.google.protobuf.MessageOrBuilder {
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferable to use `latest` version with secret volumes as secret value
                              @@ -135,10 +165,13 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferable to use `latest` version with secret volumes as secret value
                              @@ -146,12 +179,14 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -160,10 +195,13 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string path = 2; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -172,27 +210,30 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string path = 2; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); } /** + * + * *
                                  * Configuration for a single version.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.SecretVolume.SecretVersion} */ - public static final class SecretVersion extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SecretVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.SecretVolume.SecretVersion) SecretVersionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SecretVersion.newBuilder() to construct. private SecretVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SecretVersion() { version_ = ""; path_ = ""; @@ -200,16 +241,15 @@ private SecretVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecretVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SecretVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -228,25 +268,27 @@ private SecretVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + version_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - path_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + path_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -254,29 +296,33 @@ private SecretVersion( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; + + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.class, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.class, + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferable to use `latest` version with secret volumes as secret value
                              @@ -284,6 +330,7 @@ private SecretVersion(
                                    * 
                              * * string version = 1; + * * @return The version. */ @java.lang.Override @@ -292,14 +339,15 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferable to use `latest` version with secret volumes as secret value
                              @@ -307,16 +355,15 @@ public java.lang.String getVersion() {
                                    * 
                              * * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -327,6 +374,8 @@ public java.lang.String getVersion() { public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -335,6 +384,7 @@ public java.lang.String getVersion() {
                                    * 
                              * * string path = 2; + * * @return The path. */ @java.lang.Override @@ -343,14 +393,15 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -359,16 +410,15 @@ public java.lang.String getPath() {
                                    * 
                              * * string path = 2; + * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -377,6 +427,7 @@ public java.lang.String getPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,8 +439,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } @@ -419,17 +469,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion other = (com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion) obj; + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion other = + (com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion) obj; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getPath() - .equals(other.getPath())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getPath().equals(other.getPath())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -451,87 +500,94 @@ public int hashCode() { } public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.SecretVolume.SecretVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion 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.v2alpha.SecretVolume.SecretVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -541,27 +597,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                                    * Configuration for a single version.
                                    * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.SecretVolume.SecretVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.SecretVolume.SecretVersion) com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder { - 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; + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.class, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.class, + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.newBuilder() @@ -569,16 +630,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -590,13 +650,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion + getDefaultInstanceForType() { return com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance(); } @@ -611,7 +672,8 @@ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion build() { @java.lang.Override public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion buildPartial() { - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion result = new com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion(this); + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion result = + new com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion(this); result.version_ = version_; result.path_ = path_; onBuilt(); @@ -622,46 +684,52 @@ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion)other); + return mergeFrom((com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion other) { - if (other == com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion other) { + if (other + == com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance()) + return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -689,7 +757,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -701,6 +771,8 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -708,13 +780,13 @@ public Builder mergeFrom(
                                      * 
                              * * string version = 1; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -723,6 +795,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -730,15 +804,14 @@ public java.lang.String getVersion() {
                                      * 
                              * * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -746,6 +819,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -753,20 +828,22 @@ public java.lang.String getVersion() {
                                      * 
                              * * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -774,15 +851,18 @@ public Builder setVersion(
                                      * 
                              * * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -790,16 +870,16 @@ public Builder clearVersion() {
                                      * 
                              * * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -807,6 +887,8 @@ public Builder setVersionBytes( private java.lang.Object path_ = ""; /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -815,13 +897,13 @@ public Builder setVersionBytes(
                                      * 
                              * * string path = 2; + * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -830,6 +912,8 @@ public java.lang.String getPath() { } } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -838,15 +922,14 @@ public java.lang.String getPath() {
                                      * 
                              * * string path = 2; + * * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -854,6 +937,8 @@ public java.lang.String getPath() { } } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -862,20 +947,22 @@ public java.lang.String getPath() {
                                      * 
                              * * string path = 2; + * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath( - java.lang.String value) { + public Builder setPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -884,15 +971,18 @@ public Builder setPath(
                                      * 
                              * * string path = 2; + * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -901,20 +991,21 @@ public Builder clearPath() {
                                      * 
                              * * string path = 2; + * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { + public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -927,30 +1018,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.SecretVolume.SecretVersion) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.SecretVolume.SecretVersion) - private static final com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion DEFAULT_INSTANCE; + private static final com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion(); } - public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getDefaultInstance() { + public static com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,15 +1055,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getDefaultInstanceForType() { + public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int MOUNT_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object mountPath_; /** + * + * *
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -980,6 +1075,7 @@ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getDefaultI
                                  * 
                              * * string mount_path = 1; + * * @return The mountPath. */ @java.lang.Override @@ -988,14 +1084,15 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** + * + * *
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1005,16 +1102,15 @@ public java.lang.String getMountPath() {
                                  * 
                              * * string mount_path = 1; + * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1025,6 +1121,8 @@ public java.lang.String getMountPath() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** + * + * *
                                  * Project identifier (preferably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it is
                              @@ -1032,6 +1130,7 @@ public java.lang.String getMountPath() {
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -1040,14 +1139,15 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
                                  * Project identifier (preferably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it is
                              @@ -1055,16 +1155,15 @@ public java.lang.String getProjectId() {
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1075,11 +1174,14 @@ public java.lang.String getProjectId() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ @java.lang.Override @@ -1088,29 +1190,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -1121,6 +1223,8 @@ public java.lang.String getSecret() { public static final int VERSIONS_FIELD_NUMBER = 4; private java.util.List versions_; /** + * + * *
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1130,10 +1234,13 @@ public java.lang.String getSecret() {
                                  * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4;
                                  */
                                 @java.lang.Override
                              -  public java.util.List getVersionsList() {
                              +  public java.util.List
                              +      getVersionsList() {
                                   return versions_;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1143,11 +1250,14 @@ public java.util.Listrepeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4;
                                  */
                                 @java.lang.Override
                              -  public java.util.List 
                              +  public java.util.List<
                              +          ? extends com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder>
                                     getVersionsOrBuilderList() {
                                   return versions_;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1161,6 +1271,8 @@ public int getVersionsCount() {
                                   return versions_.size();
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1174,6 +1286,8 @@ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getVersions
                                   return versions_.get(index);
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1183,12 +1297,13 @@ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getVersions
                                  * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4;
                                  */
                                 @java.lang.Override
                              -  public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(
                              -      int index) {
                              +  public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder
                              +      getVersionsOrBuilder(int index) {
                                   return versions_.get(index);
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -1200,8 +1315,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) {
                                     com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_);
                                   }
                              @@ -1233,8 +1347,7 @@ public int getSerializedSize() {
                                     size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secret_);
                                   }
                                   for (int i = 0; i < versions_.size(); i++) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(4, versions_.get(i));
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, versions_.get(i));
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -1244,21 +1357,18 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2alpha.SecretVolume)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v2alpha.SecretVolume other = (com.google.cloud.functions.v2alpha.SecretVolume) obj;
                              +    com.google.cloud.functions.v2alpha.SecretVolume other =
                              +        (com.google.cloud.functions.v2alpha.SecretVolume) obj;
                               
                              -    if (!getMountPath()
                              -        .equals(other.getMountPath())) return false;
                              -    if (!getProjectId()
                              -        .equals(other.getProjectId())) return false;
                              -    if (!getSecret()
                              -        .equals(other.getSecret())) return false;
                              -    if (!getVersionsList()
                              -        .equals(other.getVersionsList())) return false;
                              +    if (!getMountPath().equals(other.getMountPath())) return false;
                              +    if (!getProjectId().equals(other.getProjectId())) return false;
                              +    if (!getSecret().equals(other.getSecret())) return false;
                              +    if (!getVersionsList().equals(other.getVersionsList())) return false;
                                   if (!unknownFields.equals(other.unknownFields)) return false;
                                   return true;
                                 }
                              @@ -1285,97 +1395,104 @@ public int hashCode() {
                                   return hash;
                                 }
                               
                              -  public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(
                              -      java.nio.ByteBuffer data)
                              +  public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(java.nio.ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.v2alpha.SecretVolume parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SecretVolume 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.v2alpha.SecretVolume parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(java.io.InputStream input)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2alpha.SecretVolume parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2alpha.SecretVolume parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SecretVolume parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SecretVolume parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              +
                                 public static Builder newBuilder(com.google.cloud.functions.v2alpha.SecretVolume prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Configuration for a secret volume. It has the information necessary to fetch
                                  * the secret value from secret manager and make it available as files mounted
                              @@ -1384,21 +1501,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2alpha.SecretVolume}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.SecretVolume)
                                     com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_SecretVolume_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2alpha.SecretVolume.class, com.google.cloud.functions.v2alpha.SecretVolume.Builder.class);
                              +              com.google.cloud.functions.v2alpha.SecretVolume.class,
                              +              com.google.cloud.functions.v2alpha.SecretVolume.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2alpha.SecretVolume.newBuilder()
                              @@ -1406,17 +1525,17 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getVersionsFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -1436,9 +1555,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -1457,7 +1576,8 @@ public com.google.cloud.functions.v2alpha.SecretVolume build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2alpha.SecretVolume buildPartial() {
                              -      com.google.cloud.functions.v2alpha.SecretVolume result = new com.google.cloud.functions.v2alpha.SecretVolume(this);
                              +      com.google.cloud.functions.v2alpha.SecretVolume result =
                              +          new com.google.cloud.functions.v2alpha.SecretVolume(this);
                                     int from_bitField0_ = bitField0_;
                                     result.mountPath_ = mountPath_;
                                     result.projectId_ = projectId_;
                              @@ -1479,38 +1599,39 @@ public com.google.cloud.functions.v2alpha.SecretVolume buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2alpha.SecretVolume)other);
                              +        return mergeFrom((com.google.cloud.functions.v2alpha.SecretVolume) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1518,7 +1639,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                                   }
                               
                                   public Builder mergeFrom(com.google.cloud.functions.v2alpha.SecretVolume other) {
                              -      if (other == com.google.cloud.functions.v2alpha.SecretVolume.getDefaultInstance()) return this;
                              +      if (other == com.google.cloud.functions.v2alpha.SecretVolume.getDefaultInstance())
                              +        return this;
                                     if (!other.getMountPath().isEmpty()) {
                                       mountPath_ = other.mountPath_;
                                       onChanged();
                              @@ -1549,9 +1671,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.SecretVolume other)
                                           versionsBuilder_ = null;
                                           versions_ = other.versions_;
                                           bitField0_ = (bitField0_ & ~0x00000001);
                              -            versionsBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getVersionsFieldBuilder() : null;
                              +            versionsBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getVersionsFieldBuilder()
                              +                    : null;
                                         } else {
                                           versionsBuilder_.addAllMessages(other.versions_);
                                         }
                              @@ -1585,10 +1708,13 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object mountPath_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1598,13 +1724,13 @@ public Builder mergeFrom(
                                    * 
                              * * string mount_path = 1; + * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -1613,6 +1739,8 @@ public java.lang.String getMountPath() { } } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1622,15 +1750,14 @@ public java.lang.String getMountPath() {
                                    * 
                              * * string mount_path = 1; + * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1638,6 +1765,8 @@ public java.lang.String getMountPath() { } } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1647,20 +1776,22 @@ public java.lang.String getMountPath() {
                                    * 
                              * * string mount_path = 1; + * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath( - java.lang.String value) { + public Builder setMountPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mountPath_ = value; onChanged(); return this; } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1670,15 +1801,18 @@ public Builder setMountPath(
                                    * 
                              * * string mount_path = 1; + * * @return This builder for chaining. */ public Builder clearMountPath() { - + mountPath_ = getDefaultInstance().getMountPath(); onChanged(); return this; } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1688,16 +1822,16 @@ public Builder clearMountPath() {
                                    * 
                              * * string mount_path = 1; + * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes( - com.google.protobuf.ByteString value) { + public Builder setMountPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mountPath_ = value; onChanged(); return this; @@ -1705,6 +1839,8 @@ public Builder setMountPathBytes( private java.lang.Object projectId_ = ""; /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1712,13 +1848,13 @@ public Builder setMountPathBytes(
                                    * 
                              * * string project_id = 2; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1727,6 +1863,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1734,15 +1872,14 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1750,6 +1887,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1757,20 +1896,22 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1778,15 +1919,18 @@ public Builder setProjectId(
                                    * 
                              * * string project_id = 2; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1794,16 +1938,16 @@ public Builder clearProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1811,18 +1955,20 @@ public Builder setProjectIdBytes( private java.lang.Object secret_ = ""; /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -1831,20 +1977,21 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -1852,81 +1999,98 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret( - java.lang.String value) { + public Builder setSecret(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes( - com.google.protobuf.ByteString value) { + public Builder setSecretBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; } - private java.util.List versions_ = - java.util.Collections.emptyList(); + private java.util.List + versions_ = java.util.Collections.emptyList(); + private void ensureVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - versions_ = new java.util.ArrayList(versions_); + versions_ = + new java.util.ArrayList( + versions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder> versionsBuilder_; + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion, + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder, + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder> + versionsBuilder_; /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ - public java.util.List getVersionsList() { + public java.util.List + getVersionsList() { if (versionsBuilder_ == null) { return java.util.Collections.unmodifiableList(versions_); } else { @@ -1934,13 +2098,16 @@ public java.util.List * List of secret versions to mount for this secret. If empty, the `latest` * version of the secret will be made available in a file named after the * secret under the mount point. *
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ public int getVersionsCount() { if (versionsBuilder_ == null) { @@ -1950,13 +2117,16 @@ public int getVersionsCount() { } } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getVersions(int index) { if (versionsBuilder_ == null) { @@ -1966,13 +2136,16 @@ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getVersions } } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ public Builder setVersions( int index, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion value) { @@ -1989,16 +2162,20 @@ public Builder setVersions( return this; } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ public Builder setVersions( - int index, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder builderForValue) { + int index, + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder builderForValue) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); versions_.set(index, builderForValue.build()); @@ -2009,15 +2186,19 @@ public Builder setVersions( return this; } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ - public Builder addVersions(com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion value) { + public Builder addVersions( + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion value) { if (versionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2031,13 +2212,16 @@ public Builder addVersions(com.google.cloud.functions.v2alpha.SecretVolume.Secre return this; } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ public Builder addVersions( int index, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion value) { @@ -2054,13 +2238,16 @@ public Builder addVersions( return this; } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ public Builder addVersions( com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder builderForValue) { @@ -2074,16 +2261,20 @@ public Builder addVersions( return this; } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ public Builder addVersions( - int index, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder builderForValue) { + int index, + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder builderForValue) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); versions_.add(index, builderForValue.build()); @@ -2094,20 +2285,23 @@ public Builder addVersions( return this; } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ public Builder addAllVersions( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, versions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versions_); onChanged(); } else { versionsBuilder_.addAllMessages(values); @@ -2115,13 +2309,16 @@ public Builder addAllVersions( return this; } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ public Builder clearVersions() { if (versionsBuilder_ == null) { @@ -2134,13 +2331,16 @@ public Builder clearVersions() { return this; } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ public Builder removeVersions(int index) { if (versionsBuilder_ == null) { @@ -2153,45 +2353,56 @@ public Builder removeVersions(int index) { return this; } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder getVersionsBuilder( int index) { return getVersionsFieldBuilder().getBuilder(index); } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ - public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder( - int index) { + public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder + getVersionsOrBuilder(int index) { if (versionsBuilder_ == null) { - return versions_.get(index); } else { + return versions_.get(index); + } else { return versionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ - public java.util.List - getVersionsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder> + getVersionsOrBuilderList() { if (versionsBuilder_ != null) { return versionsBuilder_.getMessageOrBuilderList(); } else { @@ -2199,62 +2410,78 @@ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder ge } } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ - public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder addVersionsBuilder() { - return getVersionsFieldBuilder().addBuilder( - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder + addVersionsBuilder() { + return getVersionsFieldBuilder() + .addBuilder( + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance()); } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ public com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder addVersionsBuilder( int index) { - return getVersionsFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance()); + return getVersionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.getDefaultInstance()); } /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                                    * secret under the mount point.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4; + * */ - public java.util.List - getVersionsBuilderList() { + public java.util.List + getVersionsBuilderList() { return getVersionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder> + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion, + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder, + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder> getVersionsFieldBuilder() { if (versionsBuilder_ == null) { - versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder>( - versions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + versionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion, + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion.Builder, + com.google.cloud.functions.v2alpha.SecretVolume.SecretVersionOrBuilder>( + versions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); versions_ = null; } return versionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2264,12 +2491,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.SecretVolume) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.SecretVolume) private static final com.google.cloud.functions.v2alpha.SecretVolume DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.SecretVolume(); } @@ -2278,16 +2505,16 @@ public static com.google.cloud.functions.v2alpha.SecretVolume getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretVolume parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretVolume(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVolume parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVolume(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2302,6 +2529,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.SecretVolume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java similarity index 81% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java index f56e8e2a..c07d985b 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolumeOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface SecretVolumeOrBuilder extends +public interface SecretVolumeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.SecretVolume) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -17,10 +35,13 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string mount_path = 1; + * * @return The mountPath. */ java.lang.String getMountPath(); /** + * + * *
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -30,12 +51,14 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string mount_path = 1; + * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString - getMountPathBytes(); + com.google.protobuf.ByteString getMountPathBytes(); /** + * + * *
                                  * Project identifier (preferably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it is
                              @@ -43,10 +66,13 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
                                  * Project identifier (preferably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it is
                              @@ -54,32 +80,39 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ java.lang.String getSecret(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - com.google.protobuf.ByteString - getSecretBytes(); + com.google.protobuf.ByteString getSecretBytes(); /** + * + * *
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -88,9 +121,10 @@ public interface SecretVolumeOrBuilder extends
                                  *
                                  * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4;
                                  */
                              -  java.util.List 
                              -      getVersionsList();
                              +  java.util.List getVersionsList();
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -101,6 +135,8 @@ public interface SecretVolumeOrBuilder extends
                                  */
                                 com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion getVersions(int index);
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -111,6 +147,8 @@ public interface SecretVolumeOrBuilder extends
                                  */
                                 int getVersionsCount();
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -119,9 +157,11 @@ public interface SecretVolumeOrBuilder extends
                                  *
                                  * repeated .google.cloud.functions.v2alpha.SecretVolume.SecretVersion versions = 4;
                                  */
                              -  java.util.List 
                              +  java.util.List
                                     getVersionsOrBuilderList();
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java
                              similarity index 73%
                              rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java
                              rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java
                              index 59abaf08..e3cb0b63 100644
                              --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java
                              +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java
                              @@ -1,9 +1,26 @@
                              +/*
                              + * 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/v2alpha/functions.proto
                               
                               package com.google.cloud.functions.v2alpha;
                               
                               /**
                              + *
                              + *
                                * 
                                * Describes the Service being deployed.
                                * Currently Supported : Cloud Run (fully managed).
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2alpha.ServiceConfig}
                                */
                              -public final class ServiceConfig extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class ServiceConfig extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.ServiceConfig)
                                   ServiceConfigOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use ServiceConfig.newBuilder() to construct.
                                 private ServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private ServiceConfig() {
                                   service_ = "";
                                   availableMemory_ = "";
                              @@ -35,16 +53,15 @@ private ServiceConfig() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new ServiceConfig();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private ServiceConfig(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -64,112 +81,131 @@ private ServiceConfig(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            service_ = s;
                              -            break;
                              -          }
                              -          case 16: {
                              -
                              -            timeoutSeconds_ = input.readInt32();
                              -            break;
                              -          }
                              -          case 34: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              environmentVariables_ = com.google.protobuf.MapField.newMapField(
                              -                  EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              -              mutable_bitField0_ |= 0x00000001;
                              +              service_ = s;
                              +              break;
                                           }
                              -            com.google.protobuf.MapEntry
                              -            environmentVariables__ = input.readMessage(
                              -                EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              -            environmentVariables_.getMutableMap().put(
                              -                environmentVariables__.getKey(), environmentVariables__.getValue());
                              -            break;
                              -          }
                              -          case 40: {
                              -
                              -            maxInstanceCount_ = input.readInt32();
                              -            break;
                              -          }
                              -          case 50: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            vpcConnector_ = s;
                              -            break;
                              -          }
                              -          case 56: {
                              -            int rawValue = input.readEnum();
                              -
                              -            vpcConnectorEgressSettings_ = rawValue;
                              -            break;
                              -          }
                              -          case 64: {
                              -            int rawValue = input.readEnum();
                              +          case 16:
                              +            {
                              +              timeoutSeconds_ = input.readInt32();
                              +              break;
                              +            }
                              +          case 34:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                environmentVariables_ =
                              +                    com.google.protobuf.MapField.newMapField(
                              +                        EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              com.google.protobuf.MapEntry
                              +                  environmentVariables__ =
                              +                      input.readMessage(
                              +                          EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
                              +                          extensionRegistry);
                              +              environmentVariables_
                              +                  .getMutableMap()
                              +                  .put(environmentVariables__.getKey(), environmentVariables__.getValue());
                              +              break;
                              +            }
                              +          case 40:
                              +            {
                              +              maxInstanceCount_ = input.readInt32();
                              +              break;
                              +            }
                              +          case 50:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            ingressSettings_ = rawValue;
                              -            break;
                              -          }
                              -          case 74: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              vpcConnector_ = s;
                              +              break;
                              +            }
                              +          case 56:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            uri_ = s;
                              -            break;
                              -          }
                              -          case 82: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              vpcConnectorEgressSettings_ = rawValue;
                              +              break;
                              +            }
                              +          case 64:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            serviceAccountEmail_ = s;
                              -            break;
                              -          }
                              -          case 96: {
                              +              ingressSettings_ = rawValue;
                              +              break;
                              +            }
                              +          case 74:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            minInstanceCount_ = input.readInt32();
                              -            break;
                              -          }
                              -          case 106: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              uri_ = s;
                              +              break;
                              +            }
                              +          case 82:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            availableMemory_ = s;
                              -            break;
                              -          }
                              -          case 128: {
                              +              serviceAccountEmail_ = s;
                              +              break;
                              +            }
                              +          case 96:
                              +            {
                              +              minInstanceCount_ = input.readInt32();
                              +              break;
                              +            }
                              +          case 106:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            allTrafficOnLatestRevision_ = input.readBool();
                              -            break;
                              -          }
                              -          case 138: {
                              -            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              -              secretEnvironmentVariables_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000002;
                              +              availableMemory_ = s;
                              +              break;
                                           }
                              -            secretEnvironmentVariables_.add(
                              -                input.readMessage(com.google.cloud.functions.v2alpha.SecretEnvVar.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          case 146: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 128:
                              +            {
                              +              allTrafficOnLatestRevision_ = input.readBool();
                              +              break;
                              +            }
                              +          case 138:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              +                secretEnvironmentVariables_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000002;
                              +              }
                              +              secretEnvironmentVariables_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2alpha.SecretEnvVar.parser(), extensionRegistry));
                              +              break;
                              +            }
                              +          case 146:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            revision_ = s;
                              -            break;
                              -          }
                              -          case 154: {
                              -            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                              -              secretVolumes_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000004;
                              +              revision_ = s;
                              +              break;
                                           }
                              -            secretVolumes_.add(
                              -                input.readMessage(com.google.cloud.functions.v2alpha.SecretVolume.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +          case 154:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                              +                secretVolumes_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000004;
                              +              }
                              +              secretVolumes_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2alpha.SecretVolume.parser(), extensionRegistry));
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -177,11 +213,11 @@ private ServiceConfig(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000002) != 0)) {
                              -        secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                              +        secretEnvironmentVariables_ =
                              +            java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                                     }
                                     if (((mutable_bitField0_ & 0x00000004) != 0)) {
                                       secretVolumes_ = java.util.Collections.unmodifiableList(secretVolumes_);
                              @@ -190,32 +226,36 @@ private ServiceConfig(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor;
                                 }
                               
                                 @SuppressWarnings({"rawtypes"})
                                 @java.lang.Override
                              -  protected com.google.protobuf.MapField internalGetMapField(
                              -      int number) {
                              +  protected com.google.protobuf.MapField internalGetMapField(int number) {
                                   switch (number) {
                                     case 4:
                                       return internalGetEnvironmentVariables();
                                     default:
                              -        throw new RuntimeException(
                              -            "Invalid map field number: " + number);
                              +        throw new RuntimeException("Invalid map field number: " + number);
                                   }
                                 }
                              +
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2alpha.ServiceConfig.class, com.google.cloud.functions.v2alpha.ServiceConfig.Builder.class);
                              +            com.google.cloud.functions.v2alpha.ServiceConfig.class,
                              +            com.google.cloud.functions.v2alpha.ServiceConfig.Builder.class);
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Available egress settings.
                                  * This controls what traffic is diverted through the VPC Access Connector
                              @@ -224,9 +264,10 @@ protected com.google.protobuf.MapField internalGetMapField(
                                  *
                                  * Protobuf enum {@code google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings}
                                  */
                              -  public enum VpcConnectorEgressSettings
                              -      implements com.google.protobuf.ProtocolMessageEnum {
                              +  public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMessageEnum {
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -235,6 +276,8 @@ public enum VpcConnectorEgressSettings */ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED(0), /** + * + * *
                                    * Use the VPC Access Connector only for private IP space from RFC1918.
                                    * 
                              @@ -243,6 +286,8 @@ public enum VpcConnectorEgressSettings */ PRIVATE_RANGES_ONLY(1), /** + * + * *
                                    * Force the use of VPC Access Connector for all egress traffic from the
                                    * function.
                              @@ -255,6 +300,8 @@ public enum VpcConnectorEgressSettings
                                   ;
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -263,6 +310,8 @@ public enum VpcConnectorEgressSettings */ public static final int VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Use the VPC Access Connector only for private IP space from RFC1918.
                                    * 
                              @@ -271,6 +320,8 @@ public enum VpcConnectorEgressSettings */ public static final int PRIVATE_RANGES_ONLY_VALUE = 1; /** + * + * *
                                    * Force the use of VPC Access Connector for all egress traffic from the
                                    * function.
                              @@ -280,7 +331,6 @@ public enum VpcConnectorEgressSettings
                                    */
                                   public static final int ALL_TRAFFIC_VALUE = 2;
                               
                              -
                                   public final int getNumber() {
                                     if (this == UNRECOGNIZED) {
                                       throw new java.lang.IllegalArgumentException(
                              @@ -305,10 +355,14 @@ public static VpcConnectorEgressSettings valueOf(int value) {
                                    */
                                   public static VpcConnectorEgressSettings forNumber(int value) {
                                     switch (value) {
                              -        case 0: return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
                              -        case 1: return PRIVATE_RANGES_ONLY;
                              -        case 2: return ALL_TRAFFIC;
                              -        default: return null;
                              +        case 0:
                              +          return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
                              +        case 1:
                              +          return PRIVATE_RANGES_ONLY;
                              +        case 2:
                              +          return ALL_TRAFFIC;
                              +        default:
                              +          return null;
                                     }
                                   }
                               
                              @@ -316,28 +370,28 @@ public static VpcConnectorEgressSettings forNumber(int value) {
                                       internalGetValueMap() {
                                     return internalValueMap;
                                   }
                              -    private static final com.google.protobuf.Internal.EnumLiteMap<
                              -        VpcConnectorEgressSettings> internalValueMap =
                              -          new com.google.protobuf.Internal.EnumLiteMap() {
                              -            public VpcConnectorEgressSettings findValueByNumber(int number) {
                              -              return VpcConnectorEgressSettings.forNumber(number);
                              -            }
                              -          };
                               
                              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
                              -        getValueDescriptor() {
                              +    private static final com.google.protobuf.Internal.EnumLiteMap
                              +        internalValueMap =
                              +            new com.google.protobuf.Internal.EnumLiteMap() {
                              +              public VpcConnectorEgressSettings findValueByNumber(int number) {
                              +                return VpcConnectorEgressSettings.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() {
                              +
                              +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                                     return getDescriptor();
                                   }
                              -    public static final com.google.protobuf.Descriptors.EnumDescriptor
                              -        getDescriptor() {
                              +
                              +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                                     return com.google.cloud.functions.v2alpha.ServiceConfig.getDescriptor().getEnumTypes().get(0);
                                   }
                               
                              @@ -346,8 +400,7 @@ public VpcConnectorEgressSettings findValueByNumber(int number) {
                                   public static VpcConnectorEgressSettings valueOf(
                                       com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                                     if (desc.getType() != getDescriptor()) {
                              -        throw new java.lang.IllegalArgumentException(
                              -          "EnumValueDescriptor is not for this type.");
                              +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                                     }
                                     if (desc.getIndex() == -1) {
                                       return UNRECOGNIZED;
                              @@ -365,6 +418,8 @@ private VpcConnectorEgressSettings(int value) {
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Available ingress settings.
                                  * This controls what traffic can reach the function.
                              @@ -373,9 +428,10 @@ private VpcConnectorEgressSettings(int value) {
                                  *
                                  * Protobuf enum {@code google.cloud.functions.v2alpha.ServiceConfig.IngressSettings}
                                  */
                              -  public enum IngressSettings
                              -      implements com.google.protobuf.ProtocolMessageEnum {
                              +  public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum {
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -384,6 +440,8 @@ public enum IngressSettings */ INGRESS_SETTINGS_UNSPECIFIED(0), /** + * + * *
                                    * Allow HTTP traffic from public and private sources.
                                    * 
                              @@ -392,6 +450,8 @@ public enum IngressSettings */ ALLOW_ALL(1), /** + * + * *
                                    * Allow HTTP traffic from only private VPC sources.
                                    * 
                              @@ -400,6 +460,8 @@ public enum IngressSettings */ ALLOW_INTERNAL_ONLY(2), /** + * + * *
                                    * Allow HTTP traffic from private VPC sources and through GCLB.
                                    * 
                              @@ -411,6 +473,8 @@ public enum IngressSettings ; /** + * + * *
                                    * Unspecified.
                                    * 
                              @@ -419,6 +483,8 @@ public enum IngressSettings */ public static final int INGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Allow HTTP traffic from public and private sources.
                                    * 
                              @@ -427,6 +493,8 @@ public enum IngressSettings */ public static final int ALLOW_ALL_VALUE = 1; /** + * + * *
                                    * Allow HTTP traffic from only private VPC sources.
                                    * 
                              @@ -435,6 +503,8 @@ public enum IngressSettings */ public static final int ALLOW_INTERNAL_ONLY_VALUE = 2; /** + * + * *
                                    * Allow HTTP traffic from private VPC sources and through GCLB.
                                    * 
                              @@ -443,7 +513,6 @@ public enum IngressSettings */ public static final int ALLOW_INTERNAL_AND_GCLB_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -468,40 +537,44 @@ public static IngressSettings valueOf(int value) { */ public static IngressSettings forNumber(int value) { switch (value) { - case 0: return INGRESS_SETTINGS_UNSPECIFIED; - case 1: return ALLOW_ALL; - case 2: return ALLOW_INTERNAL_ONLY; - case 3: return ALLOW_INTERNAL_AND_GCLB; - default: return null; + case 0: + return INGRESS_SETTINGS_UNSPECIFIED; + case 1: + return ALLOW_ALL; + case 2: + return ALLOW_INTERNAL_ONLY; + case 3: + return ALLOW_INTERNAL_AND_GCLB; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - IngressSettings> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IngressSettings findValueByNumber(int number) { - return IngressSettings.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IngressSettings findValueByNumber(int number) { + return IngressSettings.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2alpha.ServiceConfig.getDescriptor().getEnumTypes().get(1); } @@ -510,8 +583,7 @@ public IngressSettings findValueByNumber(int number) { public static IngressSettings valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -531,13 +603,18 @@ private IngressSettings(int value) { public static final int SERVICE_FIELD_NUMBER = 1; private volatile java.lang.Object service_; /** + * + * *
                                  * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The service. */ @java.lang.Override @@ -546,31 +623,33 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -581,6 +660,8 @@ public java.lang.String getService() { public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 2; private int timeoutSeconds_; /** + * + * *
                                  * The function execution timeout. Execution is considered failed and
                                  * can be terminated if the function is not completed at the end of the
                              @@ -588,6 +669,7 @@ public java.lang.String getService() {
                                  * 
                              * * int32 timeout_seconds = 2; + * * @return The timeoutSeconds. */ @java.lang.Override @@ -598,6 +680,8 @@ public int getTimeoutSeconds() { public static final int AVAILABLE_MEMORY_FIELD_NUMBER = 13; private volatile java.lang.Object availableMemory_; /** + * + * *
                                  * The amount of memory available for a function.
                                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -608,6 +692,7 @@ public int getTimeoutSeconds() {
                                  * 
                              * * string available_memory = 13; + * * @return The availableMemory. */ @java.lang.Override @@ -616,14 +701,15 @@ public java.lang.String getAvailableMemory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availableMemory_ = s; return s; } } /** + * + * *
                                  * The amount of memory available for a function.
                                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -634,16 +720,15 @@ public java.lang.String getAvailableMemory() {
                                  * 
                              * * string available_memory = 13; + * * @return The bytes for availableMemory. */ @java.lang.Override - public com.google.protobuf.ByteString - getAvailableMemoryBytes() { + public com.google.protobuf.ByteString getAvailableMemoryBytes() { java.lang.Object ref = availableMemory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); availableMemory_ = b; return b; } else { @@ -652,21 +737,22 @@ public java.lang.String getAvailableMemory() { } public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 4; + private static final class EnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_ServiceConfig_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -678,28 +764,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 4; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -707,11 +795,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -719,16 +808,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -736,10 +827,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 4; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -751,6 +842,8 @@ public java.lang.String getEnvironmentVariablesOrThrow( public static final int MAX_INSTANCE_COUNT_FIELD_NUMBER = 5; private int maxInstanceCount_; /** + * + * *
                                  * The limit on the maximum number of function instances that may coexist at a
                                  * given time.
                              @@ -765,6 +858,7 @@ public java.lang.String getEnvironmentVariablesOrThrow(
                                  * 
                              * * int32 max_instance_count = 5; + * * @return The maxInstanceCount. */ @java.lang.Override @@ -775,6 +869,8 @@ public int getMaxInstanceCount() { public static final int MIN_INSTANCE_COUNT_FIELD_NUMBER = 12; private int minInstanceCount_; /** + * + * *
                                  * The limit on the minimum number of function instances that may coexist at a
                                  * given time.
                              @@ -787,6 +883,7 @@ public int getMaxInstanceCount() {
                                  * 
                              * * int32 min_instance_count = 12; + * * @return The minInstanceCount. */ @java.lang.Override @@ -797,12 +894,15 @@ public int getMinInstanceCount() { public static final int VPC_CONNECTOR_FIELD_NUMBER = 6; private volatile java.lang.Object vpcConnector_; /** + * + * *
                                  * 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) = { ... } + * * @return The vpcConnector. */ @java.lang.Override @@ -811,30 +911,30 @@ public java.lang.String getVpcConnector() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * * @return The bytes for vpcConnector. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcConnectorBytes() { + public com.google.protobuf.ByteString getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -845,69 +945,102 @@ public java.lang.String getVpcConnector() { public static final int VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER = 7; private int vpcConnectorEgressSettings_; /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override + public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The vpcConnectorEgressSettings. */ - @java.lang.Override public com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { + @java.lang.Override + public com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings + getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings result = com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); - return result == null ? com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings result = + com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.valueOf( + vpcConnectorEgressSettings_); + return result == null + ? com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED + : result; } public static final int INGRESS_SETTINGS_FIELD_NUMBER = 8; private int ingressSettings_; /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override public int getIngressSettingsValue() { + @java.lang.Override + public int getIngressSettingsValue() { return ingressSettings_; } /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @return The ingressSettings. */ - @java.lang.Override public com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings getIngressSettings() { + @java.lang.Override + public com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings result = com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.valueOf(ingressSettings_); - return result == null ? com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings result = + com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.valueOf(ingressSettings_); + return result == null + ? com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.UNRECOGNIZED + : result; } public static final int URI_FIELD_NUMBER = 9; private volatile java.lang.Object uri_; /** + * + * *
                                  * Output only. URI of the Service deployed.
                                  * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ @java.lang.Override @@ -916,29 +1049,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
                                  * Output only. URI of the Service deployed.
                                  * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -949,12 +1082,15 @@ public java.lang.String getUri() { public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 10; private volatile java.lang.Object serviceAccountEmail_; /** + * + * *
                                  * The email of the service's service account. If empty, defaults to
                                  * `{project_number}-compute@developer.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 10; + * * @return The serviceAccountEmail. */ @java.lang.Override @@ -963,30 +1099,30 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** + * + * *
                                  * The email of the service's service account. If empty, defaults to
                                  * `{project_number}-compute@developer.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 10; + * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -997,6 +1133,8 @@ public java.lang.String getServiceAccountEmail() { public static final int ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER = 16; private boolean allTrafficOnLatestRevision_; /** + * + * *
                                  * Whether 100% of traffic is routed to the latest revision.
                                  * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -1006,6 +1144,7 @@ public java.lang.String getServiceAccountEmail() {
                                  * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @return The allTrafficOnLatestRevision. */ @java.lang.Override @@ -1014,68 +1153,87 @@ public boolean getAllTrafficOnLatestRevision() { } public static final int SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER = 17; - private java.util.List secretEnvironmentVariables_; + private java.util.List + secretEnvironmentVariables_; /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override - public java.util.List getSecretEnvironmentVariablesList() { + public java.util.List + getSecretEnvironmentVariablesList() { return secretEnvironmentVariables_; } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override - public java.util.List + public java.util.List getSecretEnvironmentVariablesOrBuilderList() { return secretEnvironmentVariables_; } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override public int getSecretEnvironmentVariablesCount() { return secretEnvironmentVariables_.size(); } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override public com.google.cloud.functions.v2alpha.SecretEnvVar getSecretEnvironmentVariables(int index) { return secretEnvironmentVariables_.get(index); } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override - public com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( - int index) { + public com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder + getSecretEnvironmentVariablesOrBuilder(int index) { return secretEnvironmentVariables_.get(index); } public static final int SECRET_VOLUMES_FIELD_NUMBER = 19; private java.util.List secretVolumes_; /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1087,6 +1245,8 @@ public java.util.List getSecret return secretVolumes_; } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1094,11 +1254,13 @@ public java.util.List getSecret * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ @java.lang.Override - public java.util.List + public java.util.List getSecretVolumesOrBuilderList() { return secretVolumes_; } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1110,6 +1272,8 @@ public int getSecretVolumesCount() { return secretVolumes_.size(); } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1121,6 +1285,8 @@ public com.google.cloud.functions.v2alpha.SecretVolume getSecretVolumes(int inde return secretVolumes_.get(index); } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1136,11 +1302,14 @@ public com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder getSecretVolumes public static final int REVISION_FIELD_NUMBER = 18; private volatile java.lang.Object revision_; /** + * + * *
                                  * Output only. The name of service revision.
                                  * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revision. */ @java.lang.Override @@ -1149,29 +1318,29 @@ public java.lang.String getRevision() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; } } /** + * + * *
                                  * Output only. The name of service revision.
                                  * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revision. */ @java.lang.Override - public com.google.protobuf.ByteString - getRevisionBytes() { + public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revision_ = b; return b; } else { @@ -1180,6 +1349,7 @@ public java.lang.String getRevision() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1191,16 +1361,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } if (timeoutSeconds_ != 0) { output.writeInt32(2, timeoutSeconds_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -1211,10 +1379,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vpcConnector_); } - if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + if (vpcConnectorEgressSettings_ + != com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings + .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { output.writeEnum(7, vpcConnectorEgressSettings_); } - if (ingressSettings_ != com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + if (ingressSettings_ + != com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings + .INGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { output.writeEnum(8, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { @@ -1254,33 +1428,35 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } if (timeoutSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, timeoutSeconds_); - } - for (java.util.Map.Entry entry - : internalGetEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, environmentVariables__); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, timeoutSeconds_); + } + for (java.util.Map.Entry entry : + internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry environmentVariables__ = + EnvironmentVariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, environmentVariables__); } if (maxInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, maxInstanceCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxInstanceCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vpcConnector_); } - if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, vpcConnectorEgressSettings_); + if (vpcConnectorEgressSettings_ + != com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings + .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, vpcConnectorEgressSettings_); } - if (ingressSettings_ != com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, ingressSettings_); + if (ingressSettings_ + != com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings + .INGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, uri_); @@ -1289,26 +1465,25 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, serviceAccountEmail_); } if (minInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(12, minInstanceCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, minInstanceCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableMemory_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, availableMemory_); } if (allTrafficOnLatestRevision_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, allTrafficOnLatestRevision_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(16, allTrafficOnLatestRevision_); } for (int i = 0; i < secretEnvironmentVariables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, secretEnvironmentVariables_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, secretEnvironmentVariables_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, revision_); } for (int i = 0; i < secretVolumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, secretVolumes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, secretVolumes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1318,41 +1493,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.ServiceConfig)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.ServiceConfig other = (com.google.cloud.functions.v2alpha.ServiceConfig) obj; - - if (!getService() - .equals(other.getService())) return false; - if (getTimeoutSeconds() - != other.getTimeoutSeconds()) return false; - if (!getAvailableMemory() - .equals(other.getAvailableMemory())) return false; - if (!internalGetEnvironmentVariables().equals( - other.internalGetEnvironmentVariables())) return false; - if (getMaxInstanceCount() - != other.getMaxInstanceCount()) return false; - if (getMinInstanceCount() - != other.getMinInstanceCount()) return false; - if (!getVpcConnector() - .equals(other.getVpcConnector())) return false; + com.google.cloud.functions.v2alpha.ServiceConfig other = + (com.google.cloud.functions.v2alpha.ServiceConfig) obj; + + if (!getService().equals(other.getService())) return false; + if (getTimeoutSeconds() != other.getTimeoutSeconds()) return false; + if (!getAvailableMemory().equals(other.getAvailableMemory())) return false; + if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) + return false; + if (getMaxInstanceCount() != other.getMaxInstanceCount()) return false; + if (getMinInstanceCount() != other.getMinInstanceCount()) return false; + if (!getVpcConnector().equals(other.getVpcConnector())) return false; if (vpcConnectorEgressSettings_ != other.vpcConnectorEgressSettings_) return false; if (ingressSettings_ != other.ingressSettings_) return false; - if (!getUri() - .equals(other.getUri())) return false; - if (!getServiceAccountEmail() - .equals(other.getServiceAccountEmail())) return false; - if (getAllTrafficOnLatestRevision() - != other.getAllTrafficOnLatestRevision()) return false; - if (!getSecretEnvironmentVariablesList() - .equals(other.getSecretEnvironmentVariablesList())) return false; - if (!getSecretVolumesList() - .equals(other.getSecretVolumesList())) return false; - if (!getRevision() - .equals(other.getRevision())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; + if (getAllTrafficOnLatestRevision() != other.getAllTrafficOnLatestRevision()) return false; + if (!getSecretEnvironmentVariablesList().equals(other.getSecretEnvironmentVariablesList())) + return false; + if (!getSecretVolumesList().equals(other.getSecretVolumesList())) return false; + if (!getRevision().equals(other.getRevision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1389,8 +1554,7 @@ public int hashCode() { hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountEmail().hashCode(); hash = (37 * hash) + ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllTrafficOnLatestRevision()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllTrafficOnLatestRevision()); if (getSecretEnvironmentVariablesCount() > 0) { hash = (37 * hash) + SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + getSecretEnvironmentVariablesList().hashCode(); @@ -1406,97 +1570,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.ServiceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ServiceConfig 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.v2alpha.ServiceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.ServiceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.ServiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ServiceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.ServiceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2alpha.ServiceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes the Service being deployed.
                                  * Currently Supported : Cloud Run (fully managed).
                              @@ -1504,43 +1675,43 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2alpha.ServiceConfig}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.ServiceConfig)
                                     com.google.cloud.functions.v2alpha.ServiceConfigOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor;
                                   }
                               
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMapField(int number) {
                                     switch (number) {
                                       case 4:
                                         return internalGetEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMutableMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
                                     switch (number) {
                                       case 4:
                                         return internalGetMutableEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_ServiceConfig_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2alpha.ServiceConfig.class, com.google.cloud.functions.v2alpha.ServiceConfig.Builder.class);
                              +              com.google.cloud.functions.v2alpha.ServiceConfig.class,
                              +              com.google.cloud.functions.v2alpha.ServiceConfig.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2alpha.ServiceConfig.newBuilder()
                              @@ -1548,18 +1719,18 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getSecretEnvironmentVariablesFieldBuilder();
                                       getSecretVolumesFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -1604,9 +1775,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -1625,7 +1796,8 @@ public com.google.cloud.functions.v2alpha.ServiceConfig build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2alpha.ServiceConfig buildPartial() {
                              -      com.google.cloud.functions.v2alpha.ServiceConfig result = new com.google.cloud.functions.v2alpha.ServiceConfig(this);
                              +      com.google.cloud.functions.v2alpha.ServiceConfig result =
                              +          new com.google.cloud.functions.v2alpha.ServiceConfig(this);
                                     int from_bitField0_ = bitField0_;
                                     result.service_ = service_;
                                     result.timeoutSeconds_ = timeoutSeconds_;
                              @@ -1642,7 +1814,8 @@ public com.google.cloud.functions.v2alpha.ServiceConfig buildPartial() {
                                     result.allTrafficOnLatestRevision_ = allTrafficOnLatestRevision_;
                                     if (secretEnvironmentVariablesBuilder_ == null) {
                                       if (((bitField0_ & 0x00000002) != 0)) {
                              -          secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                              +          secretEnvironmentVariables_ =
                              +              java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                                         bitField0_ = (bitField0_ & ~0x00000002);
                                       }
                                       result.secretEnvironmentVariables_ = secretEnvironmentVariables_;
                              @@ -1667,38 +1840,39 @@ public com.google.cloud.functions.v2alpha.ServiceConfig buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2alpha.ServiceConfig)other);
                              +        return mergeFrom((com.google.cloud.functions.v2alpha.ServiceConfig) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1706,7 +1880,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                                   }
                               
                                   public Builder mergeFrom(com.google.cloud.functions.v2alpha.ServiceConfig other) {
                              -      if (other == com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance()) return this;
                              +      if (other == com.google.cloud.functions.v2alpha.ServiceConfig.getDefaultInstance())
                              +        return this;
                                     if (!other.getService().isEmpty()) {
                                       service_ = other.service_;
                                       onChanged();
                              @@ -1718,8 +1893,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.ServiceConfig other)
                                       availableMemory_ = other.availableMemory_;
                                       onChanged();
                                     }
                              -      internalGetMutableEnvironmentVariables().mergeFrom(
                              -          other.internalGetEnvironmentVariables());
                              +      internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables());
                                     if (other.getMaxInstanceCount() != 0) {
                                       setMaxInstanceCount(other.getMaxInstanceCount());
                                     }
                              @@ -1765,9 +1939,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.ServiceConfig other)
                                           secretEnvironmentVariablesBuilder_ = null;
                                           secretEnvironmentVariables_ = other.secretEnvironmentVariables_;
                                           bitField0_ = (bitField0_ & ~0x00000002);
                              -            secretEnvironmentVariablesBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getSecretEnvironmentVariablesFieldBuilder() : null;
                              +            secretEnvironmentVariablesBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getSecretEnvironmentVariablesFieldBuilder()
                              +                    : null;
                                         } else {
                                           secretEnvironmentVariablesBuilder_.addAllMessages(other.secretEnvironmentVariables_);
                                         }
                              @@ -1791,9 +1966,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.ServiceConfig other)
                                           secretVolumesBuilder_ = null;
                                           secretVolumes_ = other.secretVolumes_;
                                           bitField0_ = (bitField0_ & ~0x00000004);
                              -            secretVolumesBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getSecretVolumesFieldBuilder() : null;
                              +            secretVolumesBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getSecretVolumesFieldBuilder()
                              +                    : null;
                                         } else {
                                           secretVolumesBuilder_.addAllMessages(other.secretVolumes_);
                                         }
                              @@ -1831,24 +2007,29 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object service_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -1857,22 +2038,25 @@ public java.lang.String getService() { } } /** - *
                              +     *
                              +     *
                              +     * 
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for service. */ - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -1880,67 +2064,82 @@ public java.lang.String getService() { } } /** + * + * *
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService( - java.lang.String value) { + public Builder setService(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + service_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearService() { - + service_ = getDefaultInstance().getService(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; onChanged(); return this; } - private int timeoutSeconds_ ; + private int timeoutSeconds_; /** + * + * *
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -1948,6 +2147,7 @@ public Builder setServiceBytes(
                                    * 
                              * * int32 timeout_seconds = 2; + * * @return The timeoutSeconds. */ @java.lang.Override @@ -1955,6 +2155,8 @@ public int getTimeoutSeconds() { return timeoutSeconds_; } /** + * + * *
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -1962,16 +2164,19 @@ public int getTimeoutSeconds() {
                                    * 
                              * * int32 timeout_seconds = 2; + * * @param value The timeoutSeconds to set. * @return This builder for chaining. */ public Builder setTimeoutSeconds(int value) { - + timeoutSeconds_ = value; onChanged(); return this; } /** + * + * *
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -1979,10 +2184,11 @@ public Builder setTimeoutSeconds(int value) {
                                    * 
                              * * int32 timeout_seconds = 2; + * * @return This builder for chaining. */ public Builder clearTimeoutSeconds() { - + timeoutSeconds_ = 0; onChanged(); return this; @@ -1990,6 +2196,8 @@ public Builder clearTimeoutSeconds() { private java.lang.Object availableMemory_ = ""; /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2000,13 +2208,13 @@ public Builder clearTimeoutSeconds() {
                                    * 
                              * * string available_memory = 13; + * * @return The availableMemory. */ public java.lang.String getAvailableMemory() { java.lang.Object ref = availableMemory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availableMemory_ = s; return s; @@ -2015,6 +2223,8 @@ public java.lang.String getAvailableMemory() { } } /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2025,15 +2235,14 @@ public java.lang.String getAvailableMemory() {
                                    * 
                              * * string available_memory = 13; + * * @return The bytes for availableMemory. */ - public com.google.protobuf.ByteString - getAvailableMemoryBytes() { + public com.google.protobuf.ByteString getAvailableMemoryBytes() { java.lang.Object ref = availableMemory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); availableMemory_ = b; return b; } else { @@ -2041,6 +2250,8 @@ public java.lang.String getAvailableMemory() { } } /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2051,20 +2262,22 @@ public java.lang.String getAvailableMemory() {
                                    * 
                              * * string available_memory = 13; + * * @param value The availableMemory to set. * @return This builder for chaining. */ - public Builder setAvailableMemory( - java.lang.String value) { + public Builder setAvailableMemory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + availableMemory_ = value; onChanged(); return this; } /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2075,15 +2288,18 @@ public Builder setAvailableMemory(
                                    * 
                              * * string available_memory = 13; + * * @return This builder for chaining. */ public Builder clearAvailableMemory() { - + availableMemory_ = getDefaultInstance().getAvailableMemory(); onChanged(); return this; } /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2094,37 +2310,40 @@ public Builder clearAvailableMemory() {
                                    * 
                              * * string available_memory = 13; + * * @param value The bytes for availableMemory to set. * @return This builder for chaining. */ - public Builder setAvailableMemoryBytes( - com.google.protobuf.ByteString value) { + public Builder setAvailableMemoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + availableMemory_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } + private com.google.protobuf.MapField - internalGetMutableEnvironmentVariables() { - onChanged();; + internalGetMutableEnvironmentVariables() { + onChanged(); + ; if (environmentVariables_ == null) { - environmentVariables_ = com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); + environmentVariables_ = + com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); @@ -2136,28 +2355,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 4; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              @@ -2165,11 +2386,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              @@ -2177,16 +2399,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              @@ -2194,10 +2418,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 4; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -2207,69 +2431,69 @@ public java.lang.String getEnvironmentVariablesOrThrow( } public Builder clearEnvironmentVariables() { - internalGetMutableEnvironmentVariables().getMutableMap() - .clear(); + internalGetMutableEnvironmentVariables().getMutableMap().clear(); return this; } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 4; */ - - public Builder removeEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableEnvironmentVariables().getMutableMap() - .remove(key); + public Builder removeEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEnvironmentVariables().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableEnvironmentVariables() { + public java.util.Map getMutableEnvironmentVariables() { return internalGetMutableEnvironmentVariables().getMutableMap(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 4; */ - public Builder putEnvironmentVariables( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putEnvironmentVariables(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableEnvironmentVariables().getMutableMap() - .put(key, value); + internalGetMutableEnvironmentVariables().getMutableMap().put(key, value); return this; } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 4; */ - public Builder putAllEnvironmentVariables( java.util.Map values) { - internalGetMutableEnvironmentVariables().getMutableMap() - .putAll(values); + internalGetMutableEnvironmentVariables().getMutableMap().putAll(values); return this; } - private int maxInstanceCount_ ; + private int maxInstanceCount_; /** + * + * *
                                    * The limit on the maximum number of function instances that may coexist at a
                                    * given time.
                              @@ -2284,6 +2508,7 @@ public Builder putAllEnvironmentVariables(
                                    * 
                              * * int32 max_instance_count = 5; + * * @return The maxInstanceCount. */ @java.lang.Override @@ -2291,6 +2516,8 @@ public int getMaxInstanceCount() { return maxInstanceCount_; } /** + * + * *
                                    * The limit on the maximum number of function instances that may coexist at a
                                    * given time.
                              @@ -2305,16 +2532,19 @@ public int getMaxInstanceCount() {
                                    * 
                              * * int32 max_instance_count = 5; + * * @param value The maxInstanceCount to set. * @return This builder for chaining. */ public Builder setMaxInstanceCount(int value) { - + maxInstanceCount_ = value; onChanged(); return this; } /** + * + * *
                                    * The limit on the maximum number of function instances that may coexist at a
                                    * given time.
                              @@ -2329,17 +2559,20 @@ public Builder setMaxInstanceCount(int value) {
                                    * 
                              * * int32 max_instance_count = 5; + * * @return This builder for chaining. */ public Builder clearMaxInstanceCount() { - + maxInstanceCount_ = 0; onChanged(); return this; } - private int minInstanceCount_ ; + private int minInstanceCount_; /** + * + * *
                                    * The limit on the minimum number of function instances that may coexist at a
                                    * given time.
                              @@ -2352,6 +2585,7 @@ public Builder clearMaxInstanceCount() {
                                    * 
                              * * int32 min_instance_count = 12; + * * @return The minInstanceCount. */ @java.lang.Override @@ -2359,6 +2593,8 @@ public int getMinInstanceCount() { return minInstanceCount_; } /** + * + * *
                                    * The limit on the minimum number of function instances that may coexist at a
                                    * given time.
                              @@ -2371,16 +2607,19 @@ public int getMinInstanceCount() {
                                    * 
                              * * int32 min_instance_count = 12; + * * @param value The minInstanceCount to set. * @return This builder for chaining. */ public Builder setMinInstanceCount(int value) { - + minInstanceCount_ = value; onChanged(); return this; } /** + * + * *
                                    * The limit on the minimum number of function instances that may coexist at a
                                    * given time.
                              @@ -2393,10 +2632,11 @@ public Builder setMinInstanceCount(int value) {
                                    * 
                              * * int32 min_instance_count = 12; + * * @return This builder for chaining. */ public Builder clearMinInstanceCount() { - + minInstanceCount_ = 0; onChanged(); return this; @@ -2404,19 +2644,21 @@ public Builder clearMinInstanceCount() { private java.lang.Object vpcConnector_ = ""; /** + * + * *
                                    * 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) = { ... } + * * @return The vpcConnector. */ public java.lang.String getVpcConnector() { java.lang.Object ref = vpcConnector_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; @@ -2425,21 +2667,22 @@ public java.lang.String getVpcConnector() { } } /** + * + * *
                                    * 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) = { ... } + * * @return The bytes for vpcConnector. */ - public com.google.protobuf.ByteString - getVpcConnectorBytes() { + public com.google.protobuf.ByteString getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -2447,57 +2690,64 @@ public java.lang.String getVpcConnector() { } } /** + * + * *
                                    * 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) = { ... } + * * @param value The vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnector( - java.lang.String value) { + public Builder setVpcConnector(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vpcConnector_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * * @return This builder for chaining. */ public Builder clearVpcConnector() { - + vpcConnector_ = getDefaultInstance().getVpcConnector(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * * @param value The bytes for vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnectorBytes( - com.google.protobuf.ByteString value) { + public Builder setVpcConnectorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcConnector_ = value; onChanged(); return this; @@ -2505,78 +2755,110 @@ public Builder setVpcConnectorBytes( private int vpcConnectorEgressSettings_ = 0; /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override + public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @param value The enum numeric value on the wire for vpcConnectorEgressSettings to set. * @return This builder for chaining. */ public Builder setVpcConnectorEgressSettingsValue(int value) { - + vpcConnectorEgressSettings_ = value; onChanged(); return this; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The vpcConnectorEgressSettings. */ @java.lang.Override - public com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { + public com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings + getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings result = com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); - return result == null ? com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings result = + com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.valueOf( + vpcConnectorEgressSettings_); + return result == null + ? com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED + : result; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @param value The vpcConnectorEgressSettings to set. * @return This builder for chaining. */ - public Builder setVpcConnectorEgressSettings(com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings value) { + public Builder setVpcConnectorEgressSettings( + com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings value) { if (value == null) { throw new NullPointerException(); } - + vpcConnectorEgressSettings_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return This builder for chaining. */ public Builder clearVpcConnectorEgressSettings() { - + vpcConnectorEgressSettings_ = 0; onChanged(); return this; @@ -2584,78 +2866,104 @@ public Builder clearVpcConnectorEgressSettings() { private int ingressSettings_ = 0; /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override public int getIngressSettingsValue() { + @java.lang.Override + public int getIngressSettingsValue() { return ingressSettings_; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @param value The enum numeric value on the wire for ingressSettings to set. * @return This builder for chaining. */ public Builder setIngressSettingsValue(int value) { - + ingressSettings_ = value; onChanged(); return this; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @return The ingressSettings. */ @java.lang.Override public com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings result = com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.valueOf(ingressSettings_); - return result == null ? com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings result = + com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.valueOf( + ingressSettings_); + return result == null + ? com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings.UNRECOGNIZED + : result; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @param value The ingressSettings to set. * @return This builder for chaining. */ - public Builder setIngressSettings(com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings value) { + public Builder setIngressSettings( + com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings value) { if (value == null) { throw new NullPointerException(); } - + ingressSettings_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @return This builder for chaining. */ public Builder clearIngressSettings() { - + ingressSettings_ = 0; onChanged(); return this; @@ -2663,18 +2971,20 @@ public Builder clearIngressSettings() { private java.lang.Object uri_ = ""; /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -2683,20 +2993,21 @@ public java.lang.String getUri() { } } /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -2704,54 +3015,61 @@ public java.lang.String getUri() { } } /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; @@ -2759,19 +3077,21 @@ public Builder setUriBytes( private java.lang.Object serviceAccountEmail_ = ""; /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -2780,21 +3100,22 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -2802,64 +3123,73 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail( - java.lang.String value) { + public Builder setServiceAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; } - private boolean allTrafficOnLatestRevision_ ; + private boolean allTrafficOnLatestRevision_; /** + * + * *
                                    * Whether 100% of traffic is routed to the latest revision.
                                    * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -2869,6 +3199,7 @@ public Builder setServiceAccountEmailBytes(
                                    * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @return The allTrafficOnLatestRevision. */ @java.lang.Override @@ -2876,6 +3207,8 @@ public boolean getAllTrafficOnLatestRevision() { return allTrafficOnLatestRevision_; } /** + * + * *
                                    * Whether 100% of traffic is routed to the latest revision.
                                    * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -2885,16 +3218,19 @@ public boolean getAllTrafficOnLatestRevision() {
                                    * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @param value The allTrafficOnLatestRevision to set. * @return This builder for chaining. */ public Builder setAllTrafficOnLatestRevision(boolean value) { - + allTrafficOnLatestRevision_ = value; onChanged(); return this; } /** + * + * *
                                    * Whether 100% of traffic is routed to the latest revision.
                                    * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -2904,35 +3240,47 @@ public Builder setAllTrafficOnLatestRevision(boolean value) {
                                    * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @return This builder for chaining. */ public Builder clearAllTrafficOnLatestRevision() { - + allTrafficOnLatestRevision_ = false; onChanged(); return this; } - private java.util.List secretEnvironmentVariables_ = - java.util.Collections.emptyList(); + private java.util.List + secretEnvironmentVariables_ = java.util.Collections.emptyList(); + private void ensureSecretEnvironmentVariablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - secretEnvironmentVariables_ = new java.util.ArrayList(secretEnvironmentVariables_); + secretEnvironmentVariables_ = + new java.util.ArrayList( + secretEnvironmentVariables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretEnvVar, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder, com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder> secretEnvironmentVariablesBuilder_; + com.google.cloud.functions.v2alpha.SecretEnvVar, + com.google.cloud.functions.v2alpha.SecretEnvVar.Builder, + com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder> + secretEnvironmentVariablesBuilder_; /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ - public java.util.List getSecretEnvironmentVariablesList() { + public java.util.List + getSecretEnvironmentVariablesList() { if (secretEnvironmentVariablesBuilder_ == null) { return java.util.Collections.unmodifiableList(secretEnvironmentVariables_); } else { @@ -2940,11 +3288,15 @@ public java.util.List getSecret } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ public int getSecretEnvironmentVariablesCount() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -2954,13 +3306,18 @@ public int getSecretEnvironmentVariablesCount() { } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ - public com.google.cloud.functions.v2alpha.SecretEnvVar getSecretEnvironmentVariables(int index) { + public com.google.cloud.functions.v2alpha.SecretEnvVar getSecretEnvironmentVariables( + int index) { if (secretEnvironmentVariablesBuilder_ == null) { return secretEnvironmentVariables_.get(index); } else { @@ -2968,11 +3325,15 @@ public com.google.cloud.functions.v2alpha.SecretEnvVar getSecretEnvironmentVaria } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v2alpha.SecretEnvVar value) { @@ -2989,11 +3350,15 @@ public Builder setSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder builderForValue) { @@ -3007,13 +3372,18 @@ public Builder setSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ - public Builder addSecretEnvironmentVariables(com.google.cloud.functions.v2alpha.SecretEnvVar value) { + public Builder addSecretEnvironmentVariables( + com.google.cloud.functions.v2alpha.SecretEnvVar value) { if (secretEnvironmentVariablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3027,11 +3397,15 @@ public Builder addSecretEnvironmentVariables(com.google.cloud.functions.v2alpha. return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v2alpha.SecretEnvVar value) { @@ -3048,11 +3422,15 @@ public Builder addSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ public Builder addSecretEnvironmentVariables( com.google.cloud.functions.v2alpha.SecretEnvVar.Builder builderForValue) { @@ -3066,11 +3444,15 @@ public Builder addSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder builderForValue) { @@ -3084,18 +3466,21 @@ public Builder addSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ public Builder addAllSecretEnvironmentVariables( java.lang.Iterable values) { if (secretEnvironmentVariablesBuilder_ == null) { ensureSecretEnvironmentVariablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, secretEnvironmentVariables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretEnvironmentVariables_); onChanged(); } else { secretEnvironmentVariablesBuilder_.addAllMessages(values); @@ -3103,11 +3488,15 @@ public Builder addAllSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ public Builder clearSecretEnvironmentVariables() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3120,11 +3509,15 @@ public Builder clearSecretEnvironmentVariables() { return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ public Builder removeSecretEnvironmentVariables(int index) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3137,39 +3530,52 @@ public Builder removeSecretEnvironmentVariables(int index) { return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ - public com.google.cloud.functions.v2alpha.SecretEnvVar.Builder getSecretEnvironmentVariablesBuilder( - int index) { + public com.google.cloud.functions.v2alpha.SecretEnvVar.Builder + getSecretEnvironmentVariablesBuilder(int index) { return getSecretEnvironmentVariablesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ - public com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( - int index) { + public com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder + getSecretEnvironmentVariablesOrBuilder(int index) { if (secretEnvironmentVariablesBuilder_ == null) { - return secretEnvironmentVariables_.get(index); } else { + return secretEnvironmentVariables_.get(index); + } else { return secretEnvironmentVariablesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ - public java.util.List - getSecretEnvironmentVariablesOrBuilderList() { + public java.util.List + getSecretEnvironmentVariablesOrBuilderList() { if (secretEnvironmentVariablesBuilder_ != null) { return secretEnvironmentVariablesBuilder_.getMessageOrBuilderList(); } else { @@ -3177,45 +3583,64 @@ public com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder getSecretEnviron } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ - public com.google.cloud.functions.v2alpha.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder() { - return getSecretEnvironmentVariablesFieldBuilder().addBuilder( - com.google.cloud.functions.v2alpha.SecretEnvVar.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.SecretEnvVar.Builder + addSecretEnvironmentVariablesBuilder() { + return getSecretEnvironmentVariablesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2alpha.SecretEnvVar.getDefaultInstance()); } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ - public com.google.cloud.functions.v2alpha.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder( - int index) { - return getSecretEnvironmentVariablesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2alpha.SecretEnvVar.getDefaultInstance()); + public com.google.cloud.functions.v2alpha.SecretEnvVar.Builder + addSecretEnvironmentVariablesBuilder(int index) { + return getSecretEnvironmentVariablesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2alpha.SecretEnvVar.getDefaultInstance()); } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ - public java.util.List - getSecretEnvironmentVariablesBuilderList() { + public java.util.List + getSecretEnvironmentVariablesBuilderList() { return getSecretEnvironmentVariablesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretEnvVar, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder, com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder> + com.google.cloud.functions.v2alpha.SecretEnvVar, + com.google.cloud.functions.v2alpha.SecretEnvVar.Builder, + com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder> getSecretEnvironmentVariablesFieldBuilder() { if (secretEnvironmentVariablesBuilder_ == null) { - secretEnvironmentVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretEnvVar, com.google.cloud.functions.v2alpha.SecretEnvVar.Builder, com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder>( + secretEnvironmentVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.SecretEnvVar, + com.google.cloud.functions.v2alpha.SecretEnvVar.Builder, + com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder>( secretEnvironmentVariables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3226,18 +3651,26 @@ public com.google.cloud.functions.v2alpha.SecretEnvVar.Builder addSecretEnvironm } private java.util.List secretVolumes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSecretVolumesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - secretVolumes_ = new java.util.ArrayList(secretVolumes_); + secretVolumes_ = + new java.util.ArrayList( + secretVolumes_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretVolume, com.google.cloud.functions.v2alpha.SecretVolume.Builder, com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder> secretVolumesBuilder_; + com.google.cloud.functions.v2alpha.SecretVolume, + com.google.cloud.functions.v2alpha.SecretVolume.Builder, + com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder> + secretVolumesBuilder_; /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3252,6 +3685,8 @@ public java.util.List getSecret } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3266,6 +3701,8 @@ public int getSecretVolumesCount() { } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3280,6 +3717,8 @@ public com.google.cloud.functions.v2alpha.SecretVolume getSecretVolumes(int inde } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3301,6 +3740,8 @@ public Builder setSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3319,6 +3760,8 @@ public Builder setSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3339,6 +3782,8 @@ public Builder addSecretVolumes(com.google.cloud.functions.v2alpha.SecretVolume return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3360,6 +3805,8 @@ public Builder addSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3378,6 +3825,8 @@ public Builder addSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3396,6 +3845,8 @@ public Builder addSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3406,8 +3857,7 @@ public Builder addAllSecretVolumes( java.lang.Iterable values) { if (secretVolumesBuilder_ == null) { ensureSecretVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, secretVolumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretVolumes_); onChanged(); } else { secretVolumesBuilder_.addAllMessages(values); @@ -3415,6 +3865,8 @@ public Builder addAllSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3432,6 +3884,8 @@ public Builder clearSecretVolumes() { return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3449,6 +3903,8 @@ public Builder removeSecretVolumes(int index) { return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3460,6 +3916,8 @@ public com.google.cloud.functions.v2alpha.SecretVolume.Builder getSecretVolumesB return getSecretVolumesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3469,19 +3927,22 @@ public com.google.cloud.functions.v2alpha.SecretVolume.Builder getSecretVolumesB public com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder getSecretVolumesOrBuilder( int index) { if (secretVolumesBuilder_ == null) { - return secretVolumes_.get(index); } else { + return secretVolumes_.get(index); + } else { return secretVolumesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ - public java.util.List - getSecretVolumesOrBuilderList() { + public java.util.List + getSecretVolumesOrBuilderList() { if (secretVolumesBuilder_ != null) { return secretVolumesBuilder_.getMessageOrBuilderList(); } else { @@ -3489,6 +3950,8 @@ public com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder getSecretVolumes } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3496,10 +3959,12 @@ public com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder getSecretVolumes * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ public com.google.cloud.functions.v2alpha.SecretVolume.Builder addSecretVolumesBuilder() { - return getSecretVolumesFieldBuilder().addBuilder( - com.google.cloud.functions.v2alpha.SecretVolume.getDefaultInstance()); + return getSecretVolumesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2alpha.SecretVolume.getDefaultInstance()); } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3508,26 +3973,34 @@ public com.google.cloud.functions.v2alpha.SecretVolume.Builder addSecretVolumesB */ public com.google.cloud.functions.v2alpha.SecretVolume.Builder addSecretVolumesBuilder( int index) { - return getSecretVolumesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2alpha.SecretVolume.getDefaultInstance()); + return getSecretVolumesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2alpha.SecretVolume.getDefaultInstance()); } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ - public java.util.List - getSecretVolumesBuilderList() { + public java.util.List + getSecretVolumesBuilderList() { return getSecretVolumesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretVolume, com.google.cloud.functions.v2alpha.SecretVolume.Builder, com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder> + com.google.cloud.functions.v2alpha.SecretVolume, + com.google.cloud.functions.v2alpha.SecretVolume.Builder, + com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder> getSecretVolumesFieldBuilder() { if (secretVolumesBuilder_ == null) { - secretVolumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.SecretVolume, com.google.cloud.functions.v2alpha.SecretVolume.Builder, com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder>( + secretVolumesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.SecretVolume, + com.google.cloud.functions.v2alpha.SecretVolume.Builder, + com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder>( secretVolumes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3539,18 +4012,20 @@ public com.google.cloud.functions.v2alpha.SecretVolume.Builder addSecretVolumesB private java.lang.Object revision_ = ""; /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revision. */ public java.lang.String getRevision() { java.lang.Object ref = revision_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; @@ -3559,20 +4034,21 @@ public java.lang.String getRevision() { } } /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revision. */ - public com.google.protobuf.ByteString - getRevisionBytes() { + public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revision_ = b; return b; } else { @@ -3580,61 +4056,68 @@ public java.lang.String getRevision() { } } /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The revision to set. * @return This builder for chaining. */ - public Builder setRevision( - java.lang.String value) { + public Builder setRevision(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + revision_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRevision() { - + revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for revision to set. * @return This builder for chaining. */ - public Builder setRevisionBytes( - com.google.protobuf.ByteString value) { + public Builder setRevisionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revision_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3644,12 +4127,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.ServiceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.ServiceConfig) private static final com.google.cloud.functions.v2alpha.ServiceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.ServiceConfig(); } @@ -3658,16 +4141,16 @@ public static com.google.cloud.functions.v2alpha.ServiceConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServiceConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServiceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3682,6 +4165,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.ServiceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java similarity index 78% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java index b1cb8908..4d576c0e 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java @@ -1,37 +1,64 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface ServiceConfigOrBuilder extends +public interface ServiceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.ServiceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The service. */ java.lang.String getService(); /** + * + * *
                                  * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for service. */ - com.google.protobuf.ByteString - getServiceBytes(); + com.google.protobuf.ByteString getServiceBytes(); /** + * + * *
                                  * The function execution timeout. Execution is considered failed and
                                  * can be terminated if the function is not completed at the end of the
                              @@ -39,11 +66,14 @@ public interface ServiceConfigOrBuilder extends
                                  * 
                              * * int32 timeout_seconds = 2; + * * @return The timeoutSeconds. */ int getTimeoutSeconds(); /** + * + * *
                                  * The amount of memory available for a function.
                                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -54,10 +84,13 @@ public interface ServiceConfigOrBuilder extends
                                  * 
                              * * string available_memory = 13; + * * @return The availableMemory. */ java.lang.String getAvailableMemory(); /** + * + * *
                                  * The amount of memory available for a function.
                                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -68,12 +101,14 @@ public interface ServiceConfigOrBuilder extends
                                  * 
                              * * string available_memory = 13; + * * @return The bytes for availableMemory. */ - com.google.protobuf.ByteString - getAvailableMemoryBytes(); + com.google.protobuf.ByteString getAvailableMemoryBytes(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -82,30 +117,31 @@ public interface ServiceConfigOrBuilder extends */ int getEnvironmentVariablesCount(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 4; */ - boolean containsEnvironmentVariables( - java.lang.String key); - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + boolean containsEnvironmentVariables(java.lang.String key); + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getEnvironmentVariables(); + java.util.Map getEnvironmentVariables(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 4; */ - java.util.Map - getEnvironmentVariablesMap(); + java.util.Map getEnvironmentVariablesMap(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -114,22 +150,24 @@ boolean containsEnvironmentVariables( */ /* nullable */ -java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 4; */ - - java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key); + java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key); /** + * + * *
                                  * The limit on the maximum number of function instances that may coexist at a
                                  * given time.
                              @@ -144,11 +182,14 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * 
                              * * int32 max_instance_count = 5; + * * @return The maxInstanceCount. */ int getMaxInstanceCount(); /** + * + * *
                                  * The limit on the minimum number of function instances that may coexist at a
                                  * given time.
                              @@ -161,117 +202,154 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * 
                              * * int32 min_instance_count = 12; + * * @return The minInstanceCount. */ int getMinInstanceCount(); /** + * + * *
                                  * 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) = { ... } + * * @return The vpcConnector. */ java.lang.String getVpcConnector(); /** + * + * *
                                  * 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) = { ... } + * * @return The bytes for vpcConnector. */ - com.google.protobuf.ByteString - getVpcConnectorBytes(); + com.google.protobuf.ByteString getVpcConnectorBytes(); /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ int getVpcConnectorEgressSettingsValue(); /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The vpcConnectorEgressSettings. */ - com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings(); + com.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings + getVpcConnectorEgressSettings(); /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @return The enum numeric value on the wire for ingressSettings. */ int getIngressSettingsValue(); /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * - * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @return The ingressSettings. */ com.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings getIngressSettings(); /** + * + * *
                                  * Output only. URI of the Service deployed.
                                  * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
                                  * Output only. URI of the Service deployed.
                                  * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
                                  * The email of the service's service account. If empty, defaults to
                                  * `{project_number}-compute@developer.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 10; + * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** + * + * *
                                  * The email of the service's service account. If empty, defaults to
                                  * `{project_number}-compute@developer.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 10; + * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString - getServiceAccountEmailBytes(); + com.google.protobuf.ByteString getServiceAccountEmailBytes(); /** + * + * *
                                  * Whether 100% of traffic is routed to the latest revision.
                                  * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -281,64 +359,83 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @return The allTrafficOnLatestRevision. */ boolean getAllTrafficOnLatestRevision(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ - java.util.List + java.util.List getSecretEnvironmentVariablesList(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ com.google.cloud.functions.v2alpha.SecretEnvVar getSecretEnvironmentVariables(int index); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ int getSecretEnvironmentVariablesCount(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ - java.util.List + java.util.List getSecretEnvironmentVariablesOrBuilderList(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17; + * */ com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( int index); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ - java.util.List - getSecretVolumesList(); + java.util.List getSecretVolumesList(); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -347,6 +444,8 @@ com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder getSecretEnvironmentVar */ com.google.cloud.functions.v2alpha.SecretVolume getSecretVolumes(int index); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -355,41 +454,49 @@ com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder getSecretEnvironmentVar */ int getSecretVolumesCount(); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ - java.util.List + java.util.List getSecretVolumesOrBuilderList(); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19; */ - com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder getSecretVolumesOrBuilder( - int index); + com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index); /** + * + * *
                                  * Output only. The name of service revision.
                                  * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revision. */ java.lang.String getRevision(); /** + * + * *
                                  * Output only. The name of service revision.
                                  * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revision. */ - com.google.protobuf.ByteString - getRevisionBytes(); + com.google.protobuf.ByteString getRevisionBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java similarity index 71% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java index ee3b2849..9c1953aa 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java @@ -1,39 +1,55 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * The location of the function source code.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.Source} */ -public final class Source extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Source extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.Source) SourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Source.newBuilder() to construct. private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Source() { - } + + private Source() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Source(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Source( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,41 +68,46 @@ private Source( case 0: done = true; break; - case 10: { - com.google.cloud.functions.v2alpha.StorageSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.functions.v2alpha.StorageSource) source_).toBuilder(); + case 10: + { + com.google.cloud.functions.v2alpha.StorageSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = + ((com.google.cloud.functions.v2alpha.StorageSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.functions.v2alpha.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.functions.v2alpha.StorageSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - source_ = - input.readMessage(com.google.cloud.functions.v2alpha.StorageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.functions.v2alpha.StorageSource) source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.functions.v2alpha.RepoSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.functions.v2alpha.RepoSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.functions.v2alpha.RepoSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.functions.v2alpha.RepoSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; } - sourceCase_ = 1; - break; - } - case 18: { - com.google.cloud.functions.v2alpha.RepoSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.functions.v2alpha.RepoSource) source_).toBuilder(); - } - source_ = - input.readMessage(com.google.cloud.functions.v2alpha.RepoSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.functions.v2alpha.RepoSource) source_); - source_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - sourceCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,35 +115,40 @@ private Source( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Source_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.Source.class, com.google.cloud.functions.v2alpha.Source.Builder.class); + com.google.cloud.functions.v2alpha.Source.class, + com.google.cloud.functions.v2alpha.Source.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STORAGE_SOURCE(1), REPO_SOURCE(2), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -138,30 +164,36 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return STORAGE_SOURCE; - case 2: return REPO_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return STORAGE_SOURCE; + case 2: + return REPO_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int STORAGE_SOURCE_FIELD_NUMBER = 1; /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              * * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; + * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -169,21 +201,26 @@ public boolean hasStorageSource() { return sourceCase_ == 1; } /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              * * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; + * * @return The storageSource. */ @java.lang.Override public com.google.cloud.functions.v2alpha.StorageSource getStorageSource() { if (sourceCase_ == 1) { - return (com.google.cloud.functions.v2alpha.StorageSource) source_; + return (com.google.cloud.functions.v2alpha.StorageSource) source_; } return com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance(); } /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              @@ -193,19 +230,22 @@ public com.google.cloud.functions.v2alpha.StorageSource getStorageSource() { @java.lang.Override public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourceOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.functions.v2alpha.StorageSource) source_; + return (com.google.cloud.functions.v2alpha.StorageSource) source_; } return com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance(); } public static final int REPO_SOURCE_FIELD_NUMBER = 2; /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                                  * 
                              * * .google.cloud.functions.v2alpha.RepoSource repo_source = 2; + * * @return Whether the repoSource field is set. */ @java.lang.Override @@ -213,22 +253,27 @@ public boolean hasRepoSource() { return sourceCase_ == 2; } /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                                  * 
                              * * .google.cloud.functions.v2alpha.RepoSource repo_source = 2; + * * @return The repoSource. */ @java.lang.Override public com.google.cloud.functions.v2alpha.RepoSource getRepoSource() { if (sourceCase_ == 2) { - return (com.google.cloud.functions.v2alpha.RepoSource) source_; + return (com.google.cloud.functions.v2alpha.RepoSource) source_; } return com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance(); } /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                              @@ -239,12 +284,13 @@ public com.google.cloud.functions.v2alpha.RepoSource getRepoSource() {
                                 @java.lang.Override
                                 public com.google.cloud.functions.v2alpha.RepoSourceOrBuilder getRepoSourceOrBuilder() {
                                   if (sourceCase_ == 2) {
                              -       return (com.google.cloud.functions.v2alpha.RepoSource) source_;
                              +      return (com.google.cloud.functions.v2alpha.RepoSource) source_;
                                   }
                                   return com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance();
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -256,8 +302,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (sourceCase_ == 1) {
                                     output.writeMessage(1, (com.google.cloud.functions.v2alpha.StorageSource) source_);
                                   }
                              @@ -274,12 +319,14 @@ public int getSerializedSize() {
                               
                                   size = 0;
                                   if (sourceCase_ == 1) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(1, (com.google.cloud.functions.v2alpha.StorageSource) source_);
                              +      size +=
                              +          com.google.protobuf.CodedOutputStream.computeMessageSize(
                              +              1, (com.google.cloud.functions.v2alpha.StorageSource) source_);
                                   }
                                   if (sourceCase_ == 2) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(2, (com.google.cloud.functions.v2alpha.RepoSource) source_);
                              +      size +=
                              +          com.google.protobuf.CodedOutputStream.computeMessageSize(
                              +              2, (com.google.cloud.functions.v2alpha.RepoSource) source_);
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -289,22 +336,21 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2alpha.Source)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v2alpha.Source other = (com.google.cloud.functions.v2alpha.Source) obj;
                              +    com.google.cloud.functions.v2alpha.Source other =
                              +        (com.google.cloud.functions.v2alpha.Source) obj;
                               
                                   if (!getSourceCase().equals(other.getSourceCase())) return false;
                                   switch (sourceCase_) {
                                     case 1:
                              -        if (!getStorageSource()
                              -            .equals(other.getStorageSource())) return false;
                              +        if (!getStorageSource().equals(other.getStorageSource())) return false;
                                       break;
                                     case 2:
                              -        if (!getRepoSource()
                              -            .equals(other.getRepoSource())) return false;
                              +        if (!getRepoSource().equals(other.getRepoSource())) return false;
                                       break;
                                     case 0:
                                     default:
                              @@ -337,118 +383,127 @@ public int hashCode() {
                                   return hash;
                                 }
                               
                              -  public static com.google.cloud.functions.v2alpha.Source parseFrom(
                              -      java.nio.ByteBuffer data)
                              +  public static com.google.cloud.functions.v2alpha.Source parseFrom(java.nio.ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.Source parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.v2alpha.Source parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.Source 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.v2alpha.Source parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.Source parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.Source parseFrom(java.io.InputStream input)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.Source parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2alpha.Source parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2alpha.Source parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.Source parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.Source parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.Source parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              +
                                 public static Builder newBuilder(com.google.cloud.functions.v2alpha.Source prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The location of the function source code.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.Source} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.Source) com.google.cloud.functions.v2alpha.SourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Source_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.Source.class, com.google.cloud.functions.v2alpha.Source.Builder.class); + com.google.cloud.functions.v2alpha.Source.class, + com.google.cloud.functions.v2alpha.Source.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.Source.newBuilder() @@ -456,16 +511,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +529,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Source_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_Source_descriptor; } @java.lang.Override @@ -496,7 +550,8 @@ public com.google.cloud.functions.v2alpha.Source build() { @java.lang.Override public com.google.cloud.functions.v2alpha.Source buildPartial() { - com.google.cloud.functions.v2alpha.Source result = new com.google.cloud.functions.v2alpha.Source(this); + com.google.cloud.functions.v2alpha.Source result = + new com.google.cloud.functions.v2alpha.Source(this); if (sourceCase_ == 1) { if (storageSourceBuilder_ == null) { result.source_ = source_; @@ -520,38 +575,39 @@ public com.google.cloud.functions.v2alpha.Source buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.Source)other); + return mergeFrom((com.google.cloud.functions.v2alpha.Source) other); } else { super.mergeFrom(other); return this; @@ -561,17 +617,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.functions.v2alpha.Source other) { if (other == com.google.cloud.functions.v2alpha.Source.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case STORAGE_SOURCE: { - mergeStorageSource(other.getStorageSource()); - break; - } - case REPO_SOURCE: { - mergeRepoSource(other.getRepoSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case STORAGE_SOURCE: + { + mergeStorageSource(other.getStorageSource()); + break; + } + case REPO_SOURCE: + { + mergeRepoSource(other.getRepoSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -601,12 +660,12 @@ public Builder mergeFrom( } return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -616,15 +675,20 @@ public Builder clearSource() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> storageSourceBuilder_; + com.google.cloud.functions.v2alpha.StorageSource, + com.google.cloud.functions.v2alpha.StorageSource.Builder, + com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> + storageSourceBuilder_; /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              * * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; + * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -632,11 +696,14 @@ public boolean hasStorageSource() { return sourceCase_ == 1; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              * * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; + * * @return The storageSource. */ @java.lang.Override @@ -654,6 +721,8 @@ public com.google.cloud.functions.v2alpha.StorageSource getStorageSource() { } } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -674,6 +743,8 @@ public Builder setStorageSource(com.google.cloud.functions.v2alpha.StorageSource return this; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -692,6 +763,8 @@ public Builder setStorageSource( return this; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -700,10 +773,13 @@ public Builder setStorageSource( */ public Builder mergeStorageSource(com.google.cloud.functions.v2alpha.StorageSource value) { if (storageSourceBuilder_ == null) { - if (sourceCase_ == 1 && - source_ != com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance()) { - source_ = com.google.cloud.functions.v2alpha.StorageSource.newBuilder((com.google.cloud.functions.v2alpha.StorageSource) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 1 + && source_ != com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance()) { + source_ = + com.google.cloud.functions.v2alpha.StorageSource.newBuilder( + (com.google.cloud.functions.v2alpha.StorageSource) source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -719,6 +795,8 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2alpha.StorageSour return this; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -742,6 +820,8 @@ public Builder clearStorageSource() { return this; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -752,6 +832,8 @@ public com.google.cloud.functions.v2alpha.StorageSource.Builder getStorageSource return getStorageSourceFieldBuilder().getBuilder(); } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -770,6 +852,8 @@ public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourc } } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -777,33 +861,45 @@ public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourc * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> + com.google.cloud.functions.v2alpha.StorageSource, + com.google.cloud.functions.v2alpha.StorageSource.Builder, + com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> getStorageSourceFieldBuilder() { if (storageSourceBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance(); } - storageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>( + storageSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2alpha.StorageSource, + com.google.cloud.functions.v2alpha.StorageSource.Builder, + com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>( (com.google.cloud.functions.v2alpha.StorageSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 1; - onChanged();; + onChanged(); + ; return storageSourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.RepoSource, com.google.cloud.functions.v2alpha.RepoSource.Builder, com.google.cloud.functions.v2alpha.RepoSourceOrBuilder> repoSourceBuilder_; + com.google.cloud.functions.v2alpha.RepoSource, + com.google.cloud.functions.v2alpha.RepoSource.Builder, + com.google.cloud.functions.v2alpha.RepoSourceOrBuilder> + repoSourceBuilder_; /** + * + * *
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                                    * 
                              * * .google.cloud.functions.v2alpha.RepoSource repo_source = 2; + * * @return Whether the repoSource field is set. */ @java.lang.Override @@ -811,12 +907,15 @@ public boolean hasRepoSource() { return sourceCase_ == 2; } /** + * + * *
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                                    * 
                              * * .google.cloud.functions.v2alpha.RepoSource repo_source = 2; + * * @return The repoSource. */ @java.lang.Override @@ -834,6 +933,8 @@ public com.google.cloud.functions.v2alpha.RepoSource getRepoSource() { } } /** + * + * *
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -855,6 +956,8 @@ public Builder setRepoSource(com.google.cloud.functions.v2alpha.RepoSource value
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -874,6 +977,8 @@ public Builder setRepoSource(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -883,10 +988,13 @@ public Builder setRepoSource(
                                    */
                                   public Builder mergeRepoSource(com.google.cloud.functions.v2alpha.RepoSource value) {
                                     if (repoSourceBuilder_ == null) {
                              -        if (sourceCase_ == 2 &&
                              -            source_ != com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance()) {
                              -          source_ = com.google.cloud.functions.v2alpha.RepoSource.newBuilder((com.google.cloud.functions.v2alpha.RepoSource) source_)
                              -              .mergeFrom(value).buildPartial();
                              +        if (sourceCase_ == 2
                              +            && source_ != com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance()) {
                              +          source_ =
                              +              com.google.cloud.functions.v2alpha.RepoSource.newBuilder(
                              +                      (com.google.cloud.functions.v2alpha.RepoSource) source_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         source_ = value;
                                       }
                              @@ -902,6 +1010,8 @@ public Builder mergeRepoSource(com.google.cloud.functions.v2alpha.RepoSource val
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -926,6 +1036,8 @@ public Builder clearRepoSource() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -937,6 +1049,8 @@ public com.google.cloud.functions.v2alpha.RepoSource.Builder getRepoSourceBuilde
                                     return getRepoSourceFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -956,6 +1070,8 @@ public com.google.cloud.functions.v2alpha.RepoSourceOrBuilder getRepoSourceOrBui
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -964,26 +1080,32 @@ public com.google.cloud.functions.v2alpha.RepoSourceOrBuilder getRepoSourceOrBui
                                    * .google.cloud.functions.v2alpha.RepoSource repo_source = 2;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2alpha.RepoSource, com.google.cloud.functions.v2alpha.RepoSource.Builder, com.google.cloud.functions.v2alpha.RepoSourceOrBuilder> 
                              +            com.google.cloud.functions.v2alpha.RepoSource,
                              +            com.google.cloud.functions.v2alpha.RepoSource.Builder,
                              +            com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>
                                       getRepoSourceFieldBuilder() {
                                     if (repoSourceBuilder_ == null) {
                                       if (!(sourceCase_ == 2)) {
                                         source_ = com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance();
                                       }
                              -        repoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2alpha.RepoSource, com.google.cloud.functions.v2alpha.RepoSource.Builder, com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>(
                              +        repoSourceBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2alpha.RepoSource,
                              +                com.google.cloud.functions.v2alpha.RepoSource.Builder,
                              +                com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>(
                                               (com.google.cloud.functions.v2alpha.RepoSource) source_,
                                               getParentForChildren(),
                                               isClean());
                                       source_ = null;
                                     }
                                     sourceCase_ = 2;
                              -      onChanged();;
                              +      onChanged();
                              +      ;
                                     return repoSourceBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -993,12 +1115,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.Source)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.Source)
                                 private static final com.google.cloud.functions.v2alpha.Source DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.Source();
                                 }
                              @@ -1007,16 +1129,16 @@ public static com.google.cloud.functions.v2alpha.Source getDefaultInstance() {
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public Source parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new Source(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public Source parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new Source(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -1031,6 +1153,4 @@ public com.google.protobuf.Parser getParserForType() {
                                 public com.google.cloud.functions.v2alpha.Source getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java
                              similarity index 74%
                              rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java
                              rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java
                              index 603ecc90..0c2ca814 100644
                              --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java
                              @@ -1,31 +1,55 @@
                              +/*
                              + * 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/v2alpha/functions.proto
                               
                               package com.google.cloud.functions.v2alpha;
                               
                              -public interface SourceOrBuilder extends
                              +public interface SourceOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.Source)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              * * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; + * * @return Whether the storageSource field is set. */ boolean hasStorageSource(); /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              * * .google.cloud.functions.v2alpha.StorageSource storage_source = 1; + * * @return The storageSource. */ com.google.cloud.functions.v2alpha.StorageSource getStorageSource(); /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              @@ -35,26 +59,34 @@ public interface SourceOrBuilder extends com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourceOrBuilder(); /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                                  * 
                              * * .google.cloud.functions.v2alpha.RepoSource repo_source = 2; + * * @return Whether the repoSource field is set. */ boolean hasRepoSource(); /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                                  * 
                              * * .google.cloud.functions.v2alpha.RepoSource repo_source = 2; + * * @return The repoSource. */ com.google.cloud.functions.v2alpha.RepoSource getRepoSource(); /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                              diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java
                              similarity index 70%
                              rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java
                              rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java
                              index 1352ecda..8fba4335 100644
                              --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java
                              +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java
                              @@ -1,9 +1,26 @@
                              +/*
                              + * 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/v2alpha/functions.proto
                               
                               package com.google.cloud.functions.v2alpha;
                               
                               /**
                              + *
                              + *
                                * 
                                * Provenance of the source. Ways to find the original source, or verify that
                                * some source was used for this build.
                              @@ -11,30 +28,29 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2alpha.SourceProvenance}
                                */
                              -public final class SourceProvenance extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class SourceProvenance extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.SourceProvenance)
                                   SourceProvenanceOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use SourceProvenance.newBuilder() to construct.
                                 private SourceProvenance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              -  private SourceProvenance() {
                              -  }
                              +
                              +  private SourceProvenance() {}
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new SourceProvenance();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private SourceProvenance(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -53,39 +69,45 @@ private SourceProvenance(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            com.google.cloud.functions.v2alpha.StorageSource.Builder subBuilder = null;
                              -            if (resolvedStorageSource_ != null) {
                              -              subBuilder = resolvedStorageSource_.toBuilder();
                              -            }
                              -            resolvedStorageSource_ = input.readMessage(com.google.cloud.functions.v2alpha.StorageSource.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(resolvedStorageSource_);
                              -              resolvedStorageSource_ = subBuilder.buildPartial();
                              -            }
                              +          case 10:
                              +            {
                              +              com.google.cloud.functions.v2alpha.StorageSource.Builder subBuilder = null;
                              +              if (resolvedStorageSource_ != null) {
                              +                subBuilder = resolvedStorageSource_.toBuilder();
                              +              }
                              +              resolvedStorageSource_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2alpha.StorageSource.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(resolvedStorageSource_);
                              +                resolvedStorageSource_ = subBuilder.buildPartial();
                              +              }
                               
                              -            break;
                              -          }
                              -          case 18: {
                              -            com.google.cloud.functions.v2alpha.RepoSource.Builder subBuilder = null;
                              -            if (resolvedRepoSource_ != null) {
                              -              subBuilder = resolvedRepoSource_.toBuilder();
                              -            }
                              -            resolvedRepoSource_ = input.readMessage(com.google.cloud.functions.v2alpha.RepoSource.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(resolvedRepoSource_);
                              -              resolvedRepoSource_ = subBuilder.buildPartial();
                              +              break;
                                           }
                              +          case 18:
                              +            {
                              +              com.google.cloud.functions.v2alpha.RepoSource.Builder subBuilder = null;
                              +              if (resolvedRepoSource_ != null) {
                              +                subBuilder = resolvedRepoSource_.toBuilder();
                              +              }
                              +              resolvedRepoSource_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2alpha.RepoSource.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(resolvedRepoSource_);
                              +                resolvedRepoSource_ = subBuilder.buildPartial();
                              +              }
                               
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -93,35 +115,40 @@ private SourceProvenance(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     this.unknownFields = unknownFields.build();
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable
                              +    return com.google.cloud.functions.v2alpha.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2alpha.SourceProvenance.class, com.google.cloud.functions.v2alpha.SourceProvenance.Builder.class);
                              +            com.google.cloud.functions.v2alpha.SourceProvenance.class,
                              +            com.google.cloud.functions.v2alpha.SourceProvenance.Builder.class);
                                 }
                               
                                 public static final int RESOLVED_STORAGE_SOURCE_FIELD_NUMBER = 1;
                                 private com.google.cloud.functions.v2alpha.StorageSource resolvedStorageSource_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                                  * 
                              * * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1; + * * @return Whether the resolvedStorageSource field is set. */ @java.lang.Override @@ -129,19 +156,26 @@ public boolean hasResolvedStorageSource() { return resolvedStorageSource_ != null; } /** + * + * *
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                                  * 
                              * * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1; + * * @return The resolvedStorageSource. */ @java.lang.Override public com.google.cloud.functions.v2alpha.StorageSource getResolvedStorageSource() { - return resolvedStorageSource_ == null ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() : resolvedStorageSource_; + return resolvedStorageSource_ == null + ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() + : resolvedStorageSource_; } /** + * + * *
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                              @@ -150,19 +184,23 @@ public com.google.cloud.functions.v2alpha.StorageSource getResolvedStorageSource
                                  * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1;
                                  */
                                 @java.lang.Override
                              -  public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder() {
                              +  public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder
                              +      getResolvedStorageSourceOrBuilder() {
                                   return getResolvedStorageSource();
                                 }
                               
                                 public static final int RESOLVED_REPO_SOURCE_FIELD_NUMBER = 2;
                                 private com.google.cloud.functions.v2alpha.RepoSource resolvedRepoSource_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                                  * 
                              * * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2; + * * @return Whether the resolvedRepoSource field is set. */ @java.lang.Override @@ -170,19 +208,26 @@ public boolean hasResolvedRepoSource() { return resolvedRepoSource_ != null; } /** + * + * *
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                                  * 
                              * * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2; + * * @return The resolvedRepoSource. */ @java.lang.Override public com.google.cloud.functions.v2alpha.RepoSource getResolvedRepoSource() { - return resolvedRepoSource_ == null ? com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance() : resolvedRepoSource_; + return resolvedRepoSource_ == null + ? com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance() + : resolvedRepoSource_; } /** + * + * *
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                              @@ -196,6 +241,7 @@ public com.google.cloud.functions.v2alpha.RepoSourceOrBuilder getResolvedRepoSou
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -207,8 +253,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (resolvedStorageSource_ != null) {
                                     output.writeMessage(1, getResolvedStorageSource());
                                   }
                              @@ -225,12 +270,11 @@ public int getSerializedSize() {
                               
                                   size = 0;
                                   if (resolvedStorageSource_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(1, getResolvedStorageSource());
                              +      size +=
                              +          com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResolvedStorageSource());
                                   }
                                   if (resolvedRepoSource_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(2, getResolvedRepoSource());
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResolvedRepoSource());
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -240,22 +284,21 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2alpha.SourceProvenance)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v2alpha.SourceProvenance other = (com.google.cloud.functions.v2alpha.SourceProvenance) obj;
                              +    com.google.cloud.functions.v2alpha.SourceProvenance other =
                              +        (com.google.cloud.functions.v2alpha.SourceProvenance) obj;
                               
                                   if (hasResolvedStorageSource() != other.hasResolvedStorageSource()) return false;
                                   if (hasResolvedStorageSource()) {
                              -      if (!getResolvedStorageSource()
                              -          .equals(other.getResolvedStorageSource())) return false;
                              +      if (!getResolvedStorageSource().equals(other.getResolvedStorageSource())) return false;
                                   }
                                   if (hasResolvedRepoSource() != other.hasResolvedRepoSource()) return false;
                                   if (hasResolvedRepoSource()) {
                              -      if (!getResolvedRepoSource()
                              -          .equals(other.getResolvedRepoSource())) return false;
                              +      if (!getResolvedRepoSource().equals(other.getResolvedRepoSource())) return false;
                                   }
                                   if (!unknownFields.equals(other.unknownFields)) return false;
                                   return true;
                              @@ -282,96 +325,103 @@ public int hashCode() {
                                 }
                               
                                 public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
                              -      java.nio.ByteBuffer data)
                              -      throws com.google.protobuf.InvalidProtocolBufferException {
                              +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.v2alpha.SourceProvenance parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SourceProvenance 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.v2alpha.SourceProvenance parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2alpha.SourceProvenance parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2alpha.SourceProvenance parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SourceProvenance parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.SourceProvenance parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              +
                                 public static Builder newBuilder(com.google.cloud.functions.v2alpha.SourceProvenance prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Provenance of the source. Ways to find the original source, or verify that
                                  * some source was used for this build.
                              @@ -379,21 +429,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2alpha.SourceProvenance}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.SourceProvenance)
                                     com.google.cloud.functions.v2alpha.SourceProvenanceOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_SourceProvenance_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2alpha.SourceProvenance.class, com.google.cloud.functions.v2alpha.SourceProvenance.Builder.class);
                              +              com.google.cloud.functions.v2alpha.SourceProvenance.class,
                              +              com.google.cloud.functions.v2alpha.SourceProvenance.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2alpha.SourceProvenance.newBuilder()
                              @@ -401,16 +453,15 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              -      }
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -430,9 +481,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2alpha.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -451,7 +502,8 @@ public com.google.cloud.functions.v2alpha.SourceProvenance build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2alpha.SourceProvenance buildPartial() {
                              -      com.google.cloud.functions.v2alpha.SourceProvenance result = new com.google.cloud.functions.v2alpha.SourceProvenance(this);
                              +      com.google.cloud.functions.v2alpha.SourceProvenance result =
                              +          new com.google.cloud.functions.v2alpha.SourceProvenance(this);
                                     if (resolvedStorageSourceBuilder_ == null) {
                                       result.resolvedStorageSource_ = resolvedStorageSource_;
                                     } else {
                              @@ -470,38 +522,39 @@ public com.google.cloud.functions.v2alpha.SourceProvenance buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2alpha.SourceProvenance)other);
                              +        return mergeFrom((com.google.cloud.functions.v2alpha.SourceProvenance) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -509,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                                   }
                               
                                   public Builder mergeFrom(com.google.cloud.functions.v2alpha.SourceProvenance other) {
                              -      if (other == com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance()) return this;
                              +      if (other == com.google.cloud.functions.v2alpha.SourceProvenance.getDefaultInstance())
                              +        return this;
                                     if (other.hasResolvedStorageSource()) {
                                       mergeResolvedStorageSource(other.getResolvedStorageSource());
                                     }
                              @@ -535,7 +589,8 @@ public Builder mergeFrom(
                                     try {
                                       parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              -        parsedMessage = (com.google.cloud.functions.v2alpha.SourceProvenance) e.getUnfinishedMessage();
                              +        parsedMessage =
                              +            (com.google.cloud.functions.v2alpha.SourceProvenance) e.getUnfinishedMessage();
                                       throw e.unwrapIOException();
                                     } finally {
                                       if (parsedMessage != null) {
                              @@ -547,36 +602,49 @@ public Builder mergeFrom(
                               
                                   private com.google.cloud.functions.v2alpha.StorageSource resolvedStorageSource_;
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> resolvedStorageSourceBuilder_;
                              +            com.google.cloud.functions.v2alpha.StorageSource,
                              +            com.google.cloud.functions.v2alpha.StorageSource.Builder,
                              +            com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>
                              +        resolvedStorageSourceBuilder_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                                    * 
                              * * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1; + * * @return Whether the resolvedStorageSource field is set. */ public boolean hasResolvedStorageSource() { return resolvedStorageSourceBuilder_ != null || resolvedStorageSource_ != null; } /** + * + * *
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                                    * 
                              * * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1; + * * @return The resolvedStorageSource. */ public com.google.cloud.functions.v2alpha.StorageSource getResolvedStorageSource() { if (resolvedStorageSourceBuilder_ == null) { - return resolvedStorageSource_ == null ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() : resolvedStorageSource_; + return resolvedStorageSource_ == null + ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() + : resolvedStorageSource_; } else { return resolvedStorageSourceBuilder_.getMessage(); } } /** + * + * *
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -584,7 +652,8 @@ public com.google.cloud.functions.v2alpha.StorageSource getResolvedStorageSource
                                    *
                                    * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1;
                                    */
                              -    public Builder setResolvedStorageSource(com.google.cloud.functions.v2alpha.StorageSource value) {
                              +    public Builder setResolvedStorageSource(
                              +        com.google.cloud.functions.v2alpha.StorageSource value) {
                                     if (resolvedStorageSourceBuilder_ == null) {
                                       if (value == null) {
                                         throw new NullPointerException();
                              @@ -598,6 +667,8 @@ public Builder setResolvedStorageSource(com.google.cloud.functions.v2alpha.Stora
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -617,6 +688,8 @@ public Builder setResolvedStorageSource(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -624,11 +697,14 @@ public Builder setResolvedStorageSource(
                                    *
                                    * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1;
                                    */
                              -    public Builder mergeResolvedStorageSource(com.google.cloud.functions.v2alpha.StorageSource value) {
                              +    public Builder mergeResolvedStorageSource(
                              +        com.google.cloud.functions.v2alpha.StorageSource value) {
                                     if (resolvedStorageSourceBuilder_ == null) {
                                       if (resolvedStorageSource_ != null) {
                                         resolvedStorageSource_ =
                              -            com.google.cloud.functions.v2alpha.StorageSource.newBuilder(resolvedStorageSource_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2alpha.StorageSource.newBuilder(resolvedStorageSource_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         resolvedStorageSource_ = value;
                                       }
                              @@ -640,6 +716,8 @@ public Builder mergeResolvedStorageSource(com.google.cloud.functions.v2alpha.Sto
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -659,6 +737,8 @@ public Builder clearResolvedStorageSource() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -666,12 +746,15 @@ public Builder clearResolvedStorageSource() {
                                    *
                                    * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1;
                                    */
                              -    public com.google.cloud.functions.v2alpha.StorageSource.Builder getResolvedStorageSourceBuilder() {
                              -      
                              +    public com.google.cloud.functions.v2alpha.StorageSource.Builder
                              +        getResolvedStorageSourceBuilder() {
                              +
                                     onChanged();
                                     return getResolvedStorageSourceFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -679,15 +762,19 @@ public com.google.cloud.functions.v2alpha.StorageSource.Builder getResolvedStora
                                    *
                                    * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1;
                                    */
                              -    public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder() {
                              +    public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder
                              +        getResolvedStorageSourceOrBuilder() {
                                     if (resolvedStorageSourceBuilder_ != null) {
                                       return resolvedStorageSourceBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return resolvedStorageSource_ == null ?
                              -            com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance() : resolvedStorageSource_;
                              +        return resolvedStorageSource_ == null
                              +            ? com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance()
                              +            : resolvedStorageSource_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -696,14 +783,17 @@ public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getResolvedStor
                                    * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder> 
                              +            com.google.cloud.functions.v2alpha.StorageSource,
                              +            com.google.cloud.functions.v2alpha.StorageSource.Builder,
                              +            com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>
                                       getResolvedStorageSourceFieldBuilder() {
                                     if (resolvedStorageSourceBuilder_ == null) {
                              -        resolvedStorageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2alpha.StorageSource, com.google.cloud.functions.v2alpha.StorageSource.Builder, com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>(
                              -                getResolvedStorageSource(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        resolvedStorageSourceBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2alpha.StorageSource,
                              +                com.google.cloud.functions.v2alpha.StorageSource.Builder,
                              +                com.google.cloud.functions.v2alpha.StorageSourceOrBuilder>(
                              +                getResolvedStorageSource(), getParentForChildren(), isClean());
                                       resolvedStorageSource_ = null;
                                     }
                                     return resolvedStorageSourceBuilder_;
                              @@ -711,36 +801,49 @@ public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getResolvedStor
                               
                                   private com.google.cloud.functions.v2alpha.RepoSource resolvedRepoSource_;
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2alpha.RepoSource, com.google.cloud.functions.v2alpha.RepoSource.Builder, com.google.cloud.functions.v2alpha.RepoSourceOrBuilder> resolvedRepoSourceBuilder_;
                              +            com.google.cloud.functions.v2alpha.RepoSource,
                              +            com.google.cloud.functions.v2alpha.RepoSource.Builder,
                              +            com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>
                              +        resolvedRepoSourceBuilder_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                                    * 
                              * * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2; + * * @return Whether the resolvedRepoSource field is set. */ public boolean hasResolvedRepoSource() { return resolvedRepoSourceBuilder_ != null || resolvedRepoSource_ != null; } /** + * + * *
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                                    * 
                              * * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2; + * * @return The resolvedRepoSource. */ public com.google.cloud.functions.v2alpha.RepoSource getResolvedRepoSource() { if (resolvedRepoSourceBuilder_ == null) { - return resolvedRepoSource_ == null ? com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance() : resolvedRepoSource_; + return resolvedRepoSource_ == null + ? com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance() + : resolvedRepoSource_; } else { return resolvedRepoSourceBuilder_.getMessage(); } } /** + * + * *
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -762,6 +865,8 @@ public Builder setResolvedRepoSource(com.google.cloud.functions.v2alpha.RepoSour
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -781,6 +886,8 @@ public Builder setResolvedRepoSource(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -792,7 +899,9 @@ public Builder mergeResolvedRepoSource(com.google.cloud.functions.v2alpha.RepoSo
                                     if (resolvedRepoSourceBuilder_ == null) {
                                       if (resolvedRepoSource_ != null) {
                                         resolvedRepoSource_ =
                              -            com.google.cloud.functions.v2alpha.RepoSource.newBuilder(resolvedRepoSource_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2alpha.RepoSource.newBuilder(resolvedRepoSource_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         resolvedRepoSource_ = value;
                                       }
                              @@ -804,6 +913,8 @@ public Builder mergeResolvedRepoSource(com.google.cloud.functions.v2alpha.RepoSo
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -823,6 +934,8 @@ public Builder clearResolvedRepoSource() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -831,11 +944,13 @@ public Builder clearResolvedRepoSource() {
                                    * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2;
                                    */
                                   public com.google.cloud.functions.v2alpha.RepoSource.Builder getResolvedRepoSourceBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getResolvedRepoSourceFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -847,11 +962,14 @@ public com.google.cloud.functions.v2alpha.RepoSourceOrBuilder getResolvedRepoSou
                                     if (resolvedRepoSourceBuilder_ != null) {
                                       return resolvedRepoSourceBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return resolvedRepoSource_ == null ?
                              -            com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance() : resolvedRepoSource_;
                              +        return resolvedRepoSource_ == null
                              +            ? com.google.cloud.functions.v2alpha.RepoSource.getDefaultInstance()
                              +            : resolvedRepoSource_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -860,21 +978,24 @@ public com.google.cloud.functions.v2alpha.RepoSourceOrBuilder getResolvedRepoSou
                                    * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2alpha.RepoSource, com.google.cloud.functions.v2alpha.RepoSource.Builder, com.google.cloud.functions.v2alpha.RepoSourceOrBuilder> 
                              +            com.google.cloud.functions.v2alpha.RepoSource,
                              +            com.google.cloud.functions.v2alpha.RepoSource.Builder,
                              +            com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>
                                       getResolvedRepoSourceFieldBuilder() {
                                     if (resolvedRepoSourceBuilder_ == null) {
                              -        resolvedRepoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2alpha.RepoSource, com.google.cloud.functions.v2alpha.RepoSource.Builder, com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>(
                              -                getResolvedRepoSource(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        resolvedRepoSourceBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2alpha.RepoSource,
                              +                com.google.cloud.functions.v2alpha.RepoSource.Builder,
                              +                com.google.cloud.functions.v2alpha.RepoSourceOrBuilder>(
                              +                getResolvedRepoSource(), getParentForChildren(), isClean());
                                       resolvedRepoSource_ = null;
                                     }
                                     return resolvedRepoSourceBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -884,12 +1005,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.SourceProvenance)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.SourceProvenance)
                                 private static final com.google.cloud.functions.v2alpha.SourceProvenance DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.SourceProvenance();
                                 }
                              @@ -898,16 +1019,16 @@ public static com.google.cloud.functions.v2alpha.SourceProvenance getDefaultInst
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public SourceProvenance parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new SourceProvenance(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public SourceProvenance parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new SourceProvenance(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -922,6 +1043,4 @@ public com.google.protobuf.Parser getParserForType() {
                                 public com.google.cloud.functions.v2alpha.SourceProvenance getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java
                              similarity index 75%
                              rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java
                              rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java
                              index 165b82ea..322e6b23 100644
                              --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenanceOrBuilder.java
                              @@ -1,33 +1,57 @@
                              +/*
                              + * 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/v2alpha/functions.proto
                               
                               package com.google.cloud.functions.v2alpha;
                               
                              -public interface SourceProvenanceOrBuilder extends
                              +public interface SourceProvenanceOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.SourceProvenance)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                                  * 
                              * * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1; + * * @return Whether the resolvedStorageSource field is set. */ boolean hasResolvedStorageSource(); /** + * + * *
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                                  * 
                              * * .google.cloud.functions.v2alpha.StorageSource resolved_storage_source = 1; + * * @return The resolvedStorageSource. */ com.google.cloud.functions.v2alpha.StorageSource getResolvedStorageSource(); /** + * + * *
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                              @@ -38,26 +62,34 @@ public interface SourceProvenanceOrBuilder extends
                                 com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                                  * 
                              * * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2; + * * @return Whether the resolvedRepoSource field is set. */ boolean hasResolvedRepoSource(); /** + * + * *
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                                  * 
                              * * .google.cloud.functions.v2alpha.RepoSource resolved_repo_source = 2; + * * @return The resolvedRepoSource. */ com.google.cloud.functions.v2alpha.RepoSource getResolvedRepoSource(); /** + * + * *
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                              diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java
                              similarity index 75%
                              rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java
                              rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java
                              index ef709f32..a72d37b4 100644
                              --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java
                              +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java
                              @@ -1,24 +1,42 @@
                              +/*
                              + * 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/v2alpha/functions.proto
                               
                               package com.google.cloud.functions.v2alpha;
                               
                               /**
                              + *
                              + *
                                * 
                                * Each Stage of the deployment process
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.Stage} */ -public final class Stage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Stage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.Stage) StageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Stage.newBuilder() to construct. private Stage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Stage() { name_ = 0; message_ = ""; @@ -30,16 +48,15 @@ private Stage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Stage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Stage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,52 +76,60 @@ private Stage( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - name_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + message_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - resource_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + resource_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceUri_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stateMessages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + resourceUri_ = s; + break; } - stateMessages_.add( - input.readMessage(com.google.cloud.functions.v2alpha.StateMessage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stateMessages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stateMessages_.add( + input.readMessage( + com.google.cloud.functions.v2alpha.StateMessage.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,8 +137,7 @@ private Stage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_); @@ -122,29 +146,35 @@ private Stage( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Stage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_Stage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.Stage.class, com.google.cloud.functions.v2alpha.Stage.Builder.class); + com.google.cloud.functions.v2alpha.Stage.class, + com.google.cloud.functions.v2alpha.Stage.Builder.class); } /** + * + * *
                                  * Possible names for a Stage
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2alpha.Stage.Name} */ - public enum Name - implements com.google.protobuf.ProtocolMessageEnum { + public enum Name implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified. Invalid name.
                                    * 
                              @@ -153,6 +183,8 @@ public enum Name */ NAME_UNSPECIFIED(0), /** + * + * *
                                    * Artifact Regsitry Stage
                                    * 
                              @@ -161,6 +193,8 @@ public enum Name */ ARTIFACT_REGISTRY(1), /** + * + * *
                                    * Build Stage
                                    * 
                              @@ -169,6 +203,8 @@ public enum Name */ BUILD(2), /** + * + * *
                                    * Service Stage
                                    * 
                              @@ -177,6 +213,8 @@ public enum Name */ SERVICE(3), /** + * + * *
                                    * Trigger Stage
                                    * 
                              @@ -185,6 +223,8 @@ public enum Name */ TRIGGER(4), /** + * + * *
                                    * Service Rollback Stage
                                    * 
                              @@ -193,6 +233,8 @@ public enum Name */ SERVICE_ROLLBACK(5), /** + * + * *
                                    * Trigger Rollback Stage
                                    * 
                              @@ -204,6 +246,8 @@ public enum Name ; /** + * + * *
                                    * Not specified. Invalid name.
                                    * 
                              @@ -212,6 +256,8 @@ public enum Name */ public static final int NAME_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Artifact Regsitry Stage
                                    * 
                              @@ -220,6 +266,8 @@ public enum Name */ public static final int ARTIFACT_REGISTRY_VALUE = 1; /** + * + * *
                                    * Build Stage
                                    * 
                              @@ -228,6 +276,8 @@ public enum Name */ public static final int BUILD_VALUE = 2; /** + * + * *
                                    * Service Stage
                                    * 
                              @@ -236,6 +286,8 @@ public enum Name */ public static final int SERVICE_VALUE = 3; /** + * + * *
                                    * Trigger Stage
                                    * 
                              @@ -244,6 +296,8 @@ public enum Name */ public static final int TRIGGER_VALUE = 4; /** + * + * *
                                    * Service Rollback Stage
                                    * 
                              @@ -252,6 +306,8 @@ public enum Name */ public static final int SERVICE_ROLLBACK_VALUE = 5; /** + * + * *
                                    * Trigger Rollback Stage
                                    * 
                              @@ -260,7 +316,6 @@ public enum Name */ public static final int TRIGGER_ROLLBACK_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -285,53 +340,57 @@ public static Name valueOf(int value) { */ public static Name forNumber(int value) { switch (value) { - case 0: return NAME_UNSPECIFIED; - case 1: return ARTIFACT_REGISTRY; - case 2: return BUILD; - case 3: return SERVICE; - case 4: return TRIGGER; - case 5: return SERVICE_ROLLBACK; - case 6: return TRIGGER_ROLLBACK; - default: return null; + case 0: + return NAME_UNSPECIFIED; + case 1: + return ARTIFACT_REGISTRY; + case 2: + return BUILD; + case 3: + return SERVICE; + case 4: + return TRIGGER; + case 5: + return SERVICE_ROLLBACK; + case 6: + return TRIGGER_ROLLBACK; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Name> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Name findValueByNumber(int number) { - return Name.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Name findValueByNumber(int number) { + return Name.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2alpha.Stage.getDescriptor().getEnumTypes().get(0); } private static final Name[] VALUES = values(); - public static Name valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Name valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -349,15 +408,18 @@ private Name(int value) { } /** + * + * *
                                  * Possible states for a Stage
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2alpha.Stage.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified. Invalid state.
                                    * 
                              @@ -366,6 +428,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
                                    * Stage has not started.
                                    * 
                              @@ -374,6 +438,8 @@ public enum State */ NOT_STARTED(1), /** + * + * *
                                    * Stage is in progress.
                                    * 
                              @@ -382,6 +448,8 @@ public enum State */ IN_PROGRESS(2), /** + * + * *
                                    * Stage has completed.
                                    * 
                              @@ -393,6 +461,8 @@ public enum State ; /** + * + * *
                                    * Not specified. Invalid state.
                                    * 
                              @@ -401,6 +471,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Stage has not started.
                                    * 
                              @@ -409,6 +481,8 @@ public enum State */ public static final int NOT_STARTED_VALUE = 1; /** + * + * *
                                    * Stage is in progress.
                                    * 
                              @@ -417,6 +491,8 @@ public enum State */ public static final int IN_PROGRESS_VALUE = 2; /** + * + * *
                                    * Stage has completed.
                                    * 
                              @@ -425,7 +501,6 @@ public enum State */ public static final int COMPLETE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -450,50 +525,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return NOT_STARTED; - case 2: return IN_PROGRESS; - case 3: return COMPLETE; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return NOT_STARTED; + case 2: + return IN_PROGRESS; + case 3: + return COMPLETE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2alpha.Stage.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -513,38 +589,50 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private int name_; /** + * + * *
                                  * Name of the Stage. This will be unique for each Stage.
                                  * 
                              * * .google.cloud.functions.v2alpha.Stage.Name name = 1; + * * @return The enum numeric value on the wire for name. */ - @java.lang.Override public int getNameValue() { + @java.lang.Override + public int getNameValue() { return name_; } /** + * + * *
                                  * Name of the Stage. This will be unique for each Stage.
                                  * 
                              * * .google.cloud.functions.v2alpha.Stage.Name name = 1; + * * @return The name. */ - @java.lang.Override public com.google.cloud.functions.v2alpha.Stage.Name getName() { + @java.lang.Override + public com.google.cloud.functions.v2alpha.Stage.Name getName() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Stage.Name result = com.google.cloud.functions.v2alpha.Stage.Name.valueOf(name_); + com.google.cloud.functions.v2alpha.Stage.Name result = + com.google.cloud.functions.v2alpha.Stage.Name.valueOf(name_); return result == null ? com.google.cloud.functions.v2alpha.Stage.Name.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** + * + * *
                                  * Message describing the Stage
                                  * 
                              * * string message = 2; + * * @return The message. */ @java.lang.Override @@ -553,29 +641,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
                                  * Message describing the Stage
                                  * 
                              * * string message = 2; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -586,38 +674,50 @@ public java.lang.String getMessage() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
                                  * Current state of the Stage
                                  * 
                              * * .google.cloud.functions.v2alpha.Stage.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
                                  * Current state of the Stage
                                  * 
                              * * .google.cloud.functions.v2alpha.Stage.State state = 3; + * * @return The state. */ - @java.lang.Override public com.google.cloud.functions.v2alpha.Stage.State getState() { + @java.lang.Override + public com.google.cloud.functions.v2alpha.Stage.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Stage.State result = com.google.cloud.functions.v2alpha.Stage.State.valueOf(state_); + com.google.cloud.functions.v2alpha.Stage.State result = + com.google.cloud.functions.v2alpha.Stage.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2alpha.Stage.State.UNRECOGNIZED : result; } public static final int RESOURCE_FIELD_NUMBER = 4; private volatile java.lang.Object resource_; /** + * + * *
                                  * Resource of the Stage
                                  * 
                              * * string resource = 4; + * * @return The resource. */ @java.lang.Override @@ -626,29 +726,29 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
                                  * Resource of the Stage
                                  * 
                              * * string resource = 4; + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -659,11 +759,14 @@ public java.lang.String getResource() { public static final int RESOURCE_URI_FIELD_NUMBER = 5; private volatile java.lang.Object resourceUri_; /** + * + * *
                                  * Link to the current Stage resource
                                  * 
                              * * string resource_uri = 5; + * * @return The resourceUri. */ @java.lang.Override @@ -672,29 +775,29 @@ public java.lang.String getResourceUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUri_ = s; return s; } } /** + * + * *
                                  * Link to the current Stage resource
                                  * 
                              * * string resource_uri = 5; + * * @return The bytes for resourceUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceUriBytes() { + public com.google.protobuf.ByteString getResourceUriBytes() { java.lang.Object ref = resourceUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUri_ = b; return b; } else { @@ -705,6 +808,8 @@ public java.lang.String getResourceUri() { public static final int STATE_MESSAGES_FIELD_NUMBER = 6; private java.util.List stateMessages_; /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -716,6 +821,8 @@ public java.util.List getStateM return stateMessages_; } /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -723,11 +830,13 @@ public java.util.List getStateM * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ @java.lang.Override - public java.util.List + public java.util.List getStateMessagesOrBuilderList() { return stateMessages_; } /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -739,6 +848,8 @@ public int getStateMessagesCount() { return stateMessages_.size(); } /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -750,6 +861,8 @@ public com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int inde return stateMessages_.get(index); } /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -763,6 +876,7 @@ public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessages } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -774,8 +888,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (name_ != com.google.cloud.functions.v2alpha.Stage.Name.NAME_UNSPECIFIED.getNumber()) { output.writeEnum(1, name_); } @@ -804,15 +917,13 @@ public int getSerializedSize() { size = 0; if (name_ != com.google.cloud.functions.v2alpha.Stage.Name.NAME_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, name_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } if (state_ != com.google.cloud.functions.v2alpha.Stage.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); @@ -821,8 +932,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, resourceUri_); } for (int i = 0; i < stateMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, stateMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, stateMessages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -832,7 +942,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.Stage)) { return super.equals(obj); @@ -840,15 +950,11 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.functions.v2alpha.Stage other = (com.google.cloud.functions.v2alpha.Stage) obj; if (name_ != other.name_) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (state_ != other.state_) return false; - if (!getResource() - .equals(other.getResource())) return false; - if (!getResourceUri() - .equals(other.getResourceUri())) return false; - if (!getStateMessagesList() - .equals(other.getStateMessagesList())) return false; + if (!getResource().equals(other.getResource())) return false; + if (!getResourceUri().equals(other.getResourceUri())) return false; + if (!getStateMessagesList().equals(other.getStateMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -879,118 +985,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.Stage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.Stage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.Stage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.Stage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.Stage 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.v2alpha.Stage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.Stage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.Stage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.Stage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.Stage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.Stage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.Stage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.Stage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.Stage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2alpha.Stage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Each Stage of the deployment process
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.Stage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.Stage) com.google.cloud.functions.v2alpha.StageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Stage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_Stage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_Stage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.Stage.class, com.google.cloud.functions.v2alpha.Stage.Builder.class); + com.google.cloud.functions.v2alpha.Stage.class, + com.google.cloud.functions.v2alpha.Stage.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.Stage.newBuilder() @@ -998,17 +1113,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStateMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1032,9 +1147,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_Stage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_Stage_descriptor; } @java.lang.Override @@ -1053,7 +1168,8 @@ public com.google.cloud.functions.v2alpha.Stage build() { @java.lang.Override public com.google.cloud.functions.v2alpha.Stage buildPartial() { - com.google.cloud.functions.v2alpha.Stage result = new com.google.cloud.functions.v2alpha.Stage(this); + com.google.cloud.functions.v2alpha.Stage result = + new com.google.cloud.functions.v2alpha.Stage(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.message_ = message_; @@ -1077,38 +1193,39 @@ public com.google.cloud.functions.v2alpha.Stage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.Stage)other); + return mergeFrom((com.google.cloud.functions.v2alpha.Stage) other); } else { super.mergeFrom(other); return this; @@ -1153,9 +1270,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.Stage other) { stateMessagesBuilder_ = null; stateMessages_ = other.stateMessages_; bitField0_ = (bitField0_ & ~0x00000001); - stateMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStateMessagesFieldBuilder() : null; + stateMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStateMessagesFieldBuilder() + : null; } else { stateMessagesBuilder_.addAllMessages(other.stateMessages_); } @@ -1189,55 +1307,70 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private int name_ = 0; /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2alpha.Stage.Name name = 1; + * * @return The enum numeric value on the wire for name. */ - @java.lang.Override public int getNameValue() { + @java.lang.Override + public int getNameValue() { return name_; } /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2alpha.Stage.Name name = 1; + * * @param value The enum numeric value on the wire for name to set. * @return This builder for chaining. */ public Builder setNameValue(int value) { - + name_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2alpha.Stage.Name name = 1; + * * @return The name. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Stage.Name getName() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Stage.Name result = com.google.cloud.functions.v2alpha.Stage.Name.valueOf(name_); + com.google.cloud.functions.v2alpha.Stage.Name result = + com.google.cloud.functions.v2alpha.Stage.Name.valueOf(name_); return result == null ? com.google.cloud.functions.v2alpha.Stage.Name.UNRECOGNIZED : result; } /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2alpha.Stage.Name name = 1; + * * @param value The name to set. * @return This builder for chaining. */ @@ -1245,21 +1378,24 @@ public Builder setName(com.google.cloud.functions.v2alpha.Stage.Name value) { if (value == null) { throw new NullPointerException(); } - + name_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2alpha.Stage.Name name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = 0; onChanged(); return this; @@ -1267,18 +1403,20 @@ public Builder clearName() { private java.lang.Object message_ = ""; /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -1287,20 +1425,21 @@ public java.lang.String getMessage() { } } /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -1308,54 +1447,61 @@ public java.lang.String getMessage() { } } /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; @@ -1363,51 +1509,65 @@ public Builder setMessageBytes( private int state_ = 0; /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2alpha.Stage.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2alpha.Stage.State state = 3; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2alpha.Stage.State state = 3; + * * @return The state. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Stage.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.Stage.State result = com.google.cloud.functions.v2alpha.Stage.State.valueOf(state_); + com.google.cloud.functions.v2alpha.Stage.State result = + com.google.cloud.functions.v2alpha.Stage.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2alpha.Stage.State.UNRECOGNIZED : result; } /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2alpha.Stage.State state = 3; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1415,21 +1575,24 @@ public Builder setState(com.google.cloud.functions.v2alpha.Stage.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2alpha.Stage.State state = 3; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1437,18 +1600,20 @@ public Builder clearState() { private java.lang.Object resource_ = ""; /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -1457,20 +1622,21 @@ public java.lang.String getResource() { } } /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -1478,54 +1644,61 @@ public java.lang.String getResource() { } } /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -1533,18 +1706,20 @@ public Builder setResourceBytes( private java.lang.Object resourceUri_ = ""; /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @return The resourceUri. */ public java.lang.String getResourceUri() { java.lang.Object ref = resourceUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUri_ = s; return s; @@ -1553,20 +1728,21 @@ public java.lang.String getResourceUri() { } } /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @return The bytes for resourceUri. */ - public com.google.protobuf.ByteString - getResourceUriBytes() { + public com.google.protobuf.ByteString getResourceUriBytes() { java.lang.Object ref = resourceUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUri_ = b; return b; } else { @@ -1574,72 +1750,87 @@ public java.lang.String getResourceUri() { } } /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @param value The resourceUri to set. * @return This builder for chaining. */ - public Builder setResourceUri( - java.lang.String value) { + public Builder setResourceUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUri_ = value; onChanged(); return this; } /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @return This builder for chaining. */ public Builder clearResourceUri() { - + resourceUri_ = getDefaultInstance().getResourceUri(); onChanged(); return this; } /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @param value The bytes for resourceUri to set. * @return This builder for chaining. */ - public Builder setResourceUriBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUri_ = value; onChanged(); return this; } private java.util.List stateMessages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStateMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - stateMessages_ = new java.util.ArrayList(stateMessages_); + stateMessages_ = + new java.util.ArrayList( + stateMessages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.StateMessage, com.google.cloud.functions.v2alpha.StateMessage.Builder, com.google.cloud.functions.v2alpha.StateMessageOrBuilder> stateMessagesBuilder_; + com.google.cloud.functions.v2alpha.StateMessage, + com.google.cloud.functions.v2alpha.StateMessage.Builder, + com.google.cloud.functions.v2alpha.StateMessageOrBuilder> + stateMessagesBuilder_; /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1654,6 +1845,8 @@ public java.util.List getStateM } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1668,6 +1861,8 @@ public int getStateMessagesCount() { } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1682,6 +1877,8 @@ public com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int inde } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1703,6 +1900,8 @@ public Builder setStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1721,6 +1920,8 @@ public Builder setStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1741,6 +1942,8 @@ public Builder addStateMessages(com.google.cloud.functions.v2alpha.StateMessage return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1762,6 +1965,8 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1780,6 +1985,8 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1798,6 +2005,8 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1808,8 +2017,7 @@ public Builder addAllStateMessages( java.lang.Iterable values) { if (stateMessagesBuilder_ == null) { ensureStateMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stateMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateMessages_); onChanged(); } else { stateMessagesBuilder_.addAllMessages(values); @@ -1817,6 +2025,8 @@ public Builder addAllStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1834,6 +2044,8 @@ public Builder clearStateMessages() { return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1851,6 +2063,8 @@ public Builder removeStateMessages(int index) { return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1862,6 +2076,8 @@ public com.google.cloud.functions.v2alpha.StateMessage.Builder getStateMessagesB return getStateMessagesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1871,19 +2087,22 @@ public com.google.cloud.functions.v2alpha.StateMessage.Builder getStateMessagesB public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder( int index) { if (stateMessagesBuilder_ == null) { - return stateMessages_.get(index); } else { + return stateMessages_.get(index); + } else { return stateMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ - public java.util.List - getStateMessagesOrBuilderList() { + public java.util.List + getStateMessagesOrBuilderList() { if (stateMessagesBuilder_ != null) { return stateMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -1891,6 +2110,8 @@ public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessages } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1898,10 +2119,12 @@ public com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessages * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesBuilder() { - return getStateMessagesFieldBuilder().addBuilder( - com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1910,26 +2133,34 @@ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesB */ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesBuilder( int index) { - return getStateMessagesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()); } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              * * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ - public java.util.List - getStateMessagesBuilderList() { + public java.util.List + getStateMessagesBuilderList() { return getStateMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.StateMessage, com.google.cloud.functions.v2alpha.StateMessage.Builder, com.google.cloud.functions.v2alpha.StateMessageOrBuilder> + com.google.cloud.functions.v2alpha.StateMessage, + com.google.cloud.functions.v2alpha.StateMessage.Builder, + com.google.cloud.functions.v2alpha.StateMessageOrBuilder> getStateMessagesFieldBuilder() { if (stateMessagesBuilder_ == null) { - stateMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2alpha.StateMessage, com.google.cloud.functions.v2alpha.StateMessage.Builder, com.google.cloud.functions.v2alpha.StateMessageOrBuilder>( + stateMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2alpha.StateMessage, + com.google.cloud.functions.v2alpha.StateMessage.Builder, + com.google.cloud.functions.v2alpha.StateMessageOrBuilder>( stateMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1938,9 +2169,9 @@ public com.google.cloud.functions.v2alpha.StateMessage.Builder addStateMessagesB } return stateMessagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1950,12 +2181,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.Stage) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.Stage) private static final com.google.cloud.functions.v2alpha.Stage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.Stage(); } @@ -1964,16 +2195,16 @@ public static com.google.cloud.functions.v2alpha.Stage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Stage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Stage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Stage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1988,6 +2219,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.Stage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java similarity index 76% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java index 1b3ad8b7..47a82604 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StageOrBuilder.java @@ -1,120 +1,166 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface StageOrBuilder extends +public interface StageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.Stage) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Name of the Stage. This will be unique for each Stage.
                                  * 
                              * * .google.cloud.functions.v2alpha.Stage.Name name = 1; + * * @return The enum numeric value on the wire for name. */ int getNameValue(); /** + * + * *
                                  * Name of the Stage. This will be unique for each Stage.
                                  * 
                              * * .google.cloud.functions.v2alpha.Stage.Name name = 1; + * * @return The name. */ com.google.cloud.functions.v2alpha.Stage.Name getName(); /** + * + * *
                                  * Message describing the Stage
                                  * 
                              * * string message = 2; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
                                  * Message describing the Stage
                                  * 
                              * * string message = 2; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); /** + * + * *
                                  * Current state of the Stage
                                  * 
                              * * .google.cloud.functions.v2alpha.Stage.State state = 3; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
                                  * Current state of the Stage
                                  * 
                              * * .google.cloud.functions.v2alpha.Stage.State state = 3; + * * @return The state. */ com.google.cloud.functions.v2alpha.Stage.State getState(); /** + * + * *
                                  * Resource of the Stage
                                  * 
                              * * string resource = 4; + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
                                  * Resource of the Stage
                                  * 
                              * * string resource = 4; + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
                                  * Link to the current Stage resource
                                  * 
                              * * string resource_uri = 5; + * * @return The resourceUri. */ java.lang.String getResourceUri(); /** + * + * *
                                  * Link to the current Stage resource
                                  * 
                              * * string resource_uri = 5; + * * @return The bytes for resourceUri. */ - com.google.protobuf.ByteString - getResourceUriBytes(); + com.google.protobuf.ByteString getResourceUriBytes(); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ - java.util.List - getStateMessagesList(); + java.util.List getStateMessagesList(); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -123,6 +169,8 @@ public interface StageOrBuilder extends */ com.google.cloud.functions.v2alpha.StateMessage getStateMessages(int index); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -131,21 +179,24 @@ public interface StageOrBuilder extends */ int getStateMessagesCount(); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ - java.util.List + java.util.List getStateMessagesOrBuilderList(); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              * * repeated .google.cloud.functions.v2alpha.StateMessage state_messages = 6; */ - com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder( - int index); + com.google.cloud.functions.v2alpha.StateMessageOrBuilder getStateMessagesOrBuilder(int index); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java similarity index 70% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java index d1e3212b..3e5d1753 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java @@ -1,24 +1,42 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Informational messages about the state of the Cloud Function or Operation.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.StateMessage} */ -public final class StateMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StateMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.StateMessage) StateMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StateMessage.newBuilder() to construct. private StateMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StateMessage() { severity_ = 0; type_ = ""; @@ -27,16 +45,15 @@ private StateMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StateMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StateMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private StateMessage( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - severity_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + severity_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + type_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + message_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,36 +107,41 @@ private StateMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.StateMessage.class, com.google.cloud.functions.v2alpha.StateMessage.Builder.class); + com.google.cloud.functions.v2alpha.StateMessage.class, + com.google.cloud.functions.v2alpha.StateMessage.Builder.class); } /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2alpha.StateMessage.Severity} */ - public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified. Invalid severity.
                                    * 
                              @@ -125,6 +150,8 @@ public enum Severity */ SEVERITY_UNSPECIFIED(0), /** + * + * *
                                    * ERROR-level severity.
                                    * 
                              @@ -133,6 +160,8 @@ public enum Severity */ ERROR(1), /** + * + * *
                                    * WARNING-level severity.
                                    * 
                              @@ -141,6 +170,8 @@ public enum Severity */ WARNING(2), /** + * + * *
                                    * INFO-level severity.
                                    * 
                              @@ -152,6 +183,8 @@ public enum Severity ; /** + * + * *
                                    * Not specified. Invalid severity.
                                    * 
                              @@ -160,6 +193,8 @@ public enum Severity */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * ERROR-level severity.
                                    * 
                              @@ -168,6 +203,8 @@ public enum Severity */ public static final int ERROR_VALUE = 1; /** + * + * *
                                    * WARNING-level severity.
                                    * 
                              @@ -176,6 +213,8 @@ public enum Severity */ public static final int WARNING_VALUE = 2; /** + * + * *
                                    * INFO-level severity.
                                    * 
                              @@ -184,7 +223,6 @@ public enum Severity */ public static final int INFO_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -209,50 +247,51 @@ public static Severity valueOf(int value) { */ public static Severity forNumber(int value) { switch (value) { - case 0: return SEVERITY_UNSPECIFIED; - case 1: return ERROR; - case 2: return WARNING; - case 3: return INFO; - default: return null; + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return ERROR; + case 2: + return WARNING; + case 3: + return INFO; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Severity> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2alpha.StateMessage.getDescriptor().getEnumTypes().get(0); } private static final Severity[] VALUES = values(); - public static Severity valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -272,38 +311,52 @@ private Severity(int value) { public static final int SEVERITY_FIELD_NUMBER = 1; private int severity_; /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; + * * @return The severity. */ - @java.lang.Override public com.google.cloud.functions.v2alpha.StateMessage.Severity getSeverity() { + @java.lang.Override + public com.google.cloud.functions.v2alpha.StateMessage.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.StateMessage.Severity result = com.google.cloud.functions.v2alpha.StateMessage.Severity.valueOf(severity_); - return result == null ? com.google.cloud.functions.v2alpha.StateMessage.Severity.UNRECOGNIZED : result; + com.google.cloud.functions.v2alpha.StateMessage.Severity result = + com.google.cloud.functions.v2alpha.StateMessage.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.functions.v2alpha.StateMessage.Severity.UNRECOGNIZED + : result; } public static final int TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object type_; /** + * + * *
                                  * One-word CamelCase type of the state message.
                                  * 
                              * * string type = 2; + * * @return The type. */ @java.lang.Override @@ -312,29 +365,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
                                  * One-word CamelCase type of the state message.
                                  * 
                              * * string type = 2; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -345,11 +398,14 @@ public java.lang.String getType() { public static final int MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object message_; /** + * + * *
                                  * The message.
                                  * 
                              * * string message = 3; + * * @return The message. */ @java.lang.Override @@ -358,29 +414,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
                                  * The message.
                                  * 
                              * * string message = 3; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -389,6 +445,7 @@ public java.lang.String getMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -400,9 +457,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (severity_ != com.google.cloud.functions.v2alpha.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (severity_ + != com.google.cloud.functions.v2alpha.StateMessage.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { output.writeEnum(1, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { @@ -420,9 +478,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (severity_ != com.google.cloud.functions.v2alpha.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, severity_); + if (severity_ + != com.google.cloud.functions.v2alpha.StateMessage.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); @@ -438,18 +497,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.StateMessage)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.StateMessage other = (com.google.cloud.functions.v2alpha.StateMessage) obj; + com.google.cloud.functions.v2alpha.StateMessage other = + (com.google.cloud.functions.v2alpha.StateMessage) obj; if (severity_ != other.severity_) return false; - if (!getType() - .equals(other.getType())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getType().equals(other.getType())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,118 +530,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2alpha.StateMessage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.StateMessage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.StateMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.StateMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.StateMessage 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.v2alpha.StateMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.StateMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.StateMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.StateMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.StateMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.StateMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.StateMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.StateMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.StateMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2alpha.StateMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Informational messages about the state of the Cloud Function or Operation.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.StateMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.StateMessage) com.google.cloud.functions.v2alpha.StateMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_StateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.StateMessage.class, com.google.cloud.functions.v2alpha.StateMessage.Builder.class); + com.google.cloud.functions.v2alpha.StateMessage.class, + com.google.cloud.functions.v2alpha.StateMessage.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.StateMessage.newBuilder() @@ -591,16 +658,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -614,9 +680,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor; } @java.lang.Override @@ -635,7 +701,8 @@ public com.google.cloud.functions.v2alpha.StateMessage build() { @java.lang.Override public com.google.cloud.functions.v2alpha.StateMessage buildPartial() { - com.google.cloud.functions.v2alpha.StateMessage result = new com.google.cloud.functions.v2alpha.StateMessage(this); + com.google.cloud.functions.v2alpha.StateMessage result = + new com.google.cloud.functions.v2alpha.StateMessage(this); result.severity_ = severity_; result.type_ = type_; result.message_ = message_; @@ -647,38 +714,39 @@ public com.google.cloud.functions.v2alpha.StateMessage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.StateMessage)other); + return mergeFrom((com.google.cloud.functions.v2alpha.StateMessage) other); } else { super.mergeFrom(other); return this; @@ -686,7 +754,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.StateMessage other) { - if (other == com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2alpha.StateMessage.getDefaultInstance()) + return this; if (other.severity_ != 0) { setSeverityValue(other.getSeverityValue()); } @@ -729,51 +798,67 @@ public Builder mergeFrom( private int severity_ = 0; /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; + * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; + * * @return The severity. */ @java.lang.Override public com.google.cloud.functions.v2alpha.StateMessage.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2alpha.StateMessage.Severity result = com.google.cloud.functions.v2alpha.StateMessage.Severity.valueOf(severity_); - return result == null ? com.google.cloud.functions.v2alpha.StateMessage.Severity.UNRECOGNIZED : result; + com.google.cloud.functions.v2alpha.StateMessage.Severity result = + com.google.cloud.functions.v2alpha.StateMessage.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.functions.v2alpha.StateMessage.Severity.UNRECOGNIZED + : result; } /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; + * * @param value The severity to set. * @return This builder for chaining. */ @@ -781,21 +866,24 @@ public Builder setSeverity(com.google.cloud.functions.v2alpha.StateMessage.Sever if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; + * * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -803,18 +891,20 @@ public Builder clearSeverity() { private java.lang.Object type_ = ""; /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -823,20 +913,21 @@ public java.lang.String getType() { } } /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -844,54 +935,61 @@ public java.lang.String getType() { } } /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -899,18 +997,20 @@ public Builder setTypeBytes( private java.lang.Object message_ = ""; /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -919,20 +1019,21 @@ public java.lang.String getMessage() { } } /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -940,61 +1041,68 @@ public java.lang.String getMessage() { } } /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1004,12 +1112,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.StateMessage) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.StateMessage) private static final com.google.cloud.functions.v2alpha.StateMessage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.StateMessage(); } @@ -1018,16 +1126,16 @@ public static com.google.cloud.functions.v2alpha.StateMessage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StateMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1042,6 +1150,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.StateMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java similarity index 63% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java index 066a19cb..b879c44e 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessageOrBuilder.java @@ -1,68 +1,100 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface StateMessageOrBuilder extends +public interface StateMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.StateMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * .google.cloud.functions.v2alpha.StateMessage.Severity severity = 1; + * * @return The severity. */ com.google.cloud.functions.v2alpha.StateMessage.Severity getSeverity(); /** + * + * *
                                  * One-word CamelCase type of the state message.
                                  * 
                              * * string type = 2; + * * @return The type. */ java.lang.String getType(); /** + * + * *
                                  * One-word CamelCase type of the state message.
                                  * 
                              * * string type = 2; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
                                  * The message.
                                  * 
                              * * string message = 3; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
                                  * The message.
                                  * 
                              * * string message = 3; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); } diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java similarity index 72% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java index f60a9874..2ede7a30 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java @@ -1,24 +1,42 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Location of the source in an archive file in Google Cloud Storage.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.StorageSource} */ -public final class StorageSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StorageSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.StorageSource) StorageSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StorageSource.newBuilder() to construct. private StorageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StorageSource() { bucket_ = ""; object_ = ""; @@ -26,16 +44,15 @@ private StorageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StorageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StorageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private StorageSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - bucket_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - object_ = s; - break; - } - case 24: { + bucket_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - generation_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + object_ = s; + break; + } + case 24: + { + generation_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,29 +104,33 @@ private StorageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.StorageSource.class, com.google.cloud.functions.v2alpha.StorageSource.Builder.class); + com.google.cloud.functions.v2alpha.StorageSource.class, + com.google.cloud.functions.v2alpha.StorageSource.Builder.class); } public static final int BUCKET_FIELD_NUMBER = 1; private volatile java.lang.Object bucket_; /** + * + * *
                                  * Google Cloud Storage bucket containing the source (see
                                  * [Bucket Name
                              @@ -115,6 +138,7 @@ private StorageSource(
                                  * 
                              * * string bucket = 1; + * * @return The bucket. */ @java.lang.Override @@ -123,14 +147,15 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** + * + * *
                                  * Google Cloud Storage bucket containing the source (see
                                  * [Bucket Name
                              @@ -138,16 +163,15 @@ public java.lang.String getBucket() {
                                  * 
                              * * string bucket = 1; + * * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString - getBucketBytes() { + public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucket_ = b; return b; } else { @@ -158,6 +182,8 @@ public java.lang.String getBucket() { public static final int OBJECT_FIELD_NUMBER = 2; private volatile java.lang.Object object_; /** + * + * *
                                  * Google Cloud Storage object containing the source.
                                  * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -165,6 +191,7 @@ public java.lang.String getBucket() {
                                  * 
                              * * string object = 2; + * * @return The object. */ @java.lang.Override @@ -173,14 +200,15 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** + * + * *
                                  * Google Cloud Storage object containing the source.
                                  * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -188,16 +216,15 @@ public java.lang.String getObject() {
                                  * 
                              * * string object = 2; + * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString - getObjectBytes() { + public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { @@ -208,12 +235,15 @@ public java.lang.String getObject() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_; /** + * + * *
                                  * Google Cloud Storage generation for the object. If the generation is
                                  * omitted, the latest generation will be used.
                                  * 
                              * * int64 generation = 3; + * * @return The generation. */ @java.lang.Override @@ -222,6 +252,7 @@ public long getGeneration() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -260,8 +290,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, generation_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -271,19 +300,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2alpha.StorageSource)) { return super.equals(obj); } - com.google.cloud.functions.v2alpha.StorageSource other = (com.google.cloud.functions.v2alpha.StorageSource) obj; + com.google.cloud.functions.v2alpha.StorageSource other = + (com.google.cloud.functions.v2alpha.StorageSource) obj; - if (!getBucket() - .equals(other.getBucket())) return false; - if (!getObject() - .equals(other.getObject())) return false; - if (getGeneration() - != other.getGeneration()) return false; + if (!getBucket().equals(other.getBucket())) return false; + if (!getObject().equals(other.getObject())) return false; + if (getGeneration() != other.getGeneration()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,125 +327,133 @@ public int hashCode() { hash = (37 * hash) + OBJECT_FIELD_NUMBER; hash = (53 * hash) + getObject().hashCode(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2alpha.StorageSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.v2alpha.StorageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.StorageSource 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.v2alpha.StorageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.StorageSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2alpha.StorageSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2alpha.StorageSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.StorageSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2alpha.StorageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2alpha.StorageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Location of the source in an archive file in Google Cloud Storage.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.StorageSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.StorageSource) com.google.cloud.functions.v2alpha.StorageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_StorageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.StorageSource.class, com.google.cloud.functions.v2alpha.StorageSource.Builder.class); + com.google.cloud.functions.v2alpha.StorageSource.class, + com.google.cloud.functions.v2alpha.StorageSource.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.StorageSource.newBuilder() @@ -426,16 +461,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor; } @java.lang.Override @@ -470,7 +504,8 @@ public com.google.cloud.functions.v2alpha.StorageSource build() { @java.lang.Override public com.google.cloud.functions.v2alpha.StorageSource buildPartial() { - com.google.cloud.functions.v2alpha.StorageSource result = new com.google.cloud.functions.v2alpha.StorageSource(this); + com.google.cloud.functions.v2alpha.StorageSource result = + new com.google.cloud.functions.v2alpha.StorageSource(this); result.bucket_ = bucket_; result.object_ = object_; result.generation_ = generation_; @@ -482,38 +517,39 @@ public com.google.cloud.functions.v2alpha.StorageSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.StorageSource)other); + return mergeFrom((com.google.cloud.functions.v2alpha.StorageSource) other); } else { super.mergeFrom(other); return this; @@ -521,7 +557,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.StorageSource other) { - if (other == com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2alpha.StorageSource.getDefaultInstance()) + return this; if (!other.getBucket().isEmpty()) { bucket_ = other.bucket_; onChanged(); @@ -564,6 +601,8 @@ public Builder mergeFrom( private java.lang.Object bucket_ = ""; /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -571,13 +610,13 @@ public Builder mergeFrom(
                                    * 
                              * * string bucket = 1; + * * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; @@ -586,6 +625,8 @@ public java.lang.String getBucket() { } } /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -593,15 +634,14 @@ public java.lang.String getBucket() {
                                    * 
                              * * string bucket = 1; + * * @return The bytes for bucket. */ - public com.google.protobuf.ByteString - getBucketBytes() { + public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucket_ = b; return b; } else { @@ -609,6 +649,8 @@ public java.lang.String getBucket() { } } /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -616,20 +658,22 @@ public java.lang.String getBucket() {
                                    * 
                              * * string bucket = 1; + * * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket( - java.lang.String value) { + public Builder setBucket(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bucket_ = value; onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -637,15 +681,18 @@ public Builder setBucket(
                                    * 
                              * * string bucket = 1; + * * @return This builder for chaining. */ public Builder clearBucket() { - + bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -653,16 +700,16 @@ public Builder clearBucket() {
                                    * 
                              * * string bucket = 1; + * * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes( - com.google.protobuf.ByteString value) { + public Builder setBucketBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; onChanged(); return this; @@ -670,6 +717,8 @@ public Builder setBucketBytes( private java.lang.Object object_ = ""; /** + * + * *
                                    * Google Cloud Storage object containing the source.
                                    * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -677,13 +726,13 @@ public Builder setBucketBytes(
                                    * 
                              * * string object = 2; + * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -692,6 +741,8 @@ 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
                              @@ -699,15 +750,14 @@ public java.lang.String getObject() {
                                    * 
                              * * string object = 2; + * * @return The bytes for object. */ - public com.google.protobuf.ByteString - getObjectBytes() { + public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { @@ -715,6 +765,8 @@ 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
                              @@ -722,20 +774,22 @@ public java.lang.String getObject() {
                                    * 
                              * * string object = 2; + * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject( - java.lang.String value) { + public Builder setObject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + object_ = value; onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage object containing the source.
                                    * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -743,15 +797,18 @@ public Builder setObject(
                                    * 
                              * * string object = 2; + * * @return This builder for chaining. */ public Builder clearObject() { - + object_ = getDefaultInstance().getObject(); onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage object containing the source.
                                    * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -759,29 +816,32 @@ public Builder clearObject() {
                                    * 
                              * * string object = 2; + * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes( - com.google.protobuf.ByteString value) { + public Builder setObjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + object_ = value; onChanged(); return this; } - private long generation_ ; + private long generation_; /** + * + * *
                                    * Google Cloud Storage generation for the object. If the generation is
                                    * omitted, the latest generation will be used.
                                    * 
                              * * int64 generation = 3; + * * @return The generation. */ @java.lang.Override @@ -789,39 +849,45 @@ public long getGeneration() { return generation_; } /** + * + * *
                                    * Google Cloud Storage generation for the object. If the generation is
                                    * omitted, the latest generation will be used.
                                    * 
                              * * int64 generation = 3; + * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { - + generation_ = value; onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage generation for the object. If the generation is
                                    * omitted, the latest generation will be used.
                                    * 
                              * * int64 generation = 3; + * * @return This builder for chaining. */ public Builder clearGeneration() { - + generation_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -831,12 +897,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.StorageSource) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.StorageSource) private static final com.google.cloud.functions.v2alpha.StorageSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.StorageSource(); } @@ -845,16 +911,16 @@ public static com.google.cloud.functions.v2alpha.StorageSource getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StorageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,6 +935,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2alpha.StorageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java similarity index 67% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java index 6b41f0f3..78dcde7a 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; -public interface StorageSourceOrBuilder extends +public interface StorageSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.StorageSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Google Cloud Storage bucket containing the source (see
                                  * [Bucket Name
                              @@ -15,10 +33,13 @@ public interface StorageSourceOrBuilder extends
                                  * 
                              * * string bucket = 1; + * * @return The bucket. */ java.lang.String getBucket(); /** + * + * *
                                  * Google Cloud Storage bucket containing the source (see
                                  * [Bucket Name
                              @@ -26,12 +47,14 @@ public interface StorageSourceOrBuilder extends
                                  * 
                              * * string bucket = 1; + * * @return The bytes for bucket. */ - com.google.protobuf.ByteString - getBucketBytes(); + 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
                              @@ -39,10 +62,13 @@ public interface StorageSourceOrBuilder extends
                                  * 
                              * * string object = 2; + * * @return The object. */ java.lang.String getObject(); /** + * + * *
                                  * Google Cloud Storage object containing the source.
                                  * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -50,18 +76,21 @@ public interface StorageSourceOrBuilder extends
                                  * 
                              * * string object = 2; + * * @return The bytes for object. */ - com.google.protobuf.ByteString - getObjectBytes(); + com.google.protobuf.ByteString getObjectBytes(); /** + * + * *
                                  * Google Cloud Storage generation for the object. If the generation is
                                  * omitted, the latest generation will be used.
                                  * 
                              * * int64 generation = 3; + * * @return The generation. */ long getGeneration(); diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java similarity index 66% rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java index 5f483550..2d6af7a6 100644 --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java @@ -1,39 +1,55 @@ +/* + * 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/v2alpha/functions.proto package com.google.cloud.functions.v2alpha; /** + * + * *
                                * Request for the `UpdateFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.UpdateFunctionRequest} */ -public final class UpdateFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2alpha.UpdateFunctionRequest) UpdateFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateFunctionRequest.newBuilder() to construct. private UpdateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFunctionRequest() { - } + + private UpdateFunctionRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateFunctionRequest( case 0: done = true; break; - case 10: { - com.google.cloud.functions.v2alpha.Function.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); - } - function_ = input.readMessage(com.google.cloud.functions.v2alpha.Function.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.functions.v2alpha.Function.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); + } + function_ = + input.readMessage( + com.google.cloud.functions.v2alpha.Function.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,41 @@ private UpdateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.UpdateFunctionRequest.class, com.google.cloud.functions.v2alpha.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.UpdateFunctionRequest.class, + com.google.cloud.functions.v2alpha.UpdateFunctionRequest.Builder.class); } public static final int FUNCTION_FIELD_NUMBER = 1; private com.google.cloud.functions.v2alpha.Function function_; /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ @java.lang.Override @@ -127,23 +155,34 @@ public boolean hasFunction() { return function_ != null; } /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ @java.lang.Override public com.google.cloud.functions.v2alpha.Function getFunction() { - return function_ == null ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() + : function_; } /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder() { @@ -153,6 +192,8 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -160,6 +201,7 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -167,6 +209,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -174,6 +218,7 @@ public boolean hasUpdateMask() {
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -181,6 +226,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -195,6 +242,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -206,8 +254,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (function_ != null) {
                                     output.writeMessage(1, getFunction());
                                   }
                              @@ -224,12 +271,10 @@ public int getSerializedSize() {
                               
                                   size = 0;
                                   if (function_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(1, getFunction());
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunction());
                                   }
                                   if (updateMask_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(2, getUpdateMask());
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -239,22 +284,21 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2alpha.UpdateFunctionRequest)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v2alpha.UpdateFunctionRequest other = (com.google.cloud.functions.v2alpha.UpdateFunctionRequest) obj;
                              +    com.google.cloud.functions.v2alpha.UpdateFunctionRequest other =
                              +        (com.google.cloud.functions.v2alpha.UpdateFunctionRequest) obj;
                               
                                   if (hasFunction() != other.hasFunction()) return false;
                                   if (hasFunction()) {
                              -      if (!getFunction()
                              -          .equals(other.getFunction())) return false;
                              +      if (!getFunction().equals(other.getFunction())) return false;
                                   }
                                   if (hasUpdateMask() != other.hasUpdateMask()) return false;
                                   if (hasUpdateMask()) {
                              -      if (!getUpdateMask()
                              -          .equals(other.getUpdateMask())) return false;
                              +      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
                                   }
                                   if (!unknownFields.equals(other.unknownFields)) return false;
                                   return true;
                              @@ -281,117 +325,127 @@ public int hashCode() {
                                 }
                               
                                 public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
                              -      java.nio.ByteBuffer data)
                              -      throws com.google.protobuf.InvalidProtocolBufferException {
                              +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.v2alpha.UpdateFunctionRequest parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest 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.v2alpha.UpdateFunctionRequest parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              -  public static Builder newBuilder(com.google.cloud.functions.v2alpha.UpdateFunctionRequest prototype) {
                              +
                              +  public static Builder newBuilder(
                              +      com.google.cloud.functions.v2alpha.UpdateFunctionRequest prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Request for the `UpdateFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2alpha.UpdateFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2alpha.UpdateFunctionRequest) com.google.cloud.functions.v2alpha.UpdateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2alpha.UpdateFunctionRequest.class, com.google.cloud.functions.v2alpha.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v2alpha.UpdateFunctionRequest.class, + com.google.cloud.functions.v2alpha.UpdateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2alpha.UpdateFunctionRequest.newBuilder() @@ -399,16 +453,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2alpha.FunctionsProto.internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2alpha.FunctionsProto + .internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; } @java.lang.Override @@ -449,7 +502,8 @@ public com.google.cloud.functions.v2alpha.UpdateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2alpha.UpdateFunctionRequest buildPartial() { - com.google.cloud.functions.v2alpha.UpdateFunctionRequest result = new com.google.cloud.functions.v2alpha.UpdateFunctionRequest(this); + com.google.cloud.functions.v2alpha.UpdateFunctionRequest result = + new com.google.cloud.functions.v2alpha.UpdateFunctionRequest(this); if (functionBuilder_ == null) { result.function_ = function_; } else { @@ -468,38 +522,39 @@ public com.google.cloud.functions.v2alpha.UpdateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2alpha.UpdateFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v2alpha.UpdateFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -507,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2alpha.UpdateFunctionRequest other) { - if (other == com.google.cloud.functions.v2alpha.UpdateFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2alpha.UpdateFunctionRequest.getDefaultInstance()) + return this; if (other.hasFunction()) { mergeFunction(other.getFunction()); } @@ -533,7 +589,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2alpha.UpdateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2alpha.UpdateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -545,39 +602,58 @@ public Builder mergeFrom( private com.google.cloud.functions.v2alpha.Function function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder> functionBuilder_; + com.google.cloud.functions.v2alpha.Function, + com.google.cloud.functions.v2alpha.Function.Builder, + com.google.cloud.functions.v2alpha.FunctionOrBuilder> + functionBuilder_; /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ public com.google.cloud.functions.v2alpha.Function getFunction() { if (functionBuilder_ == null) { - return function_ == null ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() + : function_; } else { return functionBuilder_.getMessage(); } } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFunction(com.google.cloud.functions.v2alpha.Function value) { if (functionBuilder_ == null) { @@ -593,11 +669,15 @@ public Builder setFunction(com.google.cloud.functions.v2alpha.Function value) { return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFunction( com.google.cloud.functions.v2alpha.Function.Builder builderForValue) { @@ -611,17 +691,23 @@ public Builder setFunction( return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFunction(com.google.cloud.functions.v2alpha.Function value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v2alpha.Function.newBuilder(function_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v2alpha.Function.newBuilder(function_) + .mergeFrom(value) + .buildPartial(); } else { function_ = value; } @@ -633,11 +719,15 @@ public Builder mergeFunction(com.google.cloud.functions.v2alpha.Function value) return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -651,48 +741,64 @@ public Builder clearFunction() { return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v2alpha.Function.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null ? - com.google.cloud.functions.v2alpha.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2alpha.Function.getDefaultInstance() + : function_; } } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder> + com.google.cloud.functions.v2alpha.Function, + com.google.cloud.functions.v2alpha.Function.Builder, + com.google.cloud.functions.v2alpha.FunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2alpha.Function, com.google.cloud.functions.v2alpha.Function.Builder, com.google.cloud.functions.v2alpha.FunctionOrBuilder>( - getFunction(), - getParentForChildren(), - isClean()); + functionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2alpha.Function, + com.google.cloud.functions.v2alpha.Function.Builder, + com.google.cloud.functions.v2alpha.FunctionOrBuilder>( + getFunction(), getParentForChildren(), isClean()); function_ = null; } return functionBuilder_; @@ -700,8 +806,13 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -709,12 +820,15 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder
                                    * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -722,16 +836,21 @@ public boolean hasUpdateMask() {
                                    * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -754,6 +873,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -762,8 +883,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                                    *
                                    * .google.protobuf.FieldMask update_mask = 2;
                                    */
                              -    public Builder setUpdateMask(
                              -        com.google.protobuf.FieldMask.Builder builderForValue) {
                              +    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
                                     if (updateMaskBuilder_ == null) {
                                       updateMask_ = builderForValue.build();
                                       onChanged();
                              @@ -774,6 +894,8 @@ public Builder setUpdateMask(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -786,7 +908,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                                     if (updateMaskBuilder_ == null) {
                                       if (updateMask_ != null) {
                                         updateMask_ =
                              -            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
                              +              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
                                       } else {
                                         updateMask_ = value;
                                       }
                              @@ -798,6 +920,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -818,6 +942,8 @@ public Builder clearUpdateMask() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -827,11 +953,13 @@ public Builder clearUpdateMask() {
                                    * .google.protobuf.FieldMask update_mask = 2;
                                    */
                                   public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getUpdateMaskFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -844,11 +972,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                                     if (updateMaskBuilder_ != null) {
                                       return updateMaskBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return updateMask_ == null ?
                              -            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
                              +        return updateMask_ == null
                              +            ? com.google.protobuf.FieldMask.getDefaultInstance()
                              +            : updateMask_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -858,21 +989,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                                    * .google.protobuf.FieldMask update_mask = 2;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
                              +            com.google.protobuf.FieldMask,
                              +            com.google.protobuf.FieldMask.Builder,
                              +            com.google.protobuf.FieldMaskOrBuilder>
                                       getUpdateMaskFieldBuilder() {
                                     if (updateMaskBuilder_ == null) {
                              -        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
                              -                getUpdateMask(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        updateMaskBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.protobuf.FieldMask,
                              +                com.google.protobuf.FieldMask.Builder,
                              +                com.google.protobuf.FieldMaskOrBuilder>(
                              +                getUpdateMask(), getParentForChildren(), isClean());
                                       updateMask_ = null;
                                     }
                                     return updateMaskBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -882,12 +1016,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2alpha.UpdateFunctionRequest)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2alpha.UpdateFunctionRequest)
                                 private static final com.google.cloud.functions.v2alpha.UpdateFunctionRequest DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2alpha.UpdateFunctionRequest();
                                 }
                              @@ -896,16 +1030,16 @@ public static com.google.cloud.functions.v2alpha.UpdateFunctionRequest getDefaul
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public UpdateFunctionRequest parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new UpdateFunctionRequest(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public UpdateFunctionRequest parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new UpdateFunctionRequest(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -920,6 +1054,4 @@ public com.google.protobuf.Parser getParserForType() {
                                 public com.google.cloud.functions.v2alpha.UpdateFunctionRequest getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java
                              similarity index 60%
                              rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java
                              rename to proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java
                              index fdd2d1eb..fad1333c 100644
                              --- a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequestOrBuilder.java
                              @@ -1,40 +1,72 @@
                              +/*
                              + * 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/v2alpha/functions.proto
                               
                               package com.google.cloud.functions.v2alpha;
                               
                              -public interface UpdateFunctionRequestOrBuilder extends
                              +public interface UpdateFunctionRequestOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2alpha.UpdateFunctionRequest)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ boolean hasFunction(); /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ com.google.cloud.functions.v2alpha.Function getFunction(); /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2alpha.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder(); /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -42,10 +74,13 @@ public interface UpdateFunctionRequestOrBuilder extends
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -53,10 +88,13 @@ public interface UpdateFunctionRequestOrBuilder extends
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              diff --git a/owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/proto/google/cloud/functions/v2alpha/functions.proto b/proto-google-cloud-functions-v2alpha/src/main/proto/google/cloud/functions/v2alpha/functions.proto
                              similarity index 100%
                              rename from owl-bot-staging/v2alpha/proto-google-cloud-functions-v2alpha/src/main/proto/google/cloud/functions/v2alpha/functions.proto
                              rename to proto-google-cloud-functions-v2alpha/src/main/proto/google/cloud/functions/v2alpha/functions.proto
                              diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java
                              similarity index 70%
                              rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java
                              rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java
                              index 06ba2869..c5165e5c 100644
                              --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java
                              +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java
                              @@ -1,9 +1,26 @@
                              +/*
                              + * 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;
                               
                               /**
                              + *
                              + *
                                * 
                                * Describes the Build step of the function that builds a container from the
                                * given source.
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2beta.BuildConfig}
                                */
                              -public final class BuildConfig extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class BuildConfig extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.BuildConfig)
                                   BuildConfigOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use BuildConfig.newBuilder() to construct.
                                 private BuildConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private BuildConfig() {
                                   build_ = "";
                                   runtime_ = "";
                              @@ -30,16 +48,15 @@ private BuildConfig() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new BuildConfig();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private BuildConfig(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -59,82 +76,99 @@ private BuildConfig(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            build_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              build_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            runtime_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              runtime_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            entryPoint_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            com.google.cloud.functions.v2beta.Source.Builder subBuilder = null;
                              -            if (source_ != null) {
                              -              subBuilder = source_.toBuilder();
                              +              entryPoint_ = s;
                              +              break;
                                           }
                              -            source_ = input.readMessage(com.google.cloud.functions.v2beta.Source.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(source_);
                              -              source_ = subBuilder.buildPartial();
                              +          case 34:
                              +            {
                              +              com.google.cloud.functions.v2beta.Source.Builder subBuilder = null;
                              +              if (source_ != null) {
                              +                subBuilder = source_.toBuilder();
                              +              }
                              +              source_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2beta.Source.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(source_);
                              +                source_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              +          case 42:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            break;
                              -          }
                              -          case 42: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            workerPool_ = s;
                              -            break;
                              -          }
                              -          case 50: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              environmentVariables_ = com.google.protobuf.MapField.newMapField(
                              -                  EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              -              mutable_bitField0_ |= 0x00000001;
                              +              workerPool_ = s;
                              +              break;
                                           }
                              -            com.google.protobuf.MapEntry
                              -            environmentVariables__ = input.readMessage(
                              -                EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              -            environmentVariables_.getMutableMap().put(
                              -                environmentVariables__.getKey(), environmentVariables__.getValue());
                              -            break;
                              -          }
                              -          case 58: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 50:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                environmentVariables_ =
                              +                    com.google.protobuf.MapField.newMapField(
                              +                        EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              com.google.protobuf.MapEntry
                              +                  environmentVariables__ =
                              +                      input.readMessage(
                              +                          EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
                              +                          extensionRegistry);
                              +              environmentVariables_
                              +                  .getMutableMap()
                              +                  .put(environmentVariables__.getKey(), environmentVariables__.getValue());
                              +              break;
                              +            }
                              +          case 58:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            dockerRepository_ = s;
                              -            break;
                              -          }
                              -          case 66: {
                              -            com.google.cloud.functions.v2beta.SourceProvenance.Builder subBuilder = null;
                              -            if (sourceProvenance_ != null) {
                              -              subBuilder = sourceProvenance_.toBuilder();
                              +              dockerRepository_ = s;
                              +              break;
                                           }
                              -            sourceProvenance_ = input.readMessage(com.google.cloud.functions.v2beta.SourceProvenance.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(sourceProvenance_);
                              -              sourceProvenance_ = subBuilder.buildPartial();
                              +          case 66:
                              +            {
                              +              com.google.cloud.functions.v2beta.SourceProvenance.Builder subBuilder = null;
                              +              if (sourceProvenance_ != null) {
                              +                subBuilder = sourceProvenance_.toBuilder();
                              +              }
                              +              sourceProvenance_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2beta.SourceProvenance.parser(),
                              +                      extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(sourceProvenance_);
                              +                sourceProvenance_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              -
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -142,47 +176,53 @@ private BuildConfig(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     this.unknownFields = unknownFields.build();
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor;
                                 }
                               
                                 @SuppressWarnings({"rawtypes"})
                                 @java.lang.Override
                              -  protected com.google.protobuf.MapField internalGetMapField(
                              -      int number) {
                              +  protected com.google.protobuf.MapField internalGetMapField(int number) {
                                   switch (number) {
                                     case 6:
                                       return internalGetEnvironmentVariables();
                                     default:
                              -        throw new RuntimeException(
                              -            "Invalid map field number: " + number);
                              +        throw new RuntimeException("Invalid map field number: " + number);
                                   }
                                 }
                              +
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2beta.BuildConfig.class, com.google.cloud.functions.v2beta.BuildConfig.Builder.class);
                              +            com.google.cloud.functions.v2beta.BuildConfig.class,
                              +            com.google.cloud.functions.v2beta.BuildConfig.Builder.class);
                                 }
                               
                                 public static final int BUILD_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object build_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ @java.lang.Override @@ -191,30 +231,32 @@ public java.lang.String getBuild() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ @java.lang.Override - public com.google.protobuf.ByteString - getBuildBytes() { + public com.google.protobuf.ByteString getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); build_ = b; return b; } else { @@ -225,6 +267,8 @@ public java.lang.String getBuild() { public static final int RUNTIME_FIELD_NUMBER = 2; private volatile java.lang.Object runtime_; /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -234,6 +278,7 @@ public java.lang.String getBuild() {
                                  * 
                              * * string runtime = 2; + * * @return The runtime. */ @java.lang.Override @@ -242,14 +287,15 @@ public java.lang.String getRuntime() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; } } /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -259,16 +305,15 @@ public java.lang.String getRuntime() {
                                  * 
                              * * string runtime = 2; + * * @return The bytes for runtime. */ @java.lang.Override - public com.google.protobuf.ByteString - getRuntimeBytes() { + public com.google.protobuf.ByteString getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtime_ = b; return b; } else { @@ -279,6 +324,8 @@ public java.lang.String getRuntime() { public static final int ENTRY_POINT_FIELD_NUMBER = 3; private volatile java.lang.Object entryPoint_; /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -289,6 +336,7 @@ public java.lang.String getRuntime() {
                                  * 
                              * * string entry_point = 3; + * * @return The entryPoint. */ @java.lang.Override @@ -297,14 +345,15 @@ public java.lang.String getEntryPoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; } } /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -315,16 +364,15 @@ public java.lang.String getEntryPoint() {
                                  * 
                              * * string entry_point = 3; + * * @return The bytes for entryPoint. */ @java.lang.Override - public com.google.protobuf.ByteString - getEntryPointBytes() { + public com.google.protobuf.ByteString getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -335,11 +383,14 @@ public java.lang.String getEntryPoint() { public static final int SOURCE_FIELD_NUMBER = 4; private com.google.cloud.functions.v2beta.Source source_; /** + * + * *
                                  * The location of the function source code.
                                  * 
                              * * .google.cloud.functions.v2beta.Source source = 4; + * * @return Whether the source field is set. */ @java.lang.Override @@ -347,18 +398,25 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
                                  * The location of the function source code.
                                  * 
                              * * .google.cloud.functions.v2beta.Source source = 4; + * * @return The source. */ @java.lang.Override public com.google.cloud.functions.v2beta.Source getSource() { - return source_ == null ? com.google.cloud.functions.v2beta.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.functions.v2beta.Source.getDefaultInstance() + : source_; } /** + * + * *
                                  * The location of the function source code.
                                  * 
                              @@ -373,11 +431,16 @@ public com.google.cloud.functions.v2beta.SourceOrBuilder getSourceOrBuilder() { public static final int SOURCE_PROVENANCE_FIELD_NUMBER = 8; private com.google.cloud.functions.v2beta.SourceProvenance sourceProvenance_; /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the sourceProvenance field is set. */ @java.lang.Override @@ -385,32 +448,46 @@ public boolean hasSourceProvenance() { return sourceProvenance_ != null; } /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceProvenance. */ @java.lang.Override public com.google.cloud.functions.v2beta.SourceProvenance getSourceProvenance() { - return sourceProvenance_ == null ? com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance() : sourceProvenance_; + return sourceProvenance_ == null + ? com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance() + : sourceProvenance_; } /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { + public com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder + getSourceProvenanceOrBuilder() { return getSourceProvenance(); } public static final int WORKER_POOL_FIELD_NUMBER = 5; private volatile java.lang.Object workerPool_; /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -426,6 +503,7 @@ public com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder getSourceProv
                                  * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The workerPool. */ @java.lang.Override @@ -434,14 +512,15 @@ public java.lang.String getWorkerPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerPool_ = s; return s; } } /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -457,16 +536,15 @@ public java.lang.String getWorkerPool() {
                                  * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for workerPool. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkerPoolBytes() { + public com.google.protobuf.ByteString getWorkerPoolBytes() { java.lang.Object ref = workerPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workerPool_ = b; return b; } else { @@ -475,21 +553,22 @@ public java.lang.String getWorkerPool() { } public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 6; + private static final class EnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -501,28 +580,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              * * map<string, string> environment_variables = 6; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -530,11 +611,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -542,16 +624,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -559,10 +643,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 6; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -574,6 +658,8 @@ public java.lang.String getEnvironmentVariablesOrThrow( public static final int DOCKER_REPOSITORY_FIELD_NUMBER = 7; private volatile 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
                              @@ -587,7 +673,10 @@ public java.lang.String getEnvironmentVariablesOrThrow(
                                  * Repository format must be 'DOCKER'.
                                  * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The dockerRepository. */ @java.lang.Override @@ -596,14 +685,15 @@ public java.lang.String getDockerRepository() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; } } /** + * + * *
                                  * Optional. User managed repository created in Artifact Registry optionally with a
                                  * customer managed encryption key. This is the repository to which the
                              @@ -617,17 +707,18 @@ public java.lang.String getDockerRepository() {
                                  * Repository format must be 'DOCKER'.
                                  * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for dockerRepository. */ @java.lang.Override - public com.google.protobuf.ByteString - getDockerRepositoryBytes() { + public com.google.protobuf.ByteString getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -636,6 +727,7 @@ public java.lang.String getDockerRepository() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -647,8 +739,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(build_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, build_); } @@ -664,8 +755,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workerPool_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -695,28 +785,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entryPoint_); } if (source_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workerPool_); } - for (java.util.Map.Entry entry - : internalGetEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, environmentVariables__); + for (java.util.Map.Entry entry : + internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry environmentVariables__ = + EnvironmentVariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, environmentVariables__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dockerRepository_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, dockerRepository_); } if (sourceProvenance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSourceProvenance()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSourceProvenance()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -726,35 +814,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.BuildConfig)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.BuildConfig other = (com.google.cloud.functions.v2beta.BuildConfig) obj; + com.google.cloud.functions.v2beta.BuildConfig other = + (com.google.cloud.functions.v2beta.BuildConfig) obj; - if (!getBuild() - .equals(other.getBuild())) return false; - if (!getRuntime() - .equals(other.getRuntime())) return false; - if (!getEntryPoint() - .equals(other.getEntryPoint())) return false; + if (!getBuild().equals(other.getBuild())) return false; + if (!getRuntime().equals(other.getRuntime())) return false; + if (!getEntryPoint().equals(other.getEntryPoint())) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource() - .equals(other.getSource())) return false; + if (!getSource().equals(other.getSource())) return false; } if (hasSourceProvenance() != other.hasSourceProvenance()) return false; if (hasSourceProvenance()) { - if (!getSourceProvenance() - .equals(other.getSourceProvenance())) return false; - } - if (!getWorkerPool() - .equals(other.getWorkerPool())) return false; - if (!internalGetEnvironmentVariables().equals( - other.internalGetEnvironmentVariables())) return false; - if (!getDockerRepository() - .equals(other.getDockerRepository())) return false; + if (!getSourceProvenance().equals(other.getSourceProvenance())) return false; + } + if (!getWorkerPool().equals(other.getWorkerPool())) return false; + if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) + return false; + if (!getDockerRepository().equals(other.getDockerRepository())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -793,97 +875,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.BuildConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.BuildConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.BuildConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.BuildConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.BuildConfig 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.BuildConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.BuildConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2beta.BuildConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.BuildConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.BuildConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.BuildConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.BuildConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.BuildConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.BuildConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2beta.BuildConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                              @@ -891,43 +980,43 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2beta.BuildConfig}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.BuildConfig)
                                     com.google.cloud.functions.v2beta.BuildConfigOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor;
                                   }
                               
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMapField(int number) {
                                     switch (number) {
                                       case 6:
                                         return internalGetEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMutableMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
                                     switch (number) {
                                       case 6:
                                         return internalGetMutableEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2beta.BuildConfig.class, com.google.cloud.functions.v2beta.BuildConfig.Builder.class);
                              +              com.google.cloud.functions.v2beta.BuildConfig.class,
                              +              com.google.cloud.functions.v2beta.BuildConfig.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2beta.BuildConfig.newBuilder()
                              @@ -935,16 +1024,15 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              -      }
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -975,9 +1063,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -996,7 +1084,8 @@ public com.google.cloud.functions.v2beta.BuildConfig build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2beta.BuildConfig buildPartial() {
                              -      com.google.cloud.functions.v2beta.BuildConfig result = new com.google.cloud.functions.v2beta.BuildConfig(this);
                              +      com.google.cloud.functions.v2beta.BuildConfig result =
                              +          new com.google.cloud.functions.v2beta.BuildConfig(this);
                                     int from_bitField0_ = bitField0_;
                                     result.build_ = build_;
                                     result.runtime_ = runtime_;
                              @@ -1023,38 +1112,39 @@ public com.google.cloud.functions.v2beta.BuildConfig buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2beta.BuildConfig)other);
                              +        return mergeFrom((com.google.cloud.functions.v2beta.BuildConfig) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1085,8 +1175,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.BuildConfig other) {
                                       workerPool_ = other.workerPool_;
                                       onChanged();
                                     }
                              -      internalGetMutableEnvironmentVariables().mergeFrom(
                              -          other.internalGetEnvironmentVariables());
                              +      internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables());
                                     if (!other.getDockerRepository().isEmpty()) {
                                       dockerRepository_ = other.dockerRepository_;
                                       onChanged();
                              @@ -1119,23 +1208,28 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object build_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ public java.lang.String getBuild() { java.lang.Object ref = build_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; @@ -1144,21 +1238,24 @@ public java.lang.String getBuild() { } } /** + * + * *
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ - public com.google.protobuf.ByteString - getBuildBytes() { + public com.google.protobuf.ByteString getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); build_ = b; return b; } else { @@ -1166,57 +1263,70 @@ public java.lang.String getBuild() { } } /** + * + * *
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The build to set. * @return This builder for chaining. */ - public Builder setBuild( - java.lang.String value) { + public Builder setBuild(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + build_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearBuild() { - + build_ = getDefaultInstance().getBuild(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for build to set. * @return This builder for chaining. */ - public Builder setBuildBytes( - com.google.protobuf.ByteString value) { + public Builder setBuildBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + build_ = value; onChanged(); return this; @@ -1224,6 +1334,8 @@ public Builder setBuildBytes( private java.lang.Object runtime_ = ""; /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1233,13 +1345,13 @@ public Builder setBuildBytes(
                                    * 
                              * * string runtime = 2; + * * @return The runtime. */ public java.lang.String getRuntime() { java.lang.Object ref = runtime_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; @@ -1248,6 +1360,8 @@ public java.lang.String getRuntime() { } } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1257,15 +1371,14 @@ public java.lang.String getRuntime() {
                                    * 
                              * * string runtime = 2; + * * @return The bytes for runtime. */ - public com.google.protobuf.ByteString - getRuntimeBytes() { + public com.google.protobuf.ByteString getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtime_ = b; return b; } else { @@ -1273,6 +1386,8 @@ public java.lang.String getRuntime() { } } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1282,20 +1397,22 @@ public java.lang.String getRuntime() {
                                    * 
                              * * string runtime = 2; + * * @param value The runtime to set. * @return This builder for chaining. */ - public Builder setRuntime( - java.lang.String value) { + public Builder setRuntime(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + runtime_ = value; onChanged(); return this; } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1305,15 +1422,18 @@ public Builder setRuntime(
                                    * 
                              * * string runtime = 2; + * * @return This builder for chaining. */ public Builder clearRuntime() { - + runtime_ = getDefaultInstance().getRuntime(); onChanged(); return this; } /** + * + * *
                                    * The runtime in which to run the function. Required when deploying a new
                                    * function, optional when updating an existing function. For a complete
                              @@ -1323,16 +1443,16 @@ public Builder clearRuntime() {
                                    * 
                              * * string runtime = 2; + * * @param value The bytes for runtime to set. * @return This builder for chaining. */ - public Builder setRuntimeBytes( - com.google.protobuf.ByteString value) { + public Builder setRuntimeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + runtime_ = value; onChanged(); return this; @@ -1340,6 +1460,8 @@ public Builder setRuntimeBytes( private java.lang.Object entryPoint_ = ""; /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1350,13 +1472,13 @@ public Builder setRuntimeBytes(
                                    * 
                              * * string entry_point = 3; + * * @return The entryPoint. */ public java.lang.String getEntryPoint() { java.lang.Object ref = entryPoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entryPoint_ = s; return s; @@ -1365,6 +1487,8 @@ public java.lang.String getEntryPoint() { } } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1375,15 +1499,14 @@ public java.lang.String getEntryPoint() {
                                    * 
                              * * string entry_point = 3; + * * @return The bytes for entryPoint. */ - public com.google.protobuf.ByteString - getEntryPointBytes() { + public com.google.protobuf.ByteString getEntryPointBytes() { java.lang.Object ref = entryPoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entryPoint_ = b; return b; } else { @@ -1391,6 +1514,8 @@ public java.lang.String getEntryPoint() { } } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1401,20 +1526,22 @@ public java.lang.String getEntryPoint() {
                                    * 
                              * * string entry_point = 3; + * * @param value The entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPoint( - java.lang.String value) { + public Builder setEntryPoint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entryPoint_ = value; onChanged(); return this; } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1425,15 +1552,18 @@ public Builder setEntryPoint(
                                    * 
                              * * string entry_point = 3; + * * @return This builder for chaining. */ public Builder clearEntryPoint() { - + entryPoint_ = getDefaultInstance().getEntryPoint(); onChanged(); return this; } /** + * + * *
                                    * The name of the function (as defined in source code) that will be
                                    * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -1444,16 +1574,16 @@ public Builder clearEntryPoint() {
                                    * 
                              * * string entry_point = 3; + * * @param value The bytes for entryPoint to set. * @return This builder for chaining. */ - public Builder setEntryPointBytes( - com.google.protobuf.ByteString value) { + public Builder setEntryPointBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entryPoint_ = value; onChanged(); return this; @@ -1461,34 +1591,47 @@ public Builder setEntryPointBytes( private com.google.cloud.functions.v2beta.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Source, com.google.cloud.functions.v2beta.Source.Builder, com.google.cloud.functions.v2beta.SourceOrBuilder> sourceBuilder_; + com.google.cloud.functions.v2beta.Source, + com.google.cloud.functions.v2beta.Source.Builder, + com.google.cloud.functions.v2beta.SourceOrBuilder> + sourceBuilder_; /** + * + * *
                                    * The location of the function source code.
                                    * 
                              * * .google.cloud.functions.v2beta.Source source = 4; + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              * * .google.cloud.functions.v2beta.Source source = 4; + * * @return The source. */ public com.google.cloud.functions.v2beta.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.functions.v2beta.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.functions.v2beta.Source.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1509,14 +1652,15 @@ public Builder setSource(com.google.cloud.functions.v2beta.Source value) { return this; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              * * .google.cloud.functions.v2beta.Source source = 4; */ - public Builder setSource( - com.google.cloud.functions.v2beta.Source.Builder builderForValue) { + public Builder setSource(com.google.cloud.functions.v2beta.Source.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -1527,6 +1671,8 @@ public Builder setSource( return this; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1537,7 +1683,9 @@ public Builder mergeSource(com.google.cloud.functions.v2beta.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.functions.v2beta.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v2beta.Source.newBuilder(source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -1549,6 +1697,8 @@ public Builder mergeSource(com.google.cloud.functions.v2beta.Source value) { return this; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1567,6 +1717,8 @@ public Builder clearSource() { return this; } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1574,11 +1726,13 @@ public Builder clearSource() { * .google.cloud.functions.v2beta.Source source = 4; */ public com.google.cloud.functions.v2beta.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1589,11 +1743,14 @@ public com.google.cloud.functions.v2beta.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null ? - com.google.cloud.functions.v2beta.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.functions.v2beta.Source.getDefaultInstance() + : source_; } } /** + * + * *
                                    * The location of the function source code.
                                    * 
                              @@ -1601,14 +1758,17 @@ public com.google.cloud.functions.v2beta.SourceOrBuilder getSourceOrBuilder() { * .google.cloud.functions.v2beta.Source source = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Source, com.google.cloud.functions.v2beta.Source.Builder, com.google.cloud.functions.v2beta.SourceOrBuilder> + com.google.cloud.functions.v2beta.Source, + com.google.cloud.functions.v2beta.Source.Builder, + com.google.cloud.functions.v2beta.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Source, com.google.cloud.functions.v2beta.Source.Builder, com.google.cloud.functions.v2beta.SourceOrBuilder>( - getSource(), - getParentForChildren(), - isClean()); + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2beta.Source, + com.google.cloud.functions.v2beta.Source.Builder, + com.google.cloud.functions.v2beta.SourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; @@ -1616,39 +1776,58 @@ public com.google.cloud.functions.v2beta.SourceOrBuilder getSourceOrBuilder() { private com.google.cloud.functions.v2beta.SourceProvenance sourceProvenance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.SourceProvenance, com.google.cloud.functions.v2beta.SourceProvenance.Builder, com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder> sourceProvenanceBuilder_; + com.google.cloud.functions.v2beta.SourceProvenance, + com.google.cloud.functions.v2beta.SourceProvenance.Builder, + com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder> + sourceProvenanceBuilder_; /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the sourceProvenance field is set. */ public boolean hasSourceProvenance() { return sourceProvenanceBuilder_ != null || sourceProvenance_ != null; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceProvenance. */ public com.google.cloud.functions.v2beta.SourceProvenance getSourceProvenance() { if (sourceProvenanceBuilder_ == null) { - return sourceProvenance_ == null ? com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance() : sourceProvenance_; + return sourceProvenance_ == null + ? com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance() + : sourceProvenance_; } else { return sourceProvenanceBuilder_.getMessage(); } } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSourceProvenance(com.google.cloud.functions.v2beta.SourceProvenance value) { if (sourceProvenanceBuilder_ == null) { @@ -1664,11 +1843,15 @@ public Builder setSourceProvenance(com.google.cloud.functions.v2beta.SourceProve return this; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSourceProvenance( com.google.cloud.functions.v2beta.SourceProvenance.Builder builderForValue) { @@ -1682,17 +1865,23 @@ public Builder setSourceProvenance( return this; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSourceProvenance(com.google.cloud.functions.v2beta.SourceProvenance value) { if (sourceProvenanceBuilder_ == null) { if (sourceProvenance_ != null) { sourceProvenance_ = - com.google.cloud.functions.v2beta.SourceProvenance.newBuilder(sourceProvenance_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v2beta.SourceProvenance.newBuilder(sourceProvenance_) + .mergeFrom(value) + .buildPartial(); } else { sourceProvenance_ = value; } @@ -1704,11 +1893,15 @@ public Builder mergeSourceProvenance(com.google.cloud.functions.v2beta.SourcePro return this; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSourceProvenance() { if (sourceProvenanceBuilder_ == null) { @@ -1722,48 +1915,65 @@ public Builder clearSourceProvenance() { return this; } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2beta.SourceProvenance.Builder getSourceProvenanceBuilder() { - + onChanged(); return getSourceProvenanceFieldBuilder().getBuilder(); } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { + public com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder + getSourceProvenanceOrBuilder() { if (sourceProvenanceBuilder_ != null) { return sourceProvenanceBuilder_.getMessageOrBuilder(); } else { - return sourceProvenance_ == null ? - com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance() : sourceProvenance_; + return sourceProvenance_ == null + ? com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance() + : sourceProvenance_; } } /** + * + * *
                                    * Output only. A permanent fixed identifier for source.
                                    * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.SourceProvenance, com.google.cloud.functions.v2beta.SourceProvenance.Builder, com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder> + com.google.cloud.functions.v2beta.SourceProvenance, + com.google.cloud.functions.v2beta.SourceProvenance.Builder, + com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder> getSourceProvenanceFieldBuilder() { if (sourceProvenanceBuilder_ == null) { - sourceProvenanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.SourceProvenance, com.google.cloud.functions.v2beta.SourceProvenance.Builder, com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder>( - getSourceProvenance(), - getParentForChildren(), - isClean()); + sourceProvenanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2beta.SourceProvenance, + com.google.cloud.functions.v2beta.SourceProvenance.Builder, + com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder>( + getSourceProvenance(), getParentForChildren(), isClean()); sourceProvenance_ = null; } return sourceProvenanceBuilder_; @@ -1771,6 +1981,8 @@ public com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder getSourceProv private java.lang.Object workerPool_ = ""; /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1786,13 +1998,13 @@ public com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder getSourceProv
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The workerPool. */ public java.lang.String getWorkerPool() { java.lang.Object ref = workerPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerPool_ = s; return s; @@ -1801,6 +2013,8 @@ public java.lang.String getWorkerPool() { } } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1816,15 +2030,14 @@ public java.lang.String getWorkerPool() {
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for workerPool. */ - public com.google.protobuf.ByteString - getWorkerPoolBytes() { + public com.google.protobuf.ByteString getWorkerPoolBytes() { java.lang.Object ref = workerPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workerPool_ = b; return b; } else { @@ -1832,6 +2045,8 @@ public java.lang.String getWorkerPool() { } } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1847,20 +2062,22 @@ public java.lang.String getWorkerPool() {
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @param value The workerPool to set. * @return This builder for chaining. */ - public Builder setWorkerPool( - java.lang.String value) { + public Builder setWorkerPool(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workerPool_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1876,15 +2093,18 @@ public Builder setWorkerPool(
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearWorkerPool() { - + workerPool_ = getDefaultInstance().getWorkerPool(); onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                    * function. The format of this field is
                              @@ -1900,37 +2120,40 @@ public Builder clearWorkerPool() {
                                    * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for workerPool to set. * @return This builder for chaining. */ - public Builder setWorkerPoolBytes( - com.google.protobuf.ByteString value) { + public Builder setWorkerPoolBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workerPool_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } + private com.google.protobuf.MapField - internalGetMutableEnvironmentVariables() { - onChanged();; + internalGetMutableEnvironmentVariables() { + onChanged(); + ; if (environmentVariables_ == null) { - environmentVariables_ = com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); + environmentVariables_ = + com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); @@ -1942,28 +2165,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              * * map<string, string> environment_variables = 6; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              @@ -1971,11 +2196,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              @@ -1983,16 +2209,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 6; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              @@ -2000,10 +2228,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 6; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -2013,69 +2241,69 @@ public java.lang.String getEnvironmentVariablesOrThrow( } public Builder clearEnvironmentVariables() { - internalGetMutableEnvironmentVariables().getMutableMap() - .clear(); + internalGetMutableEnvironmentVariables().getMutableMap().clear(); return this; } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              * * map<string, string> environment_variables = 6; */ - - public Builder removeEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableEnvironmentVariables().getMutableMap() - .remove(key); + public Builder removeEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEnvironmentVariables().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableEnvironmentVariables() { + public java.util.Map getMutableEnvironmentVariables() { return internalGetMutableEnvironmentVariables().getMutableMap(); } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              * * map<string, string> environment_variables = 6; */ - public Builder putEnvironmentVariables( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putEnvironmentVariables(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableEnvironmentVariables().getMutableMap() - .put(key, value); + internalGetMutableEnvironmentVariables().getMutableMap().put(key, value); return this; } /** + * + * *
                                    * User-provided build-time environment variables for the function
                                    * 
                              * * map<string, string> environment_variables = 6; */ - public Builder putAllEnvironmentVariables( java.util.Map values) { - internalGetMutableEnvironmentVariables().getMutableMap() - .putAll(values); + internalGetMutableEnvironmentVariables().getMutableMap().putAll(values); 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
                              @@ -2089,14 +2317,16 @@ public Builder putAllEnvironmentVariables(
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The dockerRepository. */ public java.lang.String getDockerRepository() { java.lang.Object ref = dockerRepository_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerRepository_ = s; return s; @@ -2105,6 +2335,8 @@ 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
                              @@ -2118,16 +2350,17 @@ public java.lang.String getDockerRepository() {
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for dockerRepository. */ - public com.google.protobuf.ByteString - getDockerRepositoryBytes() { + public com.google.protobuf.ByteString getDockerRepositoryBytes() { java.lang.Object ref = dockerRepository_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dockerRepository_ = b; return b; } else { @@ -2135,6 +2368,8 @@ 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
                              @@ -2148,21 +2383,25 @@ public java.lang.String getDockerRepository() {
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepository( - java.lang.String value) { + public Builder setDockerRepository(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dockerRepository_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. User managed repository created in Artifact Registry optionally with a
                                    * customer managed encryption key. This is the repository to which the
                              @@ -2176,16 +2415,21 @@ public Builder setDockerRepository(
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearDockerRepository() { - + dockerRepository_ = getDefaultInstance().getDockerRepository(); onChanged(); return this; } /** + * + * *
                                    * Optional. User managed repository created in Artifact Registry optionally with a
                                    * customer managed encryption key. This is the repository to which the
                              @@ -2199,24 +2443,26 @@ public Builder clearDockerRepository() {
                                    * Repository format must be 'DOCKER'.
                                    * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for dockerRepository to set. * @return This builder for chaining. */ - public Builder setDockerRepositoryBytes( - com.google.protobuf.ByteString value) { + public Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dockerRepository_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2226,12 +2472,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.BuildConfig) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.BuildConfig) private static final com.google.cloud.functions.v2beta.BuildConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.BuildConfig(); } @@ -2240,16 +2486,16 @@ public static com.google.cloud.functions.v2beta.BuildConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BuildConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BuildConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuildConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BuildConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2264,6 +2510,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.BuildConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java similarity index 75% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java index 556189ac..2f3d2721 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java @@ -1,35 +1,62 @@ +/* + * 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 BuildConfigOrBuilder extends +public interface BuildConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.BuildConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ java.lang.String getBuild(); /** + * + * *
                                  * 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) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ - com.google.protobuf.ByteString - getBuildBytes(); + com.google.protobuf.ByteString getBuildBytes(); /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -39,10 +66,13 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string runtime = 2; + * * @return The runtime. */ java.lang.String getRuntime(); /** + * + * *
                                  * The runtime in which to run the function. Required when deploying a new
                                  * function, optional when updating an existing function. For a complete
                              @@ -52,12 +82,14 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string runtime = 2; + * * @return The bytes for runtime. */ - com.google.protobuf.ByteString - getRuntimeBytes(); + com.google.protobuf.ByteString getRuntimeBytes(); /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -68,10 +100,13 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string entry_point = 3; + * * @return The entryPoint. */ java.lang.String getEntryPoint(); /** + * + * *
                                  * The name of the function (as defined in source code) that will be
                                  * executed. Defaults to the resource name suffix, if not specified. For
                              @@ -82,30 +117,38 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string entry_point = 3; + * * @return The bytes for entryPoint. */ - com.google.protobuf.ByteString - getEntryPointBytes(); + com.google.protobuf.ByteString getEntryPointBytes(); /** + * + * *
                                  * The location of the function source code.
                                  * 
                              * * .google.cloud.functions.v2beta.Source source = 4; + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
                                  * The location of the function source code.
                                  * 
                              * * .google.cloud.functions.v2beta.Source source = 4; + * * @return The source. */ com.google.cloud.functions.v2beta.Source getSource(); /** + * + * *
                                  * The location of the function source code.
                                  * 
                              @@ -115,33 +158,49 @@ public interface BuildConfigOrBuilder extends com.google.cloud.functions.v2beta.SourceOrBuilder getSourceOrBuilder(); /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the sourceProvenance field is set. */ boolean hasSourceProvenance(); /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The sourceProvenance. */ com.google.cloud.functions.v2beta.SourceProvenance getSourceProvenance(); /** + * + * *
                                  * Output only. A permanent fixed identifier for source.
                                  * 
                              * - * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder(); /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -157,10 +216,13 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The workerPool. */ java.lang.String getWorkerPool(); /** + * + * *
                                  * Name of the Cloud Build Custom Worker Pool that should be used to build the
                                  * function. The format of this field is
                              @@ -176,12 +238,14 @@ public interface BuildConfigOrBuilder extends
                                  * 
                              * * string worker_pool = 5 [(.google.api.resource_reference) = { ... } + * * @return The bytes for workerPool. */ - com.google.protobuf.ByteString - getWorkerPoolBytes(); + com.google.protobuf.ByteString getWorkerPoolBytes(); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -190,30 +254,31 @@ public interface BuildConfigOrBuilder extends */ int getEnvironmentVariablesCount(); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              * * map<string, string> environment_variables = 6; */ - boolean containsEnvironmentVariables( - java.lang.String key); - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + boolean containsEnvironmentVariables(java.lang.String key); + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getEnvironmentVariables(); + java.util.Map getEnvironmentVariables(); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              * * map<string, string> environment_variables = 6; */ - java.util.Map - getEnvironmentVariablesMap(); + java.util.Map getEnvironmentVariablesMap(); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              @@ -222,22 +287,24 @@ boolean containsEnvironmentVariables( */ /* nullable */ -java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
                                  * User-provided build-time environment variables for the function
                                  * 
                              * * map<string, string> environment_variables = 6; */ - - java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key); + 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
                              @@ -251,11 +318,16 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * Repository format must be 'DOCKER'.
                                  * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The dockerRepository. */ 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
                              @@ -269,9 +341,11 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * Repository format must be 'DOCKER'.
                                  * 
                              * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for dockerRepository. */ - com.google.protobuf.ByteString - getDockerRepositoryBytes(); + com.google.protobuf.ByteString getDockerRepositoryBytes(); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java similarity index 65% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java index 5e2fc45c..81761723 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Request for the `CreateFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.CreateFunctionRequest} */ -public final class CreateFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.CreateFunctionRequest) CreateFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateFunctionRequest.newBuilder() to construct. private CreateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateFunctionRequest() { parent_ = ""; functionId_ = ""; @@ -26,16 +44,15 @@ private CreateFunctionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateFunctionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.functions.v2beta.Function.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); - } - function_ = input.readMessage(com.google.cloud.functions.v2beta.Function.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.functions.v2beta.Function.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); + } + function_ = + input.readMessage( + com.google.cloud.functions.v2beta.Function.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - functionId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + functionId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.CreateFunctionRequest.class, com.google.cloud.functions.v2beta.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.CreateFunctionRequest.class, + com.google.cloud.functions.v2beta.CreateFunctionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,30 +159,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,11 +195,16 @@ public java.lang.String getParent() { public static final int FUNCTION_FIELD_NUMBER = 2; private com.google.cloud.functions.v2beta.Function function_; /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ @java.lang.Override @@ -176,23 +212,34 @@ public boolean hasFunction() { return function_ != null; } /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ @java.lang.Override public com.google.cloud.functions.v2beta.Function getFunction() { - return function_ == null ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() + : function_; } /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder() { @@ -202,6 +249,8 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder( public static final int FUNCTION_ID_FIELD_NUMBER = 3; private volatile java.lang.Object functionId_; /** + * + * *
                                  * The ID to use for the function, which will become the final component of
                                  * the function's resource name.
                              @@ -210,6 +259,7 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder(
                                  * 
                              * * string function_id = 3; + * * @return The functionId. */ @java.lang.Override @@ -218,14 +268,15 @@ public java.lang.String getFunctionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } } /** + * + * *
                                  * The ID to use for the function, which will become the final component of
                                  * the function's resource name.
                              @@ -234,16 +285,15 @@ public java.lang.String getFunctionId() {
                                  * 
                              * * string function_id = 3; + * * @return The bytes for functionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFunctionIdBytes() { + public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); functionId_ = b; return b; } else { @@ -252,6 +302,7 @@ public java.lang.String getFunctionId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +314,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,8 +337,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (function_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFunction()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFunction()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, functionId_); @@ -301,22 +350,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.CreateFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.CreateFunctionRequest other = (com.google.cloud.functions.v2beta.CreateFunctionRequest) obj; + com.google.cloud.functions.v2beta.CreateFunctionRequest other = + (com.google.cloud.functions.v2beta.CreateFunctionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasFunction() != other.hasFunction()) return false; if (hasFunction()) { - if (!getFunction() - .equals(other.getFunction())) return false; + if (!getFunction().equals(other.getFunction())) return false; } - if (!getFunctionId() - .equals(other.getFunctionId())) return false; + if (!getFunctionId().equals(other.getFunctionId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,117 +389,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.CreateFunctionRequest 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.CreateFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.CreateFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.CreateFunctionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2beta.CreateFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `CreateFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.CreateFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.CreateFunctionRequest) com.google.cloud.functions.v2beta.CreateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.CreateFunctionRequest.class, com.google.cloud.functions.v2beta.CreateFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.CreateFunctionRequest.class, + com.google.cloud.functions.v2beta.CreateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.CreateFunctionRequest.newBuilder() @@ -460,16 +517,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; } @java.lang.Override @@ -508,7 +564,8 @@ public com.google.cloud.functions.v2beta.CreateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.CreateFunctionRequest buildPartial() { - com.google.cloud.functions.v2beta.CreateFunctionRequest result = new com.google.cloud.functions.v2beta.CreateFunctionRequest(this); + com.google.cloud.functions.v2beta.CreateFunctionRequest result = + new com.google.cloud.functions.v2beta.CreateFunctionRequest(this); result.parent_ = parent_; if (functionBuilder_ == null) { result.function_ = function_; @@ -524,38 +581,39 @@ public com.google.cloud.functions.v2beta.CreateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.CreateFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v2beta.CreateFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -563,7 +621,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.CreateFunctionRequest other) { - if (other == com.google.cloud.functions.v2beta.CreateFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2beta.CreateFunctionRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -594,7 +653,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.CreateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.CreateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,19 +666,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -627,21 +691,24 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -649,57 +716,70 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -707,39 +787,58 @@ public Builder setParentBytes( private com.google.cloud.functions.v2beta.Function function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder> functionBuilder_; + com.google.cloud.functions.v2beta.Function, + com.google.cloud.functions.v2beta.Function.Builder, + com.google.cloud.functions.v2beta.FunctionOrBuilder> + functionBuilder_; /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ public com.google.cloud.functions.v2beta.Function getFunction() { if (functionBuilder_ == null) { - return function_ == null ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() + : function_; } else { return functionBuilder_.getMessage(); } } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFunction(com.google.cloud.functions.v2beta.Function value) { if (functionBuilder_ == null) { @@ -755,14 +854,17 @@ public Builder setFunction(com.google.cloud.functions.v2beta.Function value) { return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setFunction( - com.google.cloud.functions.v2beta.Function.Builder builderForValue) { + public Builder setFunction(com.google.cloud.functions.v2beta.Function.Builder builderForValue) { if (functionBuilder_ == null) { function_ = builderForValue.build(); onChanged(); @@ -773,17 +875,23 @@ public Builder setFunction( return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFunction(com.google.cloud.functions.v2beta.Function value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v2beta.Function.newBuilder(function_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v2beta.Function.newBuilder(function_) + .mergeFrom(value) + .buildPartial(); } else { function_ = value; } @@ -795,11 +903,15 @@ public Builder mergeFunction(com.google.cloud.functions.v2beta.Function value) { return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -813,48 +925,64 @@ public Builder clearFunction() { return this; } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v2beta.Function.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null ? - com.google.cloud.functions.v2beta.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() + : function_; } } /** + * + * *
                                    * Required. Function to be created.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder> + com.google.cloud.functions.v2beta.Function, + com.google.cloud.functions.v2beta.Function.Builder, + com.google.cloud.functions.v2beta.FunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder>( - getFunction(), - getParentForChildren(), - isClean()); + functionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2beta.Function, + com.google.cloud.functions.v2beta.Function.Builder, + com.google.cloud.functions.v2beta.FunctionOrBuilder>( + getFunction(), getParentForChildren(), isClean()); function_ = null; } return functionBuilder_; @@ -862,6 +990,8 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder( private java.lang.Object functionId_ = ""; /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -870,13 +1000,13 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder(
                                    * 
                              * * string function_id = 3; + * * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; @@ -885,6 +1015,8 @@ public java.lang.String getFunctionId() { } } /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -893,15 +1025,14 @@ public java.lang.String getFunctionId() {
                                    * 
                              * * string function_id = 3; + * * @return The bytes for functionId. */ - public com.google.protobuf.ByteString - getFunctionIdBytes() { + public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); functionId_ = b; return b; } else { @@ -909,6 +1040,8 @@ public java.lang.String getFunctionId() { } } /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -917,20 +1050,22 @@ public java.lang.String getFunctionId() {
                                    * 
                              * * string function_id = 3; + * * @param value The functionId to set. * @return This builder for chaining. */ - public Builder setFunctionId( - java.lang.String value) { + public Builder setFunctionId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + functionId_ = value; onChanged(); return this; } /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -939,15 +1074,18 @@ public Builder setFunctionId(
                                    * 
                              * * string function_id = 3; + * * @return This builder for chaining. */ public Builder clearFunctionId() { - + functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** + * + * *
                                    * The ID to use for the function, which will become the final component of
                                    * the function's resource name.
                              @@ -956,23 +1094,23 @@ public Builder clearFunctionId() {
                                    * 
                              * * string function_id = 3; + * * @param value The bytes for functionId to set. * @return This builder for chaining. */ - public Builder setFunctionIdBytes( - com.google.protobuf.ByteString value) { + public Builder setFunctionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + functionId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -982,12 +1120,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.CreateFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.CreateFunctionRequest) private static final com.google.cloud.functions.v2beta.CreateFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.CreateFunctionRequest(); } @@ -996,16 +1134,16 @@ public static com.google.cloud.functions.v2beta.CreateFunctionRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1020,6 +1158,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.CreateFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java index 95462240..165baa6b 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * 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 CreateFunctionRequestOrBuilder extends +public interface CreateFunctionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.CreateFunctionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ boolean hasFunction(); /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ com.google.cloud.functions.v2beta.Function getFunction(); /** + * + * *
                                  * Required. Function to be created.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ 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.
                              @@ -65,10 +106,13 @@ public interface CreateFunctionRequestOrBuilder extends
                                  * 
                              * * string function_id = 3; + * * @return The functionId. */ java.lang.String getFunctionId(); /** + * + * *
                                  * The ID to use for the function, which will become the final component of
                                  * the function's resource name.
                              @@ -77,8 +121,8 @@ public interface CreateFunctionRequestOrBuilder extends
                                  * 
                              * * string function_id = 3; + * * @return The bytes for functionId. */ - com.google.protobuf.ByteString - getFunctionIdBytes(); + com.google.protobuf.ByteString getFunctionIdBytes(); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java similarity index 64% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java index 80d24c06..f0e5948b 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java @@ -1,40 +1,57 @@ +/* + * 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; /** + * + * *
                                * Request for the `DeleteFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.DeleteFunctionRequest} */ -public final class DeleteFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.DeleteFunctionRequest) DeleteFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteFunctionRequest.newBuilder() to construct. private DeleteFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteFunctionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private DeleteFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.DeleteFunctionRequest.class, com.google.cloud.functions.v2beta.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.DeleteFunctionRequest.class, + com.google.cloud.functions.v2beta.DeleteFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
                                  * Required. The name of the function which should be deleted.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -109,29 +134,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * Required. The name of the function which should be deleted.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.DeleteFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.DeleteFunctionRequest other = (com.google.cloud.functions.v2beta.DeleteFunctionRequest) obj; + com.google.cloud.functions.v2beta.DeleteFunctionRequest other = + (com.google.cloud.functions.v2beta.DeleteFunctionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.DeleteFunctionRequest 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.DeleteFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.DeleteFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.DeleteFunctionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2beta.DeleteFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `DeleteFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.DeleteFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.DeleteFunctionRequest) com.google.cloud.functions.v2beta.DeleteFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.DeleteFunctionRequest.class, com.google.cloud.functions.v2beta.DeleteFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.DeleteFunctionRequest.class, + com.google.cloud.functions.v2beta.DeleteFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.DeleteFunctionRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.functions.v2beta.DeleteFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.DeleteFunctionRequest buildPartial() { - com.google.cloud.functions.v2beta.DeleteFunctionRequest result = new com.google.cloud.functions.v2beta.DeleteFunctionRequest(this); + com.google.cloud.functions.v2beta.DeleteFunctionRequest result = + new com.google.cloud.functions.v2beta.DeleteFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.functions.v2beta.DeleteFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.DeleteFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v2beta.DeleteFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.DeleteFunctionRequest other) { - if (other == com.google.cloud.functions.v2beta.DeleteFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2beta.DeleteFunctionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.DeleteFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.DeleteFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -467,20 +511,23 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -488,61 +535,74 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which should be deleted.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.DeleteFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.DeleteFunctionRequest) private static final com.google.cloud.functions.v2beta.DeleteFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.DeleteFunctionRequest(); } @@ -566,16 +626,16 @@ public static com.google.cloud.functions.v2beta.DeleteFunctionRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.DeleteFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java new file mode 100644 index 00000000..1c465e85 --- /dev/null +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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 DeleteFunctionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.DeleteFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * Required. The name of the function which should be deleted.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                              +   * Required. The name of the function which should be deleted.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Environment.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Environment.java similarity index 65% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Environment.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Environment.java index 2218f55e..98e27688 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Environment.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Environment.java @@ -1,18 +1,36 @@ +/* + * 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; /** + * + * *
                                * The environment the function is hosted on.
                                * 
                              * * Protobuf enum {@code google.cloud.functions.v2beta.Environment} */ -public enum Environment - implements com.google.protobuf.ProtocolMessageEnum { +public enum Environment implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                  * Unspecified
                                  * 
                              @@ -21,6 +39,8 @@ public enum Environment */ ENVIRONMENT_UNSPECIFIED(0), /** + * + * *
                                  * Gen 1
                                  * 
                              @@ -29,6 +49,8 @@ public enum Environment */ GEN_1(1), /** + * + * *
                                  * Gen 2
                                  * 
                              @@ -40,6 +62,8 @@ public enum Environment ; /** + * + * *
                                  * Unspecified
                                  * 
                              @@ -48,6 +72,8 @@ public enum Environment */ public static final int ENVIRONMENT_UNSPECIFIED_VALUE = 0; /** + * + * *
                                  * Gen 1
                                  * 
                              @@ -56,6 +82,8 @@ public enum Environment */ public static final int GEN_1_VALUE = 1; /** + * + * *
                                  * Gen 2
                                  * 
                              @@ -64,7 +92,6 @@ public enum Environment */ public static final int GEN_2_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,49 @@ public static Environment valueOf(int value) { */ public static Environment forNumber(int value) { switch (value) { - case 0: return ENVIRONMENT_UNSPECIFIED; - case 1: return GEN_1; - case 2: return GEN_2; - default: return null; + case 0: + return ENVIRONMENT_UNSPECIFIED; + case 1: + return GEN_1; + case 2: + return GEN_2; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Environment> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Environment findValueByNumber(int number) { - return Environment.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Environment findValueByNumber(int number) { + return Environment.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto.getDescriptor().getEnumTypes().get(0); } private static final Environment[] VALUES = values(); - public static Environment valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Environment valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +174,3 @@ private Environment(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2beta.Environment) } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java similarity index 72% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java index 09a6b934..ba3b631e 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Filters events based on exact matches on the CloudEvents attributes.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.EventFilter} */ -public final class EventFilter extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EventFilter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.EventFilter) EventFilterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EventFilter.newBuilder() to construct. private EventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EventFilter() { attribute_ = ""; value_ = ""; @@ -27,16 +45,15 @@ private EventFilter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventFilter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EventFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private EventFilter( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - attribute_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + attribute_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + value_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - operator_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + operator_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,34 +107,39 @@ private EventFilter( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.EventFilter.class, com.google.cloud.functions.v2beta.EventFilter.Builder.class); + com.google.cloud.functions.v2beta.EventFilter.class, + com.google.cloud.functions.v2beta.EventFilter.Builder.class); } public static final int ATTRIBUTE_FIELD_NUMBER = 1; private volatile java.lang.Object attribute_; /** + * + * *
                                  * Required. The name of a CloudEvents attribute.
                                  * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attribute. */ @java.lang.Override @@ -123,29 +148,29 @@ public java.lang.String getAttribute() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; } } /** + * + * *
                                  * Required. The name of a CloudEvents attribute.
                                  * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attribute. */ @java.lang.Override - public com.google.protobuf.ByteString - getAttributeBytes() { + public com.google.protobuf.ByteString getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attribute_ = b; return b; } else { @@ -156,11 +181,14 @@ public java.lang.String getAttribute() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
                                  * Required. The value for the attribute.
                                  * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ @java.lang.Override @@ -169,29 +197,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
                                  * Required. The value for the attribute.
                                  * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -202,6 +230,8 @@ public java.lang.String getValue() { public static final int OPERATOR_FIELD_NUMBER = 3; private volatile java.lang.Object operator_; /** + * + * *
                                  * Optional. The operator used for matching the events with the value of the
                                  * filter. If not specified, only events that have an exact key-value pair
                              @@ -210,6 +240,7 @@ public java.lang.String getValue() {
                                  * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The operator. */ @java.lang.Override @@ -218,14 +249,15 @@ public java.lang.String getOperator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operator_ = s; return s; } } /** + * + * *
                                  * Optional. The operator used for matching the events with the value of the
                                  * filter. If not specified, only events that have an exact key-value pair
                              @@ -234,16 +266,15 @@ public java.lang.String getOperator() {
                                  * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for operator. */ @java.lang.Override - public com.google.protobuf.ByteString - getOperatorBytes() { + public com.google.protobuf.ByteString getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operator_ = b; return b; } else { @@ -252,6 +283,7 @@ public java.lang.String getOperator() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +295,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attribute_); } @@ -300,19 +331,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.EventFilter)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.EventFilter other = (com.google.cloud.functions.v2beta.EventFilter) obj; + com.google.cloud.functions.v2beta.EventFilter other = + (com.google.cloud.functions.v2beta.EventFilter) obj; - if (!getAttribute() - .equals(other.getAttribute())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!getOperator() - .equals(other.getOperator())) return false; + if (!getAttribute().equals(other.getAttribute())) return false; + if (!getValue().equals(other.getValue())) return false; + if (!getOperator().equals(other.getOperator())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -335,118 +364,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.EventFilter parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.EventFilter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.EventFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.EventFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.EventFilter 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.EventFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.EventFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2beta.EventFilter parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.EventFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.EventFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.EventFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.EventFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.EventFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.EventFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2beta.EventFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Filters events based on exact matches on the CloudEvents attributes.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.EventFilter} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.EventFilter) com.google.cloud.functions.v2beta.EventFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.EventFilter.class, com.google.cloud.functions.v2beta.EventFilter.Builder.class); + com.google.cloud.functions.v2beta.EventFilter.class, + com.google.cloud.functions.v2beta.EventFilter.Builder.class); } // Construct using com.google.cloud.functions.v2beta.EventFilter.newBuilder() @@ -454,16 +492,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +514,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; } @java.lang.Override @@ -498,7 +535,8 @@ public com.google.cloud.functions.v2beta.EventFilter build() { @java.lang.Override public com.google.cloud.functions.v2beta.EventFilter buildPartial() { - com.google.cloud.functions.v2beta.EventFilter result = new com.google.cloud.functions.v2beta.EventFilter(this); + com.google.cloud.functions.v2beta.EventFilter result = + new com.google.cloud.functions.v2beta.EventFilter(this); result.attribute_ = attribute_; result.value_ = value_; result.operator_ = operator_; @@ -510,38 +548,39 @@ public com.google.cloud.functions.v2beta.EventFilter buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.EventFilter)other); + return mergeFrom((com.google.cloud.functions.v2beta.EventFilter) other); } else { super.mergeFrom(other); return this; @@ -593,18 +632,20 @@ public Builder mergeFrom( private java.lang.Object attribute_ = ""; /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attribute. */ public java.lang.String getAttribute() { java.lang.Object ref = attribute_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attribute_ = s; return s; @@ -613,20 +654,21 @@ public java.lang.String getAttribute() { } } /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attribute. */ - public com.google.protobuf.ByteString - getAttributeBytes() { + public com.google.protobuf.ByteString getAttributeBytes() { java.lang.Object ref = attribute_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attribute_ = b; return b; } else { @@ -634,54 +676,61 @@ public java.lang.String getAttribute() { } } /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The attribute to set. * @return This builder for chaining. */ - public Builder setAttribute( - java.lang.String value) { + public Builder setAttribute(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attribute_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAttribute() { - + attribute_ = getDefaultInstance().getAttribute(); onChanged(); return this; } /** + * + * *
                                    * Required. The name of a CloudEvents attribute.
                                    * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for attribute to set. * @return This builder for chaining. */ - public Builder setAttributeBytes( - com.google.protobuf.ByteString value) { + public Builder setAttributeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attribute_ = value; onChanged(); return this; @@ -689,18 +738,20 @@ public Builder setAttributeBytes( private java.lang.Object value_ = ""; /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -709,20 +760,21 @@ public java.lang.String getValue() { } } /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -730,54 +782,61 @@ public java.lang.String getValue() { } } /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
                                    * Required. The value for the attribute.
                                    * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; @@ -785,6 +844,8 @@ public Builder setValueBytes( private java.lang.Object operator_ = ""; /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -793,13 +854,13 @@ public Builder setValueBytes(
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The operator. */ public java.lang.String getOperator() { java.lang.Object ref = operator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operator_ = s; return s; @@ -808,6 +869,8 @@ public java.lang.String getOperator() { } } /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -816,15 +879,14 @@ public java.lang.String getOperator() {
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for operator. */ - public com.google.protobuf.ByteString - getOperatorBytes() { + public com.google.protobuf.ByteString getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operator_ = b; return b; } else { @@ -832,6 +894,8 @@ public java.lang.String getOperator() { } } /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -840,20 +904,22 @@ public java.lang.String getOperator() {
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The operator to set. * @return This builder for chaining. */ - public Builder setOperator( - java.lang.String value) { + public Builder setOperator(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operator_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -862,15 +928,18 @@ public Builder setOperator(
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOperator() { - + operator_ = getDefaultInstance().getOperator(); onChanged(); return this; } /** + * + * *
                                    * Optional. The operator used for matching the events with the value of the
                                    * filter. If not specified, only events that have an exact key-value pair
                              @@ -879,23 +948,23 @@ public Builder clearOperator() {
                                    * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for operator to set. * @return This builder for chaining. */ - public Builder setOperatorBytes( - com.google.protobuf.ByteString value) { + public Builder setOperatorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operator_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -905,12 +974,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.EventFilter) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.EventFilter) private static final com.google.cloud.functions.v2beta.EventFilter DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.EventFilter(); } @@ -919,16 +988,16 @@ public static com.google.cloud.functions.v2beta.EventFilter getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventFilter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventFilter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,6 +1012,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.EventFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java similarity index 69% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java index 183bcce3..3ce1de81 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilterOrBuilder.java @@ -1,53 +1,81 @@ +/* + * 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 EventFilterOrBuilder extends +public interface EventFilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.EventFilter) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Required. The name of a CloudEvents attribute.
                                  * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attribute. */ java.lang.String getAttribute(); /** + * + * *
                                  * Required. The name of a CloudEvents attribute.
                                  * 
                              * * string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attribute. */ - com.google.protobuf.ByteString - getAttributeBytes(); + com.google.protobuf.ByteString getAttributeBytes(); /** + * + * *
                                  * Required. The value for the attribute.
                                  * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
                                  * Required. The value for the attribute.
                                  * 
                              * * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
                                  * Optional. The operator used for matching the events with the value of the
                                  * filter. If not specified, only events that have an exact key-value pair
                              @@ -56,10 +84,13 @@ public interface EventFilterOrBuilder extends
                                  * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The operator. */ java.lang.String getOperator(); /** + * + * *
                                  * Optional. The operator used for matching the events with the value of the
                                  * filter. If not specified, only events that have an exact key-value pair
                              @@ -68,8 +99,8 @@ public interface EventFilterOrBuilder extends
                                  * 
                              * * string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for operator. */ - com.google.protobuf.ByteString - getOperatorBytes(); + com.google.protobuf.ByteString getOperatorBytes(); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java similarity index 73% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java index c07f6531..d699c52d 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java @@ -1,9 +1,26 @@ +/* + * 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; /** + * + * *
                                * Describes EventTrigger, used to request events to be sent from another
                                * service.
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2beta.EventTrigger}
                                */
                              -public final class EventTrigger extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class EventTrigger extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.EventTrigger)
                                   EventTriggerOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use EventTrigger.newBuilder() to construct.
                                 private EventTrigger(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private EventTrigger() {
                                   trigger_ = "";
                                   triggerRegion_ = "";
                              @@ -33,16 +51,15 @@ private EventTrigger() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new EventTrigger();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private EventTrigger(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -62,64 +79,74 @@ private EventTrigger(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            trigger_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              trigger_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            triggerRegion_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              triggerRegion_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            eventType_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              eventFilters_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000001;
                              +              eventType_ = s;
                              +              break;
                                           }
                              -            eventFilters_.add(
                              -                input.readMessage(com.google.cloud.functions.v2beta.EventFilter.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          case 42: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 34:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                eventFilters_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              eventFilters_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2beta.EventFilter.parser(), extensionRegistry));
                              +              break;
                              +            }
                              +          case 42:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            pubsubTopic_ = s;
                              -            break;
                              -          }
                              -          case 50: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              pubsubTopic_ = s;
                              +              break;
                              +            }
                              +          case 50:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            serviceAccountEmail_ = s;
                              -            break;
                              -          }
                              -          case 56: {
                              -            int rawValue = input.readEnum();
                              +              serviceAccountEmail_ = s;
                              +              break;
                              +            }
                              +          case 56:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            retryPolicy_ = rawValue;
                              -            break;
                              -          }
                              -          case 66: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              retryPolicy_ = rawValue;
                              +              break;
                              +            }
                              +          case 66:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            channel_ = s;
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              channel_ = s;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -127,8 +154,7 @@ private EventTrigger(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000001) != 0)) {
                                       eventFilters_ = java.util.Collections.unmodifiableList(eventFilters_);
                              @@ -137,20 +163,25 @@ private EventTrigger(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2beta.EventTrigger.class, com.google.cloud.functions.v2beta.EventTrigger.Builder.class);
                              +            com.google.cloud.functions.v2beta.EventTrigger.class,
                              +            com.google.cloud.functions.v2beta.EventTrigger.Builder.class);
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Describes the retry policy in case of function's execution failure.
                                  * Retried execution is charged as any other execution.
                              @@ -158,9 +189,10 @@ private EventTrigger(
                                  *
                                  * Protobuf enum {@code google.cloud.functions.v2beta.EventTrigger.RetryPolicy}
                                  */
                              -  public enum RetryPolicy
                              -      implements com.google.protobuf.ProtocolMessageEnum {
                              +  public enum RetryPolicy implements com.google.protobuf.ProtocolMessageEnum {
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Not specified.
                                    * 
                              @@ -169,6 +201,8 @@ public enum RetryPolicy */ RETRY_POLICY_UNSPECIFIED(0), /** + * + * *
                                    * Do not retry.
                                    * 
                              @@ -177,6 +211,8 @@ public enum RetryPolicy */ RETRY_POLICY_DO_NOT_RETRY(1), /** + * + * *
                                    * Retry on any failure, retry up to 7 days with an exponential backoff
                                    * (capped at 10 seconds).
                              @@ -189,6 +225,8 @@ public enum RetryPolicy
                                   ;
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Not specified.
                                    * 
                              @@ -197,6 +235,8 @@ public enum RetryPolicy */ public static final int RETRY_POLICY_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Do not retry.
                                    * 
                              @@ -205,6 +245,8 @@ public enum RetryPolicy */ public static final int RETRY_POLICY_DO_NOT_RETRY_VALUE = 1; /** + * + * *
                                    * Retry on any failure, retry up to 7 days with an exponential backoff
                                    * (capped at 10 seconds).
                              @@ -214,7 +256,6 @@ public enum RetryPolicy
                                    */
                                   public static final int RETRY_POLICY_RETRY_VALUE = 2;
                               
                              -
                                   public final int getNumber() {
                                     if (this == UNRECOGNIZED) {
                                       throw new java.lang.IllegalArgumentException(
                              @@ -239,49 +280,49 @@ public static RetryPolicy valueOf(int value) {
                                    */
                                   public static RetryPolicy forNumber(int value) {
                                     switch (value) {
                              -        case 0: return RETRY_POLICY_UNSPECIFIED;
                              -        case 1: return RETRY_POLICY_DO_NOT_RETRY;
                              -        case 2: return RETRY_POLICY_RETRY;
                              -        default: return null;
                              +        case 0:
                              +          return RETRY_POLICY_UNSPECIFIED;
                              +        case 1:
                              +          return RETRY_POLICY_DO_NOT_RETRY;
                              +        case 2:
                              +          return RETRY_POLICY_RETRY;
                              +        default:
                              +          return null;
                                     }
                                   }
                               
                              -    public static com.google.protobuf.Internal.EnumLiteMap
                              -        internalGetValueMap() {
                              +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
                                     return internalValueMap;
                                   }
                              -    private static final com.google.protobuf.Internal.EnumLiteMap<
                              -        RetryPolicy> internalValueMap =
                              -          new com.google.protobuf.Internal.EnumLiteMap() {
                              -            public RetryPolicy findValueByNumber(int number) {
                              -              return RetryPolicy.forNumber(number);
                              -            }
                              -          };
                               
                              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
                              -        getValueDescriptor() {
                              +    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
                              +        new com.google.protobuf.Internal.EnumLiteMap() {
                              +          public RetryPolicy findValueByNumber(int number) {
                              +            return RetryPolicy.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() {
                              +
                              +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                                     return getDescriptor();
                                   }
                              -    public static final com.google.protobuf.Descriptors.EnumDescriptor
                              -        getDescriptor() {
                              +
                              +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                                     return com.google.cloud.functions.v2beta.EventTrigger.getDescriptor().getEnumTypes().get(0);
                                   }
                               
                                   private static final RetryPolicy[] VALUES = values();
                               
                              -    public static RetryPolicy valueOf(
                              -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                              +    public static RetryPolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                                     if (desc.getType() != getDescriptor()) {
                              -        throw new java.lang.IllegalArgumentException(
                              -          "EnumValueDescriptor is not for this type.");
                              +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                                     }
                                     if (desc.getIndex() == -1) {
                                       return UNRECOGNIZED;
                              @@ -301,12 +342,17 @@ private RetryPolicy(int value) {
                                 public static final int TRIGGER_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The trigger. */ @java.lang.Override @@ -315,30 +361,32 @@ public java.lang.String getTrigger() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trigger_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for trigger. */ @java.lang.Override - public com.google.protobuf.ByteString - getTriggerBytes() { + public com.google.protobuf.ByteString getTriggerBytes() { java.lang.Object ref = trigger_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trigger_ = b; return b; } else { @@ -349,6 +397,8 @@ public java.lang.String getTrigger() { public static final int TRIGGER_REGION_FIELD_NUMBER = 2; private volatile java.lang.Object triggerRegion_; /** + * + * *
                                  * The region that the trigger will be in. The trigger will only receive
                                  * events originating in this region. It can be the same
                              @@ -357,6 +407,7 @@ public java.lang.String getTrigger() {
                                  * 
                              * * string trigger_region = 2; + * * @return The triggerRegion. */ @java.lang.Override @@ -365,14 +416,15 @@ public java.lang.String getTriggerRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); triggerRegion_ = s; return s; } } /** + * + * *
                                  * The region that the trigger will be in. The trigger will only receive
                                  * events originating in this region. It can be the same
                              @@ -381,16 +433,15 @@ public java.lang.String getTriggerRegion() {
                                  * 
                              * * string trigger_region = 2; + * * @return The bytes for triggerRegion. */ @java.lang.Override - public com.google.protobuf.ByteString - getTriggerRegionBytes() { + public com.google.protobuf.ByteString getTriggerRegionBytes() { java.lang.Object ref = triggerRegion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); triggerRegion_ = b; return b; } else { @@ -401,6 +452,8 @@ public java.lang.String getTriggerRegion() { public static final int EVENT_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object eventType_; /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `google.cloud.audit.log.v1.written` or
                              @@ -408,6 +461,7 @@ public java.lang.String getTriggerRegion() {
                                  * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The eventType. */ @java.lang.Override @@ -416,14 +470,15 @@ public java.lang.String getEventType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; } } /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `google.cloud.audit.log.v1.written` or
                              @@ -431,16 +486,15 @@ public java.lang.String getEventType() {
                                  * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for eventType. */ @java.lang.Override - public com.google.protobuf.ByteString - getEventTypeBytes() { + public com.google.protobuf.ByteString getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventType_ = b; return b; } else { @@ -451,6 +505,8 @@ public java.lang.String getEventType() { public static final int EVENT_FILTERS_FIELD_NUMBER = 4; private java.util.List eventFilters_; /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -462,6 +518,8 @@ public java.util.List getEventFil return eventFilters_; } /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -469,11 +527,13 @@ public java.util.List getEventFil * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ @java.lang.Override - public java.util.List + public java.util.List getEventFiltersOrBuilderList() { return eventFilters_; } /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -485,6 +545,8 @@ public int getEventFiltersCount() { return eventFilters_.size(); } /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -496,6 +558,8 @@ public com.google.cloud.functions.v2beta.EventFilter getEventFilters(int index) return eventFilters_.get(index); } /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -511,6 +575,8 @@ public com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrB public static final int PUBSUB_TOPIC_FIELD_NUMBER = 5; private volatile java.lang.Object pubsubTopic_; /** + * + * *
                                  * 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:
                              @@ -520,7 +586,10 @@ public com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrB
                                  * will not be deleted at function deletion.
                                  * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The pubsubTopic. */ @java.lang.Override @@ -529,14 +598,15 @@ public java.lang.String getPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; } } /** + * + * *
                                  * 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:
                              @@ -546,17 +616,18 @@ public java.lang.String getPubsubTopic() {
                                  * will not be deleted at function deletion.
                                  * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -567,6 +638,8 @@ public java.lang.String getPubsubTopic() { public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 6; private volatile java.lang.Object serviceAccountEmail_; /** + * + * *
                                  * Optional. The email of the trigger's service account. The service account must have
                                  * permission to invoke Cloud Run services, the permission is
                              @@ -576,6 +649,7 @@ public java.lang.String getPubsubTopic() {
                                  * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccountEmail. */ @java.lang.Override @@ -584,14 +658,15 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** + * + * *
                                  * Optional. The email of the trigger's service account. The service account must have
                                  * permission to invoke Cloud Run services, the permission is
                              @@ -601,16 +676,15 @@ public java.lang.String getServiceAccountEmail() {
                                  * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -621,40 +695,60 @@ public java.lang.String getServiceAccountEmail() { public static final int RETRY_POLICY_FIELD_NUMBER = 7; private int retryPolicy_; /** + * + * *
                                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                  * 
                              * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for retryPolicy. */ - @java.lang.Override public int getRetryPolicyValue() { + @java.lang.Override + public int getRetryPolicyValue() { return retryPolicy_; } /** + * + * *
                                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                  * 
                              * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The retryPolicy. */ - @java.lang.Override public com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy getRetryPolicy() { + @java.lang.Override + public com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy getRetryPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy result = com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.valueOf(retryPolicy_); - return result == null ? com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.UNRECOGNIZED : result; + com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy result = + com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.valueOf(retryPolicy_); + return result == null + ? com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.UNRECOGNIZED + : result; } public static final int CHANNEL_FIELD_NUMBER = 8; private volatile java.lang.Object channel_; /** + * + * *
                                  * Optional. The name of the channel associated with the trigger in
                                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                                  * You must provide a channel to receive events from Eventarc SaaS partners.
                                  * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The channel. */ @java.lang.Override @@ -663,31 +757,33 @@ public java.lang.String getChannel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; } } /** + * + * *
                                  * Optional. The name of the channel associated with the trigger in
                                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                                  * You must provide a channel to receive events from Eventarc SaaS partners.
                                  * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for channel. */ @java.lang.Override - public com.google.protobuf.ByteString - getChannelBytes() { + public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); channel_ = b; return b; } else { @@ -696,6 +792,7 @@ public java.lang.String getChannel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -707,8 +804,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trigger_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trigger_); } @@ -727,7 +823,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAccountEmail_); } - if (retryPolicy_ != com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED.getNumber()) { + if (retryPolicy_ + != com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED + .getNumber()) { output.writeEnum(7, retryPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { @@ -752,8 +850,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, eventType_); } for (int i = 0; i < eventFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, eventFilters_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, eventFilters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pubsubTopic_); @@ -761,9 +858,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAccountEmail_); } - if (retryPolicy_ != com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, retryPolicy_); + if (retryPolicy_ + != com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.RETRY_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, retryPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, channel_); @@ -776,28 +874,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.EventTrigger)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.EventTrigger other = (com.google.cloud.functions.v2beta.EventTrigger) obj; - - if (!getTrigger() - .equals(other.getTrigger())) return false; - if (!getTriggerRegion() - .equals(other.getTriggerRegion())) return false; - if (!getEventType() - .equals(other.getEventType())) return false; - if (!getEventFiltersList() - .equals(other.getEventFiltersList())) return false; - if (!getPubsubTopic() - .equals(other.getPubsubTopic())) return false; - if (!getServiceAccountEmail() - .equals(other.getServiceAccountEmail())) return false; + com.google.cloud.functions.v2beta.EventTrigger other = + (com.google.cloud.functions.v2beta.EventTrigger) obj; + + if (!getTrigger().equals(other.getTrigger())) return false; + if (!getTriggerRegion().equals(other.getTriggerRegion())) return false; + if (!getEventType().equals(other.getEventType())) return false; + if (!getEventFiltersList().equals(other.getEventFiltersList())) return false; + if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (retryPolicy_ != other.retryPolicy_) return false; - if (!getChannel() - .equals(other.getChannel())) return false; + if (!getChannel().equals(other.getChannel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -832,97 +924,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.EventTrigger parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.EventTrigger parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.EventTrigger parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.EventTrigger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.EventTrigger 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.EventTrigger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.EventTrigger parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2beta.EventTrigger parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.EventTrigger parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.EventTrigger parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.EventTrigger parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.EventTrigger parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.EventTrigger parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.EventTrigger parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2beta.EventTrigger prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes EventTrigger, used to request events to be sent from another
                                  * service.
                              @@ -930,21 +1029,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2beta.EventTrigger}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.EventTrigger)
                                     com.google.cloud.functions.v2beta.EventTriggerOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2beta.EventTrigger.class, com.google.cloud.functions.v2beta.EventTrigger.Builder.class);
                              +              com.google.cloud.functions.v2beta.EventTrigger.class,
                              +              com.google.cloud.functions.v2beta.EventTrigger.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2beta.EventTrigger.newBuilder()
                              @@ -952,17 +1053,17 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getEventFiltersFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -990,9 +1091,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -1011,7 +1112,8 @@ public com.google.cloud.functions.v2beta.EventTrigger build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2beta.EventTrigger buildPartial() {
                              -      com.google.cloud.functions.v2beta.EventTrigger result = new com.google.cloud.functions.v2beta.EventTrigger(this);
                              +      com.google.cloud.functions.v2beta.EventTrigger result =
                              +          new com.google.cloud.functions.v2beta.EventTrigger(this);
                                     int from_bitField0_ = bitField0_;
                                     result.trigger_ = trigger_;
                                     result.triggerRegion_ = triggerRegion_;
                              @@ -1037,38 +1139,39 @@ public com.google.cloud.functions.v2beta.EventTrigger buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2beta.EventTrigger)other);
                              +        return mergeFrom((com.google.cloud.functions.v2beta.EventTrigger) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1107,9 +1210,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.EventTrigger other) {
                                           eventFiltersBuilder_ = null;
                                           eventFilters_ = other.eventFilters_;
                                           bitField0_ = (bitField0_ & ~0x00000001);
                              -            eventFiltersBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getEventFiltersFieldBuilder() : null;
                              +            eventFiltersBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getEventFiltersFieldBuilder()
                              +                    : null;
                                         } else {
                                           eventFiltersBuilder_.addAllMessages(other.eventFilters_);
                                         }
                              @@ -1158,23 +1262,28 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The trigger. */ public java.lang.String getTrigger() { java.lang.Object ref = trigger_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trigger_ = s; return s; @@ -1183,21 +1292,24 @@ 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}`.
                                    * 
                              * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for trigger. */ - public com.google.protobuf.ByteString - getTriggerBytes() { + public com.google.protobuf.ByteString getTriggerBytes() { java.lang.Object ref = trigger_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trigger_ = b; return b; } else { @@ -1205,57 +1317,70 @@ 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}`.
                                    * 
                              * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The trigger to set. * @return This builder for chaining. */ - public Builder setTrigger( - java.lang.String value) { + public Builder setTrigger(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trigger_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTrigger() { - + trigger_ = getDefaultInstance().getTrigger(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for trigger to set. * @return This builder for chaining. */ - public Builder setTriggerBytes( - com.google.protobuf.ByteString value) { + public Builder setTriggerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trigger_ = value; onChanged(); return this; @@ -1263,6 +1388,8 @@ public Builder setTriggerBytes( private java.lang.Object triggerRegion_ = ""; /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1271,13 +1398,13 @@ public Builder setTriggerBytes(
                                    * 
                              * * string trigger_region = 2; + * * @return The triggerRegion. */ public java.lang.String getTriggerRegion() { java.lang.Object ref = triggerRegion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); triggerRegion_ = s; return s; @@ -1286,6 +1413,8 @@ public java.lang.String getTriggerRegion() { } } /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1294,15 +1423,14 @@ public java.lang.String getTriggerRegion() {
                                    * 
                              * * string trigger_region = 2; + * * @return The bytes for triggerRegion. */ - public com.google.protobuf.ByteString - getTriggerRegionBytes() { + public com.google.protobuf.ByteString getTriggerRegionBytes() { java.lang.Object ref = triggerRegion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); triggerRegion_ = b; return b; } else { @@ -1310,6 +1438,8 @@ public java.lang.String getTriggerRegion() { } } /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1318,20 +1448,22 @@ public java.lang.String getTriggerRegion() {
                                    * 
                              * * string trigger_region = 2; + * * @param value The triggerRegion to set. * @return This builder for chaining. */ - public Builder setTriggerRegion( - java.lang.String value) { + public Builder setTriggerRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + triggerRegion_ = value; onChanged(); return this; } /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1340,15 +1472,18 @@ public Builder setTriggerRegion(
                                    * 
                              * * string trigger_region = 2; + * * @return This builder for chaining. */ public Builder clearTriggerRegion() { - + triggerRegion_ = getDefaultInstance().getTriggerRegion(); onChanged(); return this; } /** + * + * *
                                    * The region that the trigger will be in. The trigger will only receive
                                    * events originating in this region. It can be the same
                              @@ -1357,16 +1492,16 @@ public Builder clearTriggerRegion() {
                                    * 
                              * * string trigger_region = 2; + * * @param value The bytes for triggerRegion to set. * @return This builder for chaining. */ - public Builder setTriggerRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setTriggerRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + triggerRegion_ = value; onChanged(); return this; @@ -1374,6 +1509,8 @@ public Builder setTriggerRegionBytes( private java.lang.Object eventType_ = ""; /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1381,13 +1518,13 @@ public Builder setTriggerRegionBytes(
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The eventType. */ public java.lang.String getEventType() { java.lang.Object ref = eventType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; @@ -1396,6 +1533,8 @@ public java.lang.String getEventType() { } } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1403,15 +1542,14 @@ public java.lang.String getEventType() {
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for eventType. */ - public com.google.protobuf.ByteString - getEventTypeBytes() { + public com.google.protobuf.ByteString getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventType_ = b; return b; } else { @@ -1419,6 +1557,8 @@ public java.lang.String getEventType() { } } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1426,20 +1566,22 @@ public java.lang.String getEventType() {
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType( - java.lang.String value) { + public Builder setEventType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + eventType_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1447,15 +1589,18 @@ public Builder setEventType(
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearEventType() { - + eventType_ = getDefaultInstance().getEventType(); onChanged(); return this; } /** + * + * *
                                    * Required. The type of event to observe. For example:
                                    * `google.cloud.audit.log.v1.written` or
                              @@ -1463,34 +1608,41 @@ public Builder clearEventType() {
                                    * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for eventType to set. * @return This builder for chaining. */ - public Builder setEventTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventType_ = value; onChanged(); return this; } private java.util.List eventFilters_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEventFiltersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - eventFilters_ = new java.util.ArrayList(eventFilters_); + eventFilters_ = + new java.util.ArrayList(eventFilters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.EventFilter, com.google.cloud.functions.v2beta.EventFilter.Builder, com.google.cloud.functions.v2beta.EventFilterOrBuilder> eventFiltersBuilder_; + com.google.cloud.functions.v2beta.EventFilter, + com.google.cloud.functions.v2beta.EventFilter.Builder, + com.google.cloud.functions.v2beta.EventFilterOrBuilder> + eventFiltersBuilder_; /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1505,6 +1657,8 @@ public java.util.List getEventFil } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1519,6 +1673,8 @@ public int getEventFiltersCount() { } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1533,14 +1689,15 @@ public com.google.cloud.functions.v2beta.EventFilter getEventFilters(int index) } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - public Builder setEventFilters( - int index, com.google.cloud.functions.v2beta.EventFilter value) { + public Builder setEventFilters(int index, com.google.cloud.functions.v2beta.EventFilter value) { if (eventFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1554,6 +1711,8 @@ public Builder setEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1572,6 +1731,8 @@ public Builder setEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1592,14 +1753,15 @@ public Builder addEventFilters(com.google.cloud.functions.v2beta.EventFilter val return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - public Builder addEventFilters( - int index, com.google.cloud.functions.v2beta.EventFilter value) { + public Builder addEventFilters(int index, com.google.cloud.functions.v2beta.EventFilter value) { if (eventFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1613,6 +1775,8 @@ public Builder addEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1631,6 +1795,8 @@ public Builder addEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1649,6 +1815,8 @@ public Builder addEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1659,8 +1827,7 @@ public Builder addAllEventFilters( java.lang.Iterable values) { if (eventFiltersBuilder_ == null) { ensureEventFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, eventFilters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventFilters_); onChanged(); } else { eventFiltersBuilder_.addAllMessages(values); @@ -1668,6 +1835,8 @@ public Builder addAllEventFilters( return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1685,6 +1854,8 @@ public Builder clearEventFilters() { return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1702,17 +1873,20 @@ public Builder removeEventFilters(int index) { return this; } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - public com.google.cloud.functions.v2beta.EventFilter.Builder getEventFiltersBuilder( - int index) { + public com.google.cloud.functions.v2beta.EventFilter.Builder getEventFiltersBuilder(int index) { return getEventFiltersFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1722,19 +1896,22 @@ public com.google.cloud.functions.v2beta.EventFilter.Builder getEventFiltersBuil public com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrBuilder( int index) { if (eventFiltersBuilder_ == null) { - return eventFilters_.get(index); } else { + return eventFilters_.get(index); + } else { return eventFiltersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - public java.util.List - getEventFiltersOrBuilderList() { + public java.util.List + getEventFiltersOrBuilderList() { if (eventFiltersBuilder_ != null) { return eventFiltersBuilder_.getMessageOrBuilderList(); } else { @@ -1742,6 +1919,8 @@ public com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrB } } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              @@ -1749,42 +1928,48 @@ public com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrB * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ public com.google.cloud.functions.v2beta.EventFilter.Builder addEventFiltersBuilder() { - return getEventFiltersFieldBuilder().addBuilder( - com.google.cloud.functions.v2beta.EventFilter.getDefaultInstance()); + return getEventFiltersFieldBuilder() + .addBuilder(com.google.cloud.functions.v2beta.EventFilter.getDefaultInstance()); } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - public com.google.cloud.functions.v2beta.EventFilter.Builder addEventFiltersBuilder( - int index) { - return getEventFiltersFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2beta.EventFilter.getDefaultInstance()); + public com.google.cloud.functions.v2beta.EventFilter.Builder addEventFiltersBuilder(int index) { + return getEventFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2beta.EventFilter.getDefaultInstance()); } /** + * + * *
                                    * Criteria used to filter events.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - public java.util.List - getEventFiltersBuilderList() { + public java.util.List + getEventFiltersBuilderList() { return getEventFiltersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.EventFilter, com.google.cloud.functions.v2beta.EventFilter.Builder, com.google.cloud.functions.v2beta.EventFilterOrBuilder> + com.google.cloud.functions.v2beta.EventFilter, + com.google.cloud.functions.v2beta.EventFilter.Builder, + com.google.cloud.functions.v2beta.EventFilterOrBuilder> getEventFiltersFieldBuilder() { if (eventFiltersBuilder_ == null) { - eventFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.EventFilter, com.google.cloud.functions.v2beta.EventFilter.Builder, com.google.cloud.functions.v2beta.EventFilterOrBuilder>( - eventFilters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + eventFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.EventFilter, + com.google.cloud.functions.v2beta.EventFilter.Builder, + com.google.cloud.functions.v2beta.EventFilterOrBuilder>( + eventFilters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); eventFilters_ = null; } return eventFiltersBuilder_; @@ -1792,6 +1977,8 @@ public com.google.cloud.functions.v2beta.EventFilter.Builder addEventFiltersBuil private java.lang.Object pubsubTopic_ = ""; /** + * + * *
                                    * 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:
                              @@ -1801,14 +1988,16 @@ public com.google.cloud.functions.v2beta.EventFilter.Builder addEventFiltersBuil
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; @@ -1817,6 +2006,8 @@ 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:
                              @@ -1826,16 +2017,17 @@ public java.lang.String getPubsubTopic() {
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -1843,6 +2035,8 @@ 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:
                              @@ -1852,21 +2046,25 @@ public java.lang.String getPubsubTopic() {
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic( - java.lang.String value) { + public Builder setPubsubTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopic_ = value; onChanged(); return this; } /** + * + * *
                                    * 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:
                              @@ -1876,16 +2074,21 @@ public Builder setPubsubTopic(
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearPubsubTopic() { - + pubsubTopic_ = getDefaultInstance().getPubsubTopic(); onChanged(); return this; } /** + * + * *
                                    * 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:
                              @@ -1895,17 +2098,19 @@ public Builder clearPubsubTopic() {
                                    * will not be deleted at function deletion.
                                    * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopic_ = value; onChanged(); return this; @@ -1913,6 +2118,8 @@ public Builder setPubsubTopicBytes( private java.lang.Object serviceAccountEmail_ = ""; /** + * + * *
                                    * Optional. The email of the trigger's service account. The service account must have
                                    * permission to invoke Cloud Run services, the permission is
                              @@ -1922,13 +2129,13 @@ public Builder setPubsubTopicBytes(
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -1937,6 +2144,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
                              @@ -1946,15 +2155,14 @@ public java.lang.String getServiceAccountEmail() {
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -1962,6 +2170,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
                              @@ -1971,20 +2181,22 @@ public java.lang.String getServiceAccountEmail() {
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail( - java.lang.String value) { + public Builder setServiceAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. The email of the trigger's service account. The service account must have
                                    * permission to invoke Cloud Run services, the permission is
                              @@ -1994,15 +2206,18 @@ public Builder setServiceAccountEmail(
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** + * + * *
                                    * Optional. The email of the trigger's service account. The service account must have
                                    * permission to invoke Cloud Run services, the permission is
                              @@ -2012,16 +2227,16 @@ public Builder clearServiceAccountEmail() {
                                    * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; @@ -2029,73 +2244,103 @@ public Builder setServiceAccountEmailBytes( private int retryPolicy_ = 0; /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for retryPolicy. */ - @java.lang.Override public int getRetryPolicyValue() { + @java.lang.Override + public int getRetryPolicyValue() { return retryPolicy_; } /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for retryPolicy to set. * @return This builder for chaining. */ public Builder setRetryPolicyValue(int value) { - + retryPolicy_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The retryPolicy. */ @java.lang.Override public com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy getRetryPolicy() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy result = com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.valueOf(retryPolicy_); - return result == null ? com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.UNRECOGNIZED : result; + com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy result = + com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.valueOf(retryPolicy_); + return result == null + ? com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy.UNRECOGNIZED + : result; } /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The retryPolicy to set. * @return This builder for chaining. */ - public Builder setRetryPolicy(com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy value) { + public Builder setRetryPolicy( + com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy value) { if (value == null) { throw new NullPointerException(); } - + retryPolicy_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                    * 
                              * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearRetryPolicy() { - + retryPolicy_ = 0; onChanged(); return this; @@ -2103,20 +2348,24 @@ public Builder clearRetryPolicy() { private java.lang.Object channel_ = ""; /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The channel. */ public java.lang.String getChannel() { java.lang.Object ref = channel_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; @@ -2125,22 +2374,25 @@ public java.lang.String getChannel() { } } /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for channel. */ - public com.google.protobuf.ByteString - getChannelBytes() { + public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); channel_ = b; return b; } else { @@ -2148,67 +2400,80 @@ public java.lang.String getChannel() { } } /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The channel to set. * @return This builder for chaining. */ - public Builder setChannel( - java.lang.String value) { + public Builder setChannel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + channel_ = value; onChanged(); return this; } /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearChannel() { - + channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } /** + * + * *
                                    * Optional. The name of the channel associated with the trigger in
                                    * `projects/{project}/locations/{location}/channels/{channel}` format.
                                    * You must provide a channel to receive events from Eventarc SaaS partners.
                                    * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for channel to set. * @return This builder for chaining. */ - public Builder setChannelBytes( - com.google.protobuf.ByteString value) { + public Builder setChannelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channel_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2218,12 +2483,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.EventTrigger) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.EventTrigger) private static final com.google.cloud.functions.v2beta.EventTrigger DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.EventTrigger(); } @@ -2232,16 +2497,16 @@ public static com.google.cloud.functions.v2beta.EventTrigger getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventTrigger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventTrigger(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventTrigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventTrigger(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2256,6 +2521,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.EventTrigger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java similarity index 72% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java index 1ddb4a07..93c9551b 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java @@ -1,35 +1,62 @@ +/* + * 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 EventTriggerOrBuilder extends +public interface EventTriggerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.EventTrigger) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The trigger. */ 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}`.
                                  * 
                              * - * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for trigger. */ - com.google.protobuf.ByteString - getTriggerBytes(); + com.google.protobuf.ByteString getTriggerBytes(); /** + * + * *
                                  * The region that the trigger will be in. The trigger will only receive
                                  * events originating in this region. It can be the same
                              @@ -38,10 +65,13 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string trigger_region = 2; + * * @return The triggerRegion. */ java.lang.String getTriggerRegion(); /** + * + * *
                                  * The region that the trigger will be in. The trigger will only receive
                                  * events originating in this region. It can be the same
                              @@ -50,12 +80,14 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string trigger_region = 2; + * * @return The bytes for triggerRegion. */ - com.google.protobuf.ByteString - getTriggerRegionBytes(); + com.google.protobuf.ByteString getTriggerRegionBytes(); /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `google.cloud.audit.log.v1.written` or
                              @@ -63,10 +95,13 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The eventType. */ java.lang.String getEventType(); /** + * + * *
                                  * Required. The type of event to observe. For example:
                                  * `google.cloud.audit.log.v1.written` or
                              @@ -74,21 +109,24 @@ public interface EventTriggerOrBuilder extends
                                  * 
                              * * string event_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for eventType. */ - com.google.protobuf.ByteString - getEventTypeBytes(); + com.google.protobuf.ByteString getEventTypeBytes(); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - java.util.List - getEventFiltersList(); + java.util.List getEventFiltersList(); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -97,6 +135,8 @@ public interface EventTriggerOrBuilder extends */ com.google.cloud.functions.v2beta.EventFilter getEventFilters(int index); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              @@ -105,25 +145,30 @@ public interface EventTriggerOrBuilder extends */ int getEventFiltersCount(); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - java.util.List + java.util.List getEventFiltersOrBuilderList(); /** + * + * *
                                  * Criteria used to filter events.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4; */ - com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrBuilder( - int index); + com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrBuilder(int index); /** + * + * *
                                  * 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:
                              @@ -133,11 +178,16 @@ com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrBuilder(
                                  * will not be deleted at function deletion.
                                  * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The pubsubTopic. */ 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:
                              @@ -147,13 +197,17 @@ com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrBuilder(
                                  * will not be deleted at function deletion.
                                  * 
                              * - * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString - getPubsubTopicBytes(); + 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
                              @@ -163,10 +217,13 @@ com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrBuilder(
                                  * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccountEmail. */ 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
                              @@ -176,51 +233,70 @@ com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrBuilder(
                                  * 
                              * * string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString - getServiceAccountEmailBytes(); + com.google.protobuf.ByteString getServiceAccountEmailBytes(); /** + * + * *
                                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                  * 
                              * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for retryPolicy. */ int getRetryPolicyValue(); /** + * + * *
                                  * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
                                  * 
                              * - * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The retryPolicy. */ com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy getRetryPolicy(); /** + * + * *
                                  * Optional. The name of the channel associated with the trigger in
                                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                                  * You must provide a channel to receive events from Eventarc SaaS partners.
                                  * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The channel. */ java.lang.String getChannel(); /** + * + * *
                                  * Optional. The name of the channel associated with the trigger in
                                  * `projects/{project}/locations/{location}/channels/{channel}` format.
                                  * You must provide a channel to receive events from Eventarc SaaS partners.
                                  * 
                              * - * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for channel. */ - com.google.protobuf.ByteString - getChannelBytes(); + com.google.protobuf.ByteString getChannelBytes(); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java similarity index 68% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java index a246525e..9074b95b 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java @@ -1,9 +1,26 @@ +/* + * 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; /** + * + * *
                                * Describes a Cloud Function that contains user computation executed in
                                * response to an event. It encapsulates function and trigger configurations.
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2beta.Function}
                                */
                              -public final class Function extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class Function extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.Function)
                                   FunctionOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use Function.newBuilder() to construct.
                                 private Function(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private Function() {
                                   name_ = "";
                                   environment_ = 0;
                              @@ -30,16 +48,15 @@ private Function() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new Function();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private Function(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -59,111 +76,129 @@ private Function(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            name_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            description_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            com.google.cloud.functions.v2beta.BuildConfig.Builder subBuilder = null;
                              -            if (buildConfig_ != null) {
                              -              subBuilder = buildConfig_.toBuilder();
                              -            }
                              -            buildConfig_ = input.readMessage(com.google.cloud.functions.v2beta.BuildConfig.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(buildConfig_);
                              -              buildConfig_ = subBuilder.buildPartial();
                              +              name_ = s;
                              +              break;
                                           }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            break;
                              -          }
                              -          case 34: {
                              -            com.google.cloud.functions.v2beta.ServiceConfig.Builder subBuilder = null;
                              -            if (serviceConfig_ != null) {
                              -              subBuilder = serviceConfig_.toBuilder();
                              +              description_ = s;
                              +              break;
                                           }
                              -            serviceConfig_ = input.readMessage(com.google.cloud.functions.v2beta.ServiceConfig.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(serviceConfig_);
                              -              serviceConfig_ = subBuilder.buildPartial();
                              +          case 26:
                              +            {
                              +              com.google.cloud.functions.v2beta.BuildConfig.Builder subBuilder = null;
                              +              if (buildConfig_ != null) {
                              +                subBuilder = buildConfig_.toBuilder();
                              +              }
                              +              buildConfig_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2beta.BuildConfig.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(buildConfig_);
                              +                buildConfig_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              -
                              -            break;
                              -          }
                              -          case 42: {
                              -            com.google.cloud.functions.v2beta.EventTrigger.Builder subBuilder = null;
                              -            if (eventTrigger_ != null) {
                              -              subBuilder = eventTrigger_.toBuilder();
                              +          case 34:
                              +            {
                              +              com.google.cloud.functions.v2beta.ServiceConfig.Builder subBuilder = null;
                              +              if (serviceConfig_ != null) {
                              +                subBuilder = serviceConfig_.toBuilder();
                              +              }
                              +              serviceConfig_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2beta.ServiceConfig.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(serviceConfig_);
                              +                serviceConfig_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              -            eventTrigger_ = input.readMessage(com.google.cloud.functions.v2beta.EventTrigger.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(eventTrigger_);
                              -              eventTrigger_ = subBuilder.buildPartial();
                              +          case 42:
                              +            {
                              +              com.google.cloud.functions.v2beta.EventTrigger.Builder subBuilder = null;
                              +              if (eventTrigger_ != null) {
                              +                subBuilder = eventTrigger_.toBuilder();
                              +              }
                              +              eventTrigger_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2beta.EventTrigger.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(eventTrigger_);
                              +                eventTrigger_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              +          case 48:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            break;
                              -          }
                              -          case 48: {
                              -            int rawValue = input.readEnum();
                              -
                              -            state_ = rawValue;
                              -            break;
                              -          }
                              -          case 58: {
                              -            com.google.protobuf.Timestamp.Builder subBuilder = null;
                              -            if (updateTime_ != null) {
                              -              subBuilder = updateTime_.toBuilder();
                              +              state_ = rawValue;
                              +              break;
                                           }
                              -            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(updateTime_);
                              -              updateTime_ = subBuilder.buildPartial();
                              +          case 58:
                              +            {
                              +              com.google.protobuf.Timestamp.Builder subBuilder = null;
                              +              if (updateTime_ != null) {
                              +                subBuilder = updateTime_.toBuilder();
                              +              }
                              +              updateTime_ =
                              +                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(updateTime_);
                              +                updateTime_ = subBuilder.buildPartial();
                              +              }
                              +
                              +              break;
                                           }
                              -
                              -            break;
                              -          }
                              -          case 66: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              labels_ = com.google.protobuf.MapField.newMapField(
                              -                  LabelsDefaultEntryHolder.defaultEntry);
                              -              mutable_bitField0_ |= 0x00000001;
                              +          case 66:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                labels_ =
                              +                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              com.google.protobuf.MapEntry labels__ =
                              +                  input.readMessage(
                              +                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              +              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
                              +              break;
                                           }
                              -            com.google.protobuf.MapEntry
                              -            labels__ = input.readMessage(
                              -                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              -            labels_.getMutableMap().put(
                              -                labels__.getKey(), labels__.getValue());
                              -            break;
                              -          }
                              -          case 74: {
                              -            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              -              stateMessages_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000002;
                              +          case 74:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              +                stateMessages_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000002;
                              +              }
                              +              stateMessages_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2beta.StateMessage.parser(), extensionRegistry));
                              +              break;
                                           }
                              -            stateMessages_.add(
                              -                input.readMessage(com.google.cloud.functions.v2beta.StateMessage.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          case 80: {
                              -            int rawValue = input.readEnum();
                              +          case 80:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            environment_ = rawValue;
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              environment_ = rawValue;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -171,8 +206,7 @@ private Function(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000002) != 0)) {
                                       stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_);
                              @@ -181,41 +215,46 @@ private Function(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Function_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_Function_descriptor;
                                 }
                               
                                 @SuppressWarnings({"rawtypes"})
                                 @java.lang.Override
                              -  protected com.google.protobuf.MapField internalGetMapField(
                              -      int number) {
                              +  protected com.google.protobuf.MapField internalGetMapField(int number) {
                                   switch (number) {
                                     case 8:
                                       return internalGetLabels();
                                     default:
                              -        throw new RuntimeException(
                              -            "Invalid map field number: " + number);
                              +        throw new RuntimeException("Invalid map field number: " + number);
                                   }
                                 }
                              +
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2beta.Function.class, com.google.cloud.functions.v2beta.Function.Builder.class);
                              +            com.google.cloud.functions.v2beta.Function.class,
                              +            com.google.cloud.functions.v2beta.Function.Builder.class);
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Describes the current state of the function.
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2beta.Function.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified. Invalid state.
                                    * 
                              @@ -224,6 +263,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
                                    * Function has been successfully deployed and is serving.
                                    * 
                              @@ -232,6 +273,8 @@ public enum State */ ACTIVE(1), /** + * + * *
                                    * Function deployment failed and the function is not serving.
                                    * 
                              @@ -240,6 +283,8 @@ public enum State */ FAILED(2), /** + * + * *
                                    * Function is being created or updated.
                                    * 
                              @@ -248,6 +293,8 @@ public enum State */ DEPLOYING(3), /** + * + * *
                                    * Function is being deleted.
                                    * 
                              @@ -256,6 +303,8 @@ public enum State */ DELETING(4), /** + * + * *
                                    * Function deployment failed and the function serving state is undefined.
                                    * The function should be updated or deleted to move it out of this state.
                              @@ -268,6 +317,8 @@ public enum State
                                   ;
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Not specified. Invalid state.
                                    * 
                              @@ -276,6 +327,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Function has been successfully deployed and is serving.
                                    * 
                              @@ -284,6 +337,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
                                    * Function deployment failed and the function is not serving.
                                    * 
                              @@ -292,6 +347,8 @@ public enum State */ public static final int FAILED_VALUE = 2; /** + * + * *
                                    * Function is being created or updated.
                                    * 
                              @@ -300,6 +357,8 @@ public enum State */ public static final int DEPLOYING_VALUE = 3; /** + * + * *
                                    * Function is being deleted.
                                    * 
                              @@ -308,6 +367,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
                                    * Function deployment failed and the function serving state is undefined.
                                    * The function should be updated or deleted to move it out of this state.
                              @@ -317,7 +378,6 @@ public enum State
                                    */
                                   public static final int UNKNOWN_VALUE = 5;
                               
                              -
                                   public final int getNumber() {
                                     if (this == UNRECOGNIZED) {
                                       throw new java.lang.IllegalArgumentException(
                              @@ -342,52 +402,55 @@ public static State valueOf(int value) {
                                    */
                                   public static State forNumber(int value) {
                                     switch (value) {
                              -        case 0: return STATE_UNSPECIFIED;
                              -        case 1: return ACTIVE;
                              -        case 2: return FAILED;
                              -        case 3: return DEPLOYING;
                              -        case 4: return DELETING;
                              -        case 5: return UNKNOWN;
                              -        default: return null;
                              +        case 0:
                              +          return STATE_UNSPECIFIED;
                              +        case 1:
                              +          return ACTIVE;
                              +        case 2:
                              +          return FAILED;
                              +        case 3:
                              +          return DEPLOYING;
                              +        case 4:
                              +          return DELETING;
                              +        case 5:
                              +          return UNKNOWN;
                              +        default:
                              +          return null;
                                     }
                                   }
                               
                              -    public static com.google.protobuf.Internal.EnumLiteMap
                              -        internalGetValueMap() {
                              +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
                                     return internalValueMap;
                                   }
                              -    private static final com.google.protobuf.Internal.EnumLiteMap<
                              -        State> internalValueMap =
                              -          new com.google.protobuf.Internal.EnumLiteMap() {
                              -            public State findValueByNumber(int number) {
                              -              return State.forNumber(number);
                              -            }
                              -          };
                               
                              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
                              -        getValueDescriptor() {
                              +    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
                              +        new com.google.protobuf.Internal.EnumLiteMap() {
                              +          public State findValueByNumber(int number) {
                              +            return State.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() {
                              +
                              +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                                     return getDescriptor();
                                   }
                              -    public static final com.google.protobuf.Descriptors.EnumDescriptor
                              -        getDescriptor() {
                              +
                              +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                                     return com.google.cloud.functions.v2beta.Function.getDescriptor().getEnumTypes().get(0);
                                   }
                               
                                   private static final State[] VALUES = values();
                               
                              -    public static State valueOf(
                              -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                              +    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                                     if (desc.getType() != getDescriptor()) {
                              -        throw new java.lang.IllegalArgumentException(
                              -          "EnumValueDescriptor is not for this type.");
                              +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                                     }
                                     if (desc.getIndex() == -1) {
                                       return UNRECOGNIZED;
                              @@ -407,12 +470,15 @@ private State(int value) {
                                 public static final int NAME_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object name_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -421,30 +487,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -455,38 +521,50 @@ public java.lang.String getName() { public static final int ENVIRONMENT_FIELD_NUMBER = 10; private int environment_; /** + * + * *
                                  * 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() { + @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() { + @java.lang.Override + public com.google.cloud.functions.v2beta.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Environment result = com.google.cloud.functions.v2beta.Environment.valueOf(environment_); + com.google.cloud.functions.v2beta.Environment result = + com.google.cloud.functions.v2beta.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2beta.Environment.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The description. */ @java.lang.Override @@ -495,29 +573,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -528,12 +606,15 @@ public java.lang.String getDescription() { public static final int BUILD_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.functions.v2beta.BuildConfig buildConfig_; /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                                  * 
                              * * .google.cloud.functions.v2beta.BuildConfig build_config = 3; + * * @return Whether the buildConfig field is set. */ @java.lang.Override @@ -541,19 +622,26 @@ public boolean hasBuildConfig() { return buildConfig_ != null; } /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                                  * 
                              * * .google.cloud.functions.v2beta.BuildConfig build_config = 3; + * * @return The buildConfig. */ @java.lang.Override public com.google.cloud.functions.v2beta.BuildConfig getBuildConfig() { - return buildConfig_ == null ? com.google.cloud.functions.v2beta.BuildConfig.getDefaultInstance() : buildConfig_; + return buildConfig_ == null + ? com.google.cloud.functions.v2beta.BuildConfig.getDefaultInstance() + : buildConfig_; } /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                              @@ -569,12 +657,15 @@ public com.google.cloud.functions.v2beta.BuildConfigOrBuilder getBuildConfigOrBu
                                 public static final int SERVICE_CONFIG_FIELD_NUMBER = 4;
                                 private com.google.cloud.functions.v2beta.ServiceConfig serviceConfig_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                                  * 
                              * * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; + * * @return Whether the serviceConfig field is set. */ @java.lang.Override @@ -582,19 +673,26 @@ public boolean hasServiceConfig() { return serviceConfig_ != null; } /** + * + * *
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                                  * 
                              * * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; + * * @return The serviceConfig. */ @java.lang.Override public com.google.cloud.functions.v2beta.ServiceConfig getServiceConfig() { - return serviceConfig_ == null ? com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance() : serviceConfig_; + return serviceConfig_ == null + ? com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance() + : serviceConfig_; } /** + * + * *
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                              @@ -610,12 +708,15 @@ public com.google.cloud.functions.v2beta.ServiceConfigOrBuilder getServiceConfig
                                 public static final int EVENT_TRIGGER_FIELD_NUMBER = 5;
                                 private com.google.cloud.functions.v2beta.EventTrigger eventTrigger_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; + * * @return Whether the eventTrigger field is set. */ @java.lang.Override @@ -623,19 +724,26 @@ public boolean hasEventTrigger() { return eventTrigger_ != null; } /** + * + * *
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; + * * @return The eventTrigger. */ @java.lang.Override public com.google.cloud.functions.v2beta.EventTrigger getEventTrigger() { - return eventTrigger_ == null ? com.google.cloud.functions.v2beta.EventTrigger.getDefaultInstance() : eventTrigger_; + return eventTrigger_ == null + ? com.google.cloud.functions.v2beta.EventTrigger.getDefaultInstance() + : eventTrigger_; } /** + * + * *
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                              @@ -651,38 +759,55 @@ public com.google.cloud.functions.v2beta.EventTriggerOrBuilder getEventTriggerOr
                                 public static final int STATE_FIELD_NUMBER = 6;
                                 private int state_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Output only. State of the function.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
                                  * Output only. State of the function.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.functions.v2beta.Function.State getState() { + @java.lang.Override + public com.google.cloud.functions.v2beta.Function.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Function.State result = com.google.cloud.functions.v2beta.Function.State.valueOf(state_); + com.google.cloud.functions.v2beta.Function.State result = + com.google.cloud.functions.v2beta.Function.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2beta.Function.State.UNRECOGNIZED : result; } public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
                                  * 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]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -690,11 +815,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
                                  * 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]; + * + * * @return The updateTime. */ @java.lang.Override @@ -702,11 +831,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
                                  * 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]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -714,24 +846,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -740,28 +871,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 8; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -769,11 +902,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -781,16 +915,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -798,12 +932,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -813,56 +946,76 @@ public java.lang.String getLabelsOrThrow( public static final int STATE_MESSAGES_FIELD_NUMBER = 9; private java.util.List stateMessages_; /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getStateMessagesList() { return stateMessages_; } /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getStateMessagesOrBuilderList() { return stateMessages_; } /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getStateMessagesCount() { return stateMessages_.size(); } /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index) { return stateMessages_.get(index); } /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder( @@ -871,6 +1024,7 @@ public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesO } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -882,8 +1036,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -905,16 +1058,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(7, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); for (int i = 0; i < stateMessages_.size(); i++) { output.writeMessage(9, stateMessages_.get(i)); } - if (environment_ != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (environment_ + != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(10, environment_); } unknownFields.writeTo(output); @@ -933,42 +1083,36 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (buildConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBuildConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBuildConfig()); } if (serviceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getServiceConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceConfig()); } if (eventTrigger_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEventTrigger()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEventTrigger()); } if (state_ != com.google.cloud.functions.v2beta.Function.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); } for (int i = 0; i < stateMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, stateMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, stateMessages_.get(i)); } - if (environment_ != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, environment_); + if (environment_ + != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, environment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -978,43 +1122,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.Function)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.Function other = (com.google.cloud.functions.v2beta.Function) obj; + com.google.cloud.functions.v2beta.Function other = + (com.google.cloud.functions.v2beta.Function) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (environment_ != other.environment_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasBuildConfig() != other.hasBuildConfig()) return false; if (hasBuildConfig()) { - if (!getBuildConfig() - .equals(other.getBuildConfig())) return false; + if (!getBuildConfig().equals(other.getBuildConfig())) return false; } if (hasServiceConfig() != other.hasServiceConfig()) return false; if (hasServiceConfig()) { - if (!getServiceConfig() - .equals(other.getServiceConfig())) return false; + if (!getServiceConfig().equals(other.getServiceConfig())) return false; } if (hasEventTrigger() != other.hasEventTrigger()) return false; if (hasEventTrigger()) { - if (!getEventTrigger() - .equals(other.getEventTrigger())) return false; + if (!getEventTrigger().equals(other.getEventTrigger())) return false; } if (state_ != other.state_) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getStateMessagesList() - .equals(other.getStateMessagesList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getStateMessagesList().equals(other.getStateMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1063,97 +1200,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.Function parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.Function parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.Function parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Function parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.Function 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.Function parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.Function parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2beta.Function parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.Function parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.Function parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.Function parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.Function parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.Function parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.Function parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2beta.Function prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes a Cloud Function that contains user computation executed in
                                  * response to an event. It encapsulates function and trigger configurations.
                              @@ -1161,43 +1305,43 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2beta.Function}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.Function)
                                     com.google.cloud.functions.v2beta.FunctionOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Function_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_Function_descriptor;
                                   }
                               
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMapField(int number) {
                                     switch (number) {
                                       case 8:
                                         return internalGetLabels();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMutableMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
                                     switch (number) {
                                       case 8:
                                         return internalGetMutableLabels();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2beta.Function.class, com.google.cloud.functions.v2beta.Function.Builder.class);
                              +              com.google.cloud.functions.v2beta.Function.class,
                              +              com.google.cloud.functions.v2beta.Function.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2beta.Function.newBuilder()
                              @@ -1205,17 +1349,17 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getStateMessagesFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -1262,9 +1406,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Function_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_Function_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -1283,7 +1427,8 @@ public com.google.cloud.functions.v2beta.Function build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2beta.Function buildPartial() {
                              -      com.google.cloud.functions.v2beta.Function result = new com.google.cloud.functions.v2beta.Function(this);
                              +      com.google.cloud.functions.v2beta.Function result =
                              +          new com.google.cloud.functions.v2beta.Function(this);
                                     int from_bitField0_ = bitField0_;
                                     result.name_ = name_;
                                     result.environment_ = environment_;
                              @@ -1328,38 +1473,39 @@ public com.google.cloud.functions.v2beta.Function buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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.Function) {
                              -        return mergeFrom((com.google.cloud.functions.v2beta.Function)other);
                              +        return mergeFrom((com.google.cloud.functions.v2beta.Function) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1394,8 +1540,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.Function other) {
                                     if (other.hasUpdateTime()) {
                                       mergeUpdateTime(other.getUpdateTime());
                                     }
                              -      internalGetMutableLabels().mergeFrom(
                              -          other.internalGetLabels());
                              +      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
                                     if (stateMessagesBuilder_ == null) {
                                       if (!other.stateMessages_.isEmpty()) {
                                         if (stateMessages_.isEmpty()) {
                              @@ -1414,9 +1559,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.Function other) {
                                           stateMessagesBuilder_ = null;
                                           stateMessages_ = other.stateMessages_;
                                           bitField0_ = (bitField0_ & ~0x00000002);
                              -            stateMessagesBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getStateMessagesFieldBuilder() : null;
                              +            stateMessagesBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getStateMessagesFieldBuilder()
                              +                    : null;
                                         } else {
                                           stateMessagesBuilder_.addAllMessages(other.stateMessages_);
                                         }
                              @@ -1450,23 +1596,26 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object name_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1475,21 +1624,22 @@ public java.lang.String getName() { } } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1497,57 +1647,64 @@ public java.lang.String getName() { } } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * A user-defined name of the function. Function names must be unique
                                    * globally and match pattern `projects/*/locations/*/functions/*`
                                    * 
                              * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1555,51 +1712,65 @@ public Builder setNameBytes( 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() { + @java.lang.Override + public int getEnvironmentValue() { return environment_; } /** + * + * *
                                    * Describe whether the function is gen1 or gen2.
                                    * 
                              * * .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; 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() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Environment result = com.google.cloud.functions.v2beta.Environment.valueOf(environment_); + com.google.cloud.functions.v2beta.Environment result = + com.google.cloud.functions.v2beta.Environment.valueOf(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. */ @@ -1607,21 +1778,24 @@ public Builder setEnvironment(com.google.cloud.functions.v2beta.Environment valu if (value == null) { throw new NullPointerException(); } - + 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() { - + environment_ = 0; onChanged(); return this; @@ -1629,18 +1803,20 @@ public Builder clearEnvironment() { 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1649,20 +1825,21 @@ public java.lang.String getDescription() { } } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1670,54 +1847,61 @@ public java.lang.String getDescription() { } } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
                                    * User-provided description of a function.
                                    * 
                              * * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1725,36 +1909,49 @@ public Builder setDescriptionBytes( private com.google.cloud.functions.v2beta.BuildConfig buildConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.BuildConfig, com.google.cloud.functions.v2beta.BuildConfig.Builder, com.google.cloud.functions.v2beta.BuildConfigOrBuilder> buildConfigBuilder_; + com.google.cloud.functions.v2beta.BuildConfig, + com.google.cloud.functions.v2beta.BuildConfig.Builder, + com.google.cloud.functions.v2beta.BuildConfigOrBuilder> + buildConfigBuilder_; /** + * + * *
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                                    * 
                              * * .google.cloud.functions.v2beta.BuildConfig build_config = 3; + * * @return Whether the buildConfig field is set. */ public boolean hasBuildConfig() { return buildConfigBuilder_ != null || buildConfig_ != null; } /** + * + * *
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                                    * 
                              * * .google.cloud.functions.v2beta.BuildConfig build_config = 3; + * * @return The buildConfig. */ public com.google.cloud.functions.v2beta.BuildConfig getBuildConfig() { if (buildConfigBuilder_ == null) { - return buildConfig_ == null ? com.google.cloud.functions.v2beta.BuildConfig.getDefaultInstance() : buildConfig_; + return buildConfig_ == null + ? com.google.cloud.functions.v2beta.BuildConfig.getDefaultInstance() + : buildConfig_; } else { return buildConfigBuilder_.getMessage(); } } /** + * + * *
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1776,6 +1973,8 @@ public Builder setBuildConfig(com.google.cloud.functions.v2beta.BuildConfig valu
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1795,6 +1994,8 @@ public Builder setBuildConfig(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1806,7 +2007,9 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2beta.BuildConfig va
                                     if (buildConfigBuilder_ == null) {
                                       if (buildConfig_ != null) {
                                         buildConfig_ =
                              -            com.google.cloud.functions.v2beta.BuildConfig.newBuilder(buildConfig_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2beta.BuildConfig.newBuilder(buildConfig_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         buildConfig_ = value;
                                       }
                              @@ -1818,6 +2021,8 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2beta.BuildConfig va
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1837,6 +2042,8 @@ public Builder clearBuildConfig() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1845,11 +2052,13 @@ public Builder clearBuildConfig() {
                                    * .google.cloud.functions.v2beta.BuildConfig build_config = 3;
                                    */
                                   public com.google.cloud.functions.v2beta.BuildConfig.Builder getBuildConfigBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getBuildConfigFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1861,11 +2070,14 @@ public com.google.cloud.functions.v2beta.BuildConfigOrBuilder getBuildConfigOrBu
                                     if (buildConfigBuilder_ != null) {
                                       return buildConfigBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return buildConfig_ == null ?
                              -            com.google.cloud.functions.v2beta.BuildConfig.getDefaultInstance() : buildConfig_;
                              +        return buildConfig_ == null
                              +            ? com.google.cloud.functions.v2beta.BuildConfig.getDefaultInstance()
                              +            : buildConfig_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Build step of the function that builds a container from the
                                    * given source.
                              @@ -1874,14 +2086,17 @@ public com.google.cloud.functions.v2beta.BuildConfigOrBuilder getBuildConfigOrBu
                                    * .google.cloud.functions.v2beta.BuildConfig build_config = 3;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2beta.BuildConfig, com.google.cloud.functions.v2beta.BuildConfig.Builder, com.google.cloud.functions.v2beta.BuildConfigOrBuilder> 
                              +            com.google.cloud.functions.v2beta.BuildConfig,
                              +            com.google.cloud.functions.v2beta.BuildConfig.Builder,
                              +            com.google.cloud.functions.v2beta.BuildConfigOrBuilder>
                                       getBuildConfigFieldBuilder() {
                                     if (buildConfigBuilder_ == null) {
                              -        buildConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2beta.BuildConfig, com.google.cloud.functions.v2beta.BuildConfig.Builder, com.google.cloud.functions.v2beta.BuildConfigOrBuilder>(
                              -                getBuildConfig(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        buildConfigBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2beta.BuildConfig,
                              +                com.google.cloud.functions.v2beta.BuildConfig.Builder,
                              +                com.google.cloud.functions.v2beta.BuildConfigOrBuilder>(
                              +                getBuildConfig(), getParentForChildren(), isClean());
                                       buildConfig_ = null;
                                     }
                                     return buildConfigBuilder_;
                              @@ -1889,36 +2104,49 @@ public com.google.cloud.functions.v2beta.BuildConfigOrBuilder getBuildConfigOrBu
                               
                                   private com.google.cloud.functions.v2beta.ServiceConfig serviceConfig_;
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2beta.ServiceConfig, com.google.cloud.functions.v2beta.ServiceConfig.Builder, com.google.cloud.functions.v2beta.ServiceConfigOrBuilder> serviceConfigBuilder_;
                              +            com.google.cloud.functions.v2beta.ServiceConfig,
                              +            com.google.cloud.functions.v2beta.ServiceConfig.Builder,
                              +            com.google.cloud.functions.v2beta.ServiceConfigOrBuilder>
                              +        serviceConfigBuilder_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                                    * 
                              * * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; + * * @return Whether the serviceConfig field is set. */ public boolean hasServiceConfig() { return serviceConfigBuilder_ != null || serviceConfig_ != null; } /** + * + * *
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                                    * 
                              * * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; + * * @return The serviceConfig. */ public com.google.cloud.functions.v2beta.ServiceConfig getServiceConfig() { if (serviceConfigBuilder_ == null) { - return serviceConfig_ == null ? com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance() : serviceConfig_; + return serviceConfig_ == null + ? com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance() + : serviceConfig_; } else { return serviceConfigBuilder_.getMessage(); } } /** + * + * *
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -1940,6 +2168,8 @@ public Builder setServiceConfig(com.google.cloud.functions.v2beta.ServiceConfig
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -1959,6 +2189,8 @@ public Builder setServiceConfig(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -1970,7 +2202,9 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2beta.ServiceConfi
                                     if (serviceConfigBuilder_ == null) {
                                       if (serviceConfig_ != null) {
                                         serviceConfig_ =
                              -            com.google.cloud.functions.v2beta.ServiceConfig.newBuilder(serviceConfig_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2beta.ServiceConfig.newBuilder(serviceConfig_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         serviceConfig_ = value;
                                       }
                              @@ -1982,6 +2216,8 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2beta.ServiceConfi
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -2001,6 +2237,8 @@ public Builder clearServiceConfig() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -2009,11 +2247,13 @@ public Builder clearServiceConfig() {
                                    * .google.cloud.functions.v2beta.ServiceConfig service_config = 4;
                                    */
                                   public com.google.cloud.functions.v2beta.ServiceConfig.Builder getServiceConfigBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getServiceConfigFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -2025,11 +2265,14 @@ public com.google.cloud.functions.v2beta.ServiceConfigOrBuilder getServiceConfig
                                     if (serviceConfigBuilder_ != null) {
                                       return serviceConfigBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return serviceConfig_ == null ?
                              -            com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance() : serviceConfig_;
                              +        return serviceConfig_ == null
                              +            ? com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance()
                              +            : serviceConfig_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Describes the Service being deployed. Currently deploys services to Cloud
                                    * Run (fully managed).
                              @@ -2038,14 +2281,17 @@ public com.google.cloud.functions.v2beta.ServiceConfigOrBuilder getServiceConfig
                                    * .google.cloud.functions.v2beta.ServiceConfig service_config = 4;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2beta.ServiceConfig, com.google.cloud.functions.v2beta.ServiceConfig.Builder, com.google.cloud.functions.v2beta.ServiceConfigOrBuilder> 
                              +            com.google.cloud.functions.v2beta.ServiceConfig,
                              +            com.google.cloud.functions.v2beta.ServiceConfig.Builder,
                              +            com.google.cloud.functions.v2beta.ServiceConfigOrBuilder>
                                       getServiceConfigFieldBuilder() {
                                     if (serviceConfigBuilder_ == null) {
                              -        serviceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2beta.ServiceConfig, com.google.cloud.functions.v2beta.ServiceConfig.Builder, com.google.cloud.functions.v2beta.ServiceConfigOrBuilder>(
                              -                getServiceConfig(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        serviceConfigBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2beta.ServiceConfig,
                              +                com.google.cloud.functions.v2beta.ServiceConfig.Builder,
                              +                com.google.cloud.functions.v2beta.ServiceConfigOrBuilder>(
                              +                getServiceConfig(), getParentForChildren(), isClean());
                                       serviceConfig_ = null;
                                     }
                                     return serviceConfigBuilder_;
                              @@ -2053,36 +2299,49 @@ public com.google.cloud.functions.v2beta.ServiceConfigOrBuilder getServiceConfig
                               
                                   private com.google.cloud.functions.v2beta.EventTrigger eventTrigger_;
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2beta.EventTrigger, com.google.cloud.functions.v2beta.EventTrigger.Builder, com.google.cloud.functions.v2beta.EventTriggerOrBuilder> eventTriggerBuilder_;
                              +            com.google.cloud.functions.v2beta.EventTrigger,
                              +            com.google.cloud.functions.v2beta.EventTrigger.Builder,
                              +            com.google.cloud.functions.v2beta.EventTriggerOrBuilder>
                              +        eventTriggerBuilder_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                                    * 
                              * * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; + * * @return Whether the eventTrigger field is set. */ public boolean hasEventTrigger() { return eventTriggerBuilder_ != null || eventTrigger_ != null; } /** + * + * *
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                                    * 
                              * * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; + * * @return The eventTrigger. */ public com.google.cloud.functions.v2beta.EventTrigger getEventTrigger() { if (eventTriggerBuilder_ == null) { - return eventTrigger_ == null ? com.google.cloud.functions.v2beta.EventTrigger.getDefaultInstance() : eventTrigger_; + return eventTrigger_ == null + ? com.google.cloud.functions.v2beta.EventTrigger.getDefaultInstance() + : eventTrigger_; } else { return eventTriggerBuilder_.getMessage(); } } /** + * + * *
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2104,6 +2363,8 @@ public Builder setEventTrigger(com.google.cloud.functions.v2beta.EventTrigger va
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2123,6 +2384,8 @@ public Builder setEventTrigger(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2134,7 +2397,9 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2beta.EventTrigger
                                     if (eventTriggerBuilder_ == null) {
                                       if (eventTrigger_ != null) {
                                         eventTrigger_ =
                              -            com.google.cloud.functions.v2beta.EventTrigger.newBuilder(eventTrigger_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2beta.EventTrigger.newBuilder(eventTrigger_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         eventTrigger_ = value;
                                       }
                              @@ -2146,6 +2411,8 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2beta.EventTrigger
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2165,6 +2432,8 @@ public Builder clearEventTrigger() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2173,11 +2442,13 @@ public Builder clearEventTrigger() {
                                    * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5;
                                    */
                                   public com.google.cloud.functions.v2beta.EventTrigger.Builder getEventTriggerBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getEventTriggerFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2189,11 +2460,14 @@ public com.google.cloud.functions.v2beta.EventTriggerOrBuilder getEventTriggerOr
                                     if (eventTriggerBuilder_ != null) {
                                       return eventTriggerBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return eventTrigger_ == null ?
                              -            com.google.cloud.functions.v2beta.EventTrigger.getDefaultInstance() : eventTrigger_;
                              +        return eventTrigger_ == null
                              +            ? com.google.cloud.functions.v2beta.EventTrigger.getDefaultInstance()
                              +            : eventTrigger_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                    * response to a condition in another service.
                              @@ -2202,14 +2476,17 @@ public com.google.cloud.functions.v2beta.EventTriggerOrBuilder getEventTriggerOr
                                    * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2beta.EventTrigger, com.google.cloud.functions.v2beta.EventTrigger.Builder, com.google.cloud.functions.v2beta.EventTriggerOrBuilder> 
                              +            com.google.cloud.functions.v2beta.EventTrigger,
                              +            com.google.cloud.functions.v2beta.EventTrigger.Builder,
                              +            com.google.cloud.functions.v2beta.EventTriggerOrBuilder>
                                       getEventTriggerFieldBuilder() {
                                     if (eventTriggerBuilder_ == null) {
                              -        eventTriggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2beta.EventTrigger, com.google.cloud.functions.v2beta.EventTrigger.Builder, com.google.cloud.functions.v2beta.EventTriggerOrBuilder>(
                              -                getEventTrigger(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        eventTriggerBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2beta.EventTrigger,
                              +                com.google.cloud.functions.v2beta.EventTrigger.Builder,
                              +                com.google.cloud.functions.v2beta.EventTriggerOrBuilder>(
                              +                getEventTrigger(), getParentForChildren(), isClean());
                                       eventTrigger_ = null;
                                     }
                                     return eventTriggerBuilder_;
                              @@ -2217,51 +2494,75 @@ public com.google.cloud.functions.v2beta.EventTriggerOrBuilder getEventTriggerOr
                               
                                   private int state_ = 0;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.functions.v2beta.Function.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Function.State result = com.google.cloud.functions.v2beta.Function.State.valueOf(state_); - return result == null ? com.google.cloud.functions.v2beta.Function.State.UNRECOGNIZED : result; + com.google.cloud.functions.v2beta.Function.State result = + com.google.cloud.functions.v2beta.Function.State.valueOf(state_); + return result == null + ? com.google.cloud.functions.v2beta.Function.State.UNRECOGNIZED + : result; } /** + * + * *
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2269,21 +2570,26 @@ public Builder setState(com.google.cloud.functions.v2beta.Function.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Output only. State of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2291,39 +2597,58 @@ public Builder clearState() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
                                    * 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]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
                                    * 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]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
                                    * 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]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2339,14 +2664,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * 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]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2357,17 +2685,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
                                    * 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]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2379,11 +2711,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * 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]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2397,69 +2733,84 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
                                    * 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]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
                                    * 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]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
                                    * 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]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2471,28 +2822,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 8; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              @@ -2500,11 +2853,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 8; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              @@ -2512,16 +2866,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              @@ -2529,12 +2884,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 8; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2542,85 +2896,91 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 8; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 8; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
                                    * Labels associated with this Cloud Function.
                                    * 
                              * * map<string, string> labels = 8; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.util.List stateMessages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStateMessagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - stateMessages_ = new java.util.ArrayList(stateMessages_); + stateMessages_ = + new java.util.ArrayList(stateMessages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.StateMessage, com.google.cloud.functions.v2beta.StateMessage.Builder, com.google.cloud.functions.v2beta.StateMessageOrBuilder> stateMessagesBuilder_; + com.google.cloud.functions.v2beta.StateMessage, + com.google.cloud.functions.v2beta.StateMessage.Builder, + com.google.cloud.functions.v2beta.StateMessageOrBuilder> + stateMessagesBuilder_; /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getStateMessagesList() { if (stateMessagesBuilder_ == null) { @@ -2630,11 +2990,15 @@ public java.util.List getStateMe } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getStateMessagesCount() { if (stateMessagesBuilder_ == null) { @@ -2644,11 +3008,15 @@ public int getStateMessagesCount() { } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index) { if (stateMessagesBuilder_ == null) { @@ -2658,11 +3026,15 @@ public com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateMessages( int index, com.google.cloud.functions.v2beta.StateMessage value) { @@ -2679,11 +3051,15 @@ public Builder setStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateMessages( int index, com.google.cloud.functions.v2beta.StateMessage.Builder builderForValue) { @@ -2697,11 +3073,15 @@ public Builder setStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateMessages(com.google.cloud.functions.v2beta.StateMessage value) { if (stateMessagesBuilder_ == null) { @@ -2717,11 +3097,15 @@ public Builder addStateMessages(com.google.cloud.functions.v2beta.StateMessage v return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateMessages( int index, com.google.cloud.functions.v2beta.StateMessage value) { @@ -2738,11 +3122,15 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateMessages( com.google.cloud.functions.v2beta.StateMessage.Builder builderForValue) { @@ -2756,11 +3144,15 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStateMessages( int index, com.google.cloud.functions.v2beta.StateMessage.Builder builderForValue) { @@ -2774,18 +3166,21 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllStateMessages( java.lang.Iterable values) { if (stateMessagesBuilder_ == null) { ensureStateMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stateMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateMessages_); onChanged(); } else { stateMessagesBuilder_.addAllMessages(values); @@ -2793,11 +3188,15 @@ public Builder addAllStateMessages( return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStateMessages() { if (stateMessagesBuilder_ == null) { @@ -2810,11 +3209,15 @@ public Builder clearStateMessages() { return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeStateMessages(int index) { if (stateMessagesBuilder_ == null) { @@ -2827,39 +3230,52 @@ public Builder removeStateMessages(int index) { return this; } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2beta.StateMessage.Builder getStateMessagesBuilder( int index) { return getStateMessagesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder( int index) { if (stateMessagesBuilder_ == null) { - return stateMessages_.get(index); } else { + return stateMessages_.get(index); + } else { return stateMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStateMessagesOrBuilderList() { + public java.util.List + getStateMessagesOrBuilderList() { if (stateMessagesBuilder_ != null) { return stateMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -2867,45 +3283,63 @@ public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesO } } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBuilder() { - return getStateMessagesFieldBuilder().addBuilder( - com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBuilder( int index) { - return getStateMessagesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); } /** + * + * *
                                    * Output only. State Messages for this Cloud Function.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStateMessagesBuilderList() { + public java.util.List + getStateMessagesBuilderList() { return getStateMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.StateMessage, com.google.cloud.functions.v2beta.StateMessage.Builder, com.google.cloud.functions.v2beta.StateMessageOrBuilder> + com.google.cloud.functions.v2beta.StateMessage, + com.google.cloud.functions.v2beta.StateMessage.Builder, + com.google.cloud.functions.v2beta.StateMessageOrBuilder> getStateMessagesFieldBuilder() { if (stateMessagesBuilder_ == null) { - stateMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.StateMessage, com.google.cloud.functions.v2beta.StateMessage.Builder, com.google.cloud.functions.v2beta.StateMessageOrBuilder>( + stateMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.StateMessage, + com.google.cloud.functions.v2beta.StateMessage.Builder, + com.google.cloud.functions.v2beta.StateMessageOrBuilder>( stateMessages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2914,9 +3348,9 @@ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBu } return stateMessagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2926,12 +3360,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.Function) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.Function) private static final com.google.cloud.functions.v2beta.Function DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.Function(); } @@ -2940,16 +3374,16 @@ public static com.google.cloud.functions.v2beta.Function getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Function parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Function(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Function parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Function(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2964,6 +3398,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.Function getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java similarity index 100% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java similarity index 73% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java index c731530c..60b4d58b 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java @@ -1,94 +1,134 @@ +/* + * 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 FunctionOrBuilder extends +public interface FunctionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.Function) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
                                  * A user-defined name of the function. Function names must be unique
                                  * globally and match pattern `projects/*/locations/*/functions/*`
                                  * 
                              * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + 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(); /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
                                  * User-provided description of a function.
                                  * 
                              * * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                                  * 
                              * * .google.cloud.functions.v2beta.BuildConfig build_config = 3; + * * @return Whether the buildConfig field is set. */ boolean hasBuildConfig(); /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                                  * 
                              * * .google.cloud.functions.v2beta.BuildConfig build_config = 3; + * * @return The buildConfig. */ com.google.cloud.functions.v2beta.BuildConfig getBuildConfig(); /** + * + * *
                                  * Describes the Build step of the function that builds a container from the
                                  * given source.
                              @@ -99,26 +139,34 @@ public interface FunctionOrBuilder extends
                                 com.google.cloud.functions.v2beta.BuildConfigOrBuilder getBuildConfigOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                                  * 
                              * * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; + * * @return Whether the serviceConfig field is set. */ boolean hasServiceConfig(); /** + * + * *
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                                  * 
                              * * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; + * * @return The serviceConfig. */ com.google.cloud.functions.v2beta.ServiceConfig getServiceConfig(); /** + * + * *
                                  * Describes the Service being deployed. Currently deploys services to Cloud
                                  * Run (fully managed).
                              @@ -129,26 +177,34 @@ public interface FunctionOrBuilder extends
                                 com.google.cloud.functions.v2beta.ServiceConfigOrBuilder getServiceConfigOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; + * * @return Whether the eventTrigger field is set. */ boolean hasEventTrigger(); /** + * + * *
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                                  * 
                              * * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; + * * @return The eventTrigger. */ com.google.cloud.functions.v2beta.EventTrigger getEventTrigger(); /** + * + * *
                                  * An Eventarc trigger managed by Google Cloud Functions that fires events in
                                  * response to a condition in another service.
                              @@ -159,52 +215,75 @@ public interface FunctionOrBuilder extends
                                 com.google.cloud.functions.v2beta.EventTriggerOrBuilder getEventTriggerOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Output only. State of the function.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
                                  * Output only. State of the function.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.functions.v2beta.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.functions.v2beta.Function.State getState(); /** + * + * *
                                  * 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]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
                                  * 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]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
                                  * 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]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -213,30 +292,31 @@ public interface FunctionOrBuilder extends */ int getLabelsCount(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 8; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 8; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              @@ -245,62 +325,80 @@ boolean containsLabels( */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
                                  * Labels associated with this Cloud Function.
                                  * 
                              * * map<string, string> labels = 8; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getStateMessagesList(); + java.util.List getStateMessagesList(); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getStateMessagesCount(); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getStateMessagesOrBuilderList(); /** + * + * *
                                  * Output only. State Messages for this Cloud Function.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder( - int index); + com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder(int index); } diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java new file mode 100644 index 00000000..c6097d91 --- /dev/null +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java @@ -0,0 +1,756 @@ +/* + * 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 final class FunctionsProto { + private FunctionsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_Function_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_Source_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_Stage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/functions/v2beta/function" + + "s.proto\022\035google.cloud.functions.v2beta\032\034" + + "google/api/annotations.proto\032\027google/api" + + "/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\202\007\n!com.g" + + "oogle.cloud.functions.v2betaB\016FunctionsP" + + "rotoP\001ZFgoogle.golang.org/genproto/googl" + + "eapis/cloud/functions/v2beta;functions\242\002" + + "\003GCF\352Ao\n*artifactregistry.googleapis.com" + + "/Repository\022Aprojects/{project}/location" + + "s/{location}/repositories/{repository}\352A" + + "Y\n\037cloudbuild.googleapis.com/Build\0226proj" + + "ects/{project}/locations/{location}/buil" + + "ds/{build}\352Ai\n$cloudbuild.googleapis.com" + + "/WorkerPool\022Aprojects/{project}/location" + + "s/{location}/workerPools/{worker_pool}\352A" + + "X\n\032run.googleapis.com/Service\022:projects/" + + "{project}/locations/{location}/services/" + + "{service}\352Ad\n\"vpcaccess.googleapis.com/C" + + "onnector\022>projects/{project}/locations/{" + + "location}/connectors/{connector}\352A]\n\037eve" + + "ntarc.googleapis.com/Trigger\022:projects/{" + + "project}/locations/{location}/triggers/{" + + "trigger}\352A]\n\037eventarc.googleapis.com/Cha" + + "nnel\022:projects/{project}/locations/{loca" + + "tion}/channels/{channel}\352A@\n\033pubsub.goog" + + "leapis.com/Topic\022!projects/{project}/top" + + "ics/{topic}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_functions_v2beta_Function_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_functions_v2beta_Function_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_Function_descriptor, + new java.lang.String[] { + "Name", + "Environment", + "Description", + "BuildConfig", + "ServiceConfig", + "EventTrigger", + "State", + "UpdateTime", + "Labels", + "StateMessages", + }); + internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor = + internal_static_google_cloud_functions_v2beta_Function_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_functions_v2beta_StateMessage_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_StateMessage_descriptor, + new java.lang.String[] { + "Severity", "Type", "Message", + }); + internal_static_google_cloud_functions_v2beta_StorageSource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_StorageSource_descriptor, + new java.lang.String[] { + "Bucket", "Object", "Generation", + }); + internal_static_google_cloud_functions_v2beta_RepoSource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_RepoSource_descriptor, + new java.lang.String[] { + "BranchName", + "TagName", + "CommitSha", + "ProjectId", + "RepoName", + "Dir", + "InvertRegex", + "Revision", + }); + internal_static_google_cloud_functions_v2beta_Source_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_Source_descriptor, + new java.lang.String[] { + "StorageSource", "RepoSource", "Source", + }); + internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor, + new java.lang.String[] { + "ResolvedStorageSource", "ResolvedRepoSource", + }); + internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_functions_v2beta_BuildConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor, + new java.lang.String[] { + "Build", + "Runtime", + "EntryPoint", + "Source", + "SourceProvenance", + "WorkerPool", + "EnvironmentVariables", + "DockerRepository", + }); + internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor, + new java.lang.String[] { + "Service", + "TimeoutSeconds", + "AvailableMemory", + "EnvironmentVariables", + "MaxInstanceCount", + "MinInstanceCount", + "VpcConnector", + "VpcConnectorEgressSettings", + "IngressSettings", + "Uri", + "ServiceAccountEmail", + "AllTrafficOnLatestRevision", + "SecretEnvironmentVariables", + "SecretVolumes", + "Revision", + }); + internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor = + internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor, + new java.lang.String[] { + "Key", "ProjectId", "Secret", "Version", + }); + internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor, + new java.lang.String[] { + "MountPath", "ProjectId", "Secret", "Versions", + }); + internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor = + internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor, + new java.lang.String[] { + "Version", "Path", + }); + internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_functions_v2beta_EventTrigger_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor, + new java.lang.String[] { + "Trigger", + "TriggerRegion", + "EventType", + "EventFilters", + "PubsubTopic", + "ServiceAccountEmail", + "RetryPolicy", + "Channel", + }); + internal_static_google_cloud_functions_v2beta_EventFilter_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_functions_v2beta_EventFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_EventFilter_descriptor, + new java.lang.String[] { + "Attribute", "Value", "Operator", + }); + internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor, + new java.lang.String[] { + "Functions", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor, + new java.lang.String[] { + "Parent", "Function", "FunctionId", + }); + internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor, + new java.lang.String[] { + "Function", "UpdateMask", + }); + internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor, + new java.lang.String[] { + "UploadUrl", "StorageSource", + }); + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor, + new java.lang.String[] { + "DownloadUrl", + }); + internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", + }); + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor, + new java.lang.String[] { + "Runtimes", + }); + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor = + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Stage", "Warnings", "Environment", + }); + internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_functions_v2beta_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusDetail", + "CancelRequested", + "ApiVersion", + "RequestResource", + "Stages", + }); + internal_static_google_cloud_functions_v2beta_Stage_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_Stage_descriptor, + new java.lang.String[] { + "Name", "Message", "State", "Resource", "ResourceUri", "StateMessages", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java similarity index 64% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java index 86fe75d7..b2ecc701 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java @@ -1,40 +1,57 @@ +/* + * 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; /** + * + * *
                                * Request of `GenerateDownloadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateDownloadUrlRequest} */ -public final class GenerateDownloadUrlRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateDownloadUrlRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.GenerateDownloadUrlRequest) GenerateDownloadUrlRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlRequest.newBuilder() to construct. private GenerateDownloadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateDownloadUrlRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateDownloadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GenerateDownloadUrlRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GenerateDownloadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.class, + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
                                  * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest other = (com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) obj; + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest other = + (com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest 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.GenerateDownloadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request of `GenerateDownloadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateDownloadUrlRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.GenerateDownloadUrlRequest) com.google.cloud.functions.v2beta.GenerateDownloadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.class, com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.Builder.class); + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.class, + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest getDefaultInstanceForType() { + public com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest + getDefaultInstanceForType() { return com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest buildPartial() { - com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest result = new com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest(this); + com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest result = + new com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +412,39 @@ public com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest)other); + return mergeFrom((com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +452,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest other) { - if (other == com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +491,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +516,24 @@ public java.lang.String getName() { } } /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +541,77 @@ public java.lang.String getName() { } } /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +621,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.GenerateDownloadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.GenerateDownloadUrlRequest) - private static final com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest DEFAULT_INSTANCE; + private static final com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest(); } @@ -573,16 +636,16 @@ public static com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +660,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java new file mode 100644 index 00000000..cc4f6c5c --- /dev/null +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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 GenerateDownloadUrlRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GenerateDownloadUrlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * 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) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                              +   * 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) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java similarity index 67% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java index 793cc7c6..ca2ce3bf 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java @@ -1,40 +1,57 @@ +/* + * 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; /** + * + * *
                                * Response of `GenerateDownloadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateDownloadUrlResponse} */ -public final class GenerateDownloadUrlResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateDownloadUrlResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.GenerateDownloadUrlResponse) GenerateDownloadUrlResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateDownloadUrlResponse.newBuilder() to construct. private GenerateDownloadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateDownloadUrlResponse() { downloadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateDownloadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GenerateDownloadUrlResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - downloadUrl_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + downloadUrl_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private GenerateDownloadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.class, + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.Builder.class); } public static final int DOWNLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object downloadUrl_; /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The downloadUrl. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getDownloadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; } } /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The bytes for downloadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getDownloadUrlBytes() { + public com.google.protobuf.ByteString getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getDownloadUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(downloadUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, downloadUrl_); } @@ -178,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse other = (com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse) obj; + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse other = + (com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse) obj; - if (!getDownloadUrl() - .equals(other.getDownloadUrl())) return false; + if (!getDownloadUrl().equals(other.getDownloadUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +229,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse 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.GenerateDownloadUrlResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Response of `GenerateDownloadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateDownloadUrlResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.GenerateDownloadUrlResponse) com.google.cloud.functions.v2beta.GenerateDownloadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.class, com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.Builder.class); + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.class, + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.newBuilder() @@ -324,16 +357,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +375,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse getDefaultInstanceForType() { + public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse + getDefaultInstanceForType() { return com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.getDefaultInstance(); } @@ -364,7 +397,8 @@ public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse buildPartial() { - com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse result = new com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse(this); + com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse result = + new com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse(this); result.downloadUrl_ = downloadUrl_; onBuilt(); return result; @@ -374,38 +408,39 @@ public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse)other); + return mergeFrom((com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse) other); } else { super.mergeFrom(other); return this; @@ -413,7 +448,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse other) { - if (other == com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse.getDefaultInstance()) + return this; if (!other.getDownloadUrl().isEmpty()) { downloadUrl_ = other.downloadUrl_; onChanged(); @@ -437,7 +474,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +488,21 @@ public Builder mergeFrom( private java.lang.Object downloadUrl_ = ""; /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @return The downloadUrl. */ public java.lang.String getDownloadUrl() { java.lang.Object ref = downloadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); downloadUrl_ = s; return s; @@ -470,21 +511,22 @@ public java.lang.String getDownloadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @return The bytes for downloadUrl. */ - public com.google.protobuf.ByteString - getDownloadUrlBytes() { + public com.google.protobuf.ByteString getDownloadUrlBytes() { java.lang.Object ref = downloadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); downloadUrl_ = b; return b; } else { @@ -492,64 +534,71 @@ public java.lang.String getDownloadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @param value The downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrl( - java.lang.String value) { + public Builder setDownloadUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + downloadUrl_ = value; onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @return This builder for chaining. */ public Builder clearDownloadUrl() { - + downloadUrl_ = getDefaultInstance().getDownloadUrl(); onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for
                                    * function source code download.
                                    * 
                              * * string download_url = 1; + * * @param value The bytes for downloadUrl to set. * @return This builder for chaining. */ - public Builder setDownloadUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setDownloadUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + downloadUrl_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +608,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.GenerateDownloadUrlResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.GenerateDownloadUrlResponse) - private static final com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse DEFAULT_INSTANCE; + private static final com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse(); } @@ -573,16 +623,16 @@ public static com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateDownloadUrlResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateDownloadUrlResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateDownloadUrlResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateDownloadUrlResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +647,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java similarity index 52% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java index 7d2a0491..38f50641 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponseOrBuilder.java @@ -1,31 +1,52 @@ +/* + * 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 GenerateDownloadUrlResponseOrBuilder extends +public interface GenerateDownloadUrlResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GenerateDownloadUrlResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The downloadUrl. */ java.lang.String getDownloadUrl(); /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for
                                  * function source code download.
                                  * 
                              * * string download_url = 1; + * * @return The bytes for downloadUrl. */ - com.google.protobuf.ByteString - getDownloadUrlBytes(); + com.google.protobuf.ByteString getDownloadUrlBytes(); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java similarity index 65% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java index b9149cce..44dc62e3 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java @@ -1,40 +1,57 @@ +/* + * 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; /** + * + * *
                                * Request of `GenerateSourceUploadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateUploadUrlRequest} */ -public final class GenerateUploadUrlRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateUploadUrlRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.GenerateUploadUrlRequest) GenerateUploadUrlRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateUploadUrlRequest.newBuilder() to construct. private GenerateUploadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateUploadUrlRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateUploadUrlRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateUploadUrlRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GenerateUploadUrlRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GenerateUploadUrlRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.class, com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.class, + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.GenerateUploadUrlRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest other = (com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) obj; + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest other = + (com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GenerateUploadUrlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest 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.GenerateUploadUrlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.GenerateUploadUrlRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request of `GenerateSourceUploadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateUploadUrlRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.GenerateUploadUrlRequest) com.google.cloud.functions.v2beta.GenerateUploadUrlRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.class, com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.Builder.class); + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.class, + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.functions.v2beta.GenerateUploadUrlRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.GenerateUploadUrlRequest buildPartial() { - com.google.cloud.functions.v2beta.GenerateUploadUrlRequest result = new com.google.cloud.functions.v2beta.GenerateUploadUrlRequest(this); + com.google.cloud.functions.v2beta.GenerateUploadUrlRequest result = + new com.google.cloud.functions.v2beta.GenerateUploadUrlRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.functions.v2beta.GenerateUploadUrlRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GenerateUploadUrlRequest) { - return mergeFrom((com.google.cloud.functions.v2beta.GenerateUploadUrlRequest)other); + return mergeFrom((com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.GenerateUploadUrlRequest other) { - if (other == com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2beta.GenerateUploadUrlRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -470,21 +514,24 @@ 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/*`.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -492,64 +539,77 @@ 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/*`.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.GenerateUploadUrlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.GenerateUploadUrlRequest) private static final com.google.cloud.functions.v2beta.GenerateUploadUrlRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.GenerateUploadUrlRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.functions.v2beta.GenerateUploadUrlRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateUploadUrlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateUploadUrlRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateUploadUrlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateUploadUrlRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.GenerateUploadUrlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java new file mode 100644 index 00000000..f113fe3c --- /dev/null +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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 GenerateUploadUrlRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GenerateUploadUrlRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * 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) = { ... } + * + * + * @return The parent. + */ + 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/*`.
                              +   * 
                              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java similarity index 73% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java index ecb54827..fae8cd20 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java @@ -1,40 +1,57 @@ +/* + * 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; /** + * + * *
                                * Response of `GenerateSourceUploadUrl` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateUploadUrlResponse} */ -public final class GenerateUploadUrlResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateUploadUrlResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.GenerateUploadUrlResponse) GenerateUploadUrlResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateUploadUrlResponse.newBuilder() to construct. private GenerateUploadUrlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateUploadUrlResponse() { uploadUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateUploadUrlResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateUploadUrlResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private GenerateUploadUrlResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uploadUrl_ = s; - break; - } - case 18: { - com.google.cloud.functions.v2beta.StorageSource.Builder subBuilder = null; - if (storageSource_ != null) { - subBuilder = storageSource_.toBuilder(); + uploadUrl_ = s; + break; } - storageSource_ = input.readMessage(com.google.cloud.functions.v2beta.StorageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(storageSource_); - storageSource_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.functions.v2beta.StorageSource.Builder subBuilder = null; + if (storageSource_ != null) { + subBuilder = storageSource_.toBuilder(); + } + storageSource_ = + input.readMessage( + com.google.cloud.functions.v2beta.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(storageSource_); + storageSource_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,29 +107,33 @@ private GenerateUploadUrlResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.class, com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.class, + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.Builder.class); } public static final int UPLOAD_URL_FIELD_NUMBER = 1; private volatile java.lang.Object uploadUrl_; /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -116,6 +141,7 @@ private GenerateUploadUrlResponse(
                                  * 
                              * * string upload_url = 1; + * * @return The uploadUrl. */ @java.lang.Override @@ -124,14 +150,15 @@ public java.lang.String getUploadUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; } } /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -139,16 +166,15 @@ public java.lang.String getUploadUrl() {
                                  * 
                              * * string upload_url = 1; + * * @return The bytes for uploadUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getUploadUrlBytes() { + public com.google.protobuf.ByteString getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -159,6 +185,8 @@ public java.lang.String getUploadUrl() { public static final int STORAGE_SOURCE_FIELD_NUMBER = 2; private com.google.cloud.functions.v2beta.StorageSource storageSource_; /** + * + * *
                                  * The location of the source code in the upload bucket.
                                  * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -169,6 +197,7 @@ public java.lang.String getUploadUrl() {
                                  * 
                              * * .google.cloud.functions.v2beta.StorageSource storage_source = 2; + * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -176,6 +205,8 @@ public boolean hasStorageSource() { return storageSource_ != null; } /** + * + * *
                                  * The location of the source code in the upload bucket.
                                  * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -186,13 +217,18 @@ public boolean hasStorageSource() {
                                  * 
                              * * .google.cloud.functions.v2beta.StorageSource storage_source = 2; + * * @return The storageSource. */ @java.lang.Override public com.google.cloud.functions.v2beta.StorageSource getStorageSource() { - return storageSource_ == null ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() : storageSource_; + return storageSource_ == null + ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() + : storageSource_; } /** + * + * *
                                  * The location of the source code in the upload bucket.
                                  * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -210,6 +246,7 @@ public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSource
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -221,8 +258,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadUrl_)) {
                                     com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadUrl_);
                                   }
                              @@ -242,8 +278,7 @@ public int getSerializedSize() {
                                     size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadUrl_);
                                   }
                                   if (storageSource_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(2, getStorageSource());
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStorageSource());
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -253,19 +288,18 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2beta.GenerateUploadUrlResponse)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v2beta.GenerateUploadUrlResponse other = (com.google.cloud.functions.v2beta.GenerateUploadUrlResponse) obj;
                              +    com.google.cloud.functions.v2beta.GenerateUploadUrlResponse other =
                              +        (com.google.cloud.functions.v2beta.GenerateUploadUrlResponse) obj;
                               
                              -    if (!getUploadUrl()
                              -        .equals(other.getUploadUrl())) return false;
                              +    if (!getUploadUrl().equals(other.getUploadUrl())) return false;
                                   if (hasStorageSource() != other.hasStorageSource()) return false;
                                   if (hasStorageSource()) {
                              -      if (!getStorageSource()
                              -          .equals(other.getStorageSource())) return false;
                              +      if (!getStorageSource().equals(other.getStorageSource())) return false;
                                   }
                                   if (!unknownFields.equals(other.unknownFields)) return false;
                                   return true;
                              @@ -290,117 +324,127 @@ public int hashCode() {
                                 }
                               
                                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
                              -      java.nio.ByteBuffer data)
                              -      throws com.google.protobuf.InvalidProtocolBufferException {
                              +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.GenerateUploadUrlResponse parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse 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.GenerateUploadUrlResponse parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              -  public static Builder newBuilder(com.google.cloud.functions.v2beta.GenerateUploadUrlResponse prototype) {
                              +
                              +  public static Builder newBuilder(
                              +      com.google.cloud.functions.v2beta.GenerateUploadUrlResponse prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Response of `GenerateSourceUploadUrl` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.GenerateUploadUrlResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.GenerateUploadUrlResponse) com.google.cloud.functions.v2beta.GenerateUploadUrlResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.class, com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.Builder.class); + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.class, + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.Builder.class); } // Construct using com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.newBuilder() @@ -408,16 +452,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -433,9 +476,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; } @java.lang.Override @@ -454,7 +497,8 @@ public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse build() { @java.lang.Override public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse buildPartial() { - com.google.cloud.functions.v2beta.GenerateUploadUrlResponse result = new com.google.cloud.functions.v2beta.GenerateUploadUrlResponse(this); + com.google.cloud.functions.v2beta.GenerateUploadUrlResponse result = + new com.google.cloud.functions.v2beta.GenerateUploadUrlResponse(this); result.uploadUrl_ = uploadUrl_; if (storageSourceBuilder_ == null) { result.storageSource_ = storageSource_; @@ -469,38 +513,39 @@ public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.GenerateUploadUrlResponse)other); + return mergeFrom((com.google.cloud.functions.v2beta.GenerateUploadUrlResponse) other); } else { super.mergeFrom(other); return this; @@ -508,7 +553,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.GenerateUploadUrlResponse other) { - if (other == com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2beta.GenerateUploadUrlResponse.getDefaultInstance()) + return this; if (!other.getUploadUrl().isEmpty()) { uploadUrl_ = other.uploadUrl_; onChanged(); @@ -535,7 +581,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.GenerateUploadUrlResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.GenerateUploadUrlResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -547,6 +594,8 @@ public Builder mergeFrom( private java.lang.Object uploadUrl_ = ""; /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -554,13 +603,13 @@ public Builder mergeFrom(
                                    * 
                              * * string upload_url = 1; + * * @return The uploadUrl. */ public java.lang.String getUploadUrl() { java.lang.Object ref = uploadUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadUrl_ = s; return s; @@ -569,6 +618,8 @@ public java.lang.String getUploadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -576,15 +627,14 @@ public java.lang.String getUploadUrl() {
                                    * 
                              * * string upload_url = 1; + * * @return The bytes for uploadUrl. */ - public com.google.protobuf.ByteString - getUploadUrlBytes() { + public com.google.protobuf.ByteString getUploadUrlBytes() { java.lang.Object ref = uploadUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uploadUrl_ = b; return b; } else { @@ -592,6 +642,8 @@ public java.lang.String getUploadUrl() { } } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -599,20 +651,22 @@ public java.lang.String getUploadUrl() {
                                    * 
                              * * string upload_url = 1; + * * @param value The uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrl( - java.lang.String value) { + public Builder setUploadUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uploadUrl_ = value; onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -620,15 +674,18 @@ public Builder setUploadUrl(
                                    * 
                              * * string upload_url = 1; + * * @return This builder for chaining. */ public Builder clearUploadUrl() { - + uploadUrl_ = getDefaultInstance().getUploadUrl(); onChanged(); return this; } /** + * + * *
                                    * The generated Google Cloud Storage signed URL that should be used for a
                                    * function source code upload. The uploaded file should be a zip archive
                              @@ -636,16 +693,16 @@ public Builder clearUploadUrl() {
                                    * 
                              * * string upload_url = 1; + * * @param value The bytes for uploadUrl to set. * @return This builder for chaining. */ - public Builder setUploadUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uploadUrl_ = value; onChanged(); return this; @@ -653,8 +710,13 @@ public Builder setUploadUrlBytes( private com.google.cloud.functions.v2beta.StorageSource storageSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder> storageSourceBuilder_; + com.google.cloud.functions.v2beta.StorageSource, + com.google.cloud.functions.v2beta.StorageSource.Builder, + com.google.cloud.functions.v2beta.StorageSourceOrBuilder> + storageSourceBuilder_; /** + * + * *
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -665,12 +727,15 @@ public Builder setUploadUrlBytes(
                                    * 
                              * * .google.cloud.functions.v2beta.StorageSource storage_source = 2; + * * @return Whether the storageSource field is set. */ public boolean hasStorageSource() { return storageSourceBuilder_ != null || storageSource_ != null; } /** + * + * *
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -681,16 +746,21 @@ public boolean hasStorageSource() {
                                    * 
                              * * .google.cloud.functions.v2beta.StorageSource storage_source = 2; + * * @return The storageSource. */ public com.google.cloud.functions.v2beta.StorageSource getStorageSource() { if (storageSourceBuilder_ == null) { - return storageSource_ == null ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() : storageSource_; + return storageSource_ == null + ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() + : storageSource_; } else { return storageSourceBuilder_.getMessage(); } } /** + * + * *
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -716,6 +786,8 @@ public Builder setStorageSource(com.google.cloud.functions.v2beta.StorageSource
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -739,6 +811,8 @@ public Builder setStorageSource(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -754,7 +828,9 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2beta.StorageSourc
                                     if (storageSourceBuilder_ == null) {
                                       if (storageSource_ != null) {
                                         storageSource_ =
                              -            com.google.cloud.functions.v2beta.StorageSource.newBuilder(storageSource_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2beta.StorageSource.newBuilder(storageSource_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         storageSource_ = value;
                                       }
                              @@ -766,6 +842,8 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2beta.StorageSourc
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -789,6 +867,8 @@ public Builder clearStorageSource() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -801,11 +881,13 @@ public Builder clearStorageSource() {
                                    * .google.cloud.functions.v2beta.StorageSource storage_source = 2;
                                    */
                                   public com.google.cloud.functions.v2beta.StorageSource.Builder getStorageSourceBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getStorageSourceFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -821,11 +903,14 @@ public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSource
                                     if (storageSourceBuilder_ != null) {
                                       return storageSourceBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return storageSource_ == null ?
                              -            com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() : storageSource_;
                              +        return storageSource_ == null
                              +            ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance()
                              +            : storageSource_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The location of the source code in the upload bucket.
                                    * Once the archive is uploaded using the `upload_url` use this field to
                              @@ -838,21 +923,24 @@ public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSource
                                    * .google.cloud.functions.v2beta.StorageSource storage_source = 2;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder> 
                              +            com.google.cloud.functions.v2beta.StorageSource,
                              +            com.google.cloud.functions.v2beta.StorageSource.Builder,
                              +            com.google.cloud.functions.v2beta.StorageSourceOrBuilder>
                                       getStorageSourceFieldBuilder() {
                                     if (storageSourceBuilder_ == null) {
                              -        storageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder>(
                              -                getStorageSource(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        storageSourceBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2beta.StorageSource,
                              +                com.google.cloud.functions.v2beta.StorageSource.Builder,
                              +                com.google.cloud.functions.v2beta.StorageSourceOrBuilder>(
                              +                getStorageSource(), getParentForChildren(), isClean());
                                       storageSource_ = null;
                                     }
                                     return storageSourceBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -862,12 +950,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.GenerateUploadUrlResponse)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.GenerateUploadUrlResponse)
                                 private static final com.google.cloud.functions.v2beta.GenerateUploadUrlResponse DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.GenerateUploadUrlResponse();
                                 }
                              @@ -876,16 +964,16 @@ public static com.google.cloud.functions.v2beta.GenerateUploadUrlResponse getDef
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public GenerateUploadUrlResponse parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new GenerateUploadUrlResponse(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public GenerateUploadUrlResponse parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new GenerateUploadUrlResponse(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -900,6 +988,4 @@ public com.google.protobuf.Parser getParserForType()
                                 public com.google.cloud.functions.v2beta.GenerateUploadUrlResponse getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java
                              similarity index 77%
                              rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java
                              rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java
                              index 9cabf40b..aa64d6b2 100644
                              --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java
                              @@ -1,13 +1,31 @@
                              +/*
                              + * 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 GenerateUploadUrlResponseOrBuilder extends
                              +public interface GenerateUploadUrlResponseOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GenerateUploadUrlResponse)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -15,10 +33,13 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * string upload_url = 1; + * * @return The uploadUrl. */ java.lang.String getUploadUrl(); /** + * + * *
                                  * The generated Google Cloud Storage signed URL that should be used for a
                                  * function source code upload. The uploaded file should be a zip archive
                              @@ -26,12 +47,14 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * string upload_url = 1; + * * @return The bytes for uploadUrl. */ - com.google.protobuf.ByteString - getUploadUrlBytes(); + 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
                              @@ -42,10 +65,13 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * .google.cloud.functions.v2beta.StorageSource storage_source = 2; + * * @return Whether the storageSource field is set. */ 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
                              @@ -56,10 +82,13 @@ public interface GenerateUploadUrlResponseOrBuilder extends
                                  * 
                              * * .google.cloud.functions.v2beta.StorageSource storage_source = 2; + * * @return The storageSource. */ 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
                              diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java
                              similarity index 65%
                              rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java
                              rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java
                              index a187af2f..0c37e6ca 100644
                              --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java
                              +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java
                              @@ -1,40 +1,57 @@
                              +/*
                              + * 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;
                               
                               /**
                              + *
                              + *
                                * 
                                * Request for the `GetFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.GetFunctionRequest} */ -public final class GetFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.GetFunctionRequest) GetFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetFunctionRequest.newBuilder() to construct. private GetFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetFunctionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetFunctionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GetFunctionRequest.class, com.google.cloud.functions.v2beta.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.GetFunctionRequest.class, + com.google.cloud.functions.v2beta.GetFunctionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
                                  * Required. The name of the function which details should be obtained.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -109,29 +134,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                  * Required. The name of the function which details should be obtained.
                                  * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.GetFunctionRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.GetFunctionRequest other = (com.google.cloud.functions.v2beta.GetFunctionRequest) obj; + com.google.cloud.functions.v2beta.GetFunctionRequest other = + (com.google.cloud.functions.v2beta.GetFunctionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,126 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.GetFunctionRequest 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.GetFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.GetFunctionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.GetFunctionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.GetFunctionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.GetFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2beta.GetFunctionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `GetFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.GetFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.GetFunctionRequest) com.google.cloud.functions.v2beta.GetFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.GetFunctionRequest.class, com.google.cloud.functions.v2beta.GetFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.GetFunctionRequest.class, + com.google.cloud.functions.v2beta.GetFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.GetFunctionRequest.newBuilder() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; } @java.lang.Override @@ -362,7 +397,8 @@ public com.google.cloud.functions.v2beta.GetFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.GetFunctionRequest buildPartial() { - com.google.cloud.functions.v2beta.GetFunctionRequest result = new com.google.cloud.functions.v2beta.GetFunctionRequest(this); + com.google.cloud.functions.v2beta.GetFunctionRequest result = + new com.google.cloud.functions.v2beta.GetFunctionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.cloud.functions.v2beta.GetFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.GetFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v2beta.GetFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.GetFunctionRequest other) { - if (other == com.google.cloud.functions.v2beta.GetFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2beta.GetFunctionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +473,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.GetFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.GetFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +486,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -467,20 +510,23 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -488,61 +534,74 @@ public java.lang.String getName() { } } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                    * Required. The name of the function which details should be obtained.
                                    * 
                              * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +611,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.GetFunctionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.GetFunctionRequest) private static final com.google.cloud.functions.v2beta.GetFunctionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.GetFunctionRequest(); } @@ -566,16 +625,16 @@ public static com.google.cloud.functions.v2beta.GetFunctionRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFunctionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFunctionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFunctionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFunctionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.GetFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java new file mode 100644 index 00000000..62e422a4 --- /dev/null +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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 GetFunctionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.GetFunctionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * Required. The name of the function which details should be obtained.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                              +   * Required. The name of the function which details should be obtained.
                              +   * 
                              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java similarity index 72% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java index 3d6fd00a..f499d9e1 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Request for the `ListFunctions` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.ListFunctionsRequest} */ -public final class ListFunctionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFunctionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.ListFunctionsRequest) ListFunctionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFunctionsRequest.newBuilder() to construct. private ListFunctionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFunctionsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListFunctionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFunctionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListFunctionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,29 +120,33 @@ private ListFunctionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListFunctionsRequest.class, com.google.cloud.functions.v2beta.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v2beta.ListFunctionsRequest.class, + com.google.cloud.functions.v2beta.ListFunctionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * Required. The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -131,7 +156,10 @@ private ListFunctionsRequest(
                                  * reachable locations along with the names of any unreachable locations.
                                  * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -140,14 +168,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * Required. The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -157,17 +186,18 @@ public java.lang.String getParent() {
                                  * reachable locations along with the names of any unreachable locations.
                                  * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -178,11 +208,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
                                  * Maximum number of functions to return per call.
                                  * 
                              * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -193,6 +226,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -201,6 +236,7 @@ public int getPageSize() {
                                  * 
                              * * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -209,14 +245,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -225,16 +262,15 @@ public java.lang.String getPageToken() {
                                  * 
                              * * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -245,12 +281,15 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
                                  * The filter for Functions that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -259,30 +298,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
                                  * The filter for Functions that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -293,6 +332,8 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
                                  * The sorting order of the resources returned. Value should be a comma
                                  * separated list of fields. The default sorting oder is ascending.
                              @@ -300,6 +341,7 @@ public java.lang.String getFilter() {
                                  * 
                              * * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -308,14 +350,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
                                  * The sorting order of the resources returned. Value should be a comma
                                  * separated list of fields. The default sorting oder is ascending.
                              @@ -323,16 +366,15 @@ public java.lang.String getOrderBy() {
                                  * 
                              * * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -341,6 +383,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -352,8 +395,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -382,8 +424,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -402,23 +443,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.ListFunctionsRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.ListFunctionsRequest other = (com.google.cloud.functions.v2beta.ListFunctionsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.functions.v2beta.ListFunctionsRequest other = + (com.google.cloud.functions.v2beta.ListFunctionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -446,117 +483,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListFunctionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListFunctionsRequest 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.ListFunctionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListFunctionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.ListFunctionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2beta.ListFunctionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `ListFunctions` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.ListFunctionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.ListFunctionsRequest) com.google.cloud.functions.v2beta.ListFunctionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListFunctionsRequest.class, com.google.cloud.functions.v2beta.ListFunctionsRequest.Builder.class); + com.google.cloud.functions.v2beta.ListFunctionsRequest.class, + com.google.cloud.functions.v2beta.ListFunctionsRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.ListFunctionsRequest.newBuilder() @@ -564,16 +611,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -591,9 +637,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; } @java.lang.Override @@ -612,7 +658,8 @@ public com.google.cloud.functions.v2beta.ListFunctionsRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.ListFunctionsRequest buildPartial() { - com.google.cloud.functions.v2beta.ListFunctionsRequest result = new com.google.cloud.functions.v2beta.ListFunctionsRequest(this); + com.google.cloud.functions.v2beta.ListFunctionsRequest result = + new com.google.cloud.functions.v2beta.ListFunctionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -626,38 +673,39 @@ public com.google.cloud.functions.v2beta.ListFunctionsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.ListFunctionsRequest)other); + return mergeFrom((com.google.cloud.functions.v2beta.ListFunctionsRequest) other); } else { super.mergeFrom(other); return this; @@ -665,7 +713,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.ListFunctionsRequest other) { - if (other == com.google.cloud.functions.v2beta.ListFunctionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2beta.ListFunctionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -704,7 +753,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.ListFunctionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.ListFunctionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -716,6 +766,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -725,14 +777,16 @@ public Builder mergeFrom(
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -741,6 +795,8 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -750,16 +806,17 @@ public java.lang.String getParent() {
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -767,6 +824,8 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -776,21 +835,25 @@ public java.lang.String getParent() {
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -800,16 +863,21 @@ public Builder setParent(
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * Required. The project and location from which the function should be listed,
                                    * specified in the format `projects/*/locations/*`
                              @@ -819,29 +887,34 @@ public Builder clearParent() {
                                    * reachable locations along with the names of any unreachable locations.
                                    * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
                                    * Maximum number of functions to return per call.
                                    * 
                              * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -849,30 +922,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
                                    * Maximum number of functions to return per call.
                                    * 
                              * * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
                                    * Maximum number of functions to return per call.
                                    * 
                              * * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -880,6 +959,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -888,13 +969,13 @@ public Builder clearPageSize() {
                                    * 
                              * * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -903,6 +984,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -911,15 +994,14 @@ public java.lang.String getPageToken() {
                                    * 
                              * * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -927,6 +1009,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -935,20 +1019,22 @@ public java.lang.String getPageToken() {
                                    * 
                              * * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -957,15 +1043,18 @@ public Builder setPageToken(
                                    * 
                              * * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
                                    * The value returned by the last
                                    * `ListFunctionsResponse`; indicates that
                              @@ -974,16 +1063,16 @@ public Builder clearPageToken() {
                                    * 
                              * * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -991,19 +1080,21 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1012,21 +1103,22 @@ public java.lang.String getFilter() { } } /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1034,57 +1126,64 @@ public java.lang.String getFilter() { } } /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
                                    * The filter for Functions that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1092,6 +1191,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1099,13 +1200,13 @@ public Builder setFilterBytes(
                                    * 
                              * * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1114,6 +1215,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1121,15 +1224,14 @@ public java.lang.String getOrderBy() {
                                    * 
                              * * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1137,6 +1239,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1144,20 +1248,22 @@ public java.lang.String getOrderBy() {
                                    * 
                              * * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1165,15 +1271,18 @@ public Builder setOrderBy(
                                    * 
                              * * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
                                    * The sorting order of the resources returned. Value should be a comma
                                    * separated list of fields. The default sorting oder is ascending.
                              @@ -1181,23 +1290,23 @@ public Builder clearOrderBy() {
                                    * 
                              * * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1207,12 +1316,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.ListFunctionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.ListFunctionsRequest) private static final com.google.cloud.functions.v2beta.ListFunctionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.ListFunctionsRequest(); } @@ -1221,16 +1330,16 @@ public static com.google.cloud.functions.v2beta.ListFunctionsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1245,6 +1354,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.ListFunctionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java index e75229c5..688096c2 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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 ListFunctionsRequestOrBuilder extends +public interface ListFunctionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.ListFunctionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Required. The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -17,11 +35,16 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * reachable locations along with the names of any unreachable locations.
                                  * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
                                  * Required. The project and location from which the function should be listed,
                                  * specified in the format `projects/*/locations/*`
                              @@ -31,23 +54,30 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * reachable locations along with the names of any unreachable locations.
                                  * 
                              * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
                                  * Maximum number of functions to return per call.
                                  * 
                              * * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -56,10 +86,13 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
                                  * The value returned by the last
                                  * `ListFunctionsResponse`; indicates that
                              @@ -68,34 +101,41 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
                                  * The filter for Functions that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
                                  * The filter for Functions that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
                                  * The sorting order of the resources returned. Value should be a comma
                                  * separated list of fields. The default sorting oder is ascending.
                              @@ -103,10 +143,13 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
                                  * The sorting order of the resources returned. Value should be a comma
                                  * separated list of fields. The default sorting oder is ascending.
                              @@ -114,8 +157,8 @@ public interface ListFunctionsRequestOrBuilder extends
                                  * 
                              * * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java similarity index 74% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java index 80307c17..77841b33 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Response for the `ListFunctions` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.ListFunctionsResponse} */ -public final class ListFunctionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFunctionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.ListFunctionsResponse) ListFunctionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFunctionsResponse.newBuilder() to construct. private ListFunctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFunctionsResponse() { functions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListFunctionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFunctionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListFunctionsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - functions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + functions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + functions_.add( + input.readMessage( + com.google.cloud.functions.v2beta.Function.parser(), extensionRegistry)); + break; } - functions_.add( - input.readMessage(com.google.cloud.functions.v2beta.Function.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListFunctionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { functions_ = java.util.Collections.unmodifiableList(functions_); @@ -107,22 +127,27 @@ private ListFunctionsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListFunctionsResponse.class, com.google.cloud.functions.v2beta.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v2beta.ListFunctionsResponse.class, + com.google.cloud.functions.v2beta.ListFunctionsResponse.Builder.class); } public static final int FUNCTIONS_FIELD_NUMBER = 1; private java.util.List functions_; /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -134,6 +159,8 @@ public java.util.List getFunctionsLi return functions_; } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -141,11 +168,13 @@ public java.util.List getFunctionsLi * repeated .google.cloud.functions.v2beta.Function functions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFunctionsOrBuilderList() { return functions_; } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -157,6 +186,8 @@ public int getFunctionsCount() { return functions_.size(); } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -168,6 +199,8 @@ public com.google.cloud.functions.v2beta.Function getFunctions(int index) { return functions_.get(index); } /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -175,20 +208,22 @@ public com.google.cloud.functions.v2beta.Function getFunctions(int index) { * repeated .google.cloud.functions.v2beta.Function functions = 1; */ @java.lang.Override - public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder( - int index) { + public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder(int index) { return functions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
                                  * A token, which can be sent as `page_token` to retrieve the next page.
                                  * If this field is omitted, there are no subsequent pages.
                                  * 
                              * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -197,30 +232,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
                                  * A token, which can be sent as `page_token` to retrieve the next page.
                                  * If this field is omitted, there are no subsequent pages.
                                  * 
                              * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -231,37 +266,45 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -269,21 +312,24 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -295,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < functions_.size(); i++) { output.writeMessage(1, functions_.get(i)); } @@ -316,8 +361,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < functions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, functions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, functions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -338,19 +382,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.ListFunctionsResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.ListFunctionsResponse other = (com.google.cloud.functions.v2beta.ListFunctionsResponse) obj; + com.google.cloud.functions.v2beta.ListFunctionsResponse other = + (com.google.cloud.functions.v2beta.ListFunctionsResponse) obj; - if (!getFunctionsList() - .equals(other.getFunctionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getFunctionsList().equals(other.getFunctionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -378,117 +420,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListFunctionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListFunctionsResponse 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.ListFunctionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListFunctionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.ListFunctionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2beta.ListFunctionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Response for the `ListFunctions` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.ListFunctionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.ListFunctionsResponse) com.google.cloud.functions.v2beta.ListFunctionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListFunctionsResponse.class, com.google.cloud.functions.v2beta.ListFunctionsResponse.Builder.class); + com.google.cloud.functions.v2beta.ListFunctionsResponse.class, + com.google.cloud.functions.v2beta.ListFunctionsResponse.Builder.class); } // Construct using com.google.cloud.functions.v2beta.ListFunctionsResponse.newBuilder() @@ -496,17 +548,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFunctionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -524,9 +576,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; } @java.lang.Override @@ -545,7 +597,8 @@ public com.google.cloud.functions.v2beta.ListFunctionsResponse build() { @java.lang.Override public com.google.cloud.functions.v2beta.ListFunctionsResponse buildPartial() { - com.google.cloud.functions.v2beta.ListFunctionsResponse result = new com.google.cloud.functions.v2beta.ListFunctionsResponse(this); + com.google.cloud.functions.v2beta.ListFunctionsResponse result = + new com.google.cloud.functions.v2beta.ListFunctionsResponse(this); int from_bitField0_ = bitField0_; if (functionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -570,38 +623,39 @@ public com.google.cloud.functions.v2beta.ListFunctionsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListFunctionsResponse) { - return mergeFrom((com.google.cloud.functions.v2beta.ListFunctionsResponse)other); + return mergeFrom((com.google.cloud.functions.v2beta.ListFunctionsResponse) other); } else { super.mergeFrom(other); return this; @@ -609,7 +663,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.ListFunctionsResponse other) { - if (other == com.google.cloud.functions.v2beta.ListFunctionsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2beta.ListFunctionsResponse.getDefaultInstance()) + return this; if (functionsBuilder_ == null) { if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { @@ -628,9 +683,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ListFunctionsResponse functionsBuilder_ = null; functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000001); - functionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFunctionsFieldBuilder() : null; + functionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFunctionsFieldBuilder() + : null; } else { functionsBuilder_.addAllMessages(other.functions_); } @@ -669,7 +725,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.ListFunctionsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.ListFunctionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -678,21 +735,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List functions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFunctionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - functions_ = new java.util.ArrayList(functions_); + functions_ = + new java.util.ArrayList(functions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder> functionsBuilder_; + com.google.cloud.functions.v2beta.Function, + com.google.cloud.functions.v2beta.Function.Builder, + com.google.cloud.functions.v2beta.FunctionOrBuilder> + functionsBuilder_; /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -707,6 +772,8 @@ public java.util.List getFunctionsLi } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -721,6 +788,8 @@ public int getFunctionsCount() { } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -735,14 +804,15 @@ public com.google.cloud.functions.v2beta.Function getFunctions(int index) { } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public Builder setFunctions( - int index, com.google.cloud.functions.v2beta.Function value) { + public Builder setFunctions(int index, com.google.cloud.functions.v2beta.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -756,6 +826,8 @@ public Builder setFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -774,6 +846,8 @@ public Builder setFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -794,14 +868,15 @@ public Builder addFunctions(com.google.cloud.functions.v2beta.Function value) { return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public Builder addFunctions( - int index, com.google.cloud.functions.v2beta.Function value) { + public Builder addFunctions(int index, com.google.cloud.functions.v2beta.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -815,6 +890,8 @@ public Builder addFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -833,6 +910,8 @@ public Builder addFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -851,6 +930,8 @@ public Builder addFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -861,8 +942,7 @@ public Builder addAllFunctions( java.lang.Iterable values) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, functions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, functions_); onChanged(); } else { functionsBuilder_.addAllMessages(values); @@ -870,6 +950,8 @@ public Builder addAllFunctions( return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -887,6 +969,8 @@ public Builder clearFunctions() { return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -904,39 +988,44 @@ public Builder removeFunctions(int index) { return this; } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public com.google.cloud.functions.v2beta.Function.Builder getFunctionsBuilder( - int index) { + public com.google.cloud.functions.v2beta.Function.Builder getFunctionsBuilder(int index) { return getFunctionsFieldBuilder().getBuilder(index); } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder( - int index) { + public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder(int index) { if (functionsBuilder_ == null) { - return functions_.get(index); } else { + return functions_.get(index); + } else { return functionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public java.util.List - getFunctionsOrBuilderList() { + public java.util.List + getFunctionsOrBuilderList() { if (functionsBuilder_ != null) { return functionsBuilder_.getMessageOrBuilderList(); } else { @@ -944,6 +1033,8 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder } } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              @@ -951,42 +1042,48 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder * repeated .google.cloud.functions.v2beta.Function functions = 1; */ public com.google.cloud.functions.v2beta.Function.Builder addFunctionsBuilder() { - return getFunctionsFieldBuilder().addBuilder( - com.google.cloud.functions.v2beta.Function.getDefaultInstance()); + return getFunctionsFieldBuilder() + .addBuilder(com.google.cloud.functions.v2beta.Function.getDefaultInstance()); } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public com.google.cloud.functions.v2beta.Function.Builder addFunctionsBuilder( - int index) { - return getFunctionsFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2beta.Function.getDefaultInstance()); + public com.google.cloud.functions.v2beta.Function.Builder addFunctionsBuilder(int index) { + return getFunctionsFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2beta.Function.getDefaultInstance()); } /** + * + * *
                                    * The functions that match the request.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - public java.util.List - getFunctionsBuilderList() { + public java.util.List + getFunctionsBuilderList() { return getFunctionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder> + com.google.cloud.functions.v2beta.Function, + com.google.cloud.functions.v2beta.Function.Builder, + com.google.cloud.functions.v2beta.FunctionOrBuilder> getFunctionsFieldBuilder() { if (functionsBuilder_ == null) { - functionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder>( - functions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + functionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.Function, + com.google.cloud.functions.v2beta.Function.Builder, + com.google.cloud.functions.v2beta.FunctionOrBuilder>( + functions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); functions_ = null; } return functionsBuilder_; @@ -994,19 +1091,21 @@ public com.google.cloud.functions.v2beta.Function.Builder addFunctionsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,21 +1114,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1037,101 +1137,118 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
                                    * A token, which can be sent as `page_token` to retrieve the next page.
                                    * If this field is omitted, there are no subsequent pages.
                                    * 
                              * * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1139,85 +1256,95 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1227,29 +1354,31 @@ public Builder clearUnreachable() { return this; } /** + * + * *
                                    * Locations that could not be reached. The response does not include any
                                    * functions from these locations.
                                    * 
                              * * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1259,12 +1388,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.ListFunctionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.ListFunctionsResponse) private static final com.google.cloud.functions.v2beta.ListFunctionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.ListFunctionsResponse(); } @@ -1273,16 +1402,16 @@ public static com.google.cloud.functions.v2beta.ListFunctionsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFunctionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFunctionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFunctionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFunctionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1297,6 +1426,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.ListFunctionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java index fa75fafb..5f7cc8fb 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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 ListFunctionsResponseOrBuilder extends +public interface ListFunctionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.ListFunctionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The functions that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - java.util.List - getFunctionsList(); + java.util.List getFunctionsList(); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -25,6 +44,8 @@ public interface ListFunctionsResponseOrBuilder extends */ com.google.cloud.functions.v2beta.Function getFunctions(int index); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              @@ -33,88 +54,106 @@ public interface ListFunctionsResponseOrBuilder extends */ int getFunctionsCount(); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - java.util.List + java.util.List getFunctionsOrBuilderList(); /** + * + * *
                                  * The functions that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.Function functions = 1; */ - com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder( - int index); + com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionsOrBuilder(int index); /** + * + * *
                                  * A token, which can be sent as `page_token` to retrieve the next page.
                                  * If this field is omitted, there are no subsequent pages.
                                  * 
                              * * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
                                  * A token, which can be sent as `page_token` to retrieve the next page.
                                  * If this field is omitted, there are no subsequent pages.
                                  * 
                              * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
                                  * Locations that could not be reached. The response does not include any
                                  * functions from these locations.
                                  * 
                              * * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java similarity index 67% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java index b2f5c082..1b6c934f 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Request for the `ListRuntimes` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.ListRuntimesRequest} */ -public final class ListRuntimesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuntimesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.ListRuntimesRequest) ListRuntimesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuntimesRequest.newBuilder() to construct. private ListRuntimesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuntimesRequest() { parent_ = ""; filter_ = ""; @@ -26,16 +44,15 @@ private ListRuntimesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListRuntimesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private ListRuntimesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,35 +99,42 @@ private ListRuntimesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListRuntimesRequest.class, com.google.cloud.functions.v2beta.ListRuntimesRequest.Builder.class); + com.google.cloud.functions.v2beta.ListRuntimesRequest.class, + com.google.cloud.functions.v2beta.ListRuntimesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -117,30 +143,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -151,12 +179,15 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
                                  * The filter for Runtimes that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -165,30 +196,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
                                  * The filter for Runtimes that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -197,6 +228,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +240,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -239,17 +270,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.ListRuntimesRequest)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.ListRuntimesRequest other = (com.google.cloud.functions.v2beta.ListRuntimesRequest) obj; + com.google.cloud.functions.v2beta.ListRuntimesRequest other = + (com.google.cloud.functions.v2beta.ListRuntimesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,117 +301,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListRuntimesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListRuntimesRequest 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.ListRuntimesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListRuntimesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.ListRuntimesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2beta.ListRuntimesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Request for the `ListRuntimes` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.ListRuntimesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.ListRuntimesRequest) com.google.cloud.functions.v2beta.ListRuntimesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListRuntimesRequest.class, com.google.cloud.functions.v2beta.ListRuntimesRequest.Builder.class); + com.google.cloud.functions.v2beta.ListRuntimesRequest.class, + com.google.cloud.functions.v2beta.ListRuntimesRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.ListRuntimesRequest.newBuilder() @@ -389,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; } @java.lang.Override @@ -431,7 +470,8 @@ public com.google.cloud.functions.v2beta.ListRuntimesRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.ListRuntimesRequest buildPartial() { - com.google.cloud.functions.v2beta.ListRuntimesRequest result = new com.google.cloud.functions.v2beta.ListRuntimesRequest(this); + com.google.cloud.functions.v2beta.ListRuntimesRequest result = + new com.google.cloud.functions.v2beta.ListRuntimesRequest(this); result.parent_ = parent_; result.filter_ = filter_; onBuilt(); @@ -442,38 +482,39 @@ public com.google.cloud.functions.v2beta.ListRuntimesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.ListRuntimesRequest)other); + return mergeFrom((com.google.cloud.functions.v2beta.ListRuntimesRequest) other); } else { super.mergeFrom(other); return this; @@ -481,7 +522,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.ListRuntimesRequest other) { - if (other == com.google.cloud.functions.v2beta.ListRuntimesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2beta.ListRuntimesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -509,7 +551,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.ListRuntimesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.ListRuntimesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,19 +564,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -542,21 +589,24 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -564,57 +614,70 @@ public java.lang.String getParent() { } } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -622,19 +685,21 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -643,21 +708,22 @@ public java.lang.String getFilter() { } } /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -665,64 +731,71 @@ public java.lang.String getFilter() { } } /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
                                    * The filter for Runtimes that match the filter expression,
                                    * following the syntax outlined in https://google.aip.dev/160.
                                    * 
                              * * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -732,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.ListRuntimesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.ListRuntimesRequest) private static final com.google.cloud.functions.v2beta.ListRuntimesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.ListRuntimesRequest(); } @@ -746,16 +819,16 @@ public static com.google.cloud.functions.v2beta.ListRuntimesRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRuntimesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRuntimesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -770,6 +843,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.ListRuntimesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java index 5280f617..94d1f429 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java @@ -1,53 +1,83 @@ +/* + * 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 ListRuntimesRequestOrBuilder extends +public interface ListRuntimesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.ListRuntimesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
                                  * 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) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
                                  * The filter for Runtimes that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
                                  * The filter for Runtimes that match the filter expression,
                                  * following the syntax outlined in https://google.aip.dev/160.
                                  * 
                              * * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java similarity index 71% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java index a8ab6b5e..eb333862 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java @@ -1,40 +1,57 @@ +/* + * 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; /** + * + * *
                                * Response for the `ListRuntimes` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.ListRuntimesResponse} */ -public final class ListRuntimesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuntimesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.ListRuntimesResponse) ListRuntimesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuntimesResponse.newBuilder() to construct. private ListRuntimesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuntimesResponse() { runtimes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListRuntimesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private ListRuntimesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - runtimes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + runtimes_ = + new java.util.ArrayList< + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime>(); + mutable_bitField0_ |= 0x00000001; + } + runtimes_.add( + input.readMessage( + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.parser(), + extensionRegistry)); + break; } - runtimes_.add( - input.readMessage(com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private ListRuntimesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { runtimes_ = java.util.Collections.unmodifiableList(runtimes_); @@ -87,29 +108,35 @@ private ListRuntimesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListRuntimesResponse.class, com.google.cloud.functions.v2beta.ListRuntimesResponse.Builder.class); + com.google.cloud.functions.v2beta.ListRuntimesResponse.class, + com.google.cloud.functions.v2beta.ListRuntimesResponse.Builder.class); } /** + * + * *
                                  * The various stages that a runtime can be in.
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage} */ - public enum RuntimeStage - implements com.google.protobuf.ProtocolMessageEnum { + public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified.
                                    * 
                              @@ -118,6 +145,8 @@ public enum RuntimeStage */ RUNTIME_STAGE_UNSPECIFIED(0), /** + * + * *
                                    * The runtime is in development.
                                    * 
                              @@ -126,6 +155,8 @@ public enum RuntimeStage */ DEVELOPMENT(1), /** + * + * *
                                    * The runtime is in the Alpha stage.
                                    * 
                              @@ -134,6 +165,8 @@ public enum RuntimeStage */ ALPHA(2), /** + * + * *
                                    * The runtime is in the Beta stage.
                                    * 
                              @@ -142,6 +175,8 @@ public enum RuntimeStage */ BETA(3), /** + * + * *
                                    * The runtime is generally available.
                                    * 
                              @@ -150,6 +185,8 @@ public enum RuntimeStage */ GA(4), /** + * + * *
                                    * The runtime is deprecated.
                                    * 
                              @@ -158,6 +195,8 @@ public enum RuntimeStage */ DEPRECATED(5), /** + * + * *
                                    * The runtime is no longer supported.
                                    * 
                              @@ -169,6 +208,8 @@ public enum RuntimeStage ; /** + * + * *
                                    * Not specified.
                                    * 
                              @@ -177,6 +218,8 @@ public enum RuntimeStage */ public static final int RUNTIME_STAGE_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * The runtime is in development.
                                    * 
                              @@ -185,6 +228,8 @@ public enum RuntimeStage */ public static final int DEVELOPMENT_VALUE = 1; /** + * + * *
                                    * The runtime is in the Alpha stage.
                                    * 
                              @@ -193,6 +238,8 @@ public enum RuntimeStage */ public static final int ALPHA_VALUE = 2; /** + * + * *
                                    * The runtime is in the Beta stage.
                                    * 
                              @@ -201,6 +248,8 @@ public enum RuntimeStage */ public static final int BETA_VALUE = 3; /** + * + * *
                                    * The runtime is generally available.
                                    * 
                              @@ -209,6 +258,8 @@ public enum RuntimeStage */ public static final int GA_VALUE = 4; /** + * + * *
                                    * The runtime is deprecated.
                                    * 
                              @@ -217,6 +268,8 @@ public enum RuntimeStage */ public static final int DEPRECATED_VALUE = 5; /** + * + * *
                                    * The runtime is no longer supported.
                                    * 
                              @@ -225,7 +278,6 @@ public enum RuntimeStage */ public static final int DECOMMISSIONED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -250,53 +302,59 @@ public static RuntimeStage valueOf(int value) { */ public static RuntimeStage forNumber(int value) { switch (value) { - case 0: return RUNTIME_STAGE_UNSPECIFIED; - case 1: return DEVELOPMENT; - case 2: return ALPHA; - case 3: return BETA; - case 4: return GA; - case 5: return DEPRECATED; - case 6: return DECOMMISSIONED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return RUNTIME_STAGE_UNSPECIFIED; + case 1: + return DEVELOPMENT; + case 2: + return ALPHA; + case 3: + return BETA; + case 4: + return GA; + case 5: + return DEPRECATED; + case 6: + return DECOMMISSIONED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RuntimeStage> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RuntimeStage findValueByNumber(int number) { - return RuntimeStage.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RuntimeStage findValueByNumber(int number) { + return RuntimeStage.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() { + + 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.ListRuntimesResponse.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.functions.v2beta.ListRuntimesResponse.getDescriptor() + .getEnumTypes() + .get(0); } private static final RuntimeStage[] VALUES = values(); - public static RuntimeStage valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RuntimeStage valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -313,130 +371,165 @@ private RuntimeStage(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage) } - public interface RuntimeOrBuilder extends + public interface RuntimeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                    * 
                              * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
                                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                    * 
                              * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                    * 
                              * * string display_name = 5; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
                                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                    * 
                              * * string display_name = 5; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
                                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                    * 
                              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The enum numeric value on the wire for stage. */ int getStageValue(); /** + * + * *
                                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                    * 
                              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The stage. */ com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage getStage(); /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @return A list containing the warnings. */ - java.util.List - getWarningsList(); + java.util.List getWarningsList(); /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @return The count of warnings. */ int getWarningsCount(); /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @param index The index of the element to return. * @return The warnings at the given index. */ java.lang.String getWarnings(int index); /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - com.google.protobuf.ByteString - getWarningsBytes(int index); + com.google.protobuf.ByteString getWarningsBytes(int index); /** + * + * *
                                    * The environment for the runtime.
                                    * 
                              * * .google.cloud.functions.v2beta.Environment environment = 4; + * * @return The enum numeric value on the wire for environment. */ int getEnvironmentValue(); /** + * + * *
                                    * The environment for the runtime.
                                    * 
                              * * .google.cloud.functions.v2beta.Environment environment = 4; + * * @return The environment. */ com.google.cloud.functions.v2beta.Environment getEnvironment(); } /** + * + * *
                                  * Describes a runtime and any special information (e.g., deprecation status)
                                  * related to it.
                              @@ -444,15 +537,16 @@ public interface RuntimeOrBuilder extends
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2beta.ListRuntimesResponse.Runtime}
                                  */
                              -  public static final class Runtime extends
                              -      com.google.protobuf.GeneratedMessageV3 implements
                              +  public static final class Runtime extends com.google.protobuf.GeneratedMessageV3
                              +      implements
                                     // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.ListRuntimesResponse.Runtime)
                                     RuntimeOrBuilder {
                              -  private static final long serialVersionUID = 0L;
                              +    private static final long serialVersionUID = 0L;
                                   // Use Runtime.newBuilder() to construct.
                                   private Runtime(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                     super(builder);
                                   }
                              +
                                   private Runtime() {
                                     name_ = "";
                                     displayName_ = "";
                              @@ -463,16 +557,15 @@ private Runtime() {
                               
                                   @java.lang.Override
                                   @SuppressWarnings({"unused"})
                              -    protected java.lang.Object newInstance(
                              -        UnusedPrivateParameter unused) {
                              +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                     return new Runtime();
                                   }
                               
                                   @java.lang.Override
                              -    public final com.google.protobuf.UnknownFieldSet
                              -    getUnknownFields() {
                              +    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                     return this.unknownFields;
                                   }
                              +
                                   private Runtime(
                                       com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -492,46 +585,51 @@ private Runtime(
                                           case 0:
                                             done = true;
                                             break;
                              -            case 10: {
                              -              java.lang.String s = input.readStringRequireUtf8();
                              +            case 10:
                              +              {
                              +                java.lang.String s = input.readStringRequireUtf8();
                               
                              -              name_ = s;
                              -              break;
                              -            }
                              -            case 16: {
                              -              int rawValue = input.readEnum();
                              +                name_ = s;
                              +                break;
                              +              }
                              +            case 16:
                              +              {
                              +                int rawValue = input.readEnum();
                               
                              -              stage_ = rawValue;
                              -              break;
                              -            }
                              -            case 26: {
                              -              java.lang.String s = input.readStringRequireUtf8();
                              -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -                warnings_ = new com.google.protobuf.LazyStringArrayList();
                              -                mutable_bitField0_ |= 0x00000001;
                              +                stage_ = rawValue;
                              +                break;
                                             }
                              -              warnings_.add(s);
                              -              break;
                              -            }
                              -            case 32: {
                              -              int rawValue = input.readEnum();
                              +            case 26:
                              +              {
                              +                java.lang.String s = input.readStringRequireUtf8();
                              +                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                  warnings_ = new com.google.protobuf.LazyStringArrayList();
                              +                  mutable_bitField0_ |= 0x00000001;
                              +                }
                              +                warnings_.add(s);
                              +                break;
                              +              }
                              +            case 32:
                              +              {
                              +                int rawValue = input.readEnum();
                               
                              -              environment_ = rawValue;
                              -              break;
                              -            }
                              -            case 42: {
                              -              java.lang.String s = input.readStringRequireUtf8();
                              +                environment_ = rawValue;
                              +                break;
                              +              }
                              +            case 42:
                              +              {
                              +                java.lang.String s = input.readStringRequireUtf8();
                               
                              -              displayName_ = s;
                              -              break;
                              -            }
                              -            default: {
                              -              if (!parseUnknownField(
                              -                  input, unknownFields, extensionRegistry, tag)) {
                              -                done = true;
                              +                displayName_ = s;
                              +                break;
                              +              }
                              +            default:
                              +              {
                              +                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                  done = true;
                              +                }
                              +                break;
                                             }
                              -              break;
                              -            }
                                         }
                                       }
                                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -539,8 +637,7 @@ private Runtime(
                                     } catch (com.google.protobuf.UninitializedMessageException e) {
                                       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                     } catch (java.io.IOException e) {
                              -        throw new com.google.protobuf.InvalidProtocolBufferException(
                              -            e).setUnfinishedMessage(this);
                              +        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                     } finally {
                                       if (((mutable_bitField0_ & 0x00000001) != 0)) {
                                         warnings_ = warnings_.getUnmodifiableView();
                              @@ -549,27 +646,33 @@ private Runtime(
                                       makeExtensionsImmutable();
                                     }
                                   }
                              -    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;
                              +
                              +    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;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder.class);
                              +              com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.class,
                              +              com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder.class);
                                   }
                               
                                   public static final int NAME_FIELD_NUMBER = 1;
                                   private volatile java.lang.Object name_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                    * 
                              * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -578,29 +681,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                                    * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                    * 
                              * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -611,11 +714,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
                                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                    * 
                              * * string display_name = 5; + * * @return The displayName. */ @java.lang.Override @@ -624,29 +730,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
                                    * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                    * 
                              * * string display_name = 5; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -657,61 +763,80 @@ public java.lang.String getDisplayName() { public static final int STAGE_FIELD_NUMBER = 2; private int stage_; /** + * + * *
                                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                    * 
                              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The enum numeric value on the wire for stage. */ - @java.lang.Override public int getStageValue() { + @java.lang.Override + public int getStageValue() { return stage_; } /** + * + * *
                                    * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                    * 
                              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The stage. */ - @java.lang.Override public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage getStage() { + @java.lang.Override + public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage getStage() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.valueOf(stage_); - return result == null ? com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; + com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage result = + com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.valueOf(stage_); + return result == null + ? com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED + : result; } public static final int WARNINGS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList warnings_; /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_; } /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -719,47 +844,59 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
                                    * Warning messages, e.g., a deprecation warning.
                                    * 
                              * * repeated string warnings = 3; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } public static final int ENVIRONMENT_FIELD_NUMBER = 4; private int environment_; /** + * + * *
                                    * The environment for the runtime.
                                    * 
                              * * .google.cloud.functions.v2beta.Environment environment = 4; + * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override public int getEnvironmentValue() { + @java.lang.Override + public int getEnvironmentValue() { return environment_; } /** + * + * *
                                    * The environment for the runtime.
                                    * 
                              * * .google.cloud.functions.v2beta.Environment environment = 4; + * * @return The environment. */ - @java.lang.Override public com.google.cloud.functions.v2beta.Environment getEnvironment() { + @java.lang.Override + public com.google.cloud.functions.v2beta.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Environment result = com.google.cloud.functions.v2beta.Environment.valueOf(environment_); + com.google.cloud.functions.v2beta.Environment result = + com.google.cloud.functions.v2beta.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2beta.Environment.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -771,18 +908,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (stage_ != com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.RUNTIME_STAGE_UNSPECIFIED.getNumber()) { + if (stage_ + != com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage + .RUNTIME_STAGE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, stage_); } for (int i = 0; i < warnings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warnings_.getRaw(i)); } - if (environment_ != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + if (environment_ + != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(4, environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { @@ -800,9 +940,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (stage_ != com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.RUNTIME_STAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, stage_); + if (stage_ + != com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage + .RUNTIME_STAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stage_); } { int dataSize = 0; @@ -812,9 +954,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getWarningsList().size(); } - if (environment_ != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, environment_); + if (environment_ + != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -827,20 +969,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime other = (com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) obj; + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime other = + (com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (stage_ != other.stage_) return false; - if (!getWarningsList() - .equals(other.getWarningsList())) return false; + if (!getWarningsList().equals(other.getWarningsList())) return false; if (environment_ != other.environment_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -871,87 +1011,94 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListRuntimesResponse.Runtime parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime 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.ListRuntimesResponse.Runtime parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -961,6 +1108,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                                    * Describes a runtime and any special information (e.g., deprecation status)
                                    * related to it.
                              @@ -968,21 +1117,24 @@ protected Builder newBuilderForType(
                                    *
                                    * Protobuf type {@code google.cloud.functions.v2beta.ListRuntimesResponse.Runtime}
                                    */
                              -    public static final class Builder extends
                              -        com.google.protobuf.GeneratedMessageV3.Builder implements
                              +    public static final class Builder
                              +        extends com.google.protobuf.GeneratedMessageV3.Builder
                              +        implements
                                       // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.ListRuntimesResponse.Runtime)
                                       com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder {
                              -      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;
                              +      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;
                                     }
                               
                                     @java.lang.Override
                                     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                         internalGetFieldAccessorTable() {
                              -        return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable
                              +        return com.google.cloud.functions.v2beta.FunctionsProto
                              +            .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_fieldAccessorTable
                                           .ensureFieldAccessorsInitialized(
                              -                com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder.class);
                              +                com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.class,
                              +                com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder.class);
                                     }
                               
                                     // Construct using com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.newBuilder()
                              @@ -990,16 +1142,15 @@ private Builder() {
                                       maybeForceBuilderInitialization();
                                     }
                               
                              -      private Builder(
                              -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                       super(parent);
                                       maybeForceBuilderInitialization();
                                     }
                              +
                                     private void maybeForceBuilderInitialization() {
                              -        if (com.google.protobuf.GeneratedMessageV3
                              -                .alwaysUseFieldBuilders) {
                              -        }
                              +        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                     }
                              +
                                     @java.lang.Override
                                     public Builder clear() {
                                       super.clear();
                              @@ -1017,13 +1168,14 @@ public Builder clear() {
                                     }
                               
                                     @java.lang.Override
                              -      public com.google.protobuf.Descriptors.Descriptor
                              -          getDescriptorForType() {
                              -        return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor;
                              +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +        return com.google.cloud.functions.v2beta.FunctionsProto
                              +            .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor;
                                     }
                               
                                     @java.lang.Override
                              -      public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getDefaultInstanceForType() {
                              +      public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime
                              +          getDefaultInstanceForType() {
                                       return com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance();
                                     }
                               
                              @@ -1038,7 +1190,8 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime build() {
                               
                                     @java.lang.Override
                                     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);
                              +        com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime result =
                              +            new com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime(this);
                                       int from_bitField0_ = bitField0_;
                                       result.name_ = name_;
                                       result.displayName_ = displayName_;
                              @@ -1057,46 +1210,52 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime buildParti
                                     public Builder clone() {
                                       return super.clone();
                                     }
                              +
                                     @java.lang.Override
                                     public Builder setField(
                              -          com.google.protobuf.Descriptors.FieldDescriptor field,
                              -          java.lang.Object value) {
                              +          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) {
                              +      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) {
                              +      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) {
                              +          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) {
                              +          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) {
                              -          return mergeFrom((com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime)other);
                              +          return mergeFrom((com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) other);
                                       } else {
                                         super.mergeFrom(other);
                                         return this;
                                       }
                                     }
                               
                              -      public Builder mergeFrom(com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime other) {
                              -        if (other == com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance()) return this;
                              +      public Builder mergeFrom(
                              +          com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime other) {
                              +        if (other
                              +            == com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance())
                              +          return this;
                                       if (!other.getName().isEmpty()) {
                                         name_ = other.name_;
                                         onChanged();
                              @@ -1140,7 +1299,9 @@ public Builder mergeFrom(
                                       try {
                                         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                                       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              -          parsedMessage = (com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) e.getUnfinishedMessage();
                              +          parsedMessage =
                              +              (com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime)
                              +                  e.getUnfinishedMessage();
                                         throw e.unwrapIOException();
                                       } finally {
                                         if (parsedMessage != null) {
                              @@ -1149,22 +1310,25 @@ public Builder mergeFrom(
                                       }
                                       return this;
                                     }
                              +
                                     private int bitField0_;
                               
                                     private java.lang.Object name_ = "";
                                     /**
                              +       *
                              +       *
                                      * 
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1173,20 +1337,21 @@ public java.lang.String getName() { } } /** + * + * *
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1194,54 +1359,61 @@ public java.lang.String getName() { } } /** + * + * *
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                                      * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
                                      * 
                              * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1249,18 +1421,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1269,20 +1443,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1290,54 +1465,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
                                      * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
                                      * 
                              * * string display_name = 5; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1345,114 +1527,144 @@ public Builder setDisplayNameBytes( private int stage_ = 0; /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The enum numeric value on the wire for stage. */ - @java.lang.Override public int getStageValue() { + @java.lang.Override + public int getStageValue() { return stage_; } /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; + * * @param value The enum numeric value on the wire for stage to set. * @return This builder for chaining. */ public Builder setStageValue(int value) { - + stage_ = value; onChanged(); return this; } /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return The stage. */ @java.lang.Override public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage getStage() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.valueOf(stage_); - return result == null ? com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; + com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage result = + com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.valueOf(stage_); + return result == null + ? com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED + : result; } /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; + * * @param value The stage to set. * @return This builder for chaining. */ - public Builder setStage(com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage value) { + public Builder setStage( + com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage value) { if (value == null) { throw new NullPointerException(); } - + stage_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                      * The stage of life this runtime is in, e.g., BETA, GA, etc.
                                      * 
                              * * .google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage stage = 2; + * * @return This builder for chaining. */ public Builder clearStage() { - + stage_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList warnings_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWarningsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_.getUnmodifiableView(); } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -1460,80 +1672,90 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param index The index to set the value at. * @param value The warnings to set. * @return This builder for chaining. */ - public Builder setWarnings( - int index, java.lang.String value) { + public Builder setWarnings(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.set(index, value); onChanged(); return this; } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param value The warnings to add. * @return This builder for chaining. */ - public Builder addWarnings( - java.lang.String value) { + public Builder addWarnings(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); + throw new NullPointerException(); + } + ensureWarningsIsMutable(); warnings_.add(value); onChanged(); return this; } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param values The warnings to add. * @return This builder for chaining. */ - public Builder addAllWarnings( - java.lang.Iterable values) { + public Builder addAllWarnings(java.lang.Iterable values) { ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, warnings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); onChanged(); return this; } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @return This builder for chaining. */ public Builder clearWarnings() { @@ -1543,20 +1765,22 @@ public Builder clearWarnings() { return this; } /** + * + * *
                                      * Warning messages, e.g., a deprecation warning.
                                      * 
                              * * repeated string warnings = 3; + * * @param value The bytes of the warnings to add. * @return This builder for chaining. */ - public Builder addWarningsBytes( - com.google.protobuf.ByteString value) { + public Builder addWarningsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.add(value); onChanged(); @@ -1565,51 +1789,65 @@ public Builder addWarningsBytes( private int environment_ = 0; /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2beta.Environment environment = 4; + * * @return The enum numeric value on the wire for environment. */ - @java.lang.Override public int getEnvironmentValue() { + @java.lang.Override + public int getEnvironmentValue() { return environment_; } /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2beta.Environment environment = 4; + * * @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; onChanged(); return this; } /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2beta.Environment environment = 4; + * * @return The environment. */ @java.lang.Override public com.google.cloud.functions.v2beta.Environment getEnvironment() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Environment result = com.google.cloud.functions.v2beta.Environment.valueOf(environment_); + com.google.cloud.functions.v2beta.Environment result = + com.google.cloud.functions.v2beta.Environment.valueOf(environment_); return result == null ? com.google.cloud.functions.v2beta.Environment.UNRECOGNIZED : result; } /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2beta.Environment environment = 4; + * * @param value The environment to set. * @return This builder for chaining. */ @@ -1617,25 +1855,29 @@ public Builder setEnvironment(com.google.cloud.functions.v2beta.Environment valu if (value == null) { throw new NullPointerException(); } - + environment_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                      * The environment for the runtime.
                                      * 
                              * * .google.cloud.functions.v2beta.Environment environment = 4; + * * @return This builder for chaining. */ public Builder clearEnvironment() { - + environment_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1648,30 +1890,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) - private static final com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime DEFAULT_INSTANCE; + private static final com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime(); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getDefaultInstance() { + public static com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Runtime parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Runtime(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Runtime parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Runtime(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1683,15 +1927,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getDefaultInstanceForType() { + public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int RUNTIMES_FIELD_NUMBER = 1; private java.util.List runtimes_; /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -1699,10 +1945,13 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getDefault * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override - public java.util.List getRuntimesList() { + public java.util.List + getRuntimesList() { return runtimes_; } /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -1710,11 +1959,14 @@ public java.util.Listrepeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder> getRuntimesOrBuilderList() { return runtimes_; } /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -1726,6 +1978,8 @@ public int getRuntimesCount() { return runtimes_.size(); } /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -1737,6 +1991,8 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getRuntime return runtimes_.get(index); } /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -1744,12 +2000,13 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getRuntime * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override - public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( - int index) { + public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder + getRuntimesOrBuilder(int index) { return runtimes_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1761,8 +2018,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < runtimes_.size(); i++) { output.writeMessage(1, runtimes_.get(i)); } @@ -1776,8 +2032,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < runtimes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, runtimes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runtimes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1787,15 +2042,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.ListRuntimesResponse)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.ListRuntimesResponse other = (com.google.cloud.functions.v2beta.ListRuntimesResponse) obj; + com.google.cloud.functions.v2beta.ListRuntimesResponse other = + (com.google.cloud.functions.v2beta.ListRuntimesResponse) obj; - if (!getRuntimesList() - .equals(other.getRuntimesList())) return false; + if (!getRuntimesList().equals(other.getRuntimesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1817,117 +2072,127 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListRuntimesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse 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.ListRuntimesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ListRuntimesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.ListRuntimesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2beta.ListRuntimesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Response for the `ListRuntimes` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.ListRuntimesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.ListRuntimesResponse) com.google.cloud.functions.v2beta.ListRuntimesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.ListRuntimesResponse.class, com.google.cloud.functions.v2beta.ListRuntimesResponse.Builder.class); + com.google.cloud.functions.v2beta.ListRuntimesResponse.class, + com.google.cloud.functions.v2beta.ListRuntimesResponse.Builder.class); } // Construct using com.google.cloud.functions.v2beta.ListRuntimesResponse.newBuilder() @@ -1935,17 +2200,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRuntimesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1959,9 +2224,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; } @java.lang.Override @@ -1980,7 +2245,8 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse build() { @java.lang.Override public com.google.cloud.functions.v2beta.ListRuntimesResponse buildPartial() { - com.google.cloud.functions.v2beta.ListRuntimesResponse result = new com.google.cloud.functions.v2beta.ListRuntimesResponse(this); + com.google.cloud.functions.v2beta.ListRuntimesResponse result = + new com.google.cloud.functions.v2beta.ListRuntimesResponse(this); int from_bitField0_ = bitField0_; if (runtimesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1999,38 +2265,39 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.ListRuntimesResponse)other); + return mergeFrom((com.google.cloud.functions.v2beta.ListRuntimesResponse) other); } else { super.mergeFrom(other); return this; @@ -2038,7 +2305,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.ListRuntimesResponse other) { - if (other == com.google.cloud.functions.v2beta.ListRuntimesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2beta.ListRuntimesResponse.getDefaultInstance()) + return this; if (runtimesBuilder_ == null) { if (!other.runtimes_.isEmpty()) { if (runtimes_.isEmpty()) { @@ -2057,9 +2325,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ListRuntimesResponse runtimesBuilder_ = null; runtimes_ = other.runtimes_; bitField0_ = (bitField0_ & ~0x00000001); - runtimesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRuntimesFieldBuilder() : null; + runtimesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRuntimesFieldBuilder() + : null; } else { runtimesBuilder_.addAllMessages(other.runtimes_); } @@ -2084,7 +2353,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.ListRuntimesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.ListRuntimesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2093,28 +2363,39 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List runtimes_ = - java.util.Collections.emptyList(); + private java.util.List + runtimes_ = java.util.Collections.emptyList(); + private void ensureRuntimesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - runtimes_ = new java.util.ArrayList(runtimes_); + runtimes_ = + new java.util.ArrayList( + runtimes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder> runtimesBuilder_; + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime, + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder, + com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder> + runtimesBuilder_; /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public java.util.List getRuntimesList() { + public java.util.List + getRuntimesList() { if (runtimesBuilder_ == null) { return java.util.Collections.unmodifiableList(runtimes_); } else { @@ -2122,11 +2403,14 @@ public java.util.List * The runtimes that match the request. *
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ public int getRuntimesCount() { if (runtimesBuilder_ == null) { @@ -2136,11 +2420,14 @@ public int getRuntimesCount() { } } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getRuntimes(int index) { if (runtimesBuilder_ == null) { @@ -2150,11 +2437,14 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getRuntime } } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder setRuntimes( int index, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime value) { @@ -2171,14 +2461,18 @@ public Builder setRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder setRuntimes( - int index, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder builderForValue) { + int index, + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.set(index, builderForValue.build()); @@ -2189,13 +2483,17 @@ public Builder setRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public Builder addRuntimes(com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime value) { + public Builder addRuntimes( + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime value) { if (runtimesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2209,11 +2507,14 @@ public Builder addRuntimes(com.google.cloud.functions.v2beta.ListRuntimesRespons return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder addRuntimes( int index, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime value) { @@ -2230,11 +2531,14 @@ public Builder addRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder addRuntimes( com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder builderForValue) { @@ -2248,14 +2552,18 @@ public Builder addRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder addRuntimes( - int index, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder builderForValue) { + int index, + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.add(index, builderForValue.build()); @@ -2266,18 +2574,21 @@ public Builder addRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder addAllRuntimes( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, runtimes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, runtimes_); onChanged(); } else { runtimesBuilder_.addAllMessages(values); @@ -2285,11 +2596,14 @@ public Builder addAllRuntimes( return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder clearRuntimes() { if (runtimesBuilder_ == null) { @@ -2302,11 +2616,14 @@ public Builder clearRuntimes() { return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ public Builder removeRuntimes(int index) { if (runtimesBuilder_ == null) { @@ -2319,39 +2636,50 @@ public Builder removeRuntimes(int index) { return this; } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder getRuntimesBuilder( - int index) { + public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder + getRuntimesBuilder(int index) { return getRuntimesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( - int index) { + public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder + getRuntimesOrBuilder(int index) { if (runtimesBuilder_ == null) { - return runtimes_.get(index); } else { + return runtimes_.get(index); + } else { return runtimesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public java.util.List - getRuntimesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder> + getRuntimesOrBuilderList() { if (runtimesBuilder_ != null) { return runtimesBuilder_.getMessageOrBuilderList(); } else { @@ -2359,56 +2687,72 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder g } } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder() { - return getRuntimesFieldBuilder().addBuilder( - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance()); + public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder + addRuntimesBuilder() { + return getRuntimesFieldBuilder() + .addBuilder( + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance()); } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder( - int index) { - return getRuntimesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance()); + public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder + addRuntimesBuilder(int index) { + return getRuntimesFieldBuilder() + .addBuilder( + index, + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.getDefaultInstance()); } /** + * + * *
                                    * The runtimes that match the request.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; + * */ - public java.util.List - getRuntimesBuilderList() { + public java.util.List + getRuntimesBuilderList() { return getRuntimesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder> + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime, + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder, + com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder> getRuntimesFieldBuilder() { if (runtimesBuilder_ == null) { - runtimesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder>( - runtimes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + runtimesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime, + com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.Builder, + com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeOrBuilder>( + runtimes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); runtimes_ = null; } return runtimesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2418,12 +2762,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.ListRuntimesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.ListRuntimesResponse) private static final com.google.cloud.functions.v2beta.ListRuntimesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.ListRuntimesResponse(); } @@ -2432,16 +2776,16 @@ public static com.google.cloud.functions.v2beta.ListRuntimesResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRuntimesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListRuntimesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2456,6 +2800,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.ListRuntimesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java index 6782a008..5eca7ed5 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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 ListRuntimesResponseOrBuilder extends +public interface ListRuntimesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.ListRuntimesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ - java.util.List - getRuntimesList(); + java.util.List getRuntimesList(); /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -25,6 +44,8 @@ public interface ListRuntimesResponseOrBuilder extends */ com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime getRuntimes(int index); /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              @@ -33,15 +54,19 @@ public interface ListRuntimesResponseOrBuilder extends */ int getRuntimesCount(); /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.ListRuntimesResponse.Runtime runtimes = 1; */ - java.util.List + java.util.List getRuntimesOrBuilderList(); /** + * + * *
                                  * The runtimes that match the request.
                                  * 
                              diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationName.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationName.java similarity index 100% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationName.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationName.java diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java similarity index 74% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java index d8f0a5bf..bd115352 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Represents the metadata of the long-running operation.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -29,16 +47,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,90 +75,102 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + target_ = s; + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - statusDetail_ = s; - break; - } - case 48: { - - cancelRequested_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - case 66: { - com.google.protobuf.Any.Builder subBuilder = null; - if (requestResource_ != null) { - subBuilder = requestResource_.toBuilder(); + statusDetail_ = s; + break; } - requestResource_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestResource_); - requestResource_ = subBuilder.buildPartial(); + case 48: + { + cancelRequested_ = input.readBool(); + break; } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + apiVersion_ = s; + break; } - stages_.add( - input.readMessage(com.google.cloud.functions.v2beta.Stage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 66: + { + com.google.protobuf.Any.Builder subBuilder = null; + if (requestResource_ != null) { + subBuilder = requestResource_.toBuilder(); + } + requestResource_ = + input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestResource_); + requestResource_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stages_.add( + input.readMessage( + com.google.cloud.functions.v2beta.Stage.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -149,8 +178,7 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stages_ = java.util.Collections.unmodifiableList(stages_); @@ -159,27 +187,33 @@ private OperationMetadata( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.OperationMetadata.class, com.google.cloud.functions.v2beta.OperationMetadata.Builder.class); + com.google.cloud.functions.v2beta.OperationMetadata.class, + com.google.cloud.functions.v2beta.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
                                  * The time the operation was created.
                                  * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -187,11 +221,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
                                  * The time the operation was created.
                                  * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -199,6 +236,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
                                  * The time the operation was created.
                                  * 
                              @@ -213,11 +252,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -225,11 +267,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -237,6 +282,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              @@ -251,11 +298,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
                                  * Server-defined resource path for the target of the operation.
                                  * 
                              * * string target = 3; + * * @return The target. */ @java.lang.Override @@ -264,29 +314,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
                                  * Server-defined resource path for the target of the operation.
                                  * 
                              * * string target = 3; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -297,11 +347,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
                                  * Name of the verb executed by the operation.
                                  * 
                              * * string verb = 4; + * * @return The verb. */ @java.lang.Override @@ -310,29 +363,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
                                  * Name of the verb executed by the operation.
                                  * 
                              * * string verb = 4; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -343,11 +396,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
                                  * Human-readable status of the operation, if any.
                                  * 
                              * * string status_detail = 5; + * * @return The statusDetail. */ @java.lang.Override @@ -356,29 +412,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
                                  * Human-readable status of the operation, if any.
                                  * 
                              * * string status_detail = 5; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -389,6 +445,8 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
                                  * Identifies whether the user has requested cancellation
                                  * of the operation. Operations that have successfully been cancelled
                              @@ -397,6 +455,7 @@ public java.lang.String getStatusDetail() {
                                  * 
                              * * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -407,11 +466,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
                                  * API version used to start the operation.
                                  * 
                              * * string api_version = 7; + * * @return The apiVersion. */ @java.lang.Override @@ -420,29 +482,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
                                  * API version used to start the operation.
                                  * 
                              * * string api_version = 7; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -453,11 +515,14 @@ public java.lang.String getApiVersion() { public static final int REQUEST_RESOURCE_FIELD_NUMBER = 8; private com.google.protobuf.Any requestResource_; /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return Whether the requestResource field is set. */ @java.lang.Override @@ -465,18 +530,25 @@ public boolean hasRequestResource() { return requestResource_ != null; } /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return The requestResource. */ @java.lang.Override public com.google.protobuf.Any getRequestResource() { - return requestResource_ == null ? com.google.protobuf.Any.getDefaultInstance() : requestResource_; + return requestResource_ == null + ? com.google.protobuf.Any.getDefaultInstance() + : requestResource_; } /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              @@ -491,6 +563,8 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { public static final int STAGES_FIELD_NUMBER = 9; private java.util.List stages_; /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -502,6 +576,8 @@ public java.util.List getStagesList() { return stages_; } /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -509,11 +585,13 @@ public java.util.List getStagesList() { * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ @java.lang.Override - public java.util.List + public java.util.List getStagesOrBuilderList() { return stages_; } /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -525,6 +603,8 @@ public int getStagesCount() { return stages_.size(); } /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -536,6 +616,8 @@ public com.google.cloud.functions.v2beta.Stage getStages(int index) { return stages_.get(index); } /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -543,12 +625,12 @@ public com.google.cloud.functions.v2beta.Stage getStages(int index) { * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ @java.lang.Override - public com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder( - int index) { + public com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder(int index) { return stages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -560,8 +642,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -599,12 +680,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -616,19 +695,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } if (requestResource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getRequestResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRequestResource()); } for (int i = 0; i < stages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, stages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, stages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -638,40 +714,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.OperationMetadata other = (com.google.cloud.functions.v2beta.OperationMetadata) obj; + com.google.cloud.functions.v2beta.OperationMetadata other = + (com.google.cloud.functions.v2beta.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (hasRequestResource() != other.hasRequestResource()) return false; if (hasRequestResource()) { - if (!getRequestResource() - .equals(other.getRequestResource())) return false; + if (!getRequestResource().equals(other.getRequestResource())) return false; } - if (!getStagesList() - .equals(other.getStagesList())) return false; + if (!getStagesList().equals(other.getStagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -698,8 +766,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); if (hasRequestResource()) { @@ -716,117 +783,126 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.OperationMetadata 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.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2beta.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Represents the metadata of the long-running operation.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.OperationMetadata) com.google.cloud.functions.v2beta.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.OperationMetadata.class, com.google.cloud.functions.v2beta.OperationMetadata.Builder.class); + com.google.cloud.functions.v2beta.OperationMetadata.class, + com.google.cloud.functions.v2beta.OperationMetadata.Builder.class); } // Construct using com.google.cloud.functions.v2beta.OperationMetadata.newBuilder() @@ -834,17 +910,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -886,9 +962,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; } @java.lang.Override @@ -907,7 +983,8 @@ public com.google.cloud.functions.v2beta.OperationMetadata build() { @java.lang.Override public com.google.cloud.functions.v2beta.OperationMetadata buildPartial() { - com.google.cloud.functions.v2beta.OperationMetadata result = new com.google.cloud.functions.v2beta.OperationMetadata(this); + com.google.cloud.functions.v2beta.OperationMetadata result = + new com.google.cloud.functions.v2beta.OperationMetadata(this); int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -946,38 +1023,39 @@ public com.google.cloud.functions.v2beta.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.OperationMetadata)other); + return mergeFrom((com.google.cloud.functions.v2beta.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -985,7 +1063,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.OperationMetadata other) { - if (other == com.google.cloud.functions.v2beta.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2beta.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1032,9 +1111,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.OperationMetadata oth stagesBuilder_ = null; stages_ = other.stages_; bitField0_ = (bitField0_ & ~0x00000001); - stagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStagesFieldBuilder() : null; + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStagesFieldBuilder() + : null; } else { stagesBuilder_.addAllMessages(other.stages_); } @@ -1059,7 +1139,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1068,38 +1149,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
                                    * The time the operation was created.
                                    * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1120,14 +1215,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              * * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1138,6 +1234,8 @@ public Builder setCreateTime( return this; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1148,7 +1246,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1160,6 +1258,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1178,6 +1278,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1185,11 +1287,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1200,11 +1304,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
                                    * The time the operation was created.
                                    * 
                              @@ -1212,14 +1319,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1227,24 +1337,33 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1255,6 +1374,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1275,14 +1396,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              * * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1293,6 +1415,8 @@ public Builder setEndTime( return this; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1303,7 +1427,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1315,6 +1439,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1333,6 +1459,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1340,11 +1468,13 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1355,11 +1485,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
                                    * The time the operation finished running.
                                    * 
                              @@ -1367,14 +1498,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1382,18 +1516,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1402,20 +1538,21 @@ public java.lang.String getTarget() { } } /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1423,54 +1560,61 @@ public java.lang.String getTarget() { } } /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
                                    * Server-defined resource path for the target of the operation.
                                    * 
                              * * string target = 3; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1478,18 +1622,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1498,20 +1644,21 @@ public java.lang.String getVerb() { } } /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1519,54 +1666,61 @@ public java.lang.String getVerb() { } } /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
                                    * Name of the verb executed by the operation.
                                    * 
                              * * string verb = 4; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1574,18 +1728,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1594,20 +1750,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1615,61 +1772,70 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
                                    * Human-readable status of the operation, if any.
                                    * 
                              * * string status_detail = 5; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
                                    * Identifies whether the user has requested cancellation
                                    * of the operation. Operations that have successfully been cancelled
                              @@ -1678,6 +1844,7 @@ public Builder setStatusDetailBytes(
                                    * 
                              * * bool cancel_requested = 6; + * * @return The cancelRequested. */ @java.lang.Override @@ -1685,6 +1852,8 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
                                    * Identifies whether the user has requested cancellation
                                    * of the operation. Operations that have successfully been cancelled
                              @@ -1693,16 +1862,19 @@ public boolean getCancelRequested() {
                                    * 
                              * * bool cancel_requested = 6; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
                                    * Identifies whether the user has requested cancellation
                                    * of the operation. Operations that have successfully been cancelled
                              @@ -1711,10 +1883,11 @@ public Builder setCancelRequested(boolean value) {
                                    * 
                              * * bool cancel_requested = 6; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1722,18 +1895,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1742,20 +1917,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1763,54 +1939,61 @@ public java.lang.String getApiVersion() { } } /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
                                    * API version used to start the operation.
                                    * 
                              * * string api_version = 7; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; @@ -1818,34 +2001,47 @@ public Builder setApiVersionBytes( private com.google.protobuf.Any requestResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> requestResourceBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + requestResourceBuilder_; /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return Whether the requestResource field is set. */ public boolean hasRequestResource() { return requestResourceBuilder_ != null || requestResource_ != null; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return The requestResource. */ public com.google.protobuf.Any getRequestResource() { if (requestResourceBuilder_ == null) { - return requestResource_ == null ? com.google.protobuf.Any.getDefaultInstance() : requestResource_; + return requestResource_ == null + ? com.google.protobuf.Any.getDefaultInstance() + : requestResource_; } else { return requestResourceBuilder_.getMessage(); } } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1866,14 +2062,15 @@ public Builder setRequestResource(com.google.protobuf.Any value) { return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              * * .google.protobuf.Any request_resource = 8; */ - public Builder setRequestResource( - com.google.protobuf.Any.Builder builderForValue) { + public Builder setRequestResource(com.google.protobuf.Any.Builder builderForValue) { if (requestResourceBuilder_ == null) { requestResource_ = builderForValue.build(); onChanged(); @@ -1884,6 +2081,8 @@ public Builder setRequestResource( return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1894,7 +2093,7 @@ public Builder mergeRequestResource(com.google.protobuf.Any value) { if (requestResourceBuilder_ == null) { if (requestResource_ != null) { requestResource_ = - com.google.protobuf.Any.newBuilder(requestResource_).mergeFrom(value).buildPartial(); + com.google.protobuf.Any.newBuilder(requestResource_).mergeFrom(value).buildPartial(); } else { requestResource_ = value; } @@ -1906,6 +2105,8 @@ public Builder mergeRequestResource(com.google.protobuf.Any value) { return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1924,6 +2125,8 @@ public Builder clearRequestResource() { return this; } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1931,11 +2134,13 @@ public Builder clearRequestResource() { * .google.protobuf.Any request_resource = 8; */ public com.google.protobuf.Any.Builder getRequestResourceBuilder() { - + onChanged(); return getRequestResourceFieldBuilder().getBuilder(); } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1946,11 +2151,14 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { if (requestResourceBuilder_ != null) { return requestResourceBuilder_.getMessageOrBuilder(); } else { - return requestResource_ == null ? - com.google.protobuf.Any.getDefaultInstance() : requestResource_; + return requestResource_ == null + ? com.google.protobuf.Any.getDefaultInstance() + : requestResource_; } } /** + * + * *
                                    * The original request that started the operation.
                                    * 
                              @@ -1958,32 +2166,41 @@ public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder() { * .google.protobuf.Any request_resource = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> getRequestResourceFieldBuilder() { if (requestResourceBuilder_ == null) { - requestResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getRequestResource(), - getParentForChildren(), - isClean()); + requestResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder>( + getRequestResource(), getParentForChildren(), isClean()); requestResource_ = null; } return requestResourceBuilder_; } private java.util.List stages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stages_ = new java.util.ArrayList(stages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.Stage, com.google.cloud.functions.v2beta.Stage.Builder, com.google.cloud.functions.v2beta.StageOrBuilder> stagesBuilder_; + com.google.cloud.functions.v2beta.Stage, + com.google.cloud.functions.v2beta.Stage.Builder, + com.google.cloud.functions.v2beta.StageOrBuilder> + stagesBuilder_; /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -1998,6 +2215,8 @@ public java.util.List getStagesList() { } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2012,6 +2231,8 @@ public int getStagesCount() { } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2026,14 +2247,15 @@ public com.google.cloud.functions.v2beta.Stage getStages(int index) { } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public Builder setStages( - int index, com.google.cloud.functions.v2beta.Stage value) { + public Builder setStages(int index, com.google.cloud.functions.v2beta.Stage value) { if (stagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2047,6 +2269,8 @@ public Builder setStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2065,6 +2289,8 @@ public Builder setStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2085,14 +2311,15 @@ public Builder addStages(com.google.cloud.functions.v2beta.Stage value) { return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public Builder addStages( - int index, com.google.cloud.functions.v2beta.Stage value) { + public Builder addStages(int index, com.google.cloud.functions.v2beta.Stage value) { if (stagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2106,14 +2333,15 @@ public Builder addStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public Builder addStages( - com.google.cloud.functions.v2beta.Stage.Builder builderForValue) { + public Builder addStages(com.google.cloud.functions.v2beta.Stage.Builder builderForValue) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); stages_.add(builderForValue.build()); @@ -2124,6 +2352,8 @@ public Builder addStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2142,6 +2372,8 @@ public Builder addStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2152,8 +2384,7 @@ public Builder addAllStages( java.lang.Iterable values) { if (stagesBuilder_ == null) { ensureStagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stages_); onChanged(); } else { stagesBuilder_.addAllMessages(values); @@ -2161,6 +2392,8 @@ public Builder addAllStages( return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2178,6 +2411,8 @@ public Builder clearStages() { return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2195,39 +2430,44 @@ public Builder removeStages(int index) { return this; } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public com.google.cloud.functions.v2beta.Stage.Builder getStagesBuilder( - int index) { + public com.google.cloud.functions.v2beta.Stage.Builder getStagesBuilder(int index) { return getStagesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder( - int index) { + public com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder(int index) { if (stagesBuilder_ == null) { - return stages_.get(index); } else { + return stages_.get(index); + } else { return stagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public java.util.List - getStagesOrBuilderList() { + public java.util.List + getStagesOrBuilderList() { if (stagesBuilder_ != null) { return stagesBuilder_.getMessageOrBuilderList(); } else { @@ -2235,6 +2475,8 @@ public com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder( } } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              @@ -2242,49 +2484,54 @@ public com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder( * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ public com.google.cloud.functions.v2beta.Stage.Builder addStagesBuilder() { - return getStagesFieldBuilder().addBuilder( - com.google.cloud.functions.v2beta.Stage.getDefaultInstance()); + return getStagesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2beta.Stage.getDefaultInstance()); } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public com.google.cloud.functions.v2beta.Stage.Builder addStagesBuilder( - int index) { - return getStagesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2beta.Stage.getDefaultInstance()); + public com.google.cloud.functions.v2beta.Stage.Builder addStagesBuilder(int index) { + return getStagesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2beta.Stage.getDefaultInstance()); } /** + * + * *
                                    * Mechanism for reporting in-progress stages
                                    * 
                              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - public java.util.List - getStagesBuilderList() { + public java.util.List getStagesBuilderList() { return getStagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.Stage, com.google.cloud.functions.v2beta.Stage.Builder, com.google.cloud.functions.v2beta.StageOrBuilder> + com.google.cloud.functions.v2beta.Stage, + com.google.cloud.functions.v2beta.Stage.Builder, + com.google.cloud.functions.v2beta.StageOrBuilder> getStagesFieldBuilder() { if (stagesBuilder_ == null) { - stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.Stage, com.google.cloud.functions.v2beta.Stage.Builder, com.google.cloud.functions.v2beta.StageOrBuilder>( - stages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + stagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.Stage, + com.google.cloud.functions.v2beta.Stage.Builder, + com.google.cloud.functions.v2beta.StageOrBuilder>( + stages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); stages_ = null; } return stagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2294,12 +2541,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.OperationMetadata) private static final com.google.cloud.functions.v2beta.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.OperationMetadata(); } @@ -2308,16 +2555,16 @@ public static com.google.cloud.functions.v2beta.OperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2332,6 +2579,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java similarity index 80% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java index 5a4e57d4..4325905e 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * 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 OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * The time the operation was created.
                                  * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
                                  * The time the operation was created.
                                  * 
                              * * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
                                  * The time the operation was created.
                                  * 
                              @@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
                                  * The time the operation finished running.
                                  * 
                              @@ -62,66 +94,83 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
                                  * Server-defined resource path for the target of the operation.
                                  * 
                              * * string target = 3; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
                                  * Server-defined resource path for the target of the operation.
                                  * 
                              * * string target = 3; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
                                  * Name of the verb executed by the operation.
                                  * 
                              * * string verb = 4; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
                                  * Name of the verb executed by the operation.
                                  * 
                              * * string verb = 4; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
                                  * Human-readable status of the operation, if any.
                                  * 
                              * * string status_detail = 5; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
                                  * Human-readable status of the operation, if any.
                                  * 
                              * * string status_detail = 5; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
                                  * Identifies whether the user has requested cancellation
                                  * of the operation. Operations that have successfully been cancelled
                              @@ -130,49 +179,63 @@ public interface OperationMetadataOrBuilder extends
                                  * 
                              * * bool cancel_requested = 6; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
                                  * API version used to start the operation.
                                  * 
                              * * string api_version = 7; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
                                  * API version used to start the operation.
                                  * 
                              * * string api_version = 7; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return Whether the requestResource field is set. */ boolean hasRequestResource(); /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              * * .google.protobuf.Any request_resource = 8; + * * @return The requestResource. */ com.google.protobuf.Any getRequestResource(); /** + * + * *
                                  * The original request that started the operation.
                                  * 
                              @@ -182,15 +245,18 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder(); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - java.util.List - getStagesList(); + java.util.List getStagesList(); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -199,6 +265,8 @@ public interface OperationMetadataOrBuilder extends */ com.google.cloud.functions.v2beta.Stage getStages(int index); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              @@ -207,21 +275,24 @@ public interface OperationMetadataOrBuilder extends */ int getStagesCount(); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - java.util.List + java.util.List getStagesOrBuilderList(); /** + * + * *
                                  * Mechanism for reporting in-progress stages
                                  * 
                              * * repeated .google.cloud.functions.v2beta.Stage stages = 9; */ - com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder( - int index); + com.google.cloud.functions.v2beta.StageOrBuilder getStagesOrBuilder(int index); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java similarity index 74% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java index cb25708c..8071eeaa 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Location of the source in a Google Cloud Source Repository.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.RepoSource} */ -public final class RepoSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RepoSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.RepoSource) RepoSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RepoSource.newBuilder() to construct. private RepoSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RepoSource() { projectId_ = ""; repoName_ = ""; @@ -27,16 +45,15 @@ private RepoSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RepoSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RepoSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,54 +72,60 @@ private RepoSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - repoName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 3; - revision_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 4; - revision_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - revisionCase_ = 5; - revision_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - dir_ = s; - break; - } - case 56: { + repoName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 3; + revision_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 4; + revision_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 5; + revision_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - invertRegex_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + dir_ = s; + break; + } + case 56: + { + invertRegex_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,36 +133,41 @@ private RepoSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.RepoSource.class, com.google.cloud.functions.v2beta.RepoSource.Builder.class); + com.google.cloud.functions.v2beta.RepoSource.class, + com.google.cloud.functions.v2beta.RepoSource.Builder.class); } private int revisionCase_ = 0; private java.lang.Object revision_; + public enum RevisionCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BRANCH_NAME(3), TAG_NAME(4), COMMIT_SHA(5), REVISION_NOT_SET(0); private final int value; + private RevisionCase(int value) { this.value = value; } @@ -155,26 +183,32 @@ public static RevisionCase valueOf(int value) { public static RevisionCase forNumber(int value) { switch (value) { - case 3: return BRANCH_NAME; - case 4: return TAG_NAME; - case 5: return COMMIT_SHA; - case 0: return REVISION_NOT_SET; - default: return null; + case 3: + return BRANCH_NAME; + case 4: + return TAG_NAME; + case 5: + return COMMIT_SHA; + case 0: + return REVISION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RevisionCase - getRevisionCase() { - return RevisionCase.forNumber( - revisionCase_); + public RevisionCase getRevisionCase() { + return RevisionCase.forNumber(revisionCase_); } public static final int BRANCH_NAME_FIELD_NUMBER = 3; /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -182,12 +216,15 @@ public int getNumber() {
                                  * 
                              * * string branch_name = 3; + * * @return Whether the branchName field is set. */ public boolean hasBranchName() { return revisionCase_ == 3; } /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -195,6 +232,7 @@ public boolean hasBranchName() {
                                  * 
                              * * string branch_name = 3; + * * @return The branchName. */ public java.lang.String getBranchName() { @@ -205,8 +243,7 @@ public java.lang.String getBranchName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 3) { revision_ = s; @@ -215,6 +252,8 @@ public java.lang.String getBranchName() { } } /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -222,18 +261,17 @@ public java.lang.String getBranchName() {
                                  * 
                              * * string branch_name = 3; + * * @return The bytes for branchName. */ - public com.google.protobuf.ByteString - getBranchNameBytes() { + public com.google.protobuf.ByteString getBranchNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 3) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 3) { revision_ = b; } @@ -245,6 +283,8 @@ public java.lang.String getBranchName() { public static final int TAG_NAME_FIELD_NUMBER = 4; /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -252,12 +292,15 @@ public java.lang.String getBranchName() {
                                  * 
                              * * string tag_name = 4; + * * @return Whether the tagName field is set. */ public boolean hasTagName() { return revisionCase_ == 4; } /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -265,6 +308,7 @@ public boolean hasTagName() {
                                  * 
                              * * string tag_name = 4; + * * @return The tagName. */ public java.lang.String getTagName() { @@ -275,8 +319,7 @@ public java.lang.String getTagName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 4) { revision_ = s; @@ -285,6 +328,8 @@ public java.lang.String getTagName() { } } /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -292,18 +337,17 @@ public java.lang.String getTagName() {
                                  * 
                              * * string tag_name = 4; + * * @return The bytes for tagName. */ - public com.google.protobuf.ByteString - getTagNameBytes() { + public com.google.protobuf.ByteString getTagNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 4) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 4) { revision_ = b; } @@ -315,22 +359,28 @@ public java.lang.String getTagName() { public static final int COMMIT_SHA_FIELD_NUMBER = 5; /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return Whether the commitSha field is set. */ public boolean hasCommitSha() { return revisionCase_ == 5; } /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return The commitSha. */ public java.lang.String getCommitSha() { @@ -341,8 +391,7 @@ public java.lang.String getCommitSha() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 5) { revision_ = s; @@ -351,23 +400,24 @@ public java.lang.String getCommitSha() { } } /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return The bytes for commitSha. */ - public com.google.protobuf.ByteString - getCommitShaBytes() { + public com.google.protobuf.ByteString getCommitShaBytes() { java.lang.Object ref = ""; if (revisionCase_ == 5) { ref = revision_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 5) { revision_ = b; } @@ -380,12 +430,15 @@ public java.lang.String getCommitSha() { public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** + * + * *
                                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                                  * project ID requesting the build is assumed.
                                  * 
                              * * string project_id = 1; + * * @return The projectId. */ @java.lang.Override @@ -394,30 +447,30 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
                                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                                  * project ID requesting the build is assumed.
                                  * 
                              * * string project_id = 1; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -428,11 +481,14 @@ public java.lang.String getProjectId() { public static final int REPO_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object repoName_; /** + * + * *
                                  * Name of the Cloud Source Repository.
                                  * 
                              * * string repo_name = 2; + * * @return The repoName. */ @java.lang.Override @@ -441,29 +497,29 @@ public java.lang.String getRepoName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); repoName_ = s; return s; } } /** + * + * *
                                  * Name of the Cloud Source Repository.
                                  * 
                              * * string repo_name = 2; + * * @return The bytes for repoName. */ @java.lang.Override - public com.google.protobuf.ByteString - getRepoNameBytes() { + public com.google.protobuf.ByteString getRepoNameBytes() { java.lang.Object ref = repoName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); repoName_ = b; return b; } else { @@ -474,6 +530,8 @@ public java.lang.String getRepoName() { public static final int DIR_FIELD_NUMBER = 6; private volatile java.lang.Object dir_; /** + * + * *
                                  * 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
                              @@ -482,6 +540,7 @@ public java.lang.String getRepoName() {
                                  * 
                              * * string dir = 6; + * * @return The dir. */ @java.lang.Override @@ -490,14 +549,15 @@ public java.lang.String getDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dir_ = s; return s; } } /** + * + * *
                                  * 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
                              @@ -506,16 +566,15 @@ public java.lang.String getDir() {
                                  * 
                              * * string dir = 6; + * * @return The bytes for dir. */ @java.lang.Override - public com.google.protobuf.ByteString - getDirBytes() { + public com.google.protobuf.ByteString getDirBytes() { java.lang.Object ref = dir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dir_ = b; return b; } else { @@ -526,12 +585,15 @@ public java.lang.String getDir() { public static final int INVERT_REGEX_FIELD_NUMBER = 7; private boolean invertRegex_; /** + * + * *
                                  * Only trigger a build if the revision regex does NOT match the revision
                                  * regex.
                                  * 
                              * * bool invert_regex = 7; + * * @return The invertRegex. */ @java.lang.Override @@ -540,6 +602,7 @@ public boolean getInvertRegex() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -551,8 +614,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -602,8 +664,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dir_); } if (invertRegex_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, invertRegex_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, invertRegex_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -613,34 +674,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.RepoSource)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.RepoSource other = (com.google.cloud.functions.v2beta.RepoSource) obj; + com.google.cloud.functions.v2beta.RepoSource other = + (com.google.cloud.functions.v2beta.RepoSource) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getRepoName() - .equals(other.getRepoName())) return false; - if (!getDir() - .equals(other.getDir())) return false; - if (getInvertRegex() - != other.getInvertRegex()) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRepoName().equals(other.getRepoName())) return false; + if (!getDir().equals(other.getDir())) return false; + if (getInvertRegex() != other.getInvertRegex()) return false; if (!getRevisionCase().equals(other.getRevisionCase())) return false; switch (revisionCase_) { case 3: - if (!getBranchName() - .equals(other.getBranchName())) return false; + if (!getBranchName().equals(other.getBranchName())) return false; break; case 4: - if (!getTagName() - .equals(other.getTagName())) return false; + if (!getTagName().equals(other.getTagName())) return false; break; case 5: - if (!getCommitSha() - .equals(other.getCommitSha())) return false; + if (!getCommitSha().equals(other.getCommitSha())) return false; break; case 0: default: @@ -663,8 +718,7 @@ public int hashCode() { hash = (37 * hash) + DIR_FIELD_NUMBER; hash = (53 * hash) + getDir().hashCode(); hash = (37 * hash) + INVERT_REGEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInvertRegex()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInvertRegex()); switch (revisionCase_) { case 3: hash = (37 * hash) + BRANCH_NAME_FIELD_NUMBER; @@ -686,118 +740,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.RepoSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.RepoSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.RepoSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.RepoSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.RepoSource 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.RepoSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.RepoSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2beta.RepoSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.RepoSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.RepoSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.RepoSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.RepoSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.RepoSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.RepoSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2beta.RepoSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Location of the source in a Google Cloud Source Repository.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.RepoSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.RepoSource) com.google.cloud.functions.v2beta.RepoSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_RepoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.RepoSource.class, com.google.cloud.functions.v2beta.RepoSource.Builder.class); + com.google.cloud.functions.v2beta.RepoSource.class, + com.google.cloud.functions.v2beta.RepoSource.Builder.class); } // Construct using com.google.cloud.functions.v2beta.RepoSource.newBuilder() @@ -805,16 +868,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -832,9 +894,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; } @java.lang.Override @@ -853,7 +915,8 @@ public com.google.cloud.functions.v2beta.RepoSource build() { @java.lang.Override public com.google.cloud.functions.v2beta.RepoSource buildPartial() { - com.google.cloud.functions.v2beta.RepoSource result = new com.google.cloud.functions.v2beta.RepoSource(this); + com.google.cloud.functions.v2beta.RepoSource result = + new com.google.cloud.functions.v2beta.RepoSource(this); if (revisionCase_ == 3) { result.revision_ = revision_; } @@ -876,38 +939,39 @@ public com.google.cloud.functions.v2beta.RepoSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.RepoSource)other); + return mergeFrom((com.google.cloud.functions.v2beta.RepoSource) other); } else { super.mergeFrom(other); return this; @@ -932,27 +996,31 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.RepoSource other) { setInvertRegex(other.getInvertRegex()); } switch (other.getRevisionCase()) { - case BRANCH_NAME: { - revisionCase_ = 3; - revision_ = other.revision_; - onChanged(); - break; - } - case TAG_NAME: { - revisionCase_ = 4; - revision_ = other.revision_; - onChanged(); - break; - } - case COMMIT_SHA: { - revisionCase_ = 5; - revision_ = other.revision_; - onChanged(); - break; - } - case REVISION_NOT_SET: { - break; - } + case BRANCH_NAME: + { + revisionCase_ = 3; + revision_ = other.revision_; + onChanged(); + break; + } + case TAG_NAME: + { + revisionCase_ = 4; + revision_ = other.revision_; + onChanged(); + break; + } + case COMMIT_SHA: + { + revisionCase_ = 5; + revision_ = other.revision_; + onChanged(); + break; + } + case REVISION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -982,12 +1050,12 @@ public Builder mergeFrom( } return this; } + private int revisionCase_ = 0; private java.lang.Object revision_; - public RevisionCase - getRevisionCase() { - return RevisionCase.forNumber( - revisionCase_); + + public RevisionCase getRevisionCase() { + return RevisionCase.forNumber(revisionCase_); } public Builder clearRevision() { @@ -997,8 +1065,9 @@ public Builder clearRevision() { return this; } - /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1006,6 +1075,7 @@ public Builder clearRevision() {
                                    * 
                              * * string branch_name = 3; + * * @return Whether the branchName field is set. */ @java.lang.Override @@ -1013,6 +1083,8 @@ public boolean hasBranchName() { return revisionCase_ == 3; } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1020,6 +1092,7 @@ public boolean hasBranchName() {
                                    * 
                              * * string branch_name = 3; + * * @return The branchName. */ @java.lang.Override @@ -1029,8 +1102,7 @@ public java.lang.String getBranchName() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 3) { revision_ = s; @@ -1041,6 +1113,8 @@ public java.lang.String getBranchName() { } } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1048,19 +1122,18 @@ public java.lang.String getBranchName() {
                                    * 
                              * * string branch_name = 3; + * * @return The bytes for branchName. */ @java.lang.Override - public com.google.protobuf.ByteString - getBranchNameBytes() { + public com.google.protobuf.ByteString getBranchNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 3) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 3) { revision_ = b; } @@ -1070,6 +1143,8 @@ public java.lang.String getBranchName() { } } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1077,20 +1152,22 @@ public java.lang.String getBranchName() {
                                    * 
                              * * string branch_name = 3; + * * @param value The branchName to set. * @return This builder for chaining. */ - public Builder setBranchName( - java.lang.String value) { + public Builder setBranchName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 3; + throw new NullPointerException(); + } + revisionCase_ = 3; revision_ = value; onChanged(); return this; } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1098,6 +1175,7 @@ public Builder setBranchName(
                                    * 
                              * * string branch_name = 3; + * * @return This builder for chaining. */ public Builder clearBranchName() { @@ -1109,6 +1187,8 @@ public Builder clearBranchName() { return this; } /** + * + * *
                                    * Regex matching branches to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1116,15 +1196,15 @@ public Builder clearBranchName() {
                                    * 
                              * * string branch_name = 3; + * * @param value The bytes for branchName to set. * @return This builder for chaining. */ - public Builder setBranchNameBytes( - com.google.protobuf.ByteString value) { + public Builder setBranchNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 3; revision_ = value; onChanged(); @@ -1132,6 +1212,8 @@ public Builder setBranchNameBytes( } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1139,6 +1221,7 @@ public Builder setBranchNameBytes(
                                    * 
                              * * string tag_name = 4; + * * @return Whether the tagName field is set. */ @java.lang.Override @@ -1146,6 +1229,8 @@ public boolean hasTagName() { return revisionCase_ == 4; } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1153,6 +1238,7 @@ public boolean hasTagName() {
                                    * 
                              * * string tag_name = 4; + * * @return The tagName. */ @java.lang.Override @@ -1162,8 +1248,7 @@ public java.lang.String getTagName() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 4) { revision_ = s; @@ -1174,6 +1259,8 @@ public java.lang.String getTagName() { } } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1181,19 +1268,18 @@ public java.lang.String getTagName() {
                                    * 
                              * * string tag_name = 4; + * * @return The bytes for tagName. */ @java.lang.Override - public com.google.protobuf.ByteString - getTagNameBytes() { + public com.google.protobuf.ByteString getTagNameBytes() { java.lang.Object ref = ""; if (revisionCase_ == 4) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 4) { revision_ = b; } @@ -1203,6 +1289,8 @@ public java.lang.String getTagName() { } } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1210,20 +1298,22 @@ public java.lang.String getTagName() {
                                    * 
                              * * string tag_name = 4; + * * @param value The tagName to set. * @return This builder for chaining. */ - public Builder setTagName( - java.lang.String value) { + public Builder setTagName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 4; + throw new NullPointerException(); + } + revisionCase_ = 4; revision_ = value; onChanged(); return this; } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1231,6 +1321,7 @@ public Builder setTagName(
                                    * 
                              * * string tag_name = 4; + * * @return This builder for chaining. */ public Builder clearTagName() { @@ -1242,6 +1333,8 @@ public Builder clearTagName() { return this; } /** + * + * *
                                    * Regex matching tags to build.
                                    * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -1249,15 +1342,15 @@ public Builder clearTagName() {
                                    * 
                              * * string tag_name = 4; + * * @param value The bytes for tagName to set. * @return This builder for chaining. */ - public Builder setTagNameBytes( - com.google.protobuf.ByteString value) { + public Builder setTagNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 4; revision_ = value; onChanged(); @@ -1265,11 +1358,14 @@ public Builder setTagNameBytes( } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @return Whether the commitSha field is set. */ @java.lang.Override @@ -1277,11 +1373,14 @@ public boolean hasCommitSha() { return revisionCase_ == 5; } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @return The commitSha. */ @java.lang.Override @@ -1291,8 +1390,7 @@ public java.lang.String getCommitSha() { ref = revision_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (revisionCase_ == 5) { revision_ = s; @@ -1303,24 +1401,25 @@ public java.lang.String getCommitSha() { } } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @return The bytes for commitSha. */ @java.lang.Override - public com.google.protobuf.ByteString - getCommitShaBytes() { + public com.google.protobuf.ByteString getCommitShaBytes() { java.lang.Object ref = ""; if (revisionCase_ == 5) { ref = revision_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (revisionCase_ == 5) { revision_ = b; } @@ -1330,30 +1429,35 @@ public java.lang.String getCommitSha() { } } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @param value The commitSha to set. * @return This builder for chaining. */ - public Builder setCommitSha( - java.lang.String value) { + public Builder setCommitSha(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - revisionCase_ = 5; + throw new NullPointerException(); + } + revisionCase_ = 5; revision_ = value; onChanged(); return this; } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @return This builder for chaining. */ public Builder clearCommitSha() { @@ -1365,20 +1469,22 @@ public Builder clearCommitSha() { return this; } /** + * + * *
                                    * Explicit commit SHA to build.
                                    * 
                              * * string commit_sha = 5; + * * @param value The bytes for commitSha to set. * @return This builder for chaining. */ - public Builder setCommitShaBytes( - com.google.protobuf.ByteString value) { + public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); revisionCase_ = 5; revision_ = value; onChanged(); @@ -1387,19 +1493,21 @@ public Builder setCommitShaBytes( private java.lang.Object projectId_ = ""; /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1408,21 +1516,22 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1430,57 +1539,64 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
                                    * ID of the project that owns the Cloud Source Repository. If omitted, the
                                    * project ID requesting the build is assumed.
                                    * 
                              * * string project_id = 1; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1488,18 +1604,20 @@ public Builder setProjectIdBytes( private java.lang.Object repoName_ = ""; /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @return The repoName. */ public java.lang.String getRepoName() { java.lang.Object ref = repoName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); repoName_ = s; return s; @@ -1508,20 +1626,21 @@ public java.lang.String getRepoName() { } } /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @return The bytes for repoName. */ - public com.google.protobuf.ByteString - getRepoNameBytes() { + public com.google.protobuf.ByteString getRepoNameBytes() { java.lang.Object ref = repoName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); repoName_ = b; return b; } else { @@ -1529,54 +1648,61 @@ public java.lang.String getRepoName() { } } /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @param value The repoName to set. * @return This builder for chaining. */ - public Builder setRepoName( - java.lang.String value) { + public Builder setRepoName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + repoName_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @return This builder for chaining. */ public Builder clearRepoName() { - + repoName_ = getDefaultInstance().getRepoName(); onChanged(); return this; } /** + * + * *
                                    * Name of the Cloud Source Repository.
                                    * 
                              * * string repo_name = 2; + * * @param value The bytes for repoName to set. * @return This builder for chaining. */ - public Builder setRepoNameBytes( - com.google.protobuf.ByteString value) { + public Builder setRepoNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repoName_ = value; onChanged(); return this; @@ -1584,6 +1710,8 @@ public Builder setRepoNameBytes( private java.lang.Object dir_ = ""; /** + * + * *
                                    * 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
                              @@ -1592,13 +1720,13 @@ public Builder setRepoNameBytes(
                                    * 
                              * * string dir = 6; + * * @return The dir. */ public java.lang.String getDir() { java.lang.Object ref = dir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dir_ = s; return s; @@ -1607,6 +1735,8 @@ 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
                              @@ -1615,15 +1745,14 @@ public java.lang.String getDir() {
                                    * 
                              * * string dir = 6; + * * @return The bytes for dir. */ - public com.google.protobuf.ByteString - getDirBytes() { + public com.google.protobuf.ByteString getDirBytes() { java.lang.Object ref = dir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dir_ = b; return b; } else { @@ -1631,6 +1760,8 @@ 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
                              @@ -1639,20 +1770,22 @@ public java.lang.String getDir() {
                                    * 
                              * * string dir = 6; + * * @param value The dir to set. * @return This builder for chaining. */ - public Builder setDir( - java.lang.String value) { + public Builder setDir(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dir_ = value; onChanged(); return this; } /** + * + * *
                                    * 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
                              @@ -1661,15 +1794,18 @@ public Builder setDir(
                                    * 
                              * * string dir = 6; + * * @return This builder for chaining. */ public Builder clearDir() { - + dir_ = getDefaultInstance().getDir(); onChanged(); return this; } /** + * + * *
                                    * 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
                              @@ -1678,29 +1814,32 @@ public Builder clearDir() {
                                    * 
                              * * string dir = 6; + * * @param value The bytes for dir to set. * @return This builder for chaining. */ - public Builder setDirBytes( - com.google.protobuf.ByteString value) { + public Builder setDirBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dir_ = value; onChanged(); return this; } - private boolean invertRegex_ ; + private boolean invertRegex_; /** + * + * *
                                    * Only trigger a build if the revision regex does NOT match the revision
                                    * regex.
                                    * 
                              * * bool invert_regex = 7; + * * @return The invertRegex. */ @java.lang.Override @@ -1708,39 +1847,45 @@ public boolean getInvertRegex() { return invertRegex_; } /** + * + * *
                                    * Only trigger a build if the revision regex does NOT match the revision
                                    * regex.
                                    * 
                              * * bool invert_regex = 7; + * * @param value The invertRegex to set. * @return This builder for chaining. */ public Builder setInvertRegex(boolean value) { - + invertRegex_ = value; onChanged(); return this; } /** + * + * *
                                    * Only trigger a build if the revision regex does NOT match the revision
                                    * regex.
                                    * 
                              * * bool invert_regex = 7; + * * @return This builder for chaining. */ public Builder clearInvertRegex() { - + invertRegex_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1750,12 +1895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.RepoSource) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.RepoSource) private static final com.google.cloud.functions.v2beta.RepoSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.RepoSource(); } @@ -1764,16 +1909,16 @@ public static com.google.cloud.functions.v2beta.RepoSource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepoSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RepoSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepoSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RepoSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1788,6 +1933,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.RepoSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java similarity index 79% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java index dd3fb54b..1b000682 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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 RepoSourceOrBuilder extends +public interface RepoSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.RepoSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -15,10 +33,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string branch_name = 3; + * * @return Whether the branchName field is set. */ boolean hasBranchName(); /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -26,10 +47,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string branch_name = 3; + * * @return The branchName. */ java.lang.String getBranchName(); /** + * + * *
                                  * Regex matching branches to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -37,12 +61,14 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string branch_name = 3; + * * @return The bytes for branchName. */ - com.google.protobuf.ByteString - getBranchNameBytes(); + com.google.protobuf.ByteString getBranchNameBytes(); /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -50,10 +76,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string tag_name = 4; + * * @return Whether the tagName field is set. */ boolean hasTagName(); /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -61,10 +90,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string tag_name = 4; + * * @return The tagName. */ java.lang.String getTagName(); /** + * + * *
                                  * Regex matching tags to build.
                                  * The syntax of the regular expressions accepted is the syntax accepted by
                              @@ -72,83 +104,103 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string tag_name = 4; + * * @return The bytes for tagName. */ - com.google.protobuf.ByteString - getTagNameBytes(); + com.google.protobuf.ByteString getTagNameBytes(); /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return Whether the commitSha field is set. */ boolean hasCommitSha(); /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return The commitSha. */ java.lang.String getCommitSha(); /** + * + * *
                                  * Explicit commit SHA to build.
                                  * 
                              * * string commit_sha = 5; + * * @return The bytes for commitSha. */ - com.google.protobuf.ByteString - getCommitShaBytes(); + com.google.protobuf.ByteString getCommitShaBytes(); /** + * + * *
                                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                                  * project ID requesting the build is assumed.
                                  * 
                              * * string project_id = 1; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
                                  * ID of the project that owns the Cloud Source Repository. If omitted, the
                                  * project ID requesting the build is assumed.
                                  * 
                              * * string project_id = 1; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
                                  * Name of the Cloud Source Repository.
                                  * 
                              * * string repo_name = 2; + * * @return The repoName. */ java.lang.String getRepoName(); /** + * + * *
                                  * Name of the Cloud Source Repository.
                                  * 
                              * * string repo_name = 2; + * * @return The bytes for repoName. */ - com.google.protobuf.ByteString - getRepoNameBytes(); + 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
                              @@ -157,10 +209,13 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string dir = 6; + * * @return The dir. */ 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
                              @@ -169,18 +224,21 @@ public interface RepoSourceOrBuilder extends
                                  * 
                              * * string dir = 6; + * * @return The bytes for dir. */ - com.google.protobuf.ByteString - getDirBytes(); + com.google.protobuf.ByteString getDirBytes(); /** + * + * *
                                  * Only trigger a build if the revision regex does NOT match the revision
                                  * regex.
                                  * 
                              * * bool invert_regex = 7; + * * @return The invertRegex. */ boolean getInvertRegex(); diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java similarity index 73% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java index 4873ee92..162e600c 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java @@ -1,9 +1,26 @@ +/* + * 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; /** + * + * *
                                * Configuration for a secret environment variable. It has the information
                                * necessary to fetch the secret value from secret manager and expose it as an
                              @@ -12,15 +29,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2beta.SecretEnvVar}
                                */
                              -public final class SecretEnvVar extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class SecretEnvVar extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.SecretEnvVar)
                                   SecretEnvVarOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use SecretEnvVar.newBuilder() to construct.
                                 private SecretEnvVar(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private SecretEnvVar() {
                                   key_ = "";
                                   projectId_ = "";
                              @@ -30,16 +48,15 @@ private SecretEnvVar() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new SecretEnvVar();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private SecretEnvVar(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -58,37 +75,41 @@ private SecretEnvVar(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            key_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              key_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            projectId_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              projectId_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            secret_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              secret_ = s;
                              +              break;
                              +            }
                              +          case 34:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            version_ = s;
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              version_ = s;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -96,34 +117,39 @@ private SecretEnvVar(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     this.unknownFields = unknownFields.build();
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2beta.SecretEnvVar.class, com.google.cloud.functions.v2beta.SecretEnvVar.Builder.class);
                              +            com.google.cloud.functions.v2beta.SecretEnvVar.class,
                              +            com.google.cloud.functions.v2beta.SecretEnvVar.Builder.class);
                                 }
                               
                                 public static final int KEY_FIELD_NUMBER = 1;
                                 private volatile java.lang.Object key_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The key. */ @java.lang.Override @@ -132,29 +158,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -165,6 +191,8 @@ public java.lang.String getKey() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** + * + * *
                                  * Project identifier (preferably project number but can also be the
                                  * project ID) of the project that contains the secret. If not set, it is
                              @@ -172,6 +200,7 @@ public java.lang.String getKey() {
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -180,14 +209,15 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
                                  * Project identifier (preferably project number but can also be the
                                  * project ID) of the project that contains the secret. If not set, it is
                              @@ -195,16 +225,15 @@ public java.lang.String getProjectId() {
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -215,11 +244,14 @@ public java.lang.String getProjectId() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ @java.lang.Override @@ -228,29 +260,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -261,6 +293,8 @@ public java.lang.String getSecret() { public static final int VERSION_FIELD_NUMBER = 4; private volatile java.lang.Object version_; /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -269,6 +303,7 @@ public java.lang.String getSecret() {
                                  * 
                              * * string version = 4; + * * @return The version. */ @java.lang.Override @@ -277,14 +312,15 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -293,16 +329,15 @@ public java.lang.String getVersion() {
                                  * 
                              * * string version = 4; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -311,6 +346,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,8 +358,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -365,21 +400,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.SecretEnvVar)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.SecretEnvVar other = (com.google.cloud.functions.v2beta.SecretEnvVar) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getSecret() - .equals(other.getSecret())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; + com.google.cloud.functions.v2beta.SecretEnvVar other = + (com.google.cloud.functions.v2beta.SecretEnvVar) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getSecret().equals(other.getSecret())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -404,97 +436,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SecretEnvVar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.SecretEnvVar 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.SecretEnvVar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.SecretEnvVar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.SecretEnvVar parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.SecretEnvVar parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.SecretEnvVar parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2beta.SecretEnvVar prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Configuration for a secret environment variable. It has the information
                                  * necessary to fetch the secret value from secret manager and expose it as an
                              @@ -503,21 +542,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2beta.SecretEnvVar}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.SecretEnvVar)
                                     com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_SecretEnvVar_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2beta.SecretEnvVar.class, com.google.cloud.functions.v2beta.SecretEnvVar.Builder.class);
                              +              com.google.cloud.functions.v2beta.SecretEnvVar.class,
                              +              com.google.cloud.functions.v2beta.SecretEnvVar.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2beta.SecretEnvVar.newBuilder()
                              @@ -525,16 +566,15 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              -      }
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -550,9 +590,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -571,7 +611,8 @@ public com.google.cloud.functions.v2beta.SecretEnvVar build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2beta.SecretEnvVar buildPartial() {
                              -      com.google.cloud.functions.v2beta.SecretEnvVar result = new com.google.cloud.functions.v2beta.SecretEnvVar(this);
                              +      com.google.cloud.functions.v2beta.SecretEnvVar result =
                              +          new com.google.cloud.functions.v2beta.SecretEnvVar(this);
                                     result.key_ = key_;
                                     result.projectId_ = projectId_;
                                     result.secret_ = secret_;
                              @@ -584,38 +625,39 @@ public com.google.cloud.functions.v2beta.SecretEnvVar buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2beta.SecretEnvVar)other);
                              +        return mergeFrom((com.google.cloud.functions.v2beta.SecretEnvVar) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -671,18 +713,20 @@ public Builder mergeFrom(
                               
                                   private java.lang.Object key_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -691,20 +735,21 @@ public java.lang.String getKey() { } } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -712,54 +757,61 @@ public java.lang.String getKey() { } } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
                                    * Name of the environment variable.
                                    * 
                              * * string key = 1; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; @@ -767,6 +819,8 @@ public Builder setKeyBytes( private java.lang.Object projectId_ = ""; /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -774,13 +828,13 @@ public Builder setKeyBytes(
                                    * 
                              * * string project_id = 2; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -789,6 +843,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -796,15 +852,14 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -812,6 +867,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -819,20 +876,22 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -840,15 +899,18 @@ public Builder setProjectId(
                                    * 
                              * * string project_id = 2; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferably project number but can also be the
                                    * project ID) of the project that contains the secret. If not set, it is
                              @@ -856,16 +918,16 @@ public Builder clearProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -873,18 +935,20 @@ public Builder setProjectIdBytes( private java.lang.Object secret_ = ""; /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -893,20 +957,21 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -914,54 +979,61 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret( - java.lang.String value) { + public Builder setSecret(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes( - com.google.protobuf.ByteString value) { + public Builder setSecretBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; @@ -969,6 +1041,8 @@ public Builder setSecretBytes( private java.lang.Object version_ = ""; /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -977,13 +1051,13 @@ public Builder setSecretBytes(
                                    * 
                              * * string version = 4; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -992,6 +1066,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1000,15 +1076,14 @@ public java.lang.String getVersion() {
                                    * 
                              * * string version = 4; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -1016,6 +1091,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1024,20 +1101,22 @@ public java.lang.String getVersion() {
                                    * 
                              * * string version = 4; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1046,15 +1125,18 @@ public Builder setVersion(
                                    * 
                              * * string version = 4; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * recommended to use a numeric version for secret environment variables as
                              @@ -1063,23 +1145,23 @@ public Builder clearVersion() {
                                    * 
                              * * string version = 4; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1089,12 +1171,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.SecretEnvVar) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.SecretEnvVar) private static final com.google.cloud.functions.v2beta.SecretEnvVar DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.SecretEnvVar(); } @@ -1103,16 +1185,16 @@ public static com.google.cloud.functions.v2beta.SecretEnvVar getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretEnvVar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretEnvVar(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretEnvVar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretEnvVar(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1127,6 +1209,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.SecretEnvVar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java similarity index 71% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java index 65dd90a9..1bd7bf7b 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVarOrBuilder.java @@ -1,33 +1,56 @@ +/* + * 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 SecretEnvVarOrBuilder extends +public interface SecretEnvVarOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.SecretEnvVar) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
                                  * Name of the environment variable.
                                  * 
                              * * string key = 1; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
                                  * Project identifier (preferably project number but can also be the
                                  * project ID) of the project that contains the secret. If not set, it is
                              @@ -35,10 +58,13 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
                                  * Project identifier (preferably project number but can also be the
                                  * project ID) of the project that contains the secret. If not set, it is
                              @@ -46,32 +72,39 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ java.lang.String getSecret(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - com.google.protobuf.ByteString - getSecretBytes(); + com.google.protobuf.ByteString getSecretBytes(); /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -80,10 +113,13 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string version = 4; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
                                  * Version of the secret (version number or the string 'latest'). It is
                                  * recommended to use a numeric version for secret environment variables as
                              @@ -92,8 +128,8 @@ public interface SecretEnvVarOrBuilder extends
                                  * 
                              * * string version = 4; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java similarity index 76% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java index ff52bd97..56eef89d 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java @@ -1,9 +1,26 @@ +/* + * 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; /** + * + * *
                                * Configuration for a secret volume. It has the information necessary to fetch
                                * the secret value from secret manager and make it available as files mounted
                              @@ -12,15 +29,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2beta.SecretVolume}
                                */
                              -public final class SecretVolume extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class SecretVolume extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.SecretVolume)
                                   SecretVolumeOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use SecretVolume.newBuilder() to construct.
                                 private SecretVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private SecretVolume() {
                                   mountPath_ = "";
                                   projectId_ = "";
                              @@ -30,16 +48,15 @@ private SecretVolume() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new SecretVolume();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private SecretVolume(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -59,40 +76,48 @@ private SecretVolume(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            mountPath_ = s;
                              -            break;
                              -          }
                              -          case 18: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              mountPath_ = s;
                              +              break;
                              +            }
                              +          case 18:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            projectId_ = s;
                              -            break;
                              -          }
                              -          case 26: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              projectId_ = s;
                              +              break;
                              +            }
                              +          case 26:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            secret_ = s;
                              -            break;
                              -          }
                              -          case 34: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              versions_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000001;
                              +              secret_ = s;
                              +              break;
                                           }
                              -            versions_.add(
                              -                input.readMessage(com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +          case 34:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                versions_ =
                              +                    new java.util.ArrayList<
                              +                        com.google.cloud.functions.v2beta.SecretVolume.SecretVersion>();
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              versions_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.parser(),
                              +                      extensionRegistry));
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -100,8 +125,7 @@ private SecretVolume(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000001) != 0)) {
                                       versions_ = java.util.Collections.unmodifiableList(versions_);
                              @@ -110,24 +134,30 @@ private SecretVolume(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2beta.SecretVolume.class, com.google.cloud.functions.v2beta.SecretVolume.Builder.class);
                              +            com.google.cloud.functions.v2beta.SecretVolume.class,
                              +            com.google.cloud.functions.v2beta.SecretVolume.Builder.class);
                                 }
                               
                              -  public interface SecretVersionOrBuilder extends
                              +  public interface SecretVersionOrBuilder
                              +      extends
                                     // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.SecretVolume.SecretVersion)
                                     com.google.protobuf.MessageOrBuilder {
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferable to use `latest` version with secret volumes as secret value
                              @@ -135,10 +165,13 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferable to use `latest` version with secret volumes as secret value
                              @@ -146,12 +179,14 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -160,10 +195,13 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string path = 2; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -172,27 +210,30 @@ public interface SecretVersionOrBuilder extends
                                    * 
                              * * string path = 2; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); } /** + * + * *
                                  * Configuration for a single version.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.SecretVolume.SecretVersion} */ - public static final class SecretVersion extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SecretVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.SecretVolume.SecretVersion) SecretVersionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SecretVersion.newBuilder() to construct. private SecretVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SecretVersion() { version_ = ""; path_ = ""; @@ -200,16 +241,15 @@ private SecretVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecretVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SecretVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -228,25 +268,27 @@ private SecretVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + version_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - path_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + path_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -254,29 +296,33 @@ private SecretVersion( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; + + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.class, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.class, + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferable to use `latest` version with secret volumes as secret value
                              @@ -284,6 +330,7 @@ private SecretVersion(
                                    * 
                              * * string version = 1; + * * @return The version. */ @java.lang.Override @@ -292,14 +339,15 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
                                    * Version of the secret (version number or the string 'latest'). It is
                                    * preferable to use `latest` version with secret volumes as secret value
                              @@ -307,16 +355,15 @@ public java.lang.String getVersion() {
                                    * 
                              * * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -327,6 +374,8 @@ public java.lang.String getVersion() { public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -335,6 +384,7 @@ public java.lang.String getVersion() {
                                    * 
                              * * string path = 2; + * * @return The path. */ @java.lang.Override @@ -343,14 +393,15 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** + * + * *
                                    * Relative path of the file under the mount path where the secret value for
                                    * this version will be fetched and made available. For example, setting the
                              @@ -359,16 +410,15 @@ public java.lang.String getPath() {
                                    * 
                              * * string path = 2; + * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -377,6 +427,7 @@ public java.lang.String getPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,8 +439,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } @@ -419,17 +469,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.SecretVolume.SecretVersion)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion other = (com.google.cloud.functions.v2beta.SecretVolume.SecretVersion) obj; + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion other = + (com.google.cloud.functions.v2beta.SecretVolume.SecretVersion) obj; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getPath() - .equals(other.getPath())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getPath().equals(other.getPath())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -451,87 +500,94 @@ public int hashCode() { } public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SecretVolume.SecretVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion 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.SecretVolume.SecretVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.functions.v2beta.SecretVolume.SecretVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -541,27 +597,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                                    * Configuration for a single version.
                                    * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.SecretVolume.SecretVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.SecretVolume.SecretVersion) com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder { - 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; + 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; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.class, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder.class); + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.class, + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder.class); } // Construct using com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.newBuilder() @@ -569,16 +630,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -590,13 +650,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor; } @java.lang.Override - public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion getDefaultInstanceForType() { + public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion + getDefaultInstanceForType() { return com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance(); } @@ -611,7 +672,8 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion build() { @java.lang.Override public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion buildPartial() { - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion result = new com.google.cloud.functions.v2beta.SecretVolume.SecretVersion(this); + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion result = + new com.google.cloud.functions.v2beta.SecretVolume.SecretVersion(this); result.version_ = version_; result.path_ = path_; onBuilt(); @@ -622,38 +684,41 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.SecretVolume.SecretVersion)other); + return mergeFrom((com.google.cloud.functions.v2beta.SecretVolume.SecretVersion) other); } else { super.mergeFrom(other); return this; @@ -661,7 +726,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.SecretVolume.SecretVersion other) { - if (other == com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance()) return this; + if (other + == com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance()) + return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -689,7 +756,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.SecretVolume.SecretVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.SecretVolume.SecretVersion) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -701,6 +770,8 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -708,13 +779,13 @@ public Builder mergeFrom(
                                      * 
                              * * string version = 1; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -723,6 +794,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -730,15 +803,14 @@ public java.lang.String getVersion() {
                                      * 
                              * * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -746,6 +818,8 @@ public java.lang.String getVersion() { } } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -753,20 +827,22 @@ public java.lang.String getVersion() {
                                      * 
                              * * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -774,15 +850,18 @@ public Builder setVersion(
                                      * 
                              * * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
                                      * Version of the secret (version number or the string 'latest'). It is
                                      * preferable to use `latest` version with secret volumes as secret value
                              @@ -790,16 +869,16 @@ public Builder clearVersion() {
                                      * 
                              * * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -807,6 +886,8 @@ public Builder setVersionBytes( private java.lang.Object path_ = ""; /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -815,13 +896,13 @@ public Builder setVersionBytes(
                                      * 
                              * * string path = 2; + * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -830,6 +911,8 @@ public java.lang.String getPath() { } } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -838,15 +921,14 @@ public java.lang.String getPath() {
                                      * 
                              * * string path = 2; + * * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -854,6 +936,8 @@ public java.lang.String getPath() { } } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -862,20 +946,22 @@ public java.lang.String getPath() {
                                      * 
                              * * string path = 2; + * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath( - java.lang.String value) { + public Builder setPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -884,15 +970,18 @@ public Builder setPath(
                                      * 
                              * * string path = 2; + * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** + * + * *
                                      * Relative path of the file under the mount path where the secret value for
                                      * this version will be fetched and made available. For example, setting the
                              @@ -901,20 +990,21 @@ public Builder clearPath() {
                                      * 
                              * * string path = 2; + * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { + public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -927,30 +1017,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.SecretVolume.SecretVersion) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.SecretVolume.SecretVersion) - private static final com.google.cloud.functions.v2beta.SecretVolume.SecretVersion DEFAULT_INSTANCE; + private static final com.google.cloud.functions.v2beta.SecretVolume.SecretVersion + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.SecretVolume.SecretVersion(); } - public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion getDefaultInstance() { + public static com.google.cloud.functions.v2beta.SecretVolume.SecretVersion + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecretVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecretVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecretVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,15 +1054,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion getDefaultInstanceForType() { + public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int MOUNT_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object mountPath_; /** + * + * *
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -980,6 +1074,7 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion getDefaultIn
                                  * 
                              * * string mount_path = 1; + * * @return The mountPath. */ @java.lang.Override @@ -988,14 +1083,15 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** + * + * *
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1005,16 +1101,15 @@ public java.lang.String getMountPath() {
                                  * 
                              * * string mount_path = 1; + * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1025,6 +1120,8 @@ public java.lang.String getMountPath() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** + * + * *
                                  * Project identifier (preferably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it is
                              @@ -1032,6 +1129,7 @@ public java.lang.String getMountPath() {
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -1040,14 +1138,15 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
                                  * Project identifier (preferably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it is
                              @@ -1055,16 +1154,15 @@ public java.lang.String getProjectId() {
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1075,11 +1173,14 @@ public java.lang.String getProjectId() { public static final int SECRET_FIELD_NUMBER = 3; private volatile java.lang.Object secret_; /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ @java.lang.Override @@ -1088,29 +1189,29 @@ public java.lang.String getSecret() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; } } /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -1121,6 +1222,8 @@ public java.lang.String getSecret() { public static final int VERSIONS_FIELD_NUMBER = 4; private java.util.List versions_; /** + * + * *
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1130,10 +1233,13 @@ public java.lang.String getSecret() {
                                  * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                                  */
                                 @java.lang.Override
                              -  public java.util.List getVersionsList() {
                              +  public java.util.List
                              +      getVersionsList() {
                                   return versions_;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1143,11 +1249,14 @@ public java.util.Listrepeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                                  */
                                 @java.lang.Override
                              -  public java.util.List 
                              +  public java.util.List<
                              +          ? extends com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder>
                                     getVersionsOrBuilderList() {
                                   return versions_;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1161,6 +1270,8 @@ public int getVersionsCount() {
                                   return versions_.size();
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1174,6 +1285,8 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion getVersions(
                                   return versions_.get(index);
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -1189,6 +1302,7 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder get
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -1200,8 +1314,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) {
                                     com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_);
                                   }
                              @@ -1233,8 +1346,7 @@ public int getSerializedSize() {
                                     size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secret_);
                                   }
                                   for (int i = 0; i < versions_.size(); i++) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(4, versions_.get(i));
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, versions_.get(i));
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -1244,21 +1356,18 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2beta.SecretVolume)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v2beta.SecretVolume other = (com.google.cloud.functions.v2beta.SecretVolume) obj;
                              +    com.google.cloud.functions.v2beta.SecretVolume other =
                              +        (com.google.cloud.functions.v2beta.SecretVolume) obj;
                               
                              -    if (!getMountPath()
                              -        .equals(other.getMountPath())) return false;
                              -    if (!getProjectId()
                              -        .equals(other.getProjectId())) return false;
                              -    if (!getSecret()
                              -        .equals(other.getSecret())) return false;
                              -    if (!getVersionsList()
                              -        .equals(other.getVersionsList())) return false;
                              +    if (!getMountPath().equals(other.getMountPath())) return false;
                              +    if (!getProjectId().equals(other.getProjectId())) return false;
                              +    if (!getSecret().equals(other.getSecret())) return false;
                              +    if (!getVersionsList().equals(other.getVersionsList())) return false;
                                   if (!unknownFields.equals(other.unknownFields)) return false;
                                   return true;
                                 }
                              @@ -1285,97 +1394,104 @@ public int hashCode() {
                                   return hash;
                                 }
                               
                              -  public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(
                              -      java.nio.ByteBuffer data)
                              +  public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(java.nio.ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.SecretVolume parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SecretVolume 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.SecretVolume parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(java.io.InputStream input)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2beta.SecretVolume parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2beta.SecretVolume parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SecretVolume parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SecretVolume parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              +
                                 public static Builder newBuilder(com.google.cloud.functions.v2beta.SecretVolume prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Configuration for a secret volume. It has the information necessary to fetch
                                  * the secret value from secret manager and make it available as files mounted
                              @@ -1384,21 +1500,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2beta.SecretVolume}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.SecretVolume)
                                     com.google.cloud.functions.v2beta.SecretVolumeOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_SecretVolume_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2beta.SecretVolume.class, com.google.cloud.functions.v2beta.SecretVolume.Builder.class);
                              +              com.google.cloud.functions.v2beta.SecretVolume.class,
                              +              com.google.cloud.functions.v2beta.SecretVolume.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2beta.SecretVolume.newBuilder()
                              @@ -1406,17 +1524,17 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getVersionsFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -1436,9 +1554,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -1457,7 +1575,8 @@ public com.google.cloud.functions.v2beta.SecretVolume build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2beta.SecretVolume buildPartial() {
                              -      com.google.cloud.functions.v2beta.SecretVolume result = new com.google.cloud.functions.v2beta.SecretVolume(this);
                              +      com.google.cloud.functions.v2beta.SecretVolume result =
                              +          new com.google.cloud.functions.v2beta.SecretVolume(this);
                                     int from_bitField0_ = bitField0_;
                                     result.mountPath_ = mountPath_;
                                     result.projectId_ = projectId_;
                              @@ -1479,38 +1598,39 @@ public com.google.cloud.functions.v2beta.SecretVolume buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2beta.SecretVolume)other);
                              +        return mergeFrom((com.google.cloud.functions.v2beta.SecretVolume) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1549,9 +1669,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.SecretVolume other) {
                                           versionsBuilder_ = null;
                                           versions_ = other.versions_;
                                           bitField0_ = (bitField0_ & ~0x00000001);
                              -            versionsBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getVersionsFieldBuilder() : null;
                              +            versionsBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getVersionsFieldBuilder()
                              +                    : null;
                                         } else {
                                           versionsBuilder_.addAllMessages(other.versions_);
                                         }
                              @@ -1585,10 +1706,13 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object mountPath_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1598,13 +1722,13 @@ public Builder mergeFrom(
                                    * 
                              * * string mount_path = 1; + * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -1613,6 +1737,8 @@ public java.lang.String getMountPath() { } } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1622,15 +1748,14 @@ public java.lang.String getMountPath() {
                                    * 
                              * * string mount_path = 1; + * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -1638,6 +1763,8 @@ public java.lang.String getMountPath() { } } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1647,20 +1774,22 @@ public java.lang.String getMountPath() {
                                    * 
                              * * string mount_path = 1; + * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath( - java.lang.String value) { + public Builder setMountPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mountPath_ = value; onChanged(); return this; } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1670,15 +1799,18 @@ public Builder setMountPath(
                                    * 
                              * * string mount_path = 1; + * * @return This builder for chaining. */ public Builder clearMountPath() { - + mountPath_ = getDefaultInstance().getMountPath(); onChanged(); return this; } /** + * + * *
                                    * The path within the container to mount the secret volume. For example,
                                    * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -1688,16 +1820,16 @@ public Builder clearMountPath() {
                                    * 
                              * * string mount_path = 1; + * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes( - com.google.protobuf.ByteString value) { + public Builder setMountPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mountPath_ = value; onChanged(); return this; @@ -1705,6 +1837,8 @@ public Builder setMountPathBytes( private java.lang.Object projectId_ = ""; /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1712,13 +1846,13 @@ public Builder setMountPathBytes(
                                    * 
                              * * string project_id = 2; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -1727,6 +1861,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1734,15 +1870,14 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -1750,6 +1885,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1757,20 +1894,22 @@ public java.lang.String getProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1778,15 +1917,18 @@ public Builder setProjectId(
                                    * 
                              * * string project_id = 2; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
                                    * Project identifier (preferably project number but can also be the project
                                    * ID) of the project that contains the secret. If not set, it is
                              @@ -1794,16 +1936,16 @@ public Builder clearProjectId() {
                                    * 
                              * * string project_id = 2; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -1811,18 +1953,20 @@ public Builder setProjectIdBytes( private java.lang.Object secret_ = ""; /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The secret. */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secret_ = s; return s; @@ -1831,20 +1975,21 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - public com.google.protobuf.ByteString - getSecretBytes() { + public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secret_ = b; return b; } else { @@ -1852,72 +1997,87 @@ public java.lang.String getSecret() { } } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The secret to set. * @return This builder for chaining. */ - public Builder setSecret( - java.lang.String value) { + public Builder setSecret(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secret_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @return This builder for chaining. */ public Builder clearSecret() { - + secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** + * + * *
                                    * Name of the secret in secret manager (not the full resource name).
                                    * 
                              * * string secret = 3; + * * @param value The bytes for secret to set. * @return This builder for chaining. */ - public Builder setSecretBytes( - com.google.protobuf.ByteString value) { + public Builder setSecretBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secret_ = value; onChanged(); return this; } private java.util.List versions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - versions_ = new java.util.ArrayList(versions_); + versions_ = + new java.util.ArrayList( + versions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretVolume.SecretVersion, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder> versionsBuilder_; + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion, + com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder, + com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder> + versionsBuilder_; /** + * + * *
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -1926,7 +2086,8 @@ private void ensureVersionsIsMutable() {
                                    *
                                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                                    */
                              -    public java.util.List getVersionsList() {
                              +    public java.util.List
                              +        getVersionsList() {
                                     if (versionsBuilder_ == null) {
                                       return java.util.Collections.unmodifiableList(versions_);
                                     } else {
                              @@ -1934,6 +2095,8 @@ public java.util.List
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -1950,6 +2113,8 @@ public int getVersionsCount() {
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -1966,6 +2131,8 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion getVersions(
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -1989,6 +2156,8 @@ public Builder setVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -1998,7 +2167,8 @@ public Builder setVersions(
                                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                                    */
                                   public Builder setVersions(
                              -        int index, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder builderForValue) {
                              +        int index,
                              +        com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder builderForValue) {
                                     if (versionsBuilder_ == null) {
                                       ensureVersionsIsMutable();
                                       versions_.set(index, builderForValue.build());
                              @@ -2009,6 +2179,8 @@ public Builder setVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2031,6 +2203,8 @@ public Builder addVersions(com.google.cloud.functions.v2beta.SecretVolume.Secret
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2054,6 +2228,8 @@ public Builder addVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2074,6 +2250,8 @@ public Builder addVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2083,7 +2261,8 @@ public Builder addVersions(
                                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                                    */
                                   public Builder addVersions(
                              -        int index, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder builderForValue) {
                              +        int index,
                              +        com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder builderForValue) {
                                     if (versionsBuilder_ == null) {
                                       ensureVersionsIsMutable();
                                       versions_.add(index, builderForValue.build());
                              @@ -2094,6 +2273,8 @@ public Builder addVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2103,11 +2284,11 @@ public Builder addVersions(
                                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                                    */
                                   public Builder addAllVersions(
                              -        java.lang.Iterable values) {
                              +        java.lang.Iterable
                              +            values) {
                                     if (versionsBuilder_ == null) {
                                       ensureVersionsIsMutable();
                              -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
                              -            values, versions_);
                              +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versions_);
                                       onChanged();
                                     } else {
                                       versionsBuilder_.addAllMessages(values);
                              @@ -2115,6 +2296,8 @@ public Builder addAllVersions(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2134,6 +2317,8 @@ public Builder clearVersions() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2153,6 +2338,8 @@ public Builder removeVersions(int index) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2166,6 +2353,8 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder getV
                                     return getVersionsFieldBuilder().getBuilder(index);
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2174,14 +2363,17 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder getV
                                    *
                                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                                    */
                              -    public com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(
                              -        int index) {
                              +    public com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder
                              +        getVersionsOrBuilder(int index) {
                                     if (versionsBuilder_ == null) {
                              -        return versions_.get(index);  } else {
                              +        return versions_.get(index);
                              +      } else {
                                       return versionsBuilder_.getMessageOrBuilder(index);
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2190,8 +2382,9 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder get
                                    *
                                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                                    */
                              -    public java.util.List 
                              -         getVersionsOrBuilderList() {
                              +    public java.util.List<
                              +            ? extends com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder>
                              +        getVersionsOrBuilderList() {
                                     if (versionsBuilder_ != null) {
                                       return versionsBuilder_.getMessageOrBuilderList();
                                     } else {
                              @@ -2199,6 +2392,8 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder get
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2207,11 +2402,15 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder get
                                    *
                                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                                    */
                              -    public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder addVersionsBuilder() {
                              -      return getVersionsFieldBuilder().addBuilder(
                              -          com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance());
                              +    public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder
                              +        addVersionsBuilder() {
                              +      return getVersionsFieldBuilder()
                              +          .addBuilder(
                              +              com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance());
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2222,10 +2421,14 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder addV
                                    */
                                   public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder addVersionsBuilder(
                                       int index) {
                              -      return getVersionsFieldBuilder().addBuilder(
                              -          index, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance());
                              +      return getVersionsFieldBuilder()
                              +          .addBuilder(
                              +              index,
                              +              com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.getDefaultInstance());
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * List of secret versions to mount for this secret. If empty, the `latest`
                                    * version of the secret will be made available in a file named after the
                              @@ -2234,27 +2437,30 @@ public com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder addV
                                    *
                                    * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                                    */
                              -    public java.util.List 
                              -         getVersionsBuilderList() {
                              +    public java.util.List
                              +        getVersionsBuilderList() {
                                     return getVersionsFieldBuilder().getBuilderList();
                                   }
                              +
                                   private com.google.protobuf.RepeatedFieldBuilderV3<
                              -        com.google.cloud.functions.v2beta.SecretVolume.SecretVersion, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder> 
                              +            com.google.cloud.functions.v2beta.SecretVolume.SecretVersion,
                              +            com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder,
                              +            com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder>
                                       getVersionsFieldBuilder() {
                                     if (versionsBuilder_ == null) {
                              -        versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
                              -            com.google.cloud.functions.v2beta.SecretVolume.SecretVersion, com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder, com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder>(
                              -                versions_,
                              -                ((bitField0_ & 0x00000001) != 0),
                              -                getParentForChildren(),
                              -                isClean());
                              +        versionsBuilder_ =
                              +            new com.google.protobuf.RepeatedFieldBuilderV3<
                              +                com.google.cloud.functions.v2beta.SecretVolume.SecretVersion,
                              +                com.google.cloud.functions.v2beta.SecretVolume.SecretVersion.Builder,
                              +                com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder>(
                              +                versions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
                                       versions_ = null;
                                     }
                                     return versionsBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -2264,12 +2470,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.SecretVolume)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.SecretVolume)
                                 private static final com.google.cloud.functions.v2beta.SecretVolume DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.SecretVolume();
                                 }
                              @@ -2278,16 +2484,16 @@ public static com.google.cloud.functions.v2beta.SecretVolume getDefaultInstance(
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public SecretVolume parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new SecretVolume(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public SecretVolume parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new SecretVolume(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -2302,6 +2508,4 @@ public com.google.protobuf.Parser getParserForType() {
                                 public com.google.cloud.functions.v2beta.SecretVolume getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java
                              similarity index 81%
                              rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java
                              rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java
                              index 10e040c1..6497730d 100644
                              --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolumeOrBuilder.java
                              @@ -1,13 +1,31 @@
                              +/*
                              + * 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 SecretVolumeOrBuilder extends
                              +public interface SecretVolumeOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.SecretVolume)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -17,10 +35,13 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string mount_path = 1; + * * @return The mountPath. */ java.lang.String getMountPath(); /** + * + * *
                                  * The path within the container to mount the secret volume. For example,
                                  * setting the mount_path as `/etc/secrets` would mount the secret value files
                              @@ -30,12 +51,14 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string mount_path = 1; + * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString - getMountPathBytes(); + com.google.protobuf.ByteString getMountPathBytes(); /** + * + * *
                                  * Project identifier (preferably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it is
                              @@ -43,10 +66,13 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
                                  * Project identifier (preferably project number but can also be the project
                                  * ID) of the project that contains the secret. If not set, it is
                              @@ -54,32 +80,39 @@ public interface SecretVolumeOrBuilder extends
                                  * 
                              * * string project_id = 2; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The secret. */ java.lang.String getSecret(); /** + * + * *
                                  * Name of the secret in secret manager (not the full resource name).
                                  * 
                              * * string secret = 3; + * * @return The bytes for secret. */ - com.google.protobuf.ByteString - getSecretBytes(); + com.google.protobuf.ByteString getSecretBytes(); /** + * + * *
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -88,9 +121,10 @@ public interface SecretVolumeOrBuilder extends
                                  *
                                  * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                                  */
                              -  java.util.List 
                              -      getVersionsList();
                              +  java.util.List getVersionsList();
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -101,6 +135,8 @@ public interface SecretVolumeOrBuilder extends
                                  */
                                 com.google.cloud.functions.v2beta.SecretVolume.SecretVersion getVersions(int index);
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -111,6 +147,8 @@ public interface SecretVolumeOrBuilder extends
                                  */
                                 int getVersionsCount();
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              @@ -119,9 +157,11 @@ public interface SecretVolumeOrBuilder extends
                                  *
                                  * repeated .google.cloud.functions.v2beta.SecretVolume.SecretVersion versions = 4;
                                  */
                              -  java.util.List 
                              +  java.util.List
                                     getVersionsOrBuilderList();
                                 /**
                              +   *
                              +   *
                                  * 
                                  * List of secret versions to mount for this secret. If empty, the `latest`
                                  * version of the secret will be made available in a file named after the
                              diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java
                              similarity index 74%
                              rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java
                              rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java
                              index 62b004a4..e0d6a335 100644
                              --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java
                              +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java
                              @@ -1,9 +1,26 @@
                              +/*
                              + * 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;
                               
                               /**
                              + *
                              + *
                                * 
                                * Describes the Service being deployed.
                                * Currently Supported : Cloud Run (fully managed).
                              @@ -11,15 +28,16 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2beta.ServiceConfig}
                                */
                              -public final class ServiceConfig extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class ServiceConfig extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.ServiceConfig)
                                   ServiceConfigOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use ServiceConfig.newBuilder() to construct.
                                 private ServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              +
                                 private ServiceConfig() {
                                   service_ = "";
                                   availableMemory_ = "";
                              @@ -35,16 +53,15 @@ private ServiceConfig() {
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new ServiceConfig();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private ServiceConfig(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -64,112 +81,131 @@ private ServiceConfig(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 10:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            service_ = s;
                              -            break;
                              -          }
                              -          case 16: {
                              -
                              -            timeoutSeconds_ = input.readInt32();
                              -            break;
                              -          }
                              -          case 34: {
                              -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              -              environmentVariables_ = com.google.protobuf.MapField.newMapField(
                              -                  EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              -              mutable_bitField0_ |= 0x00000001;
                              +              service_ = s;
                              +              break;
                                           }
                              -            com.google.protobuf.MapEntry
                              -            environmentVariables__ = input.readMessage(
                              -                EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                              -            environmentVariables_.getMutableMap().put(
                              -                environmentVariables__.getKey(), environmentVariables__.getValue());
                              -            break;
                              -          }
                              -          case 40: {
                              -
                              -            maxInstanceCount_ = input.readInt32();
                              -            break;
                              -          }
                              -          case 50: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              -
                              -            vpcConnector_ = s;
                              -            break;
                              -          }
                              -          case 56: {
                              -            int rawValue = input.readEnum();
                              -
                              -            vpcConnectorEgressSettings_ = rawValue;
                              -            break;
                              -          }
                              -          case 64: {
                              -            int rawValue = input.readEnum();
                              +          case 16:
                              +            {
                              +              timeoutSeconds_ = input.readInt32();
                              +              break;
                              +            }
                              +          case 34:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                              +                environmentVariables_ =
                              +                    com.google.protobuf.MapField.newMapField(
                              +                        EnvironmentVariablesDefaultEntryHolder.defaultEntry);
                              +                mutable_bitField0_ |= 0x00000001;
                              +              }
                              +              com.google.protobuf.MapEntry
                              +                  environmentVariables__ =
                              +                      input.readMessage(
                              +                          EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(),
                              +                          extensionRegistry);
                              +              environmentVariables_
                              +                  .getMutableMap()
                              +                  .put(environmentVariables__.getKey(), environmentVariables__.getValue());
                              +              break;
                              +            }
                              +          case 40:
                              +            {
                              +              maxInstanceCount_ = input.readInt32();
                              +              break;
                              +            }
                              +          case 50:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            ingressSettings_ = rawValue;
                              -            break;
                              -          }
                              -          case 74: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              vpcConnector_ = s;
                              +              break;
                              +            }
                              +          case 56:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            uri_ = s;
                              -            break;
                              -          }
                              -          case 82: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              vpcConnectorEgressSettings_ = rawValue;
                              +              break;
                              +            }
                              +          case 64:
                              +            {
                              +              int rawValue = input.readEnum();
                               
                              -            serviceAccountEmail_ = s;
                              -            break;
                              -          }
                              -          case 96: {
                              +              ingressSettings_ = rawValue;
                              +              break;
                              +            }
                              +          case 74:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            minInstanceCount_ = input.readInt32();
                              -            break;
                              -          }
                              -          case 106: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +              uri_ = s;
                              +              break;
                              +            }
                              +          case 82:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            availableMemory_ = s;
                              -            break;
                              -          }
                              -          case 128: {
                              +              serviceAccountEmail_ = s;
                              +              break;
                              +            }
                              +          case 96:
                              +            {
                              +              minInstanceCount_ = input.readInt32();
                              +              break;
                              +            }
                              +          case 106:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            allTrafficOnLatestRevision_ = input.readBool();
                              -            break;
                              -          }
                              -          case 138: {
                              -            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              -              secretEnvironmentVariables_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000002;
                              +              availableMemory_ = s;
                              +              break;
                                           }
                              -            secretEnvironmentVariables_.add(
                              -                input.readMessage(com.google.cloud.functions.v2beta.SecretEnvVar.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          case 146: {
                              -            java.lang.String s = input.readStringRequireUtf8();
                              +          case 128:
                              +            {
                              +              allTrafficOnLatestRevision_ = input.readBool();
                              +              break;
                              +            }
                              +          case 138:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                              +                secretEnvironmentVariables_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000002;
                              +              }
                              +              secretEnvironmentVariables_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2beta.SecretEnvVar.parser(), extensionRegistry));
                              +              break;
                              +            }
                              +          case 146:
                              +            {
                              +              java.lang.String s = input.readStringRequireUtf8();
                               
                              -            revision_ = s;
                              -            break;
                              -          }
                              -          case 154: {
                              -            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                              -              secretVolumes_ = new java.util.ArrayList();
                              -              mutable_bitField0_ |= 0x00000004;
                              +              revision_ = s;
                              +              break;
                                           }
                              -            secretVolumes_.add(
                              -                input.readMessage(com.google.cloud.functions.v2beta.SecretVolume.parser(), extensionRegistry));
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +          case 154:
                              +            {
                              +              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                              +                secretVolumes_ =
                              +                    new java.util.ArrayList();
                              +                mutable_bitField0_ |= 0x00000004;
                              +              }
                              +              secretVolumes_.add(
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2beta.SecretVolume.parser(), extensionRegistry));
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -177,11 +213,11 @@ private ServiceConfig(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     if (((mutable_bitField0_ & 0x00000002) != 0)) {
                              -        secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                              +        secretEnvironmentVariables_ =
                              +            java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                                     }
                                     if (((mutable_bitField0_ & 0x00000004) != 0)) {
                                       secretVolumes_ = java.util.Collections.unmodifiableList(secretVolumes_);
                              @@ -190,32 +226,36 @@ private ServiceConfig(
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor;
                                 }
                               
                                 @SuppressWarnings({"rawtypes"})
                                 @java.lang.Override
                              -  protected com.google.protobuf.MapField internalGetMapField(
                              -      int number) {
                              +  protected com.google.protobuf.MapField internalGetMapField(int number) {
                                   switch (number) {
                                     case 4:
                                       return internalGetEnvironmentVariables();
                                     default:
                              -        throw new RuntimeException(
                              -            "Invalid map field number: " + number);
                              +        throw new RuntimeException("Invalid map field number: " + number);
                                   }
                                 }
                              +
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2beta.ServiceConfig.class, com.google.cloud.functions.v2beta.ServiceConfig.Builder.class);
                              +            com.google.cloud.functions.v2beta.ServiceConfig.class,
                              +            com.google.cloud.functions.v2beta.ServiceConfig.Builder.class);
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Available egress settings.
                                  * This controls what traffic is diverted through the VPC Access Connector
                              @@ -224,9 +264,10 @@ protected com.google.protobuf.MapField internalGetMapField(
                                  *
                                  * Protobuf enum {@code google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings}
                                  */
                              -  public enum VpcConnectorEgressSettings
                              -      implements com.google.protobuf.ProtocolMessageEnum {
                              +  public enum VpcConnectorEgressSettings implements com.google.protobuf.ProtocolMessageEnum {
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -235,6 +276,8 @@ public enum VpcConnectorEgressSettings */ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED(0), /** + * + * *
                                    * Use the VPC Access Connector only for private IP space from RFC1918.
                                    * 
                              @@ -243,6 +286,8 @@ public enum VpcConnectorEgressSettings */ PRIVATE_RANGES_ONLY(1), /** + * + * *
                                    * Force the use of VPC Access Connector for all egress traffic from the
                                    * function.
                              @@ -255,6 +300,8 @@ public enum VpcConnectorEgressSettings
                                   ;
                               
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -263,6 +310,8 @@ public enum VpcConnectorEgressSettings */ public static final int VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Use the VPC Access Connector only for private IP space from RFC1918.
                                    * 
                              @@ -271,6 +320,8 @@ public enum VpcConnectorEgressSettings */ public static final int PRIVATE_RANGES_ONLY_VALUE = 1; /** + * + * *
                                    * Force the use of VPC Access Connector for all egress traffic from the
                                    * function.
                              @@ -280,7 +331,6 @@ public enum VpcConnectorEgressSettings
                                    */
                                   public static final int ALL_TRAFFIC_VALUE = 2;
                               
                              -
                                   public final int getNumber() {
                                     if (this == UNRECOGNIZED) {
                                       throw new java.lang.IllegalArgumentException(
                              @@ -305,10 +355,14 @@ public static VpcConnectorEgressSettings valueOf(int value) {
                                    */
                                   public static VpcConnectorEgressSettings forNumber(int value) {
                                     switch (value) {
                              -        case 0: return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
                              -        case 1: return PRIVATE_RANGES_ONLY;
                              -        case 2: return ALL_TRAFFIC;
                              -        default: return null;
                              +        case 0:
                              +          return VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED;
                              +        case 1:
                              +          return PRIVATE_RANGES_ONLY;
                              +        case 2:
                              +          return ALL_TRAFFIC;
                              +        default:
                              +          return null;
                                     }
                                   }
                               
                              @@ -316,28 +370,28 @@ public static VpcConnectorEgressSettings forNumber(int value) {
                                       internalGetValueMap() {
                                     return internalValueMap;
                                   }
                              -    private static final com.google.protobuf.Internal.EnumLiteMap<
                              -        VpcConnectorEgressSettings> internalValueMap =
                              -          new com.google.protobuf.Internal.EnumLiteMap() {
                              -            public VpcConnectorEgressSettings findValueByNumber(int number) {
                              -              return VpcConnectorEgressSettings.forNumber(number);
                              -            }
                              -          };
                               
                              -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
                              -        getValueDescriptor() {
                              +    private static final com.google.protobuf.Internal.EnumLiteMap
                              +        internalValueMap =
                              +            new com.google.protobuf.Internal.EnumLiteMap() {
                              +              public VpcConnectorEgressSettings findValueByNumber(int number) {
                              +                return VpcConnectorEgressSettings.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() {
                              +
                              +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
                                     return getDescriptor();
                                   }
                              -    public static final com.google.protobuf.Descriptors.EnumDescriptor
                              -        getDescriptor() {
                              +
                              +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
                                     return com.google.cloud.functions.v2beta.ServiceConfig.getDescriptor().getEnumTypes().get(0);
                                   }
                               
                              @@ -346,8 +400,7 @@ public VpcConnectorEgressSettings findValueByNumber(int number) {
                                   public static VpcConnectorEgressSettings valueOf(
                                       com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                                     if (desc.getType() != getDescriptor()) {
                              -        throw new java.lang.IllegalArgumentException(
                              -          "EnumValueDescriptor is not for this type.");
                              +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
                                     }
                                     if (desc.getIndex() == -1) {
                                       return UNRECOGNIZED;
                              @@ -365,6 +418,8 @@ private VpcConnectorEgressSettings(int value) {
                                 }
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Available ingress settings.
                                  * This controls what traffic can reach the function.
                              @@ -373,9 +428,10 @@ private VpcConnectorEgressSettings(int value) {
                                  *
                                  * Protobuf enum {@code google.cloud.functions.v2beta.ServiceConfig.IngressSettings}
                                  */
                              -  public enum IngressSettings
                              -      implements com.google.protobuf.ProtocolMessageEnum {
                              +  public enum IngressSettings implements com.google.protobuf.ProtocolMessageEnum {
                                   /**
                              +     *
                              +     *
                                    * 
                                    * Unspecified.
                                    * 
                              @@ -384,6 +440,8 @@ public enum IngressSettings */ INGRESS_SETTINGS_UNSPECIFIED(0), /** + * + * *
                                    * Allow HTTP traffic from public and private sources.
                                    * 
                              @@ -392,6 +450,8 @@ public enum IngressSettings */ ALLOW_ALL(1), /** + * + * *
                                    * Allow HTTP traffic from only private VPC sources.
                                    * 
                              @@ -400,6 +460,8 @@ public enum IngressSettings */ ALLOW_INTERNAL_ONLY(2), /** + * + * *
                                    * Allow HTTP traffic from private VPC sources and through GCLB.
                                    * 
                              @@ -411,6 +473,8 @@ public enum IngressSettings ; /** + * + * *
                                    * Unspecified.
                                    * 
                              @@ -419,6 +483,8 @@ public enum IngressSettings */ public static final int INGRESS_SETTINGS_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Allow HTTP traffic from public and private sources.
                                    * 
                              @@ -427,6 +493,8 @@ public enum IngressSettings */ public static final int ALLOW_ALL_VALUE = 1; /** + * + * *
                                    * Allow HTTP traffic from only private VPC sources.
                                    * 
                              @@ -435,6 +503,8 @@ public enum IngressSettings */ public static final int ALLOW_INTERNAL_ONLY_VALUE = 2; /** + * + * *
                                    * Allow HTTP traffic from private VPC sources and through GCLB.
                                    * 
                              @@ -443,7 +513,6 @@ public enum IngressSettings */ public static final int ALLOW_INTERNAL_AND_GCLB_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -468,40 +537,44 @@ public static IngressSettings valueOf(int value) { */ public static IngressSettings forNumber(int value) { switch (value) { - case 0: return INGRESS_SETTINGS_UNSPECIFIED; - case 1: return ALLOW_ALL; - case 2: return ALLOW_INTERNAL_ONLY; - case 3: return ALLOW_INTERNAL_AND_GCLB; - default: return null; + case 0: + return INGRESS_SETTINGS_UNSPECIFIED; + case 1: + return ALLOW_ALL; + case 2: + return ALLOW_INTERNAL_ONLY; + case 3: + return ALLOW_INTERNAL_AND_GCLB; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - IngressSettings> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IngressSettings findValueByNumber(int number) { - return IngressSettings.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IngressSettings findValueByNumber(int number) { + return IngressSettings.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2beta.ServiceConfig.getDescriptor().getEnumTypes().get(1); } @@ -510,8 +583,7 @@ public IngressSettings findValueByNumber(int number) { public static IngressSettings valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -531,13 +603,18 @@ private IngressSettings(int value) { public static final int SERVICE_FIELD_NUMBER = 1; private volatile java.lang.Object service_; /** + * + * *
                                  * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The service. */ @java.lang.Override @@ -546,31 +623,33 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -581,6 +660,8 @@ public java.lang.String getService() { public static final int TIMEOUT_SECONDS_FIELD_NUMBER = 2; private int timeoutSeconds_; /** + * + * *
                                  * The function execution timeout. Execution is considered failed and
                                  * can be terminated if the function is not completed at the end of the
                              @@ -588,6 +669,7 @@ public java.lang.String getService() {
                                  * 
                              * * int32 timeout_seconds = 2; + * * @return The timeoutSeconds. */ @java.lang.Override @@ -598,6 +680,8 @@ public int getTimeoutSeconds() { public static final int AVAILABLE_MEMORY_FIELD_NUMBER = 13; private volatile java.lang.Object availableMemory_; /** + * + * *
                                  * The amount of memory available for a function.
                                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -608,6 +692,7 @@ public int getTimeoutSeconds() {
                                  * 
                              * * string available_memory = 13; + * * @return The availableMemory. */ @java.lang.Override @@ -616,14 +701,15 @@ public java.lang.String getAvailableMemory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availableMemory_ = s; return s; } } /** + * + * *
                                  * The amount of memory available for a function.
                                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -634,16 +720,15 @@ public java.lang.String getAvailableMemory() {
                                  * 
                              * * string available_memory = 13; + * * @return The bytes for availableMemory. */ @java.lang.Override - public com.google.protobuf.ByteString - getAvailableMemoryBytes() { + public com.google.protobuf.ByteString getAvailableMemoryBytes() { java.lang.Object ref = availableMemory_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); availableMemory_ = b; return b; } else { @@ -652,21 +737,22 @@ public java.lang.String getAvailableMemory() { } public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 4; + private static final class EnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); @@ -678,28 +764,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 4; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -707,11 +795,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -719,16 +808,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -736,10 +827,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 4; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -751,6 +842,8 @@ public java.lang.String getEnvironmentVariablesOrThrow( public static final int MAX_INSTANCE_COUNT_FIELD_NUMBER = 5; private int maxInstanceCount_; /** + * + * *
                                  * The limit on the maximum number of function instances that may coexist at a
                                  * given time.
                              @@ -765,6 +858,7 @@ public java.lang.String getEnvironmentVariablesOrThrow(
                                  * 
                              * * int32 max_instance_count = 5; + * * @return The maxInstanceCount. */ @java.lang.Override @@ -775,6 +869,8 @@ public int getMaxInstanceCount() { public static final int MIN_INSTANCE_COUNT_FIELD_NUMBER = 12; private int minInstanceCount_; /** + * + * *
                                  * The limit on the minimum number of function instances that may coexist at a
                                  * given time.
                              @@ -787,6 +883,7 @@ public int getMaxInstanceCount() {
                                  * 
                              * * int32 min_instance_count = 12; + * * @return The minInstanceCount. */ @java.lang.Override @@ -797,12 +894,15 @@ public int getMinInstanceCount() { public static final int VPC_CONNECTOR_FIELD_NUMBER = 6; private volatile java.lang.Object vpcConnector_; /** + * + * *
                                  * 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) = { ... } + * * @return The vpcConnector. */ @java.lang.Override @@ -811,30 +911,30 @@ public java.lang.String getVpcConnector() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; } } /** + * + * *
                                  * 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) = { ... } + * * @return The bytes for vpcConnector. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcConnectorBytes() { + public com.google.protobuf.ByteString getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -845,69 +945,100 @@ public java.lang.String getVpcConnector() { public static final int VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER = 7; private int vpcConnectorEgressSettings_; /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override + public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The vpcConnectorEgressSettings. */ - @java.lang.Override public com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { + @java.lang.Override + public com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings + getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings result = com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); - return result == null ? com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings result = + com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.valueOf( + vpcConnectorEgressSettings_); + return result == null + ? com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED + : result; } public static final int INGRESS_SETTINGS_FIELD_NUMBER = 8; private int ingressSettings_; /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override public int getIngressSettingsValue() { + @java.lang.Override + public int getIngressSettingsValue() { return ingressSettings_; } /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * * @return The ingressSettings. */ - @java.lang.Override public com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings getIngressSettings() { + @java.lang.Override + public com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings result = com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.valueOf(ingressSettings_); - return result == null ? com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings result = + com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.valueOf(ingressSettings_); + return result == null + ? com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.UNRECOGNIZED + : result; } public static final int URI_FIELD_NUMBER = 9; private volatile java.lang.Object uri_; /** + * + * *
                                  * Output only. URI of the Service deployed.
                                  * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ @java.lang.Override @@ -916,29 +1047,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
                                  * Output only. URI of the Service deployed.
                                  * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -949,12 +1080,15 @@ public java.lang.String getUri() { public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 10; private volatile java.lang.Object serviceAccountEmail_; /** + * + * *
                                  * The email of the service's service account. If empty, defaults to
                                  * `{project_number}-compute@developer.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 10; + * * @return The serviceAccountEmail. */ @java.lang.Override @@ -963,30 +1097,30 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** + * + * *
                                  * The email of the service's service account. If empty, defaults to
                                  * `{project_number}-compute@developer.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 10; + * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -997,6 +1131,8 @@ public java.lang.String getServiceAccountEmail() { public static final int ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER = 16; private boolean allTrafficOnLatestRevision_; /** + * + * *
                                  * Whether 100% of traffic is routed to the latest revision.
                                  * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -1006,6 +1142,7 @@ public java.lang.String getServiceAccountEmail() {
                                  * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @return The allTrafficOnLatestRevision. */ @java.lang.Override @@ -1014,68 +1151,87 @@ public boolean getAllTrafficOnLatestRevision() { } public static final int SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER = 17; - private java.util.List secretEnvironmentVariables_; + private java.util.List + secretEnvironmentVariables_; /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override - public java.util.List getSecretEnvironmentVariablesList() { + public java.util.List + getSecretEnvironmentVariablesList() { return secretEnvironmentVariables_; } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override - public java.util.List + public java.util.List getSecretEnvironmentVariablesOrBuilderList() { return secretEnvironmentVariables_; } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override public int getSecretEnvironmentVariablesCount() { return secretEnvironmentVariables_.size(); } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override public com.google.cloud.functions.v2beta.SecretEnvVar getSecretEnvironmentVariables(int index) { return secretEnvironmentVariables_.get(index); } /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ @java.lang.Override - public com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( - int index) { + public com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder + getSecretEnvironmentVariablesOrBuilder(int index) { return secretEnvironmentVariables_.get(index); } public static final int SECRET_VOLUMES_FIELD_NUMBER = 19; private java.util.List secretVolumes_; /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1087,6 +1243,8 @@ public java.util.List getSecretV return secretVolumes_; } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1094,11 +1252,13 @@ public java.util.List getSecretV * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ @java.lang.Override - public java.util.List + public java.util.List getSecretVolumesOrBuilderList() { return secretVolumes_; } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1110,6 +1270,8 @@ public int getSecretVolumesCount() { return secretVolumes_.size(); } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1121,6 +1283,8 @@ public com.google.cloud.functions.v2beta.SecretVolume getSecretVolumes(int index return secretVolumes_.get(index); } /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -1136,11 +1300,14 @@ public com.google.cloud.functions.v2beta.SecretVolumeOrBuilder getSecretVolumesO public static final int REVISION_FIELD_NUMBER = 18; private volatile java.lang.Object revision_; /** + * + * *
                                  * Output only. The name of service revision.
                                  * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revision. */ @java.lang.Override @@ -1149,29 +1316,29 @@ public java.lang.String getRevision() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; } } /** + * + * *
                                  * Output only. The name of service revision.
                                  * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revision. */ @java.lang.Override - public com.google.protobuf.ByteString - getRevisionBytes() { + public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revision_ = b; return b; } else { @@ -1180,6 +1347,7 @@ public java.lang.String getRevision() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1191,16 +1359,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } if (timeoutSeconds_ != 0) { output.writeInt32(2, timeoutSeconds_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, @@ -1211,10 +1377,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, vpcConnector_); } - if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + if (vpcConnectorEgressSettings_ + != com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings + .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { output.writeEnum(7, vpcConnectorEgressSettings_); } - if (ingressSettings_ != com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { + if (ingressSettings_ + != com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings + .INGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { output.writeEnum(8, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { @@ -1254,33 +1426,35 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } if (timeoutSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, timeoutSeconds_); - } - for (java.util.Map.Entry entry - : internalGetEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, environmentVariables__); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, timeoutSeconds_); + } + for (java.util.Map.Entry entry : + internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry environmentVariables__ = + EnvironmentVariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, environmentVariables__); } if (maxInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, maxInstanceCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxInstanceCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcConnector_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, vpcConnector_); } - if (vpcConnectorEgressSettings_ != com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, vpcConnectorEgressSettings_); + if (vpcConnectorEgressSettings_ + != com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings + .VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, vpcConnectorEgressSettings_); } - if (ingressSettings_ != com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.INGRESS_SETTINGS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, ingressSettings_); + if (ingressSettings_ + != com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings + .INGRESS_SETTINGS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, ingressSettings_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, uri_); @@ -1289,26 +1463,25 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, serviceAccountEmail_); } if (minInstanceCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(12, minInstanceCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, minInstanceCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableMemory_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, availableMemory_); } if (allTrafficOnLatestRevision_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, allTrafficOnLatestRevision_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(16, allTrafficOnLatestRevision_); } for (int i = 0; i < secretEnvironmentVariables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, secretEnvironmentVariables_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, secretEnvironmentVariables_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, revision_); } for (int i = 0; i < secretVolumes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, secretVolumes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, secretVolumes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1318,41 +1491,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.ServiceConfig)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.ServiceConfig other = (com.google.cloud.functions.v2beta.ServiceConfig) obj; - - if (!getService() - .equals(other.getService())) return false; - if (getTimeoutSeconds() - != other.getTimeoutSeconds()) return false; - if (!getAvailableMemory() - .equals(other.getAvailableMemory())) return false; - if (!internalGetEnvironmentVariables().equals( - other.internalGetEnvironmentVariables())) return false; - if (getMaxInstanceCount() - != other.getMaxInstanceCount()) return false; - if (getMinInstanceCount() - != other.getMinInstanceCount()) return false; - if (!getVpcConnector() - .equals(other.getVpcConnector())) return false; + com.google.cloud.functions.v2beta.ServiceConfig other = + (com.google.cloud.functions.v2beta.ServiceConfig) obj; + + if (!getService().equals(other.getService())) return false; + if (getTimeoutSeconds() != other.getTimeoutSeconds()) return false; + if (!getAvailableMemory().equals(other.getAvailableMemory())) return false; + if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) + return false; + if (getMaxInstanceCount() != other.getMaxInstanceCount()) return false; + if (getMinInstanceCount() != other.getMinInstanceCount()) return false; + if (!getVpcConnector().equals(other.getVpcConnector())) return false; if (vpcConnectorEgressSettings_ != other.vpcConnectorEgressSettings_) return false; if (ingressSettings_ != other.ingressSettings_) return false; - if (!getUri() - .equals(other.getUri())) return false; - if (!getServiceAccountEmail() - .equals(other.getServiceAccountEmail())) return false; - if (getAllTrafficOnLatestRevision() - != other.getAllTrafficOnLatestRevision()) return false; - if (!getSecretEnvironmentVariablesList() - .equals(other.getSecretEnvironmentVariablesList())) return false; - if (!getSecretVolumesList() - .equals(other.getSecretVolumesList())) return false; - if (!getRevision() - .equals(other.getRevision())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; + if (getAllTrafficOnLatestRevision() != other.getAllTrafficOnLatestRevision()) return false; + if (!getSecretEnvironmentVariablesList().equals(other.getSecretEnvironmentVariablesList())) + return false; + if (!getSecretVolumesList().equals(other.getSecretVolumesList())) return false; + if (!getRevision().equals(other.getRevision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1389,8 +1552,7 @@ public int hashCode() { hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountEmail().hashCode(); hash = (37 * hash) + ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllTrafficOnLatestRevision()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllTrafficOnLatestRevision()); if (getSecretEnvironmentVariablesCount() > 0) { hash = (37 * hash) + SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + getSecretEnvironmentVariablesList().hashCode(); @@ -1406,97 +1568,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ServiceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ServiceConfig 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.ServiceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.ServiceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.ServiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ServiceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.ServiceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2beta.ServiceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Describes the Service being deployed.
                                  * Currently Supported : Cloud Run (fully managed).
                              @@ -1504,43 +1673,43 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2beta.ServiceConfig}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.ServiceConfig)
                                     com.google.cloud.functions.v2beta.ServiceConfigOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor;
                                   }
                               
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMapField(int number) {
                                     switch (number) {
                                       case 4:
                                         return internalGetEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @SuppressWarnings({"rawtypes"})
                              -    protected com.google.protobuf.MapField internalGetMutableMapField(
                              -        int number) {
                              +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
                                     switch (number) {
                                       case 4:
                                         return internalGetMutableEnvironmentVariables();
                                       default:
                              -          throw new RuntimeException(
                              -              "Invalid map field number: " + number);
                              +          throw new RuntimeException("Invalid map field number: " + number);
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_ServiceConfig_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2beta.ServiceConfig.class, com.google.cloud.functions.v2beta.ServiceConfig.Builder.class);
                              +              com.google.cloud.functions.v2beta.ServiceConfig.class,
                              +              com.google.cloud.functions.v2beta.ServiceConfig.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2beta.ServiceConfig.newBuilder()
                              @@ -1548,18 +1717,18 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                                       getSecretEnvironmentVariablesFieldBuilder();
                                       getSecretVolumesFieldBuilder();
                                     }
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -1604,9 +1773,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -1625,7 +1794,8 @@ public com.google.cloud.functions.v2beta.ServiceConfig build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2beta.ServiceConfig buildPartial() {
                              -      com.google.cloud.functions.v2beta.ServiceConfig result = new com.google.cloud.functions.v2beta.ServiceConfig(this);
                              +      com.google.cloud.functions.v2beta.ServiceConfig result =
                              +          new com.google.cloud.functions.v2beta.ServiceConfig(this);
                                     int from_bitField0_ = bitField0_;
                                     result.service_ = service_;
                                     result.timeoutSeconds_ = timeoutSeconds_;
                              @@ -1642,7 +1812,8 @@ public com.google.cloud.functions.v2beta.ServiceConfig buildPartial() {
                                     result.allTrafficOnLatestRevision_ = allTrafficOnLatestRevision_;
                                     if (secretEnvironmentVariablesBuilder_ == null) {
                                       if (((bitField0_ & 0x00000002) != 0)) {
                              -          secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                              +          secretEnvironmentVariables_ =
                              +              java.util.Collections.unmodifiableList(secretEnvironmentVariables_);
                                         bitField0_ = (bitField0_ & ~0x00000002);
                                       }
                                       result.secretEnvironmentVariables_ = secretEnvironmentVariables_;
                              @@ -1667,38 +1838,39 @@ public com.google.cloud.functions.v2beta.ServiceConfig buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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.ServiceConfig) {
                              -        return mergeFrom((com.google.cloud.functions.v2beta.ServiceConfig)other);
                              +        return mergeFrom((com.google.cloud.functions.v2beta.ServiceConfig) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -1706,7 +1878,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                                   }
                               
                                   public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other) {
                              -      if (other == com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance()) return this;
                              +      if (other == com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance())
                              +        return this;
                                     if (!other.getService().isEmpty()) {
                                       service_ = other.service_;
                                       onChanged();
                              @@ -1718,8 +1891,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other)
                                       availableMemory_ = other.availableMemory_;
                                       onChanged();
                                     }
                              -      internalGetMutableEnvironmentVariables().mergeFrom(
                              -          other.internalGetEnvironmentVariables());
                              +      internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables());
                                     if (other.getMaxInstanceCount() != 0) {
                                       setMaxInstanceCount(other.getMaxInstanceCount());
                                     }
                              @@ -1765,9 +1937,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other)
                                           secretEnvironmentVariablesBuilder_ = null;
                                           secretEnvironmentVariables_ = other.secretEnvironmentVariables_;
                                           bitField0_ = (bitField0_ & ~0x00000002);
                              -            secretEnvironmentVariablesBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getSecretEnvironmentVariablesFieldBuilder() : null;
                              +            secretEnvironmentVariablesBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getSecretEnvironmentVariablesFieldBuilder()
                              +                    : null;
                                         } else {
                                           secretEnvironmentVariablesBuilder_.addAllMessages(other.secretEnvironmentVariables_);
                                         }
                              @@ -1791,9 +1964,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other)
                                           secretVolumesBuilder_ = null;
                                           secretVolumes_ = other.secretVolumes_;
                                           bitField0_ = (bitField0_ & ~0x00000004);
                              -            secretVolumesBuilder_ = 
                              -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                              -                 getSecretVolumesFieldBuilder() : null;
                              +            secretVolumesBuilder_ =
                              +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                              +                    ? getSecretVolumesFieldBuilder()
                              +                    : null;
                                         } else {
                                           secretVolumesBuilder_.addAllMessages(other.secretVolumes_);
                                         }
                              @@ -1831,24 +2005,29 @@ public Builder mergeFrom(
                                     }
                                     return this;
                                   }
                              +
                                   private int bitField0_;
                               
                                   private java.lang.Object service_ = "";
                                   /**
                              +     *
                              +     *
                                    * 
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -1857,22 +2036,25 @@ public java.lang.String getService() { } } /** + * + * *
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for service. */ - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -1880,67 +2062,82 @@ public java.lang.String getService() { } } /** + * + * *
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService( - java.lang.String value) { + public Builder setService(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + service_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearService() { - + service_ = getDefaultInstance().getService(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; onChanged(); return this; } - private int timeoutSeconds_ ; + private int timeoutSeconds_; /** + * + * *
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -1948,6 +2145,7 @@ public Builder setServiceBytes(
                                    * 
                              * * int32 timeout_seconds = 2; + * * @return The timeoutSeconds. */ @java.lang.Override @@ -1955,6 +2153,8 @@ public int getTimeoutSeconds() { return timeoutSeconds_; } /** + * + * *
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -1962,16 +2162,19 @@ public int getTimeoutSeconds() {
                                    * 
                              * * int32 timeout_seconds = 2; + * * @param value The timeoutSeconds to set. * @return This builder for chaining. */ public Builder setTimeoutSeconds(int value) { - + timeoutSeconds_ = value; onChanged(); return this; } /** + * + * *
                                    * The function execution timeout. Execution is considered failed and
                                    * can be terminated if the function is not completed at the end of the
                              @@ -1979,10 +2182,11 @@ public Builder setTimeoutSeconds(int value) {
                                    * 
                              * * int32 timeout_seconds = 2; + * * @return This builder for chaining. */ public Builder clearTimeoutSeconds() { - + timeoutSeconds_ = 0; onChanged(); return this; @@ -1990,6 +2194,8 @@ public Builder clearTimeoutSeconds() { private java.lang.Object availableMemory_ = ""; /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2000,13 +2206,13 @@ public Builder clearTimeoutSeconds() {
                                    * 
                              * * string available_memory = 13; + * * @return The availableMemory. */ public java.lang.String getAvailableMemory() { java.lang.Object ref = availableMemory_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); availableMemory_ = s; return s; @@ -2015,6 +2221,8 @@ public java.lang.String getAvailableMemory() { } } /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2025,15 +2233,14 @@ public java.lang.String getAvailableMemory() {
                                    * 
                              * * string available_memory = 13; + * * @return The bytes for availableMemory. */ - public com.google.protobuf.ByteString - getAvailableMemoryBytes() { + public com.google.protobuf.ByteString getAvailableMemoryBytes() { java.lang.Object ref = availableMemory_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); availableMemory_ = b; return b; } else { @@ -2041,6 +2248,8 @@ public java.lang.String getAvailableMemory() { } } /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2051,20 +2260,22 @@ public java.lang.String getAvailableMemory() {
                                    * 
                              * * string available_memory = 13; + * * @param value The availableMemory to set. * @return This builder for chaining. */ - public Builder setAvailableMemory( - java.lang.String value) { + public Builder setAvailableMemory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + availableMemory_ = value; onChanged(); return this; } /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2075,15 +2286,18 @@ public Builder setAvailableMemory(
                                    * 
                              * * string available_memory = 13; + * * @return This builder for chaining. */ public Builder clearAvailableMemory() { - + availableMemory_ = getDefaultInstance().getAvailableMemory(); onChanged(); return this; } /** + * + * *
                                    * The amount of memory available for a function.
                                    * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -2094,37 +2308,40 @@ public Builder clearAvailableMemory() {
                                    * 
                              * * string available_memory = 13; + * * @param value The bytes for availableMemory to set. * @return This builder for chaining. */ - public Builder setAvailableMemoryBytes( - com.google.protobuf.ByteString value) { + public Builder setAvailableMemoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + availableMemory_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; + private com.google.protobuf.MapField environmentVariables_; + private com.google.protobuf.MapField - internalGetEnvironmentVariables() { + internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } + private com.google.protobuf.MapField - internalGetMutableEnvironmentVariables() { - onChanged();; + internalGetMutableEnvironmentVariables() { + onChanged(); + ; if (environmentVariables_ == null) { - environmentVariables_ = com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); + environmentVariables_ = + com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); @@ -2136,28 +2353,30 @@ public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 4; */ - @java.lang.Override - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnvironmentVariables().getMap().containsKey(key); } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              @@ -2165,11 +2384,12 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              @@ -2177,16 +2397,18 @@ public java.util.Map getEnvironmentVariables * map<string, string> environment_variables = 4; */ @java.lang.Override - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              @@ -2194,10 +2416,10 @@ public java.lang.String getEnvironmentVariablesOrDefault( * map<string, string> environment_variables = 4; */ @java.lang.Override - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { @@ -2207,69 +2429,69 @@ public java.lang.String getEnvironmentVariablesOrThrow( } public Builder clearEnvironmentVariables() { - internalGetMutableEnvironmentVariables().getMutableMap() - .clear(); + internalGetMutableEnvironmentVariables().getMutableMap().clear(); return this; } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 4; */ - - public Builder removeEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableEnvironmentVariables().getMutableMap() - .remove(key); + public Builder removeEnvironmentVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEnvironmentVariables().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableEnvironmentVariables() { + public java.util.Map getMutableEnvironmentVariables() { return internalGetMutableEnvironmentVariables().getMutableMap(); } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 4; */ - public Builder putEnvironmentVariables( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putEnvironmentVariables(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableEnvironmentVariables().getMutableMap() - .put(key, value); + internalGetMutableEnvironmentVariables().getMutableMap().put(key, value); return this; } /** + * + * *
                                    * Environment variables that shall be available during function execution.
                                    * 
                              * * map<string, string> environment_variables = 4; */ - public Builder putAllEnvironmentVariables( java.util.Map values) { - internalGetMutableEnvironmentVariables().getMutableMap() - .putAll(values); + internalGetMutableEnvironmentVariables().getMutableMap().putAll(values); return this; } - private int maxInstanceCount_ ; + private int maxInstanceCount_; /** + * + * *
                                    * The limit on the maximum number of function instances that may coexist at a
                                    * given time.
                              @@ -2284,6 +2506,7 @@ public Builder putAllEnvironmentVariables(
                                    * 
                              * * int32 max_instance_count = 5; + * * @return The maxInstanceCount. */ @java.lang.Override @@ -2291,6 +2514,8 @@ public int getMaxInstanceCount() { return maxInstanceCount_; } /** + * + * *
                                    * The limit on the maximum number of function instances that may coexist at a
                                    * given time.
                              @@ -2305,16 +2530,19 @@ public int getMaxInstanceCount() {
                                    * 
                              * * int32 max_instance_count = 5; + * * @param value The maxInstanceCount to set. * @return This builder for chaining. */ public Builder setMaxInstanceCount(int value) { - + maxInstanceCount_ = value; onChanged(); return this; } /** + * + * *
                                    * The limit on the maximum number of function instances that may coexist at a
                                    * given time.
                              @@ -2329,17 +2557,20 @@ public Builder setMaxInstanceCount(int value) {
                                    * 
                              * * int32 max_instance_count = 5; + * * @return This builder for chaining. */ public Builder clearMaxInstanceCount() { - + maxInstanceCount_ = 0; onChanged(); return this; } - private int minInstanceCount_ ; + private int minInstanceCount_; /** + * + * *
                                    * The limit on the minimum number of function instances that may coexist at a
                                    * given time.
                              @@ -2352,6 +2583,7 @@ public Builder clearMaxInstanceCount() {
                                    * 
                              * * int32 min_instance_count = 12; + * * @return The minInstanceCount. */ @java.lang.Override @@ -2359,6 +2591,8 @@ public int getMinInstanceCount() { return minInstanceCount_; } /** + * + * *
                                    * The limit on the minimum number of function instances that may coexist at a
                                    * given time.
                              @@ -2371,16 +2605,19 @@ public int getMinInstanceCount() {
                                    * 
                              * * int32 min_instance_count = 12; + * * @param value The minInstanceCount to set. * @return This builder for chaining. */ public Builder setMinInstanceCount(int value) { - + minInstanceCount_ = value; onChanged(); return this; } /** + * + * *
                                    * The limit on the minimum number of function instances that may coexist at a
                                    * given time.
                              @@ -2393,10 +2630,11 @@ public Builder setMinInstanceCount(int value) {
                                    * 
                              * * int32 min_instance_count = 12; + * * @return This builder for chaining. */ public Builder clearMinInstanceCount() { - + minInstanceCount_ = 0; onChanged(); return this; @@ -2404,19 +2642,21 @@ public Builder clearMinInstanceCount() { private java.lang.Object vpcConnector_ = ""; /** + * + * *
                                    * 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) = { ... } + * * @return The vpcConnector. */ public java.lang.String getVpcConnector() { java.lang.Object ref = vpcConnector_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcConnector_ = s; return s; @@ -2425,21 +2665,22 @@ public java.lang.String getVpcConnector() { } } /** + * + * *
                                    * 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) = { ... } + * * @return The bytes for vpcConnector. */ - public com.google.protobuf.ByteString - getVpcConnectorBytes() { + public com.google.protobuf.ByteString getVpcConnectorBytes() { java.lang.Object ref = vpcConnector_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcConnector_ = b; return b; } else { @@ -2447,57 +2688,64 @@ public java.lang.String getVpcConnector() { } } /** + * + * *
                                    * 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) = { ... } + * * @param value The vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnector( - java.lang.String value) { + public Builder setVpcConnector(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vpcConnector_ = value; onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * * @return This builder for chaining. */ public Builder clearVpcConnector() { - + vpcConnector_ = getDefaultInstance().getVpcConnector(); onChanged(); return this; } /** + * + * *
                                    * 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) = { ... } + * * @param value The bytes for vpcConnector to set. * @return This builder for chaining. */ - public Builder setVpcConnectorBytes( - com.google.protobuf.ByteString value) { + public Builder setVpcConnectorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcConnector_ = value; onChanged(); return this; @@ -2505,78 +2753,110 @@ public Builder setVpcConnectorBytes( private int vpcConnectorEgressSettings_ = 0; /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ - @java.lang.Override public int getVpcConnectorEgressSettingsValue() { + @java.lang.Override + public int getVpcConnectorEgressSettingsValue() { return vpcConnectorEgressSettings_; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @param value The enum numeric value on the wire for vpcConnectorEgressSettings to set. * @return This builder for chaining. */ public Builder setVpcConnectorEgressSettingsValue(int value) { - + vpcConnectorEgressSettings_ = value; onChanged(); return this; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The vpcConnectorEgressSettings. */ @java.lang.Override - public com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings() { + public com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings + getVpcConnectorEgressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings result = com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.valueOf(vpcConnectorEgressSettings_); - return result == null ? com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings result = + com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.valueOf( + vpcConnectorEgressSettings_); + return result == null + ? com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings.UNRECOGNIZED + : result; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @param value The vpcConnectorEgressSettings to set. * @return This builder for chaining. */ - public Builder setVpcConnectorEgressSettings(com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings value) { + public Builder setVpcConnectorEgressSettings( + com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings value) { if (value == null) { throw new NullPointerException(); } - + vpcConnectorEgressSettings_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * The egress settings for the connector, controlling what traffic is diverted
                                    * through it.
                                    * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return This builder for chaining. */ public Builder clearVpcConnectorEgressSettings() { - + vpcConnectorEgressSettings_ = 0; onChanged(); return this; @@ -2584,78 +2864,103 @@ public Builder clearVpcConnectorEgressSettings() { private int ingressSettings_ = 0; /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @return The enum numeric value on the wire for ingressSettings. */ - @java.lang.Override public int getIngressSettingsValue() { + @java.lang.Override + public int getIngressSettingsValue() { return ingressSettings_; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @param value The enum numeric value on the wire for ingressSettings to set. * @return This builder for chaining. */ public Builder setIngressSettingsValue(int value) { - + ingressSettings_ = value; onChanged(); return this; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @return The ingressSettings. */ @java.lang.Override public com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings getIngressSettings() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings result = com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.valueOf(ingressSettings_); - return result == null ? com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.UNRECOGNIZED : result; + com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings result = + com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.valueOf(ingressSettings_); + return result == null + ? com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings.UNRECOGNIZED + : result; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @param value The ingressSettings to set. * @return This builder for chaining. */ - public Builder setIngressSettings(com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings value) { + public Builder setIngressSettings( + com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings value) { if (value == null) { throw new NullPointerException(); } - + ingressSettings_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * The ingress settings for the function, controlling what traffic can reach
                                    * it.
                                    * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * + * * @return This builder for chaining. */ public Builder clearIngressSettings() { - + ingressSettings_ = 0; onChanged(); return this; @@ -2663,18 +2968,20 @@ public Builder clearIngressSettings() { private java.lang.Object uri_ = ""; /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -2683,20 +2990,21 @@ public java.lang.String getUri() { } } /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -2704,54 +3012,61 @@ public java.lang.String getUri() { } } /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
                                    * Output only. URI of the Service deployed.
                                    * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; @@ -2759,19 +3074,21 @@ public Builder setUriBytes( private java.lang.Object serviceAccountEmail_ = ""; /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -2780,21 +3097,22 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -2802,64 +3120,73 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail( - java.lang.String value) { + public Builder setServiceAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** + * + * *
                                    * The email of the service's service account. If empty, defaults to
                                    * `{project_number}-compute@developer.gserviceaccount.com`.
                                    * 
                              * * string service_account_email = 10; + * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; } - private boolean allTrafficOnLatestRevision_ ; + private boolean allTrafficOnLatestRevision_; /** + * + * *
                                    * Whether 100% of traffic is routed to the latest revision.
                                    * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -2869,6 +3196,7 @@ public Builder setServiceAccountEmailBytes(
                                    * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @return The allTrafficOnLatestRevision. */ @java.lang.Override @@ -2876,6 +3204,8 @@ public boolean getAllTrafficOnLatestRevision() { return allTrafficOnLatestRevision_; } /** + * + * *
                                    * Whether 100% of traffic is routed to the latest revision.
                                    * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -2885,16 +3215,19 @@ public boolean getAllTrafficOnLatestRevision() {
                                    * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @param value The allTrafficOnLatestRevision to set. * @return This builder for chaining. */ public Builder setAllTrafficOnLatestRevision(boolean value) { - + allTrafficOnLatestRevision_ = value; onChanged(); return this; } /** + * + * *
                                    * Whether 100% of traffic is routed to the latest revision.
                                    * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -2904,35 +3237,46 @@ public Builder setAllTrafficOnLatestRevision(boolean value) {
                                    * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @return This builder for chaining. */ public Builder clearAllTrafficOnLatestRevision() { - + allTrafficOnLatestRevision_ = false; onChanged(); return this; } - private java.util.List secretEnvironmentVariables_ = - java.util.Collections.emptyList(); + private java.util.List + secretEnvironmentVariables_ = java.util.Collections.emptyList(); + private void ensureSecretEnvironmentVariablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - secretEnvironmentVariables_ = new java.util.ArrayList(secretEnvironmentVariables_); + secretEnvironmentVariables_ = + new java.util.ArrayList( + secretEnvironmentVariables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretEnvVar, com.google.cloud.functions.v2beta.SecretEnvVar.Builder, com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder> secretEnvironmentVariablesBuilder_; + com.google.cloud.functions.v2beta.SecretEnvVar, + com.google.cloud.functions.v2beta.SecretEnvVar.Builder, + com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder> + secretEnvironmentVariablesBuilder_; /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ - public java.util.List getSecretEnvironmentVariablesList() { + public java.util.List + getSecretEnvironmentVariablesList() { if (secretEnvironmentVariablesBuilder_ == null) { return java.util.Collections.unmodifiableList(secretEnvironmentVariables_); } else { @@ -2940,11 +3284,14 @@ public java.util.List getSecretE } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ public int getSecretEnvironmentVariablesCount() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -2954,11 +3301,14 @@ public int getSecretEnvironmentVariablesCount() { } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ public com.google.cloud.functions.v2beta.SecretEnvVar getSecretEnvironmentVariables(int index) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -2968,11 +3318,14 @@ public com.google.cloud.functions.v2beta.SecretEnvVar getSecretEnvironmentVariab } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v2beta.SecretEnvVar value) { @@ -2989,11 +3342,14 @@ public Builder setSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ public Builder setSecretEnvironmentVariables( int index, com.google.cloud.functions.v2beta.SecretEnvVar.Builder builderForValue) { @@ -3007,13 +3363,17 @@ public Builder setSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ - public Builder addSecretEnvironmentVariables(com.google.cloud.functions.v2beta.SecretEnvVar value) { + public Builder addSecretEnvironmentVariables( + com.google.cloud.functions.v2beta.SecretEnvVar value) { if (secretEnvironmentVariablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3027,11 +3387,14 @@ public Builder addSecretEnvironmentVariables(com.google.cloud.functions.v2beta.S return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v2beta.SecretEnvVar value) { @@ -3048,11 +3411,14 @@ public Builder addSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ public Builder addSecretEnvironmentVariables( com.google.cloud.functions.v2beta.SecretEnvVar.Builder builderForValue) { @@ -3066,11 +3432,14 @@ public Builder addSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ public Builder addSecretEnvironmentVariables( int index, com.google.cloud.functions.v2beta.SecretEnvVar.Builder builderForValue) { @@ -3084,18 +3453,20 @@ public Builder addSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ public Builder addAllSecretEnvironmentVariables( java.lang.Iterable values) { if (secretEnvironmentVariablesBuilder_ == null) { ensureSecretEnvironmentVariablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, secretEnvironmentVariables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretEnvironmentVariables_); onChanged(); } else { secretEnvironmentVariablesBuilder_.addAllMessages(values); @@ -3103,11 +3474,14 @@ public Builder addAllSecretEnvironmentVariables( return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ public Builder clearSecretEnvironmentVariables() { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3120,11 +3494,14 @@ public Builder clearSecretEnvironmentVariables() { return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ public Builder removeSecretEnvironmentVariables(int index) { if (secretEnvironmentVariablesBuilder_ == null) { @@ -3137,39 +3514,49 @@ public Builder removeSecretEnvironmentVariables(int index) { return this; } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ - public com.google.cloud.functions.v2beta.SecretEnvVar.Builder getSecretEnvironmentVariablesBuilder( - int index) { + public com.google.cloud.functions.v2beta.SecretEnvVar.Builder + getSecretEnvironmentVariablesBuilder(int index) { return getSecretEnvironmentVariablesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ - public com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( - int index) { + public com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder + getSecretEnvironmentVariablesOrBuilder(int index) { if (secretEnvironmentVariablesBuilder_ == null) { - return secretEnvironmentVariables_.get(index); } else { + return secretEnvironmentVariables_.get(index); + } else { return secretEnvironmentVariablesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ - public java.util.List - getSecretEnvironmentVariablesOrBuilderList() { + public java.util.List + getSecretEnvironmentVariablesOrBuilderList() { if (secretEnvironmentVariablesBuilder_ != null) { return secretEnvironmentVariablesBuilder_.getMessageOrBuilderList(); } else { @@ -3177,45 +3564,61 @@ public com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder getSecretEnvironm } } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ - public com.google.cloud.functions.v2beta.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder() { - return getSecretEnvironmentVariablesFieldBuilder().addBuilder( - com.google.cloud.functions.v2beta.SecretEnvVar.getDefaultInstance()); + public com.google.cloud.functions.v2beta.SecretEnvVar.Builder + addSecretEnvironmentVariablesBuilder() { + return getSecretEnvironmentVariablesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2beta.SecretEnvVar.getDefaultInstance()); } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ - public com.google.cloud.functions.v2beta.SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder( - int index) { - return getSecretEnvironmentVariablesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2beta.SecretEnvVar.getDefaultInstance()); + public com.google.cloud.functions.v2beta.SecretEnvVar.Builder + addSecretEnvironmentVariablesBuilder(int index) { + return getSecretEnvironmentVariablesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2beta.SecretEnvVar.getDefaultInstance()); } /** + * + * *
                                    * Secret environment variables configuration.
                                    * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ - public java.util.List - getSecretEnvironmentVariablesBuilderList() { + public java.util.List + getSecretEnvironmentVariablesBuilderList() { return getSecretEnvironmentVariablesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretEnvVar, com.google.cloud.functions.v2beta.SecretEnvVar.Builder, com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder> + com.google.cloud.functions.v2beta.SecretEnvVar, + com.google.cloud.functions.v2beta.SecretEnvVar.Builder, + com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder> getSecretEnvironmentVariablesFieldBuilder() { if (secretEnvironmentVariablesBuilder_ == null) { - secretEnvironmentVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretEnvVar, com.google.cloud.functions.v2beta.SecretEnvVar.Builder, com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder>( + secretEnvironmentVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.SecretEnvVar, + com.google.cloud.functions.v2beta.SecretEnvVar.Builder, + com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder>( secretEnvironmentVariables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3226,18 +3629,25 @@ public com.google.cloud.functions.v2beta.SecretEnvVar.Builder addSecretEnvironme } private java.util.List secretVolumes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSecretVolumesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - secretVolumes_ = new java.util.ArrayList(secretVolumes_); + secretVolumes_ = + new java.util.ArrayList(secretVolumes_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretVolume, com.google.cloud.functions.v2beta.SecretVolume.Builder, com.google.cloud.functions.v2beta.SecretVolumeOrBuilder> secretVolumesBuilder_; + com.google.cloud.functions.v2beta.SecretVolume, + com.google.cloud.functions.v2beta.SecretVolume.Builder, + com.google.cloud.functions.v2beta.SecretVolumeOrBuilder> + secretVolumesBuilder_; /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3252,6 +3662,8 @@ public java.util.List getSecretV } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3266,6 +3678,8 @@ public int getSecretVolumesCount() { } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3280,6 +3694,8 @@ public com.google.cloud.functions.v2beta.SecretVolume getSecretVolumes(int index } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3301,6 +3717,8 @@ public Builder setSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3319,6 +3737,8 @@ public Builder setSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3339,6 +3759,8 @@ public Builder addSecretVolumes(com.google.cloud.functions.v2beta.SecretVolume v return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3360,6 +3782,8 @@ public Builder addSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3378,6 +3802,8 @@ public Builder addSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3396,6 +3822,8 @@ public Builder addSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3406,8 +3834,7 @@ public Builder addAllSecretVolumes( java.lang.Iterable values) { if (secretVolumesBuilder_ == null) { ensureSecretVolumesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, secretVolumes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretVolumes_); onChanged(); } else { secretVolumesBuilder_.addAllMessages(values); @@ -3415,6 +3842,8 @@ public Builder addAllSecretVolumes( return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3432,6 +3861,8 @@ public Builder clearSecretVolumes() { return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3449,6 +3880,8 @@ public Builder removeSecretVolumes(int index) { return this; } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3460,6 +3893,8 @@ public com.google.cloud.functions.v2beta.SecretVolume.Builder getSecretVolumesBu return getSecretVolumesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3469,19 +3904,22 @@ public com.google.cloud.functions.v2beta.SecretVolume.Builder getSecretVolumesBu public com.google.cloud.functions.v2beta.SecretVolumeOrBuilder getSecretVolumesOrBuilder( int index) { if (secretVolumesBuilder_ == null) { - return secretVolumes_.get(index); } else { + return secretVolumes_.get(index); + } else { return secretVolumesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ - public java.util.List - getSecretVolumesOrBuilderList() { + public java.util.List + getSecretVolumesOrBuilderList() { if (secretVolumesBuilder_ != null) { return secretVolumesBuilder_.getMessageOrBuilderList(); } else { @@ -3489,6 +3927,8 @@ public com.google.cloud.functions.v2beta.SecretVolumeOrBuilder getSecretVolumesO } } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3496,10 +3936,12 @@ public com.google.cloud.functions.v2beta.SecretVolumeOrBuilder getSecretVolumesO * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ public com.google.cloud.functions.v2beta.SecretVolume.Builder addSecretVolumesBuilder() { - return getSecretVolumesFieldBuilder().addBuilder( - com.google.cloud.functions.v2beta.SecretVolume.getDefaultInstance()); + return getSecretVolumesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2beta.SecretVolume.getDefaultInstance()); } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              @@ -3508,26 +3950,34 @@ public com.google.cloud.functions.v2beta.SecretVolume.Builder addSecretVolumesBu */ public com.google.cloud.functions.v2beta.SecretVolume.Builder addSecretVolumesBuilder( int index) { - return getSecretVolumesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2beta.SecretVolume.getDefaultInstance()); + return getSecretVolumesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2beta.SecretVolume.getDefaultInstance()); } /** + * + * *
                                    * Secret volumes configuration.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ - public java.util.List - getSecretVolumesBuilderList() { + public java.util.List + getSecretVolumesBuilderList() { return getSecretVolumesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretVolume, com.google.cloud.functions.v2beta.SecretVolume.Builder, com.google.cloud.functions.v2beta.SecretVolumeOrBuilder> + com.google.cloud.functions.v2beta.SecretVolume, + com.google.cloud.functions.v2beta.SecretVolume.Builder, + com.google.cloud.functions.v2beta.SecretVolumeOrBuilder> getSecretVolumesFieldBuilder() { if (secretVolumesBuilder_ == null) { - secretVolumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.SecretVolume, com.google.cloud.functions.v2beta.SecretVolume.Builder, com.google.cloud.functions.v2beta.SecretVolumeOrBuilder>( + secretVolumesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.SecretVolume, + com.google.cloud.functions.v2beta.SecretVolume.Builder, + com.google.cloud.functions.v2beta.SecretVolumeOrBuilder>( secretVolumes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -3539,18 +3989,20 @@ public com.google.cloud.functions.v2beta.SecretVolume.Builder addSecretVolumesBu private java.lang.Object revision_ = ""; /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revision. */ public java.lang.String getRevision() { java.lang.Object ref = revision_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; @@ -3559,20 +4011,21 @@ public java.lang.String getRevision() { } } /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revision. */ - public com.google.protobuf.ByteString - getRevisionBytes() { + public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revision_ = b; return b; } else { @@ -3580,61 +4033,68 @@ public java.lang.String getRevision() { } } /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The revision to set. * @return This builder for chaining. */ - public Builder setRevision( - java.lang.String value) { + public Builder setRevision(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + revision_ = value; onChanged(); return this; } /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRevision() { - + revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** + * + * *
                                    * Output only. The name of service revision.
                                    * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for revision to set. * @return This builder for chaining. */ - public Builder setRevisionBytes( - com.google.protobuf.ByteString value) { + public Builder setRevisionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revision_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3644,12 +4104,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.ServiceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.ServiceConfig) private static final com.google.cloud.functions.v2beta.ServiceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.ServiceConfig(); } @@ -3658,16 +4118,16 @@ public static com.google.cloud.functions.v2beta.ServiceConfig getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServiceConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServiceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3682,6 +4142,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.ServiceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java similarity index 79% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java index 702f6502..11e65fc9 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java @@ -1,37 +1,64 @@ +/* + * 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 ServiceConfigOrBuilder extends +public interface ServiceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.ServiceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The service. */ java.lang.String getService(); /** + * + * *
                                  * 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) = { ... } + * + * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for service. */ - com.google.protobuf.ByteString - getServiceBytes(); + com.google.protobuf.ByteString getServiceBytes(); /** + * + * *
                                  * The function execution timeout. Execution is considered failed and
                                  * can be terminated if the function is not completed at the end of the
                              @@ -39,11 +66,14 @@ public interface ServiceConfigOrBuilder extends
                                  * 
                              * * int32 timeout_seconds = 2; + * * @return The timeoutSeconds. */ int getTimeoutSeconds(); /** + * + * *
                                  * The amount of memory available for a function.
                                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -54,10 +84,13 @@ public interface ServiceConfigOrBuilder extends
                                  * 
                              * * string available_memory = 13; + * * @return The availableMemory. */ java.lang.String getAvailableMemory(); /** + * + * *
                                  * The amount of memory available for a function.
                                  * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
                              @@ -68,12 +101,14 @@ public interface ServiceConfigOrBuilder extends
                                  * 
                              * * string available_memory = 13; + * * @return The bytes for availableMemory. */ - com.google.protobuf.ByteString - getAvailableMemoryBytes(); + com.google.protobuf.ByteString getAvailableMemoryBytes(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -82,30 +117,31 @@ public interface ServiceConfigOrBuilder extends */ int getEnvironmentVariablesCount(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 4; */ - boolean containsEnvironmentVariables( - java.lang.String key); - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ + boolean containsEnvironmentVariables(java.lang.String key); + /** Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getEnvironmentVariables(); + java.util.Map getEnvironmentVariables(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 4; */ - java.util.Map - getEnvironmentVariablesMap(); + java.util.Map getEnvironmentVariablesMap(); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              @@ -114,22 +150,24 @@ boolean containsEnvironmentVariables( */ /* nullable */ -java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
                                  * Environment variables that shall be available during function execution.
                                  * 
                              * * map<string, string> environment_variables = 4; */ - - java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key); + java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key); /** + * + * *
                                  * The limit on the maximum number of function instances that may coexist at a
                                  * given time.
                              @@ -144,11 +182,14 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * 
                              * * int32 max_instance_count = 5; + * * @return The maxInstanceCount. */ int getMaxInstanceCount(); /** + * + * *
                                  * The limit on the minimum number of function instances that may coexist at a
                                  * given time.
                              @@ -161,117 +202,152 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * 
                              * * int32 min_instance_count = 12; + * * @return The minInstanceCount. */ int getMinInstanceCount(); /** + * + * *
                                  * 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) = { ... } + * * @return The vpcConnector. */ java.lang.String getVpcConnector(); /** + * + * *
                                  * 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) = { ... } + * * @return The bytes for vpcConnector. */ - com.google.protobuf.ByteString - getVpcConnectorBytes(); + com.google.protobuf.ByteString getVpcConnectorBytes(); /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The enum numeric value on the wire for vpcConnectorEgressSettings. */ int getVpcConnectorEgressSettingsValue(); /** + * + * *
                                  * The egress settings for the connector, controlling what traffic is diverted
                                  * through it.
                                  * 
                              * - * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * .google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7; + * + * * @return The vpcConnectorEgressSettings. */ - com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings(); + com.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings + getVpcConnectorEgressSettings(); /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * * @return The enum numeric value on the wire for ingressSettings. */ int getIngressSettingsValue(); /** + * + * *
                                  * The ingress settings for the function, controlling what traffic can reach
                                  * it.
                                  * 
                              * * .google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8; + * * @return The ingressSettings. */ com.google.cloud.functions.v2beta.ServiceConfig.IngressSettings getIngressSettings(); /** + * + * *
                                  * Output only. URI of the Service deployed.
                                  * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
                                  * Output only. URI of the Service deployed.
                                  * 
                              * * string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
                                  * The email of the service's service account. If empty, defaults to
                                  * `{project_number}-compute@developer.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 10; + * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** + * + * *
                                  * The email of the service's service account. If empty, defaults to
                                  * `{project_number}-compute@developer.gserviceaccount.com`.
                                  * 
                              * * string service_account_email = 10; + * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString - getServiceAccountEmailBytes(); + com.google.protobuf.ByteString getServiceAccountEmailBytes(); /** + * + * *
                                  * Whether 100% of traffic is routed to the latest revision.
                                  * On CreateFunction and UpdateFunction, when set to true, the revision being
                              @@ -281,64 +357,83 @@ java.lang.String getEnvironmentVariablesOrThrow(
                                  * 
                              * * bool all_traffic_on_latest_revision = 16; + * * @return The allTrafficOnLatestRevision. */ boolean getAllTrafficOnLatestRevision(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ - java.util.List + java.util.List getSecretEnvironmentVariablesList(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ com.google.cloud.functions.v2beta.SecretEnvVar getSecretEnvironmentVariables(int index); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ int getSecretEnvironmentVariablesCount(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ - java.util.List + java.util.List getSecretEnvironmentVariablesOrBuilderList(); /** + * + * *
                                  * Secret environment variables configuration.
                                  * 
                              * - * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; + * */ com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder( int index); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ - java.util.List - getSecretVolumesList(); + java.util.List getSecretVolumesList(); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -347,6 +442,8 @@ com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder getSecretEnvironmentVari */ com.google.cloud.functions.v2beta.SecretVolume getSecretVolumes(int index); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              @@ -355,41 +452,49 @@ com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder getSecretEnvironmentVari */ int getSecretVolumesCount(); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ - java.util.List + java.util.List getSecretVolumesOrBuilderList(); /** + * + * *
                                  * Secret volumes configuration.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; */ - com.google.cloud.functions.v2beta.SecretVolumeOrBuilder getSecretVolumesOrBuilder( - int index); + com.google.cloud.functions.v2beta.SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index); /** + * + * *
                                  * Output only. The name of service revision.
                                  * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revision. */ java.lang.String getRevision(); /** + * + * *
                                  * Output only. The name of service revision.
                                  * 
                              * * string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revision. */ - com.google.protobuf.ByteString - getRevisionBytes(); + com.google.protobuf.ByteString getRevisionBytes(); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java similarity index 71% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java index a52cdc13..920a9f77 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java @@ -1,39 +1,55 @@ +/* + * 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; /** + * + * *
                                * The location of the function source code.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.Source} */ -public final class Source extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Source extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.Source) SourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Source.newBuilder() to construct. private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Source() { - } + + private Source() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Source(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Source( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,41 +68,46 @@ private Source( case 0: done = true; break; - case 10: { - com.google.cloud.functions.v2beta.StorageSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.functions.v2beta.StorageSource) source_).toBuilder(); + case 10: + { + com.google.cloud.functions.v2beta.StorageSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = + ((com.google.cloud.functions.v2beta.StorageSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.functions.v2beta.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.functions.v2beta.StorageSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - source_ = - input.readMessage(com.google.cloud.functions.v2beta.StorageSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.functions.v2beta.StorageSource) source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.functions.v2beta.RepoSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.functions.v2beta.RepoSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.functions.v2beta.RepoSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.functions.v2beta.RepoSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; } - sourceCase_ = 1; - break; - } - case 18: { - com.google.cloud.functions.v2beta.RepoSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.functions.v2beta.RepoSource) source_).toBuilder(); - } - source_ = - input.readMessage(com.google.cloud.functions.v2beta.RepoSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.functions.v2beta.RepoSource) source_); - source_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - sourceCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,35 +115,40 @@ private Source( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Source_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.Source.class, com.google.cloud.functions.v2beta.Source.Builder.class); + com.google.cloud.functions.v2beta.Source.class, + com.google.cloud.functions.v2beta.Source.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STORAGE_SOURCE(1), REPO_SOURCE(2), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -138,30 +164,36 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return STORAGE_SOURCE; - case 2: return REPO_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return STORAGE_SOURCE; + case 2: + return REPO_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int STORAGE_SOURCE_FIELD_NUMBER = 1; /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              * * .google.cloud.functions.v2beta.StorageSource storage_source = 1; + * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -169,21 +201,26 @@ public boolean hasStorageSource() { return sourceCase_ == 1; } /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              * * .google.cloud.functions.v2beta.StorageSource storage_source = 1; + * * @return The storageSource. */ @java.lang.Override public com.google.cloud.functions.v2beta.StorageSource getStorageSource() { if (sourceCase_ == 1) { - return (com.google.cloud.functions.v2beta.StorageSource) source_; + return (com.google.cloud.functions.v2beta.StorageSource) source_; } return com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance(); } /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              @@ -193,19 +230,22 @@ public com.google.cloud.functions.v2beta.StorageSource getStorageSource() { @java.lang.Override public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSourceOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.functions.v2beta.StorageSource) source_; + return (com.google.cloud.functions.v2beta.StorageSource) source_; } return com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance(); } public static final int REPO_SOURCE_FIELD_NUMBER = 2; /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                                  * 
                              * * .google.cloud.functions.v2beta.RepoSource repo_source = 2; + * * @return Whether the repoSource field is set. */ @java.lang.Override @@ -213,22 +253,27 @@ public boolean hasRepoSource() { return sourceCase_ == 2; } /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                                  * 
                              * * .google.cloud.functions.v2beta.RepoSource repo_source = 2; + * * @return The repoSource. */ @java.lang.Override public com.google.cloud.functions.v2beta.RepoSource getRepoSource() { if (sourceCase_ == 2) { - return (com.google.cloud.functions.v2beta.RepoSource) source_; + return (com.google.cloud.functions.v2beta.RepoSource) source_; } return com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance(); } /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                              @@ -239,12 +284,13 @@ public com.google.cloud.functions.v2beta.RepoSource getRepoSource() {
                                 @java.lang.Override
                                 public com.google.cloud.functions.v2beta.RepoSourceOrBuilder getRepoSourceOrBuilder() {
                                   if (sourceCase_ == 2) {
                              -       return (com.google.cloud.functions.v2beta.RepoSource) source_;
                              +      return (com.google.cloud.functions.v2beta.RepoSource) source_;
                                   }
                                   return com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance();
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -256,8 +302,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (sourceCase_ == 1) {
                                     output.writeMessage(1, (com.google.cloud.functions.v2beta.StorageSource) source_);
                                   }
                              @@ -274,12 +319,14 @@ public int getSerializedSize() {
                               
                                   size = 0;
                                   if (sourceCase_ == 1) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(1, (com.google.cloud.functions.v2beta.StorageSource) source_);
                              +      size +=
                              +          com.google.protobuf.CodedOutputStream.computeMessageSize(
                              +              1, (com.google.cloud.functions.v2beta.StorageSource) source_);
                                   }
                                   if (sourceCase_ == 2) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(2, (com.google.cloud.functions.v2beta.RepoSource) source_);
                              +      size +=
                              +          com.google.protobuf.CodedOutputStream.computeMessageSize(
                              +              2, (com.google.cloud.functions.v2beta.RepoSource) source_);
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -289,7 +336,7 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2beta.Source)) {
                                     return super.equals(obj);
                              @@ -299,12 +346,10 @@ public boolean equals(final java.lang.Object obj) {
                                   if (!getSourceCase().equals(other.getSourceCase())) return false;
                                   switch (sourceCase_) {
                                     case 1:
                              -        if (!getStorageSource()
                              -            .equals(other.getStorageSource())) return false;
                              +        if (!getStorageSource().equals(other.getStorageSource())) return false;
                                       break;
                                     case 2:
                              -        if (!getRepoSource()
                              -            .equals(other.getRepoSource())) return false;
                              +        if (!getRepoSource().equals(other.getRepoSource())) return false;
                                       break;
                                     case 0:
                                     default:
                              @@ -337,118 +382,127 @@ public int hashCode() {
                                   return hash;
                                 }
                               
                              -  public static com.google.cloud.functions.v2beta.Source parseFrom(
                              -      java.nio.ByteBuffer data)
                              +  public static com.google.cloud.functions.v2beta.Source parseFrom(java.nio.ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.Source parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.Source parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.Source 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.Source parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.Source parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.Source parseFrom(java.io.InputStream input)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.Source parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2beta.Source parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2beta.Source parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.Source parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.Source parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.Source parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              +
                                 public static Builder newBuilder(com.google.cloud.functions.v2beta.Source prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * The location of the function source code.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.Source} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.Source) com.google.cloud.functions.v2beta.SourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Source_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_Source_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.Source.class, com.google.cloud.functions.v2beta.Source.Builder.class); + com.google.cloud.functions.v2beta.Source.class, + com.google.cloud.functions.v2beta.Source.Builder.class); } // Construct using com.google.cloud.functions.v2beta.Source.newBuilder() @@ -456,16 +510,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +528,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Source_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_Source_descriptor; } @java.lang.Override @@ -496,7 +549,8 @@ public com.google.cloud.functions.v2beta.Source build() { @java.lang.Override public com.google.cloud.functions.v2beta.Source buildPartial() { - com.google.cloud.functions.v2beta.Source result = new com.google.cloud.functions.v2beta.Source(this); + com.google.cloud.functions.v2beta.Source result = + new com.google.cloud.functions.v2beta.Source(this); if (sourceCase_ == 1) { if (storageSourceBuilder_ == null) { result.source_ = source_; @@ -520,38 +574,39 @@ public com.google.cloud.functions.v2beta.Source buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.Source)other); + return mergeFrom((com.google.cloud.functions.v2beta.Source) other); } else { super.mergeFrom(other); return this; @@ -561,17 +616,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.functions.v2beta.Source other) { if (other == com.google.cloud.functions.v2beta.Source.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case STORAGE_SOURCE: { - mergeStorageSource(other.getStorageSource()); - break; - } - case REPO_SOURCE: { - mergeRepoSource(other.getRepoSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case STORAGE_SOURCE: + { + mergeStorageSource(other.getStorageSource()); + break; + } + case REPO_SOURCE: + { + mergeRepoSource(other.getRepoSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -601,12 +659,12 @@ public Builder mergeFrom( } return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -616,15 +674,20 @@ public Builder clearSource() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder> storageSourceBuilder_; + com.google.cloud.functions.v2beta.StorageSource, + com.google.cloud.functions.v2beta.StorageSource.Builder, + com.google.cloud.functions.v2beta.StorageSourceOrBuilder> + storageSourceBuilder_; /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              * * .google.cloud.functions.v2beta.StorageSource storage_source = 1; + * * @return Whether the storageSource field is set. */ @java.lang.Override @@ -632,11 +695,14 @@ public boolean hasStorageSource() { return sourceCase_ == 1; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              * * .google.cloud.functions.v2beta.StorageSource storage_source = 1; + * * @return The storageSource. */ @java.lang.Override @@ -654,6 +720,8 @@ public com.google.cloud.functions.v2beta.StorageSource getStorageSource() { } } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -674,6 +742,8 @@ public Builder setStorageSource(com.google.cloud.functions.v2beta.StorageSource return this; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -692,6 +762,8 @@ public Builder setStorageSource( return this; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -700,10 +772,13 @@ public Builder setStorageSource( */ public Builder mergeStorageSource(com.google.cloud.functions.v2beta.StorageSource value) { if (storageSourceBuilder_ == null) { - if (sourceCase_ == 1 && - source_ != com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance()) { - source_ = com.google.cloud.functions.v2beta.StorageSource.newBuilder((com.google.cloud.functions.v2beta.StorageSource) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 1 + && source_ != com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance()) { + source_ = + com.google.cloud.functions.v2beta.StorageSource.newBuilder( + (com.google.cloud.functions.v2beta.StorageSource) source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -719,6 +794,8 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2beta.StorageSourc return this; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -742,6 +819,8 @@ public Builder clearStorageSource() { return this; } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -752,6 +831,8 @@ public com.google.cloud.functions.v2beta.StorageSource.Builder getStorageSourceB return getStorageSourceFieldBuilder().getBuilder(); } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -770,6 +851,8 @@ public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSource } } /** + * + * *
                                    * If provided, get the source from this location in Google Cloud Storage.
                                    * 
                              @@ -777,33 +860,45 @@ public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSource * .google.cloud.functions.v2beta.StorageSource storage_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder> + com.google.cloud.functions.v2beta.StorageSource, + com.google.cloud.functions.v2beta.StorageSource.Builder, + com.google.cloud.functions.v2beta.StorageSourceOrBuilder> getStorageSourceFieldBuilder() { if (storageSourceBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance(); } - storageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder>( + storageSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2beta.StorageSource, + com.google.cloud.functions.v2beta.StorageSource.Builder, + com.google.cloud.functions.v2beta.StorageSourceOrBuilder>( (com.google.cloud.functions.v2beta.StorageSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 1; - onChanged();; + onChanged(); + ; return storageSourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.RepoSource, com.google.cloud.functions.v2beta.RepoSource.Builder, com.google.cloud.functions.v2beta.RepoSourceOrBuilder> repoSourceBuilder_; + com.google.cloud.functions.v2beta.RepoSource, + com.google.cloud.functions.v2beta.RepoSource.Builder, + com.google.cloud.functions.v2beta.RepoSourceOrBuilder> + repoSourceBuilder_; /** + * + * *
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                                    * 
                              * * .google.cloud.functions.v2beta.RepoSource repo_source = 2; + * * @return Whether the repoSource field is set. */ @java.lang.Override @@ -811,12 +906,15 @@ public boolean hasRepoSource() { return sourceCase_ == 2; } /** + * + * *
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                                    * 
                              * * .google.cloud.functions.v2beta.RepoSource repo_source = 2; + * * @return The repoSource. */ @java.lang.Override @@ -834,6 +932,8 @@ public com.google.cloud.functions.v2beta.RepoSource getRepoSource() { } } /** + * + * *
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -855,6 +955,8 @@ public Builder setRepoSource(com.google.cloud.functions.v2beta.RepoSource value)
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -874,6 +976,8 @@ public Builder setRepoSource(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -883,10 +987,13 @@ public Builder setRepoSource(
                                    */
                                   public Builder mergeRepoSource(com.google.cloud.functions.v2beta.RepoSource value) {
                                     if (repoSourceBuilder_ == null) {
                              -        if (sourceCase_ == 2 &&
                              -            source_ != com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance()) {
                              -          source_ = com.google.cloud.functions.v2beta.RepoSource.newBuilder((com.google.cloud.functions.v2beta.RepoSource) source_)
                              -              .mergeFrom(value).buildPartial();
                              +        if (sourceCase_ == 2
                              +            && source_ != com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance()) {
                              +          source_ =
                              +              com.google.cloud.functions.v2beta.RepoSource.newBuilder(
                              +                      (com.google.cloud.functions.v2beta.RepoSource) source_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         source_ = value;
                                       }
                              @@ -902,6 +1009,8 @@ public Builder mergeRepoSource(com.google.cloud.functions.v2beta.RepoSource valu
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -926,6 +1035,8 @@ public Builder clearRepoSource() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -937,6 +1048,8 @@ public com.google.cloud.functions.v2beta.RepoSource.Builder getRepoSourceBuilder
                                     return getRepoSourceFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -956,6 +1069,8 @@ public com.google.cloud.functions.v2beta.RepoSourceOrBuilder getRepoSourceOrBuil
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * If provided, get the source from this location in a Cloud Source
                                    * Repository.
                              @@ -964,26 +1079,32 @@ public com.google.cloud.functions.v2beta.RepoSourceOrBuilder getRepoSourceOrBuil
                                    * .google.cloud.functions.v2beta.RepoSource repo_source = 2;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2beta.RepoSource, com.google.cloud.functions.v2beta.RepoSource.Builder, com.google.cloud.functions.v2beta.RepoSourceOrBuilder> 
                              +            com.google.cloud.functions.v2beta.RepoSource,
                              +            com.google.cloud.functions.v2beta.RepoSource.Builder,
                              +            com.google.cloud.functions.v2beta.RepoSourceOrBuilder>
                                       getRepoSourceFieldBuilder() {
                                     if (repoSourceBuilder_ == null) {
                                       if (!(sourceCase_ == 2)) {
                                         source_ = com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance();
                                       }
                              -        repoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2beta.RepoSource, com.google.cloud.functions.v2beta.RepoSource.Builder, com.google.cloud.functions.v2beta.RepoSourceOrBuilder>(
                              +        repoSourceBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2beta.RepoSource,
                              +                com.google.cloud.functions.v2beta.RepoSource.Builder,
                              +                com.google.cloud.functions.v2beta.RepoSourceOrBuilder>(
                                               (com.google.cloud.functions.v2beta.RepoSource) source_,
                                               getParentForChildren(),
                                               isClean());
                                       source_ = null;
                                     }
                                     sourceCase_ = 2;
                              -      onChanged();;
                              +      onChanged();
                              +      ;
                                     return repoSourceBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -993,12 +1114,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.Source)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.Source)
                                 private static final com.google.cloud.functions.v2beta.Source DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.Source();
                                 }
                              @@ -1007,16 +1128,16 @@ public static com.google.cloud.functions.v2beta.Source getDefaultInstance() {
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public Source parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new Source(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public Source parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new Source(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -1031,6 +1152,4 @@ public com.google.protobuf.Parser getParserForType() {
                                 public com.google.cloud.functions.v2beta.Source getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java
                              similarity index 74%
                              rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java
                              rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java
                              index 3b518b94..bf023325 100644
                              --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java
                              @@ -1,31 +1,55 @@
                              +/*
                              + * 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 SourceOrBuilder extends
                              +public interface SourceOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.Source)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              * * .google.cloud.functions.v2beta.StorageSource storage_source = 1; + * * @return Whether the storageSource field is set. */ boolean hasStorageSource(); /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              * * .google.cloud.functions.v2beta.StorageSource storage_source = 1; + * * @return The storageSource. */ com.google.cloud.functions.v2beta.StorageSource getStorageSource(); /** + * + * *
                                  * If provided, get the source from this location in Google Cloud Storage.
                                  * 
                              @@ -35,26 +59,34 @@ public interface SourceOrBuilder extends com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSourceOrBuilder(); /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                                  * 
                              * * .google.cloud.functions.v2beta.RepoSource repo_source = 2; + * * @return Whether the repoSource field is set. */ boolean hasRepoSource(); /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                                  * 
                              * * .google.cloud.functions.v2beta.RepoSource repo_source = 2; + * * @return The repoSource. */ com.google.cloud.functions.v2beta.RepoSource getRepoSource(); /** + * + * *
                                  * If provided, get the source from this location in a Cloud Source
                                  * Repository.
                              diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java
                              similarity index 70%
                              rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java
                              rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java
                              index 37e8fa67..03846b0b 100644
                              --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java
                              +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java
                              @@ -1,9 +1,26 @@
                              +/*
                              + * 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;
                               
                               /**
                              + *
                              + *
                                * 
                                * Provenance of the source. Ways to find the original source, or verify that
                                * some source was used for this build.
                              @@ -11,30 +28,29 @@
                                *
                                * Protobuf type {@code google.cloud.functions.v2beta.SourceProvenance}
                                */
                              -public final class SourceProvenance extends
                              -    com.google.protobuf.GeneratedMessageV3 implements
                              +public final class SourceProvenance extends com.google.protobuf.GeneratedMessageV3
                              +    implements
                                   // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.SourceProvenance)
                                   SourceProvenanceOrBuilder {
                              -private static final long serialVersionUID = 0L;
                              +  private static final long serialVersionUID = 0L;
                                 // Use SourceProvenance.newBuilder() to construct.
                                 private SourceProvenance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                                   super(builder);
                                 }
                              -  private SourceProvenance() {
                              -  }
                              +
                              +  private SourceProvenance() {}
                               
                                 @java.lang.Override
                                 @SuppressWarnings({"unused"})
                              -  protected java.lang.Object newInstance(
                              -      UnusedPrivateParameter unused) {
                              +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                                   return new SourceProvenance();
                                 }
                               
                                 @java.lang.Override
                              -  public final com.google.protobuf.UnknownFieldSet
                              -  getUnknownFields() {
                              +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                                   return this.unknownFields;
                                 }
                              +
                                 private SourceProvenance(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              @@ -53,39 +69,45 @@ private SourceProvenance(
                                         case 0:
                                           done = true;
                                           break;
                              -          case 10: {
                              -            com.google.cloud.functions.v2beta.StorageSource.Builder subBuilder = null;
                              -            if (resolvedStorageSource_ != null) {
                              -              subBuilder = resolvedStorageSource_.toBuilder();
                              -            }
                              -            resolvedStorageSource_ = input.readMessage(com.google.cloud.functions.v2beta.StorageSource.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(resolvedStorageSource_);
                              -              resolvedStorageSource_ = subBuilder.buildPartial();
                              -            }
                              +          case 10:
                              +            {
                              +              com.google.cloud.functions.v2beta.StorageSource.Builder subBuilder = null;
                              +              if (resolvedStorageSource_ != null) {
                              +                subBuilder = resolvedStorageSource_.toBuilder();
                              +              }
                              +              resolvedStorageSource_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2beta.StorageSource.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(resolvedStorageSource_);
                              +                resolvedStorageSource_ = subBuilder.buildPartial();
                              +              }
                               
                              -            break;
                              -          }
                              -          case 18: {
                              -            com.google.cloud.functions.v2beta.RepoSource.Builder subBuilder = null;
                              -            if (resolvedRepoSource_ != null) {
                              -              subBuilder = resolvedRepoSource_.toBuilder();
                              -            }
                              -            resolvedRepoSource_ = input.readMessage(com.google.cloud.functions.v2beta.RepoSource.parser(), extensionRegistry);
                              -            if (subBuilder != null) {
                              -              subBuilder.mergeFrom(resolvedRepoSource_);
                              -              resolvedRepoSource_ = subBuilder.buildPartial();
                              +              break;
                                           }
                              +          case 18:
                              +            {
                              +              com.google.cloud.functions.v2beta.RepoSource.Builder subBuilder = null;
                              +              if (resolvedRepoSource_ != null) {
                              +                subBuilder = resolvedRepoSource_.toBuilder();
                              +              }
                              +              resolvedRepoSource_ =
                              +                  input.readMessage(
                              +                      com.google.cloud.functions.v2beta.RepoSource.parser(), extensionRegistry);
                              +              if (subBuilder != null) {
                              +                subBuilder.mergeFrom(resolvedRepoSource_);
                              +                resolvedRepoSource_ = subBuilder.buildPartial();
                              +              }
                               
                              -            break;
                              -          }
                              -          default: {
                              -            if (!parseUnknownField(
                              -                input, unknownFields, extensionRegistry, tag)) {
                              -              done = true;
                              +              break;
                              +            }
                              +          default:
                              +            {
                              +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                              +                done = true;
                              +              }
                              +              break;
                                           }
                              -            break;
                              -          }
                                       }
                                     }
                                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              @@ -93,35 +115,40 @@ private SourceProvenance(
                                   } catch (com.google.protobuf.UninitializedMessageException e) {
                                     throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                                   } catch (java.io.IOException e) {
                              -      throw new com.google.protobuf.InvalidProtocolBufferException(
                              -          e).setUnfinishedMessage(this);
                              +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                                   } finally {
                                     this.unknownFields = unknownFields.build();
                                     makeExtensionsImmutable();
                                   }
                                 }
                              -  public static final com.google.protobuf.Descriptors.Descriptor
                              -      getDescriptor() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor;
                              +
                              +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor;
                                 }
                               
                                 @java.lang.Override
                                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                     internalGetFieldAccessorTable() {
                              -    return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable
                              +    return com.google.cloud.functions.v2beta.FunctionsProto
                              +        .internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable
                                       .ensureFieldAccessorsInitialized(
                              -            com.google.cloud.functions.v2beta.SourceProvenance.class, com.google.cloud.functions.v2beta.SourceProvenance.Builder.class);
                              +            com.google.cloud.functions.v2beta.SourceProvenance.class,
                              +            com.google.cloud.functions.v2beta.SourceProvenance.Builder.class);
                                 }
                               
                                 public static final int RESOLVED_STORAGE_SOURCE_FIELD_NUMBER = 1;
                                 private com.google.cloud.functions.v2beta.StorageSource resolvedStorageSource_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                                  * 
                              * * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1; + * * @return Whether the resolvedStorageSource field is set. */ @java.lang.Override @@ -129,19 +156,26 @@ public boolean hasResolvedStorageSource() { return resolvedStorageSource_ != null; } /** + * + * *
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                                  * 
                              * * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1; + * * @return The resolvedStorageSource. */ @java.lang.Override public com.google.cloud.functions.v2beta.StorageSource getResolvedStorageSource() { - return resolvedStorageSource_ == null ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() : resolvedStorageSource_; + return resolvedStorageSource_ == null + ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() + : resolvedStorageSource_; } /** + * + * *
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                              @@ -150,19 +184,23 @@ public com.google.cloud.functions.v2beta.StorageSource getResolvedStorageSource(
                                  * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1;
                                  */
                                 @java.lang.Override
                              -  public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder() {
                              +  public com.google.cloud.functions.v2beta.StorageSourceOrBuilder
                              +      getResolvedStorageSourceOrBuilder() {
                                   return getResolvedStorageSource();
                                 }
                               
                                 public static final int RESOLVED_REPO_SOURCE_FIELD_NUMBER = 2;
                                 private com.google.cloud.functions.v2beta.RepoSource resolvedRepoSource_;
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                                  * 
                              * * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2; + * * @return Whether the resolvedRepoSource field is set. */ @java.lang.Override @@ -170,19 +208,26 @@ public boolean hasResolvedRepoSource() { return resolvedRepoSource_ != null; } /** + * + * *
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                                  * 
                              * * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2; + * * @return The resolvedRepoSource. */ @java.lang.Override public com.google.cloud.functions.v2beta.RepoSource getResolvedRepoSource() { - return resolvedRepoSource_ == null ? com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance() : resolvedRepoSource_; + return resolvedRepoSource_ == null + ? com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance() + : resolvedRepoSource_; } /** + * + * *
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                              @@ -196,6 +241,7 @@ public com.google.cloud.functions.v2beta.RepoSourceOrBuilder getResolvedRepoSour
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -207,8 +253,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (resolvedStorageSource_ != null) {
                                     output.writeMessage(1, getResolvedStorageSource());
                                   }
                              @@ -225,12 +270,11 @@ public int getSerializedSize() {
                               
                                   size = 0;
                                   if (resolvedStorageSource_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(1, getResolvedStorageSource());
                              +      size +=
                              +          com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResolvedStorageSource());
                                   }
                                   if (resolvedRepoSource_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(2, getResolvedRepoSource());
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResolvedRepoSource());
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -240,22 +284,21 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2beta.SourceProvenance)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v2beta.SourceProvenance other = (com.google.cloud.functions.v2beta.SourceProvenance) obj;
                              +    com.google.cloud.functions.v2beta.SourceProvenance other =
                              +        (com.google.cloud.functions.v2beta.SourceProvenance) obj;
                               
                                   if (hasResolvedStorageSource() != other.hasResolvedStorageSource()) return false;
                                   if (hasResolvedStorageSource()) {
                              -      if (!getResolvedStorageSource()
                              -          .equals(other.getResolvedStorageSource())) return false;
                              +      if (!getResolvedStorageSource().equals(other.getResolvedStorageSource())) return false;
                                   }
                                   if (hasResolvedRepoSource() != other.hasResolvedRepoSource()) return false;
                                   if (hasResolvedRepoSource()) {
                              -      if (!getResolvedRepoSource()
                              -          .equals(other.getResolvedRepoSource())) return false;
                              +      if (!getResolvedRepoSource().equals(other.getResolvedRepoSource())) return false;
                                   }
                                   if (!unknownFields.equals(other.unknownFields)) return false;
                                   return true;
                              @@ -282,96 +325,103 @@ public int hashCode() {
                                 }
                               
                                 public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
                              -      java.nio.ByteBuffer data)
                              -      throws com.google.protobuf.InvalidProtocolBufferException {
                              +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.SourceProvenance parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SourceProvenance 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.SourceProvenance parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2beta.SourceProvenance parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2beta.SourceProvenance parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SourceProvenance parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.SourceProvenance parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              +
                                 public static Builder newBuilder(com.google.cloud.functions.v2beta.SourceProvenance prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Provenance of the source. Ways to find the original source, or verify that
                                  * some source was used for this build.
                              @@ -379,21 +429,23 @@ protected Builder newBuilderForType(
                                  *
                                  * Protobuf type {@code google.cloud.functions.v2beta.SourceProvenance}
                                  */
                              -  public static final class Builder extends
                              -      com.google.protobuf.GeneratedMessageV3.Builder implements
                              +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
                              +      implements
                                     // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.SourceProvenance)
                                     com.google.cloud.functions.v2beta.SourceProvenanceOrBuilder {
                              -    public static final com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptor() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor;
                              +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor;
                                   }
                               
                                   @java.lang.Override
                                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                       internalGetFieldAccessorTable() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_SourceProvenance_fieldAccessorTable
                                         .ensureFieldAccessorsInitialized(
                              -              com.google.cloud.functions.v2beta.SourceProvenance.class, com.google.cloud.functions.v2beta.SourceProvenance.Builder.class);
                              +              com.google.cloud.functions.v2beta.SourceProvenance.class,
                              +              com.google.cloud.functions.v2beta.SourceProvenance.Builder.class);
                                   }
                               
                                   // Construct using com.google.cloud.functions.v2beta.SourceProvenance.newBuilder()
                              @@ -401,16 +453,15 @@ private Builder() {
                                     maybeForceBuilderInitialization();
                                   }
                               
                              -    private Builder(
                              -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                     super(parent);
                                     maybeForceBuilderInitialization();
                                   }
                              +
                                   private void maybeForceBuilderInitialization() {
                              -      if (com.google.protobuf.GeneratedMessageV3
                              -              .alwaysUseFieldBuilders) {
                              -      }
                              +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                                   }
                              +
                                   @java.lang.Override
                                   public Builder clear() {
                                     super.clear();
                              @@ -430,9 +481,9 @@ public Builder clear() {
                                   }
                               
                                   @java.lang.Override
                              -    public com.google.protobuf.Descriptors.Descriptor
                              -        getDescriptorForType() {
                              -      return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor;
                              +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                              +      return com.google.cloud.functions.v2beta.FunctionsProto
                              +          .internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor;
                                   }
                               
                                   @java.lang.Override
                              @@ -451,7 +502,8 @@ public com.google.cloud.functions.v2beta.SourceProvenance build() {
                               
                                   @java.lang.Override
                                   public com.google.cloud.functions.v2beta.SourceProvenance buildPartial() {
                              -      com.google.cloud.functions.v2beta.SourceProvenance result = new com.google.cloud.functions.v2beta.SourceProvenance(this);
                              +      com.google.cloud.functions.v2beta.SourceProvenance result =
                              +          new com.google.cloud.functions.v2beta.SourceProvenance(this);
                                     if (resolvedStorageSourceBuilder_ == null) {
                                       result.resolvedStorageSource_ = resolvedStorageSource_;
                                     } else {
                              @@ -470,38 +522,39 @@ public com.google.cloud.functions.v2beta.SourceProvenance buildPartial() {
                                   public Builder clone() {
                                     return super.clone();
                                   }
                              +
                                   @java.lang.Override
                                   public Builder setField(
                              -        com.google.protobuf.Descriptors.FieldDescriptor field,
                              -        java.lang.Object value) {
                              +        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) {
                              +    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) {
                              +    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) {
                              +        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) {
                              +        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) {
                              -        return mergeFrom((com.google.cloud.functions.v2beta.SourceProvenance)other);
                              +        return mergeFrom((com.google.cloud.functions.v2beta.SourceProvenance) other);
                                     } else {
                                       super.mergeFrom(other);
                                       return this;
                              @@ -509,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                                   }
                               
                                   public Builder mergeFrom(com.google.cloud.functions.v2beta.SourceProvenance other) {
                              -      if (other == com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance()) return this;
                              +      if (other == com.google.cloud.functions.v2beta.SourceProvenance.getDefaultInstance())
                              +        return this;
                                     if (other.hasResolvedStorageSource()) {
                                       mergeResolvedStorageSource(other.getResolvedStorageSource());
                                     }
                              @@ -535,7 +589,8 @@ public Builder mergeFrom(
                                     try {
                                       parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                              -        parsedMessage = (com.google.cloud.functions.v2beta.SourceProvenance) e.getUnfinishedMessage();
                              +        parsedMessage =
                              +            (com.google.cloud.functions.v2beta.SourceProvenance) e.getUnfinishedMessage();
                                       throw e.unwrapIOException();
                                     } finally {
                                       if (parsedMessage != null) {
                              @@ -547,36 +602,49 @@ public Builder mergeFrom(
                               
                                   private com.google.cloud.functions.v2beta.StorageSource resolvedStorageSource_;
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder> resolvedStorageSourceBuilder_;
                              +            com.google.cloud.functions.v2beta.StorageSource,
                              +            com.google.cloud.functions.v2beta.StorageSource.Builder,
                              +            com.google.cloud.functions.v2beta.StorageSourceOrBuilder>
                              +        resolvedStorageSourceBuilder_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                                    * 
                              * * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1; + * * @return Whether the resolvedStorageSource field is set. */ public boolean hasResolvedStorageSource() { return resolvedStorageSourceBuilder_ != null || resolvedStorageSource_ != null; } /** + * + * *
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                                    * 
                              * * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1; + * * @return The resolvedStorageSource. */ public com.google.cloud.functions.v2beta.StorageSource getResolvedStorageSource() { if (resolvedStorageSourceBuilder_ == null) { - return resolvedStorageSource_ == null ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() : resolvedStorageSource_; + return resolvedStorageSource_ == null + ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() + : resolvedStorageSource_; } else { return resolvedStorageSourceBuilder_.getMessage(); } } /** + * + * *
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -598,6 +666,8 @@ public Builder setResolvedStorageSource(com.google.cloud.functions.v2beta.Storag
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -617,6 +687,8 @@ public Builder setResolvedStorageSource(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -624,11 +696,14 @@ public Builder setResolvedStorageSource(
                                    *
                                    * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1;
                                    */
                              -    public Builder mergeResolvedStorageSource(com.google.cloud.functions.v2beta.StorageSource value) {
                              +    public Builder mergeResolvedStorageSource(
                              +        com.google.cloud.functions.v2beta.StorageSource value) {
                                     if (resolvedStorageSourceBuilder_ == null) {
                                       if (resolvedStorageSource_ != null) {
                                         resolvedStorageSource_ =
                              -            com.google.cloud.functions.v2beta.StorageSource.newBuilder(resolvedStorageSource_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2beta.StorageSource.newBuilder(resolvedStorageSource_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         resolvedStorageSource_ = value;
                                       }
                              @@ -640,6 +715,8 @@ public Builder mergeResolvedStorageSource(com.google.cloud.functions.v2beta.Stor
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -659,6 +736,8 @@ public Builder clearResolvedStorageSource() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -666,12 +745,15 @@ public Builder clearResolvedStorageSource() {
                                    *
                                    * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1;
                                    */
                              -    public com.google.cloud.functions.v2beta.StorageSource.Builder getResolvedStorageSourceBuilder() {
                              -      
                              +    public com.google.cloud.functions.v2beta.StorageSource.Builder
                              +        getResolvedStorageSourceBuilder() {
                              +
                                     onChanged();
                                     return getResolvedStorageSourceFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -679,15 +761,19 @@ public com.google.cloud.functions.v2beta.StorageSource.Builder getResolvedStorag
                                    *
                                    * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1;
                                    */
                              -    public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder() {
                              +    public com.google.cloud.functions.v2beta.StorageSourceOrBuilder
                              +        getResolvedStorageSourceOrBuilder() {
                                     if (resolvedStorageSourceBuilder_ != null) {
                                       return resolvedStorageSourceBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return resolvedStorageSource_ == null ?
                              -            com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance() : resolvedStorageSource_;
                              +        return resolvedStorageSource_ == null
                              +            ? com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance()
                              +            : resolvedStorageSource_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.storage_source`, if exists, with any
                                    * generations resolved.
                              @@ -696,14 +782,17 @@ public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getResolvedStora
                                    * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder> 
                              +            com.google.cloud.functions.v2beta.StorageSource,
                              +            com.google.cloud.functions.v2beta.StorageSource.Builder,
                              +            com.google.cloud.functions.v2beta.StorageSourceOrBuilder>
                                       getResolvedStorageSourceFieldBuilder() {
                                     if (resolvedStorageSourceBuilder_ == null) {
                              -        resolvedStorageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2beta.StorageSource, com.google.cloud.functions.v2beta.StorageSource.Builder, com.google.cloud.functions.v2beta.StorageSourceOrBuilder>(
                              -                getResolvedStorageSource(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        resolvedStorageSourceBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2beta.StorageSource,
                              +                com.google.cloud.functions.v2beta.StorageSource.Builder,
                              +                com.google.cloud.functions.v2beta.StorageSourceOrBuilder>(
                              +                getResolvedStorageSource(), getParentForChildren(), isClean());
                                       resolvedStorageSource_ = null;
                                     }
                                     return resolvedStorageSourceBuilder_;
                              @@ -711,36 +800,49 @@ public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getResolvedStora
                               
                                   private com.google.cloud.functions.v2beta.RepoSource resolvedRepoSource_;
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2beta.RepoSource, com.google.cloud.functions.v2beta.RepoSource.Builder, com.google.cloud.functions.v2beta.RepoSourceOrBuilder> resolvedRepoSourceBuilder_;
                              +            com.google.cloud.functions.v2beta.RepoSource,
                              +            com.google.cloud.functions.v2beta.RepoSource.Builder,
                              +            com.google.cloud.functions.v2beta.RepoSourceOrBuilder>
                              +        resolvedRepoSourceBuilder_;
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                                    * 
                              * * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2; + * * @return Whether the resolvedRepoSource field is set. */ public boolean hasResolvedRepoSource() { return resolvedRepoSourceBuilder_ != null || resolvedRepoSource_ != null; } /** + * + * *
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                                    * 
                              * * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2; + * * @return The resolvedRepoSource. */ public com.google.cloud.functions.v2beta.RepoSource getResolvedRepoSource() { if (resolvedRepoSourceBuilder_ == null) { - return resolvedRepoSource_ == null ? com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance() : resolvedRepoSource_; + return resolvedRepoSource_ == null + ? com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance() + : resolvedRepoSource_; } else { return resolvedRepoSourceBuilder_.getMessage(); } } /** + * + * *
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -762,6 +864,8 @@ public Builder setResolvedRepoSource(com.google.cloud.functions.v2beta.RepoSourc
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -781,6 +885,8 @@ public Builder setResolvedRepoSource(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -792,7 +898,9 @@ public Builder mergeResolvedRepoSource(com.google.cloud.functions.v2beta.RepoSou
                                     if (resolvedRepoSourceBuilder_ == null) {
                                       if (resolvedRepoSource_ != null) {
                                         resolvedRepoSource_ =
                              -            com.google.cloud.functions.v2beta.RepoSource.newBuilder(resolvedRepoSource_).mergeFrom(value).buildPartial();
                              +              com.google.cloud.functions.v2beta.RepoSource.newBuilder(resolvedRepoSource_)
                              +                  .mergeFrom(value)
                              +                  .buildPartial();
                                       } else {
                                         resolvedRepoSource_ = value;
                                       }
                              @@ -804,6 +912,8 @@ public Builder mergeResolvedRepoSource(com.google.cloud.functions.v2beta.RepoSou
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -823,6 +933,8 @@ public Builder clearResolvedRepoSource() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -831,11 +943,13 @@ public Builder clearResolvedRepoSource() {
                                    * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2;
                                    */
                                   public com.google.cloud.functions.v2beta.RepoSource.Builder getResolvedRepoSourceBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getResolvedRepoSourceFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -847,11 +961,14 @@ public com.google.cloud.functions.v2beta.RepoSourceOrBuilder getResolvedRepoSour
                                     if (resolvedRepoSourceBuilder_ != null) {
                                       return resolvedRepoSourceBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return resolvedRepoSource_ == null ?
                              -            com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance() : resolvedRepoSource_;
                              +        return resolvedRepoSource_ == null
                              +            ? com.google.cloud.functions.v2beta.RepoSource.getDefaultInstance()
                              +            : resolvedRepoSource_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * A copy of the build's `source.repo_source`, if exists, with any
                                    * revisions resolved.
                              @@ -860,21 +977,24 @@ public com.google.cloud.functions.v2beta.RepoSourceOrBuilder getResolvedRepoSour
                                    * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.cloud.functions.v2beta.RepoSource, com.google.cloud.functions.v2beta.RepoSource.Builder, com.google.cloud.functions.v2beta.RepoSourceOrBuilder> 
                              +            com.google.cloud.functions.v2beta.RepoSource,
                              +            com.google.cloud.functions.v2beta.RepoSource.Builder,
                              +            com.google.cloud.functions.v2beta.RepoSourceOrBuilder>
                                       getResolvedRepoSourceFieldBuilder() {
                                     if (resolvedRepoSourceBuilder_ == null) {
                              -        resolvedRepoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.cloud.functions.v2beta.RepoSource, com.google.cloud.functions.v2beta.RepoSource.Builder, com.google.cloud.functions.v2beta.RepoSourceOrBuilder>(
                              -                getResolvedRepoSource(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        resolvedRepoSourceBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.cloud.functions.v2beta.RepoSource,
                              +                com.google.cloud.functions.v2beta.RepoSource.Builder,
                              +                com.google.cloud.functions.v2beta.RepoSourceOrBuilder>(
                              +                getResolvedRepoSource(), getParentForChildren(), isClean());
                                       resolvedRepoSource_ = null;
                                     }
                                     return resolvedRepoSourceBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -884,12 +1004,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.SourceProvenance)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.SourceProvenance)
                                 private static final com.google.cloud.functions.v2beta.SourceProvenance DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.SourceProvenance();
                                 }
                              @@ -898,16 +1018,16 @@ public static com.google.cloud.functions.v2beta.SourceProvenance getDefaultInsta
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public SourceProvenance parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new SourceProvenance(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public SourceProvenance parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new SourceProvenance(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -922,6 +1042,4 @@ public com.google.protobuf.Parser getParserForType() {
                                 public com.google.cloud.functions.v2beta.SourceProvenance getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java
                              similarity index 75%
                              rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java
                              rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java
                              index d6bf610e..6be823a6 100644
                              --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenanceOrBuilder.java
                              @@ -1,33 +1,57 @@
                              +/*
                              + * 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 SourceProvenanceOrBuilder extends
                              +public interface SourceProvenanceOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.SourceProvenance)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                                  * 
                              * * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1; + * * @return Whether the resolvedStorageSource field is set. */ boolean hasResolvedStorageSource(); /** + * + * *
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                                  * 
                              * * .google.cloud.functions.v2beta.StorageSource resolved_storage_source = 1; + * * @return The resolvedStorageSource. */ com.google.cloud.functions.v2beta.StorageSource getResolvedStorageSource(); /** + * + * *
                                  * A copy of the build's `source.storage_source`, if exists, with any
                                  * generations resolved.
                              @@ -38,26 +62,34 @@ public interface SourceProvenanceOrBuilder extends
                                 com.google.cloud.functions.v2beta.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder();
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                                  * 
                              * * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2; + * * @return Whether the resolvedRepoSource field is set. */ boolean hasResolvedRepoSource(); /** + * + * *
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                                  * 
                              * * .google.cloud.functions.v2beta.RepoSource resolved_repo_source = 2; + * * @return The resolvedRepoSource. */ com.google.cloud.functions.v2beta.RepoSource getResolvedRepoSource(); /** + * + * *
                                  * A copy of the build's `source.repo_source`, if exists, with any
                                  * revisions resolved.
                              diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java
                              similarity index 75%
                              rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java
                              rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java
                              index ca4452b4..cd13ddb0 100644
                              --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java
                              +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java
                              @@ -1,24 +1,42 @@
                              +/*
                              + * 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;
                               
                               /**
                              + *
                              + *
                                * 
                                * Each Stage of the deployment process
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.Stage} */ -public final class Stage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Stage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.Stage) StageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Stage.newBuilder() to construct. private Stage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Stage() { name_ = 0; message_ = ""; @@ -30,16 +48,15 @@ private Stage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Stage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Stage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,52 +76,60 @@ private Stage( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - name_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + message_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - resource_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + resource_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceUri_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stateMessages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + resourceUri_ = s; + break; } - stateMessages_.add( - input.readMessage(com.google.cloud.functions.v2beta.StateMessage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stateMessages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stateMessages_.add( + input.readMessage( + com.google.cloud.functions.v2beta.StateMessage.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,8 +137,7 @@ private Stage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_); @@ -122,29 +146,35 @@ private Stage( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Stage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_Stage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.Stage.class, com.google.cloud.functions.v2beta.Stage.Builder.class); + com.google.cloud.functions.v2beta.Stage.class, + com.google.cloud.functions.v2beta.Stage.Builder.class); } /** + * + * *
                                  * Possible names for a Stage
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2beta.Stage.Name} */ - public enum Name - implements com.google.protobuf.ProtocolMessageEnum { + public enum Name implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified. Invalid name.
                                    * 
                              @@ -153,6 +183,8 @@ public enum Name */ NAME_UNSPECIFIED(0), /** + * + * *
                                    * Artifact Regsitry Stage
                                    * 
                              @@ -161,6 +193,8 @@ public enum Name */ ARTIFACT_REGISTRY(1), /** + * + * *
                                    * Build Stage
                                    * 
                              @@ -169,6 +203,8 @@ public enum Name */ BUILD(2), /** + * + * *
                                    * Service Stage
                                    * 
                              @@ -177,6 +213,8 @@ public enum Name */ SERVICE(3), /** + * + * *
                                    * Trigger Stage
                                    * 
                              @@ -185,6 +223,8 @@ public enum Name */ TRIGGER(4), /** + * + * *
                                    * Service Rollback Stage
                                    * 
                              @@ -193,6 +233,8 @@ public enum Name */ SERVICE_ROLLBACK(5), /** + * + * *
                                    * Trigger Rollback Stage
                                    * 
                              @@ -204,6 +246,8 @@ public enum Name ; /** + * + * *
                                    * Not specified. Invalid name.
                                    * 
                              @@ -212,6 +256,8 @@ public enum Name */ public static final int NAME_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Artifact Regsitry Stage
                                    * 
                              @@ -220,6 +266,8 @@ public enum Name */ public static final int ARTIFACT_REGISTRY_VALUE = 1; /** + * + * *
                                    * Build Stage
                                    * 
                              @@ -228,6 +276,8 @@ public enum Name */ public static final int BUILD_VALUE = 2; /** + * + * *
                                    * Service Stage
                                    * 
                              @@ -236,6 +286,8 @@ public enum Name */ public static final int SERVICE_VALUE = 3; /** + * + * *
                                    * Trigger Stage
                                    * 
                              @@ -244,6 +296,8 @@ public enum Name */ public static final int TRIGGER_VALUE = 4; /** + * + * *
                                    * Service Rollback Stage
                                    * 
                              @@ -252,6 +306,8 @@ public enum Name */ public static final int SERVICE_ROLLBACK_VALUE = 5; /** + * + * *
                                    * Trigger Rollback Stage
                                    * 
                              @@ -260,7 +316,6 @@ public enum Name */ public static final int TRIGGER_ROLLBACK_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -285,53 +340,57 @@ public static Name valueOf(int value) { */ public static Name forNumber(int value) { switch (value) { - case 0: return NAME_UNSPECIFIED; - case 1: return ARTIFACT_REGISTRY; - case 2: return BUILD; - case 3: return SERVICE; - case 4: return TRIGGER; - case 5: return SERVICE_ROLLBACK; - case 6: return TRIGGER_ROLLBACK; - default: return null; + case 0: + return NAME_UNSPECIFIED; + case 1: + return ARTIFACT_REGISTRY; + case 2: + return BUILD; + case 3: + return SERVICE; + case 4: + return TRIGGER; + case 5: + return SERVICE_ROLLBACK; + case 6: + return TRIGGER_ROLLBACK; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Name> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Name findValueByNumber(int number) { - return Name.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Name findValueByNumber(int number) { + return Name.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2beta.Stage.getDescriptor().getEnumTypes().get(0); } private static final Name[] VALUES = values(); - public static Name valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Name valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -349,15 +408,18 @@ private Name(int value) { } /** + * + * *
                                  * Possible states for a Stage
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2beta.Stage.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified. Invalid state.
                                    * 
                              @@ -366,6 +428,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
                                    * Stage has not started.
                                    * 
                              @@ -374,6 +438,8 @@ public enum State */ NOT_STARTED(1), /** + * + * *
                                    * Stage is in progress.
                                    * 
                              @@ -382,6 +448,8 @@ public enum State */ IN_PROGRESS(2), /** + * + * *
                                    * Stage has completed.
                                    * 
                              @@ -393,6 +461,8 @@ public enum State ; /** + * + * *
                                    * Not specified. Invalid state.
                                    * 
                              @@ -401,6 +471,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * Stage has not started.
                                    * 
                              @@ -409,6 +481,8 @@ public enum State */ public static final int NOT_STARTED_VALUE = 1; /** + * + * *
                                    * Stage is in progress.
                                    * 
                              @@ -417,6 +491,8 @@ public enum State */ public static final int IN_PROGRESS_VALUE = 2; /** + * + * *
                                    * Stage has completed.
                                    * 
                              @@ -425,7 +501,6 @@ public enum State */ public static final int COMPLETE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -450,50 +525,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return NOT_STARTED; - case 2: return IN_PROGRESS; - case 3: return COMPLETE; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return NOT_STARTED; + case 2: + return IN_PROGRESS; + case 3: + return COMPLETE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2beta.Stage.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -513,38 +589,50 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private int name_; /** + * + * *
                                  * Name of the Stage. This will be unique for each Stage.
                                  * 
                              * * .google.cloud.functions.v2beta.Stage.Name name = 1; + * * @return The enum numeric value on the wire for name. */ - @java.lang.Override public int getNameValue() { + @java.lang.Override + public int getNameValue() { return name_; } /** + * + * *
                                  * Name of the Stage. This will be unique for each Stage.
                                  * 
                              * * .google.cloud.functions.v2beta.Stage.Name name = 1; + * * @return The name. */ - @java.lang.Override public com.google.cloud.functions.v2beta.Stage.Name getName() { + @java.lang.Override + public com.google.cloud.functions.v2beta.Stage.Name getName() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Stage.Name result = com.google.cloud.functions.v2beta.Stage.Name.valueOf(name_); + com.google.cloud.functions.v2beta.Stage.Name result = + com.google.cloud.functions.v2beta.Stage.Name.valueOf(name_); return result == null ? com.google.cloud.functions.v2beta.Stage.Name.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** + * + * *
                                  * Message describing the Stage
                                  * 
                              * * string message = 2; + * * @return The message. */ @java.lang.Override @@ -553,29 +641,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
                                  * Message describing the Stage
                                  * 
                              * * string message = 2; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -586,38 +674,50 @@ public java.lang.String getMessage() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
                                  * Current state of the Stage
                                  * 
                              * * .google.cloud.functions.v2beta.Stage.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
                                  * Current state of the Stage
                                  * 
                              * * .google.cloud.functions.v2beta.Stage.State state = 3; + * * @return The state. */ - @java.lang.Override public com.google.cloud.functions.v2beta.Stage.State getState() { + @java.lang.Override + public com.google.cloud.functions.v2beta.Stage.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Stage.State result = com.google.cloud.functions.v2beta.Stage.State.valueOf(state_); + com.google.cloud.functions.v2beta.Stage.State result = + com.google.cloud.functions.v2beta.Stage.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2beta.Stage.State.UNRECOGNIZED : result; } public static final int RESOURCE_FIELD_NUMBER = 4; private volatile java.lang.Object resource_; /** + * + * *
                                  * Resource of the Stage
                                  * 
                              * * string resource = 4; + * * @return The resource. */ @java.lang.Override @@ -626,29 +726,29 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
                                  * Resource of the Stage
                                  * 
                              * * string resource = 4; + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -659,11 +759,14 @@ public java.lang.String getResource() { public static final int RESOURCE_URI_FIELD_NUMBER = 5; private volatile java.lang.Object resourceUri_; /** + * + * *
                                  * Link to the current Stage resource
                                  * 
                              * * string resource_uri = 5; + * * @return The resourceUri. */ @java.lang.Override @@ -672,29 +775,29 @@ public java.lang.String getResourceUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUri_ = s; return s; } } /** + * + * *
                                  * Link to the current Stage resource
                                  * 
                              * * string resource_uri = 5; + * * @return The bytes for resourceUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceUriBytes() { + public com.google.protobuf.ByteString getResourceUriBytes() { java.lang.Object ref = resourceUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUri_ = b; return b; } else { @@ -705,6 +808,8 @@ public java.lang.String getResourceUri() { public static final int STATE_MESSAGES_FIELD_NUMBER = 6; private java.util.List stateMessages_; /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -716,6 +821,8 @@ public java.util.List getStateMe return stateMessages_; } /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -723,11 +830,13 @@ public java.util.List getStateMe * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ @java.lang.Override - public java.util.List + public java.util.List getStateMessagesOrBuilderList() { return stateMessages_; } /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -739,6 +848,8 @@ public int getStateMessagesCount() { return stateMessages_.size(); } /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -750,6 +861,8 @@ public com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index return stateMessages_.get(index); } /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -763,6 +876,7 @@ public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesO } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -774,8 +888,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (name_ != com.google.cloud.functions.v2beta.Stage.Name.NAME_UNSPECIFIED.getNumber()) { output.writeEnum(1, name_); } @@ -804,15 +917,13 @@ public int getSerializedSize() { size = 0; if (name_ != com.google.cloud.functions.v2beta.Stage.Name.NAME_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, name_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } if (state_ != com.google.cloud.functions.v2beta.Stage.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); @@ -821,8 +932,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, resourceUri_); } for (int i = 0; i < stateMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, stateMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, stateMessages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -832,7 +942,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.Stage)) { return super.equals(obj); @@ -840,15 +950,11 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.functions.v2beta.Stage other = (com.google.cloud.functions.v2beta.Stage) obj; if (name_ != other.name_) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (state_ != other.state_) return false; - if (!getResource() - .equals(other.getResource())) return false; - if (!getResourceUri() - .equals(other.getResourceUri())) return false; - if (!getStateMessagesList() - .equals(other.getStateMessagesList())) return false; + if (!getResource().equals(other.getResource())) return false; + if (!getResourceUri().equals(other.getResourceUri())) return false; + if (!getStateMessagesList().equals(other.getStateMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -879,118 +985,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.Stage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.Stage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.Stage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Stage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.Stage 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.Stage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.Stage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2beta.Stage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.Stage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.Stage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.Stage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.Stage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.Stage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.Stage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2beta.Stage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Each Stage of the deployment process
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.Stage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.Stage) com.google.cloud.functions.v2beta.StageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Stage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_Stage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.Stage.class, com.google.cloud.functions.v2beta.Stage.Builder.class); + com.google.cloud.functions.v2beta.Stage.class, + com.google.cloud.functions.v2beta.Stage.Builder.class); } // Construct using com.google.cloud.functions.v2beta.Stage.newBuilder() @@ -998,17 +1113,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStateMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1032,9 +1147,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_Stage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_Stage_descriptor; } @java.lang.Override @@ -1053,7 +1168,8 @@ public com.google.cloud.functions.v2beta.Stage build() { @java.lang.Override public com.google.cloud.functions.v2beta.Stage buildPartial() { - com.google.cloud.functions.v2beta.Stage result = new com.google.cloud.functions.v2beta.Stage(this); + com.google.cloud.functions.v2beta.Stage result = + new com.google.cloud.functions.v2beta.Stage(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.message_ = message_; @@ -1077,38 +1193,39 @@ public com.google.cloud.functions.v2beta.Stage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.Stage)other); + return mergeFrom((com.google.cloud.functions.v2beta.Stage) other); } else { super.mergeFrom(other); return this; @@ -1153,9 +1270,10 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.Stage other) { stateMessagesBuilder_ = null; stateMessages_ = other.stateMessages_; bitField0_ = (bitField0_ & ~0x00000001); - stateMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStateMessagesFieldBuilder() : null; + stateMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStateMessagesFieldBuilder() + : null; } else { stateMessagesBuilder_.addAllMessages(other.stateMessages_); } @@ -1189,55 +1307,70 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private int name_ = 0; /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2beta.Stage.Name name = 1; + * * @return The enum numeric value on the wire for name. */ - @java.lang.Override public int getNameValue() { + @java.lang.Override + public int getNameValue() { return name_; } /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2beta.Stage.Name name = 1; + * * @param value The enum numeric value on the wire for name to set. * @return This builder for chaining. */ public Builder setNameValue(int value) { - + name_ = value; onChanged(); return this; } /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2beta.Stage.Name name = 1; + * * @return The name. */ @java.lang.Override public com.google.cloud.functions.v2beta.Stage.Name getName() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Stage.Name result = com.google.cloud.functions.v2beta.Stage.Name.valueOf(name_); + com.google.cloud.functions.v2beta.Stage.Name result = + com.google.cloud.functions.v2beta.Stage.Name.valueOf(name_); return result == null ? com.google.cloud.functions.v2beta.Stage.Name.UNRECOGNIZED : result; } /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2beta.Stage.Name name = 1; + * * @param value The name to set. * @return This builder for chaining. */ @@ -1245,21 +1378,24 @@ public Builder setName(com.google.cloud.functions.v2beta.Stage.Name value) { if (value == null) { throw new NullPointerException(); } - + name_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Name of the Stage. This will be unique for each Stage.
                                    * 
                              * * .google.cloud.functions.v2beta.Stage.Name name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = 0; onChanged(); return this; @@ -1267,18 +1403,20 @@ public Builder clearName() { private java.lang.Object message_ = ""; /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -1287,20 +1425,21 @@ public java.lang.String getMessage() { } } /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -1308,54 +1447,61 @@ public java.lang.String getMessage() { } } /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** + * + * *
                                    * Message describing the Stage
                                    * 
                              * * string message = 2; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; @@ -1363,51 +1509,65 @@ public Builder setMessageBytes( private int state_ = 0; /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2beta.Stage.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2beta.Stage.State state = 3; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2beta.Stage.State state = 3; + * * @return The state. */ @java.lang.Override public com.google.cloud.functions.v2beta.Stage.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.Stage.State result = com.google.cloud.functions.v2beta.Stage.State.valueOf(state_); + com.google.cloud.functions.v2beta.Stage.State result = + com.google.cloud.functions.v2beta.Stage.State.valueOf(state_); return result == null ? com.google.cloud.functions.v2beta.Stage.State.UNRECOGNIZED : result; } /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2beta.Stage.State state = 3; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1415,21 +1575,24 @@ public Builder setState(com.google.cloud.functions.v2beta.Stage.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Current state of the Stage
                                    * 
                              * * .google.cloud.functions.v2beta.Stage.State state = 3; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1437,18 +1600,20 @@ public Builder clearState() { private java.lang.Object resource_ = ""; /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -1457,20 +1622,21 @@ public java.lang.String getResource() { } } /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -1478,54 +1644,61 @@ public java.lang.String getResource() { } } /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
                                    * Resource of the Stage
                                    * 
                              * * string resource = 4; + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -1533,18 +1706,20 @@ public Builder setResourceBytes( private java.lang.Object resourceUri_ = ""; /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @return The resourceUri. */ public java.lang.String getResourceUri() { java.lang.Object ref = resourceUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUri_ = s; return s; @@ -1553,20 +1728,21 @@ public java.lang.String getResourceUri() { } } /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @return The bytes for resourceUri. */ - public com.google.protobuf.ByteString - getResourceUriBytes() { + public com.google.protobuf.ByteString getResourceUriBytes() { java.lang.Object ref = resourceUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUri_ = b; return b; } else { @@ -1574,72 +1750,86 @@ public java.lang.String getResourceUri() { } } /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @param value The resourceUri to set. * @return This builder for chaining. */ - public Builder setResourceUri( - java.lang.String value) { + public Builder setResourceUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUri_ = value; onChanged(); return this; } /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @return This builder for chaining. */ public Builder clearResourceUri() { - + resourceUri_ = getDefaultInstance().getResourceUri(); onChanged(); return this; } /** + * + * *
                                    * Link to the current Stage resource
                                    * 
                              * * string resource_uri = 5; + * * @param value The bytes for resourceUri to set. * @return This builder for chaining. */ - public Builder setResourceUriBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUri_ = value; onChanged(); return this; } private java.util.List stateMessages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStateMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - stateMessages_ = new java.util.ArrayList(stateMessages_); + stateMessages_ = + new java.util.ArrayList(stateMessages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.StateMessage, com.google.cloud.functions.v2beta.StateMessage.Builder, com.google.cloud.functions.v2beta.StateMessageOrBuilder> stateMessagesBuilder_; + com.google.cloud.functions.v2beta.StateMessage, + com.google.cloud.functions.v2beta.StateMessage.Builder, + com.google.cloud.functions.v2beta.StateMessageOrBuilder> + stateMessagesBuilder_; /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1654,6 +1844,8 @@ public java.util.List getStateMe } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1668,6 +1860,8 @@ public int getStateMessagesCount() { } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1682,6 +1876,8 @@ public com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1703,6 +1899,8 @@ public Builder setStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1721,6 +1919,8 @@ public Builder setStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1741,6 +1941,8 @@ public Builder addStateMessages(com.google.cloud.functions.v2beta.StateMessage v return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1762,6 +1964,8 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1780,6 +1984,8 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1798,6 +2004,8 @@ public Builder addStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1808,8 +2016,7 @@ public Builder addAllStateMessages( java.lang.Iterable values) { if (stateMessagesBuilder_ == null) { ensureStateMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stateMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateMessages_); onChanged(); } else { stateMessagesBuilder_.addAllMessages(values); @@ -1817,6 +2024,8 @@ public Builder addAllStateMessages( return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1834,6 +2043,8 @@ public Builder clearStateMessages() { return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1851,6 +2062,8 @@ public Builder removeStateMessages(int index) { return this; } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1862,6 +2075,8 @@ public com.google.cloud.functions.v2beta.StateMessage.Builder getStateMessagesBu return getStateMessagesFieldBuilder().getBuilder(index); } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1871,19 +2086,22 @@ public com.google.cloud.functions.v2beta.StateMessage.Builder getStateMessagesBu public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder( int index) { if (stateMessagesBuilder_ == null) { - return stateMessages_.get(index); } else { + return stateMessages_.get(index); + } else { return stateMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ - public java.util.List - getStateMessagesOrBuilderList() { + public java.util.List + getStateMessagesOrBuilderList() { if (stateMessagesBuilder_ != null) { return stateMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -1891,6 +2109,8 @@ public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesO } } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1898,10 +2118,12 @@ public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesO * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBuilder() { - return getStateMessagesFieldBuilder().addBuilder( - com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder() + .addBuilder(com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              @@ -1910,26 +2132,34 @@ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBu */ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBuilder( int index) { - return getStateMessagesFieldBuilder().addBuilder( - index, com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); + return getStateMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.functions.v2beta.StateMessage.getDefaultInstance()); } /** + * + * *
                                    * State messages from the current Stage.
                                    * 
                              * * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ - public java.util.List - getStateMessagesBuilderList() { + public java.util.List + getStateMessagesBuilderList() { return getStateMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.StateMessage, com.google.cloud.functions.v2beta.StateMessage.Builder, com.google.cloud.functions.v2beta.StateMessageOrBuilder> + com.google.cloud.functions.v2beta.StateMessage, + com.google.cloud.functions.v2beta.StateMessage.Builder, + com.google.cloud.functions.v2beta.StateMessageOrBuilder> getStateMessagesFieldBuilder() { if (stateMessagesBuilder_ == null) { - stateMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.functions.v2beta.StateMessage, com.google.cloud.functions.v2beta.StateMessage.Builder, com.google.cloud.functions.v2beta.StateMessageOrBuilder>( + stateMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.functions.v2beta.StateMessage, + com.google.cloud.functions.v2beta.StateMessage.Builder, + com.google.cloud.functions.v2beta.StateMessageOrBuilder>( stateMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1938,9 +2168,9 @@ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBu } return stateMessagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1950,12 +2180,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.Stage) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.Stage) private static final com.google.cloud.functions.v2beta.Stage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.Stage(); } @@ -1964,16 +2194,16 @@ public static com.google.cloud.functions.v2beta.Stage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Stage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Stage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Stage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1988,6 +2218,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.Stage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java similarity index 76% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java index 6064c0f9..f445c5be 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StageOrBuilder.java @@ -1,120 +1,166 @@ +/* + * 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 StageOrBuilder extends +public interface StageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.Stage) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Name of the Stage. This will be unique for each Stage.
                                  * 
                              * * .google.cloud.functions.v2beta.Stage.Name name = 1; + * * @return The enum numeric value on the wire for name. */ int getNameValue(); /** + * + * *
                                  * Name of the Stage. This will be unique for each Stage.
                                  * 
                              * * .google.cloud.functions.v2beta.Stage.Name name = 1; + * * @return The name. */ com.google.cloud.functions.v2beta.Stage.Name getName(); /** + * + * *
                                  * Message describing the Stage
                                  * 
                              * * string message = 2; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
                                  * Message describing the Stage
                                  * 
                              * * string message = 2; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); /** + * + * *
                                  * Current state of the Stage
                                  * 
                              * * .google.cloud.functions.v2beta.Stage.State state = 3; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
                                  * Current state of the Stage
                                  * 
                              * * .google.cloud.functions.v2beta.Stage.State state = 3; + * * @return The state. */ com.google.cloud.functions.v2beta.Stage.State getState(); /** + * + * *
                                  * Resource of the Stage
                                  * 
                              * * string resource = 4; + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
                                  * Resource of the Stage
                                  * 
                              * * string resource = 4; + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
                                  * Link to the current Stage resource
                                  * 
                              * * string resource_uri = 5; + * * @return The resourceUri. */ java.lang.String getResourceUri(); /** + * + * *
                                  * Link to the current Stage resource
                                  * 
                              * * string resource_uri = 5; + * * @return The bytes for resourceUri. */ - com.google.protobuf.ByteString - getResourceUriBytes(); + com.google.protobuf.ByteString getResourceUriBytes(); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ - java.util.List - getStateMessagesList(); + java.util.List getStateMessagesList(); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -123,6 +169,8 @@ public interface StageOrBuilder extends */ com.google.cloud.functions.v2beta.StateMessage getStateMessages(int index); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              @@ -131,21 +179,24 @@ public interface StageOrBuilder extends */ int getStateMessagesCount(); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ - java.util.List + java.util.List getStateMessagesOrBuilderList(); /** + * + * *
                                  * State messages from the current Stage.
                                  * 
                              * * repeated .google.cloud.functions.v2beta.StateMessage state_messages = 6; */ - com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder( - int index); + com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder(int index); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java similarity index 70% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java index 505e4ebc..4ec960aa 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Informational messages about the state of the Cloud Function or Operation.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.StateMessage} */ -public final class StateMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StateMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.StateMessage) StateMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StateMessage.newBuilder() to construct. private StateMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StateMessage() { severity_ = 0; type_ = ""; @@ -27,16 +45,15 @@ private StateMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StateMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StateMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private StateMessage( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - severity_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + severity_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + type_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + message_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,36 +107,41 @@ private StateMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.StateMessage.class, com.google.cloud.functions.v2beta.StateMessage.Builder.class); + com.google.cloud.functions.v2beta.StateMessage.class, + com.google.cloud.functions.v2beta.StateMessage.Builder.class); } /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * Protobuf enum {@code google.cloud.functions.v2beta.StateMessage.Severity} */ - public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                                    * Not specified. Invalid severity.
                                    * 
                              @@ -125,6 +150,8 @@ public enum Severity */ SEVERITY_UNSPECIFIED(0), /** + * + * *
                                    * ERROR-level severity.
                                    * 
                              @@ -133,6 +160,8 @@ public enum Severity */ ERROR(1), /** + * + * *
                                    * WARNING-level severity.
                                    * 
                              @@ -141,6 +170,8 @@ public enum Severity */ WARNING(2), /** + * + * *
                                    * INFO-level severity.
                                    * 
                              @@ -152,6 +183,8 @@ public enum Severity ; /** + * + * *
                                    * Not specified. Invalid severity.
                                    * 
                              @@ -160,6 +193,8 @@ public enum Severity */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** + * + * *
                                    * ERROR-level severity.
                                    * 
                              @@ -168,6 +203,8 @@ public enum Severity */ public static final int ERROR_VALUE = 1; /** + * + * *
                                    * WARNING-level severity.
                                    * 
                              @@ -176,6 +213,8 @@ public enum Severity */ public static final int WARNING_VALUE = 2; /** + * + * *
                                    * INFO-level severity.
                                    * 
                              @@ -184,7 +223,6 @@ public enum Severity */ public static final int INFO_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -209,50 +247,51 @@ public static Severity valueOf(int value) { */ public static Severity forNumber(int value) { switch (value) { - case 0: return SEVERITY_UNSPECIFIED; - case 1: return ERROR; - case 2: return WARNING; - case 3: return INFO; - default: return null; + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return ERROR; + case 2: + return WARNING; + case 3: + return INFO; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Severity> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.functions.v2beta.StateMessage.getDescriptor().getEnumTypes().get(0); } private static final Severity[] VALUES = values(); - public static Severity valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -272,38 +311,52 @@ private Severity(int value) { public static final int SEVERITY_FIELD_NUMBER = 1; private int severity_; /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; + * * @return The severity. */ - @java.lang.Override public com.google.cloud.functions.v2beta.StateMessage.Severity getSeverity() { + @java.lang.Override + public com.google.cloud.functions.v2beta.StateMessage.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.StateMessage.Severity result = com.google.cloud.functions.v2beta.StateMessage.Severity.valueOf(severity_); - return result == null ? com.google.cloud.functions.v2beta.StateMessage.Severity.UNRECOGNIZED : result; + com.google.cloud.functions.v2beta.StateMessage.Severity result = + com.google.cloud.functions.v2beta.StateMessage.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.functions.v2beta.StateMessage.Severity.UNRECOGNIZED + : result; } public static final int TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object type_; /** + * + * *
                                  * One-word CamelCase type of the state message.
                                  * 
                              * * string type = 2; + * * @return The type. */ @java.lang.Override @@ -312,29 +365,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
                                  * One-word CamelCase type of the state message.
                                  * 
                              * * string type = 2; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -345,11 +398,14 @@ public java.lang.String getType() { public static final int MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object message_; /** + * + * *
                                  * The message.
                                  * 
                              * * string message = 3; + * * @return The message. */ @java.lang.Override @@ -358,29 +414,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
                                  * The message.
                                  * 
                              * * string message = 3; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -389,6 +445,7 @@ public java.lang.String getMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -400,9 +457,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (severity_ != com.google.cloud.functions.v2beta.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (severity_ + != com.google.cloud.functions.v2beta.StateMessage.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { output.writeEnum(1, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { @@ -420,9 +478,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (severity_ != com.google.cloud.functions.v2beta.StateMessage.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, severity_); + if (severity_ + != com.google.cloud.functions.v2beta.StateMessage.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); @@ -438,18 +497,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.StateMessage)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.StateMessage other = (com.google.cloud.functions.v2beta.StateMessage) obj; + com.google.cloud.functions.v2beta.StateMessage other = + (com.google.cloud.functions.v2beta.StateMessage) obj; if (severity_ != other.severity_) return false; - if (!getType() - .equals(other.getType())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getType().equals(other.getType())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,118 +530,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.functions.v2beta.StateMessage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.StateMessage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.StateMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StateMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.StateMessage 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.StateMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.StateMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2beta.StateMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.StateMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.StateMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.StateMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.StateMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.StateMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.StateMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2beta.StateMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Informational messages about the state of the Cloud Function or Operation.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.StateMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.StateMessage) com.google.cloud.functions.v2beta.StateMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_StateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.StateMessage.class, com.google.cloud.functions.v2beta.StateMessage.Builder.class); + com.google.cloud.functions.v2beta.StateMessage.class, + com.google.cloud.functions.v2beta.StateMessage.Builder.class); } // Construct using com.google.cloud.functions.v2beta.StateMessage.newBuilder() @@ -591,16 +658,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -614,9 +680,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; } @java.lang.Override @@ -635,7 +701,8 @@ public com.google.cloud.functions.v2beta.StateMessage build() { @java.lang.Override public com.google.cloud.functions.v2beta.StateMessage buildPartial() { - com.google.cloud.functions.v2beta.StateMessage result = new com.google.cloud.functions.v2beta.StateMessage(this); + com.google.cloud.functions.v2beta.StateMessage result = + new com.google.cloud.functions.v2beta.StateMessage(this); result.severity_ = severity_; result.type_ = type_; result.message_ = message_; @@ -647,38 +714,39 @@ public com.google.cloud.functions.v2beta.StateMessage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.StateMessage)other); + return mergeFrom((com.google.cloud.functions.v2beta.StateMessage) other); } else { super.mergeFrom(other); return this; @@ -729,51 +797,67 @@ public Builder mergeFrom( private int severity_ = 0; /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; + * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; + * * @return The severity. */ @java.lang.Override public com.google.cloud.functions.v2beta.StateMessage.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.functions.v2beta.StateMessage.Severity result = com.google.cloud.functions.v2beta.StateMessage.Severity.valueOf(severity_); - return result == null ? com.google.cloud.functions.v2beta.StateMessage.Severity.UNRECOGNIZED : result; + com.google.cloud.functions.v2beta.StateMessage.Severity result = + com.google.cloud.functions.v2beta.StateMessage.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.functions.v2beta.StateMessage.Severity.UNRECOGNIZED + : result; } /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; + * * @param value The severity to set. * @return This builder for chaining. */ @@ -781,21 +865,24 @@ public Builder setSeverity(com.google.cloud.functions.v2beta.StateMessage.Severi if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                                    * Severity of the state message.
                                    * 
                              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; + * * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -803,18 +890,20 @@ public Builder clearSeverity() { private java.lang.Object type_ = ""; /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -823,20 +912,21 @@ public java.lang.String getType() { } } /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -844,54 +934,61 @@ public java.lang.String getType() { } } /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
                                    * One-word CamelCase type of the state message.
                                    * 
                              * * string type = 2; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -899,18 +996,20 @@ public Builder setTypeBytes( private java.lang.Object message_ = ""; /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -919,20 +1018,21 @@ public java.lang.String getMessage() { } } /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -940,61 +1040,68 @@ public java.lang.String getMessage() { } } /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** + * + * *
                                    * The message.
                                    * 
                              * * string message = 3; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1004,12 +1111,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.StateMessage) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.StateMessage) private static final com.google.cloud.functions.v2beta.StateMessage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.StateMessage(); } @@ -1018,16 +1125,16 @@ public static com.google.cloud.functions.v2beta.StateMessage getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StateMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1042,6 +1149,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.StateMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java similarity index 63% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java index 020ee039..a5e2eef9 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessageOrBuilder.java @@ -1,68 +1,100 @@ +/* + * 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 StateMessageOrBuilder extends +public interface StateMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.StateMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
                                  * Severity of the state message.
                                  * 
                              * * .google.cloud.functions.v2beta.StateMessage.Severity severity = 1; + * * @return The severity. */ com.google.cloud.functions.v2beta.StateMessage.Severity getSeverity(); /** + * + * *
                                  * One-word CamelCase type of the state message.
                                  * 
                              * * string type = 2; + * * @return The type. */ java.lang.String getType(); /** + * + * *
                                  * One-word CamelCase type of the state message.
                                  * 
                              * * string type = 2; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
                                  * The message.
                                  * 
                              * * string message = 3; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
                                  * The message.
                                  * 
                              * * string message = 3; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); } diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java similarity index 72% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java index a49bf80f..f99dec2b 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
                                * Location of the source in an archive file in Google Cloud Storage.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.StorageSource} */ -public final class StorageSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StorageSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.StorageSource) StorageSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StorageSource.newBuilder() to construct. private StorageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StorageSource() { bucket_ = ""; object_ = ""; @@ -26,16 +44,15 @@ private StorageSource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StorageSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StorageSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private StorageSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - bucket_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - object_ = s; - break; - } - case 24: { + bucket_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - generation_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + object_ = s; + break; + } + case 24: + { + generation_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,29 +104,33 @@ private StorageSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.StorageSource.class, com.google.cloud.functions.v2beta.StorageSource.Builder.class); + com.google.cloud.functions.v2beta.StorageSource.class, + com.google.cloud.functions.v2beta.StorageSource.Builder.class); } public static final int BUCKET_FIELD_NUMBER = 1; private volatile java.lang.Object bucket_; /** + * + * *
                                  * Google Cloud Storage bucket containing the source (see
                                  * [Bucket Name
                              @@ -115,6 +138,7 @@ private StorageSource(
                                  * 
                              * * string bucket = 1; + * * @return The bucket. */ @java.lang.Override @@ -123,14 +147,15 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** + * + * *
                                  * Google Cloud Storage bucket containing the source (see
                                  * [Bucket Name
                              @@ -138,16 +163,15 @@ public java.lang.String getBucket() {
                                  * 
                              * * string bucket = 1; + * * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString - getBucketBytes() { + public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucket_ = b; return b; } else { @@ -158,6 +182,8 @@ public java.lang.String getBucket() { public static final int OBJECT_FIELD_NUMBER = 2; private volatile java.lang.Object object_; /** + * + * *
                                  * Google Cloud Storage object containing the source.
                                  * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -165,6 +191,7 @@ public java.lang.String getBucket() {
                                  * 
                              * * string object = 2; + * * @return The object. */ @java.lang.Override @@ -173,14 +200,15 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** + * + * *
                                  * Google Cloud Storage object containing the source.
                                  * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -188,16 +216,15 @@ public java.lang.String getObject() {
                                  * 
                              * * string object = 2; + * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString - getObjectBytes() { + public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { @@ -208,12 +235,15 @@ public java.lang.String getObject() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_; /** + * + * *
                                  * Google Cloud Storage generation for the object. If the generation is
                                  * omitted, the latest generation will be used.
                                  * 
                              * * int64 generation = 3; + * * @return The generation. */ @java.lang.Override @@ -222,6 +252,7 @@ public long getGeneration() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -260,8 +290,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, generation_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -271,19 +300,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.functions.v2beta.StorageSource)) { return super.equals(obj); } - com.google.cloud.functions.v2beta.StorageSource other = (com.google.cloud.functions.v2beta.StorageSource) obj; + com.google.cloud.functions.v2beta.StorageSource other = + (com.google.cloud.functions.v2beta.StorageSource) obj; - if (!getBucket() - .equals(other.getBucket())) return false; - if (!getObject() - .equals(other.getObject())) return false; - if (getGeneration() - != other.getGeneration()) return false; + if (!getBucket().equals(other.getBucket())) return false; + if (!getObject().equals(other.getObject())) return false; + if (getGeneration() != other.getGeneration()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,125 +327,133 @@ public int hashCode() { hash = (37 * hash) + OBJECT_FIELD_NUMBER; hash = (53 * hash) + getObject().hashCode(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.functions.v2beta.StorageSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.functions.v2beta.StorageSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.StorageSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StorageSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.StorageSource 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.StorageSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.functions.v2beta.StorageSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.functions.v2beta.StorageSource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.StorageSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.functions.v2beta.StorageSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.functions.v2beta.StorageSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.StorageSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.functions.v2beta.StorageSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.functions.v2beta.StorageSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.functions.v2beta.StorageSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                                  * Location of the source in an archive file in Google Cloud Storage.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.StorageSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.StorageSource) com.google.cloud.functions.v2beta.StorageSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_StorageSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.StorageSource.class, com.google.cloud.functions.v2beta.StorageSource.Builder.class); + com.google.cloud.functions.v2beta.StorageSource.class, + com.google.cloud.functions.v2beta.StorageSource.Builder.class); } // Construct using com.google.cloud.functions.v2beta.StorageSource.newBuilder() @@ -426,16 +461,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; } @java.lang.Override @@ -470,7 +504,8 @@ public com.google.cloud.functions.v2beta.StorageSource build() { @java.lang.Override public com.google.cloud.functions.v2beta.StorageSource buildPartial() { - com.google.cloud.functions.v2beta.StorageSource result = new com.google.cloud.functions.v2beta.StorageSource(this); + com.google.cloud.functions.v2beta.StorageSource result = + new com.google.cloud.functions.v2beta.StorageSource(this); result.bucket_ = bucket_; result.object_ = object_; result.generation_ = generation_; @@ -482,38 +517,39 @@ public com.google.cloud.functions.v2beta.StorageSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.StorageSource)other); + return mergeFrom((com.google.cloud.functions.v2beta.StorageSource) other); } else { super.mergeFrom(other); return this; @@ -521,7 +557,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.StorageSource other) { - if (other == com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2beta.StorageSource.getDefaultInstance()) + return this; if (!other.getBucket().isEmpty()) { bucket_ = other.bucket_; onChanged(); @@ -564,6 +601,8 @@ public Builder mergeFrom( private java.lang.Object bucket_ = ""; /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -571,13 +610,13 @@ public Builder mergeFrom(
                                    * 
                              * * string bucket = 1; + * * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; @@ -586,6 +625,8 @@ public java.lang.String getBucket() { } } /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -593,15 +634,14 @@ public java.lang.String getBucket() {
                                    * 
                              * * string bucket = 1; + * * @return The bytes for bucket. */ - public com.google.protobuf.ByteString - getBucketBytes() { + public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucket_ = b; return b; } else { @@ -609,6 +649,8 @@ public java.lang.String getBucket() { } } /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -616,20 +658,22 @@ public java.lang.String getBucket() {
                                    * 
                              * * string bucket = 1; + * * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket( - java.lang.String value) { + public Builder setBucket(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bucket_ = value; onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -637,15 +681,18 @@ public Builder setBucket(
                                    * 
                              * * string bucket = 1; + * * @return This builder for chaining. */ public Builder clearBucket() { - + bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage bucket containing the source (see
                                    * [Bucket Name
                              @@ -653,16 +700,16 @@ public Builder clearBucket() {
                                    * 
                              * * string bucket = 1; + * * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes( - com.google.protobuf.ByteString value) { + public Builder setBucketBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; onChanged(); return this; @@ -670,6 +717,8 @@ public Builder setBucketBytes( private java.lang.Object object_ = ""; /** + * + * *
                                    * Google Cloud Storage object containing the source.
                                    * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -677,13 +726,13 @@ public Builder setBucketBytes(
                                    * 
                              * * string object = 2; + * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -692,6 +741,8 @@ 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
                              @@ -699,15 +750,14 @@ public java.lang.String getObject() {
                                    * 
                              * * string object = 2; + * * @return The bytes for object. */ - public com.google.protobuf.ByteString - getObjectBytes() { + public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { @@ -715,6 +765,8 @@ 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
                              @@ -722,20 +774,22 @@ public java.lang.String getObject() {
                                    * 
                              * * string object = 2; + * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject( - java.lang.String value) { + public Builder setObject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + object_ = value; onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage object containing the source.
                                    * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -743,15 +797,18 @@ public Builder setObject(
                                    * 
                              * * string object = 2; + * * @return This builder for chaining. */ public Builder clearObject() { - + object_ = getDefaultInstance().getObject(); onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage object containing the source.
                                    * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -759,29 +816,32 @@ public Builder clearObject() {
                                    * 
                              * * string object = 2; + * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes( - com.google.protobuf.ByteString value) { + public Builder setObjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + object_ = value; onChanged(); return this; } - private long generation_ ; + private long generation_; /** + * + * *
                                    * Google Cloud Storage generation for the object. If the generation is
                                    * omitted, the latest generation will be used.
                                    * 
                              * * int64 generation = 3; + * * @return The generation. */ @java.lang.Override @@ -789,39 +849,45 @@ public long getGeneration() { return generation_; } /** + * + * *
                                    * Google Cloud Storage generation for the object. If the generation is
                                    * omitted, the latest generation will be used.
                                    * 
                              * * int64 generation = 3; + * * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { - + generation_ = value; onChanged(); return this; } /** + * + * *
                                    * Google Cloud Storage generation for the object. If the generation is
                                    * omitted, the latest generation will be used.
                                    * 
                              * * int64 generation = 3; + * * @return This builder for chaining. */ public Builder clearGeneration() { - + generation_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -831,12 +897,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.StorageSource) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.StorageSource) private static final com.google.cloud.functions.v2beta.StorageSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.StorageSource(); } @@ -845,16 +911,16 @@ public static com.google.cloud.functions.v2beta.StorageSource getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StorageSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,6 +935,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.functions.v2beta.StorageSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java similarity index 67% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java index 7900527c..cc284c24 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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 StorageSourceOrBuilder extends +public interface StorageSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.StorageSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
                                  * Google Cloud Storage bucket containing the source (see
                                  * [Bucket Name
                              @@ -15,10 +33,13 @@ public interface StorageSourceOrBuilder extends
                                  * 
                              * * string bucket = 1; + * * @return The bucket. */ java.lang.String getBucket(); /** + * + * *
                                  * Google Cloud Storage bucket containing the source (see
                                  * [Bucket Name
                              @@ -26,12 +47,14 @@ public interface StorageSourceOrBuilder extends
                                  * 
                              * * string bucket = 1; + * * @return The bytes for bucket. */ - com.google.protobuf.ByteString - getBucketBytes(); + 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
                              @@ -39,10 +62,13 @@ public interface StorageSourceOrBuilder extends
                                  * 
                              * * string object = 2; + * * @return The object. */ java.lang.String getObject(); /** + * + * *
                                  * Google Cloud Storage object containing the source.
                                  * This object must be a gzipped archive file (`.tar.gz`) containing source to
                              @@ -50,18 +76,21 @@ public interface StorageSourceOrBuilder extends
                                  * 
                              * * string object = 2; + * * @return The bytes for object. */ - com.google.protobuf.ByteString - getObjectBytes(); + com.google.protobuf.ByteString getObjectBytes(); /** + * + * *
                                  * Google Cloud Storage generation for the object. If the generation is
                                  * omitted, the latest generation will be used.
                                  * 
                              * * int64 generation = 3; + * * @return The generation. */ long getGeneration(); diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java similarity index 65% rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java index 07a2f014..3c236b7e 100644 --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java @@ -1,39 +1,55 @@ +/* + * 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; /** + * + * *
                                * Request for the `UpdateFunction` method.
                                * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.UpdateFunctionRequest} */ -public final class UpdateFunctionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.UpdateFunctionRequest) UpdateFunctionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateFunctionRequest.newBuilder() to construct. private UpdateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFunctionRequest() { - } + + private UpdateFunctionRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFunctionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateFunctionRequest( case 0: done = true; break; - case 10: { - com.google.cloud.functions.v2beta.Function.Builder subBuilder = null; - if (function_ != null) { - subBuilder = function_.toBuilder(); - } - function_ = input.readMessage(com.google.cloud.functions.v2beta.Function.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(function_); - function_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.functions.v2beta.Function.Builder subBuilder = null; + if (function_ != null) { + subBuilder = function_.toBuilder(); + } + function_ = + input.readMessage( + com.google.cloud.functions.v2beta.Function.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(function_); + function_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,41 @@ private UpdateFunctionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.UpdateFunctionRequest.class, com.google.cloud.functions.v2beta.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.UpdateFunctionRequest.class, + com.google.cloud.functions.v2beta.UpdateFunctionRequest.Builder.class); } public static final int FUNCTION_FIELD_NUMBER = 1; private com.google.cloud.functions.v2beta.Function function_; /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ @java.lang.Override @@ -127,23 +155,34 @@ public boolean hasFunction() { return function_ != null; } /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ @java.lang.Override public com.google.cloud.functions.v2beta.Function getFunction() { - return function_ == null ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() + : function_; } /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder() { @@ -153,6 +192,8 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder( public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -160,6 +201,7 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder(
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -167,6 +209,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -174,6 +218,7 @@ public boolean hasUpdateMask() {
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -181,6 +226,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -195,6 +242,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                                 }
                               
                                 private byte memoizedIsInitialized = -1;
                              +
                                 @java.lang.Override
                                 public final boolean isInitialized() {
                                   byte isInitialized = memoizedIsInitialized;
                              @@ -206,8 +254,7 @@ public final boolean isInitialized() {
                                 }
                               
                                 @java.lang.Override
                              -  public void writeTo(com.google.protobuf.CodedOutputStream output)
                              -                      throws java.io.IOException {
                              +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                                   if (function_ != null) {
                                     output.writeMessage(1, getFunction());
                                   }
                              @@ -224,12 +271,10 @@ public int getSerializedSize() {
                               
                                   size = 0;
                                   if (function_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(1, getFunction());
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunction());
                                   }
                                   if (updateMask_ != null) {
                              -      size += com.google.protobuf.CodedOutputStream
                              -        .computeMessageSize(2, getUpdateMask());
                              +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
                                   }
                                   size += unknownFields.getSerializedSize();
                                   memoizedSize = size;
                              @@ -239,22 +284,21 @@ public int getSerializedSize() {
                                 @java.lang.Override
                                 public boolean equals(final java.lang.Object obj) {
                                   if (obj == this) {
                              -     return true;
                              +      return true;
                                   }
                                   if (!(obj instanceof com.google.cloud.functions.v2beta.UpdateFunctionRequest)) {
                                     return super.equals(obj);
                                   }
                              -    com.google.cloud.functions.v2beta.UpdateFunctionRequest other = (com.google.cloud.functions.v2beta.UpdateFunctionRequest) obj;
                              +    com.google.cloud.functions.v2beta.UpdateFunctionRequest other =
                              +        (com.google.cloud.functions.v2beta.UpdateFunctionRequest) obj;
                               
                                   if (hasFunction() != other.hasFunction()) return false;
                                   if (hasFunction()) {
                              -      if (!getFunction()
                              -          .equals(other.getFunction())) return false;
                              +      if (!getFunction().equals(other.getFunction())) return false;
                                   }
                                   if (hasUpdateMask() != other.hasUpdateMask()) return false;
                                   if (hasUpdateMask()) {
                              -      if (!getUpdateMask()
                              -          .equals(other.getUpdateMask())) return false;
                              +      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
                                   }
                                   if (!unknownFields.equals(other.unknownFields)) return false;
                                   return true;
                              @@ -281,117 +325,127 @@ public int hashCode() {
                                 }
                               
                                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
                              -      java.nio.ByteBuffer data)
                              -      throws com.google.protobuf.InvalidProtocolBufferException {
                              +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
                              -      java.nio.ByteBuffer data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      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.UpdateFunctionRequest parseFrom(
                                     com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest 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.UpdateFunctionRequest parseFrom(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
                              -      byte[] data,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException {
                                   return PARSER.parseFrom(data, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              -  public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseDelimitedFrom(java.io.InputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input);
                              +
                              +  public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseDelimitedFrom(
                              +      java.io.InputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseDelimitedFrom(
                              -      java.io.InputStream input,
                              -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
                              -      com.google.protobuf.CodedInputStream input)
                              -      throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input);
                              +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
                                 }
                              +
                                 public static com.google.cloud.functions.v2beta.UpdateFunctionRequest parseFrom(
                                     com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException {
                              -    return com.google.protobuf.GeneratedMessageV3
                              -        .parseWithIOException(PARSER, input, extensionRegistry);
                              +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
                              +        PARSER, input, extensionRegistry);
                                 }
                               
                                 @java.lang.Override
                              -  public Builder newBuilderForType() { return newBuilder(); }
                              +  public Builder newBuilderForType() {
                              +    return newBuilder();
                              +  }
                              +
                                 public static Builder newBuilder() {
                                   return DEFAULT_INSTANCE.toBuilder();
                                 }
                              -  public static Builder newBuilder(com.google.cloud.functions.v2beta.UpdateFunctionRequest prototype) {
                              +
                              +  public static Builder newBuilder(
                              +      com.google.cloud.functions.v2beta.UpdateFunctionRequest prototype) {
                                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                                 }
                              +
                                 @java.lang.Override
                                 public Builder toBuilder() {
                              -    return this == DEFAULT_INSTANCE
                              -        ? new Builder() : new Builder().mergeFrom(this);
                              +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
                                 }
                               
                                 @java.lang.Override
                              -  protected Builder newBuilderForType(
                              -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                              +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                                   Builder builder = new Builder(parent);
                                   return builder;
                                 }
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Request for the `UpdateFunction` method.
                                  * 
                              * * Protobuf type {@code google.cloud.functions.v2beta.UpdateFunctionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.UpdateFunctionRequest) com.google.cloud.functions.v2beta.UpdateFunctionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.functions.v2beta.UpdateFunctionRequest.class, com.google.cloud.functions.v2beta.UpdateFunctionRequest.Builder.class); + com.google.cloud.functions.v2beta.UpdateFunctionRequest.class, + com.google.cloud.functions.v2beta.UpdateFunctionRequest.Builder.class); } // Construct using com.google.cloud.functions.v2beta.UpdateFunctionRequest.newBuilder() @@ -399,16 +453,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.functions.v2beta.FunctionsProto.internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; } @java.lang.Override @@ -449,7 +502,8 @@ public com.google.cloud.functions.v2beta.UpdateFunctionRequest build() { @java.lang.Override public com.google.cloud.functions.v2beta.UpdateFunctionRequest buildPartial() { - com.google.cloud.functions.v2beta.UpdateFunctionRequest result = new com.google.cloud.functions.v2beta.UpdateFunctionRequest(this); + com.google.cloud.functions.v2beta.UpdateFunctionRequest result = + new com.google.cloud.functions.v2beta.UpdateFunctionRequest(this); if (functionBuilder_ == null) { result.function_ = function_; } else { @@ -468,38 +522,39 @@ public com.google.cloud.functions.v2beta.UpdateFunctionRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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) { - return mergeFrom((com.google.cloud.functions.v2beta.UpdateFunctionRequest)other); + return mergeFrom((com.google.cloud.functions.v2beta.UpdateFunctionRequest) other); } else { super.mergeFrom(other); return this; @@ -507,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.functions.v2beta.UpdateFunctionRequest other) { - if (other == com.google.cloud.functions.v2beta.UpdateFunctionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.functions.v2beta.UpdateFunctionRequest.getDefaultInstance()) + return this; if (other.hasFunction()) { mergeFunction(other.getFunction()); } @@ -533,7 +589,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.functions.v2beta.UpdateFunctionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.functions.v2beta.UpdateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -545,39 +602,58 @@ public Builder mergeFrom( private com.google.cloud.functions.v2beta.Function function_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder> functionBuilder_; + com.google.cloud.functions.v2beta.Function, + com.google.cloud.functions.v2beta.Function.Builder, + com.google.cloud.functions.v2beta.FunctionOrBuilder> + functionBuilder_; /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ public boolean hasFunction() { return functionBuilder_ != null || function_ != null; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ public com.google.cloud.functions.v2beta.Function getFunction() { if (functionBuilder_ == null) { - return function_ == null ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() + : function_; } else { return functionBuilder_.getMessage(); } } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFunction(com.google.cloud.functions.v2beta.Function value) { if (functionBuilder_ == null) { @@ -593,14 +669,17 @@ public Builder setFunction(com.google.cloud.functions.v2beta.Function value) { return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setFunction( - com.google.cloud.functions.v2beta.Function.Builder builderForValue) { + public Builder setFunction(com.google.cloud.functions.v2beta.Function.Builder builderForValue) { if (functionBuilder_ == null) { function_ = builderForValue.build(); onChanged(); @@ -611,17 +690,23 @@ public Builder setFunction( return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFunction(com.google.cloud.functions.v2beta.Function value) { if (functionBuilder_ == null) { if (function_ != null) { function_ = - com.google.cloud.functions.v2beta.Function.newBuilder(function_).mergeFrom(value).buildPartial(); + com.google.cloud.functions.v2beta.Function.newBuilder(function_) + .mergeFrom(value) + .buildPartial(); } else { function_ = value; } @@ -633,11 +718,15 @@ public Builder mergeFunction(com.google.cloud.functions.v2beta.Function value) { return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFunction() { if (functionBuilder_ == null) { @@ -651,48 +740,64 @@ public Builder clearFunction() { return this; } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v2beta.Function.Builder getFunctionBuilder() { - + onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { - return function_ == null ? - com.google.cloud.functions.v2beta.Function.getDefaultInstance() : function_; + return function_ == null + ? com.google.cloud.functions.v2beta.Function.getDefaultInstance() + : function_; } } /** + * + * *
                                    * Required. New version of the function.
                                    * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder> + com.google.cloud.functions.v2beta.Function, + com.google.cloud.functions.v2beta.Function.Builder, + com.google.cloud.functions.v2beta.FunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { - functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.functions.v2beta.Function, com.google.cloud.functions.v2beta.Function.Builder, com.google.cloud.functions.v2beta.FunctionOrBuilder>( - getFunction(), - getParentForChildren(), - isClean()); + functionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.functions.v2beta.Function, + com.google.cloud.functions.v2beta.Function.Builder, + com.google.cloud.functions.v2beta.FunctionOrBuilder>( + getFunction(), getParentForChildren(), isClean()); function_ = null; } return functionBuilder_; @@ -700,8 +805,13 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -709,12 +819,15 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder(
                                    * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -722,16 +835,21 @@ public boolean hasUpdateMask() {
                                    * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -754,6 +872,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -762,8 +882,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                                    *
                                    * .google.protobuf.FieldMask update_mask = 2;
                                    */
                              -    public Builder setUpdateMask(
                              -        com.google.protobuf.FieldMask.Builder builderForValue) {
                              +    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
                                     if (updateMaskBuilder_ == null) {
                                       updateMask_ = builderForValue.build();
                                       onChanged();
                              @@ -774,6 +893,8 @@ public Builder setUpdateMask(
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -786,7 +907,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                                     if (updateMaskBuilder_ == null) {
                                       if (updateMask_ != null) {
                                         updateMask_ =
                              -            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
                              +              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
                                       } else {
                                         updateMask_ = value;
                                       }
                              @@ -798,6 +919,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -818,6 +941,8 @@ public Builder clearUpdateMask() {
                                     return this;
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -827,11 +952,13 @@ public Builder clearUpdateMask() {
                                    * .google.protobuf.FieldMask update_mask = 2;
                                    */
                                   public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
                              -      
                              +
                                     onChanged();
                                     return getUpdateMaskFieldBuilder().getBuilder();
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -844,11 +971,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                                     if (updateMaskBuilder_ != null) {
                                       return updateMaskBuilder_.getMessageOrBuilder();
                                     } else {
                              -        return updateMask_ == null ?
                              -            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
                              +        return updateMask_ == null
                              +            ? com.google.protobuf.FieldMask.getDefaultInstance()
                              +            : updateMask_;
                                     }
                                   }
                                   /**
                              +     *
                              +     *
                                    * 
                                    * The list of fields to be updated.
                                    * If no field mask is provided, all provided fields in the request will be
                              @@ -858,21 +988,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                                    * .google.protobuf.FieldMask update_mask = 2;
                                    */
                                   private com.google.protobuf.SingleFieldBuilderV3<
                              -        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
                              +            com.google.protobuf.FieldMask,
                              +            com.google.protobuf.FieldMask.Builder,
                              +            com.google.protobuf.FieldMaskOrBuilder>
                                       getUpdateMaskFieldBuilder() {
                                     if (updateMaskBuilder_ == null) {
                              -        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
                              -            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
                              -                getUpdateMask(),
                              -                getParentForChildren(),
                              -                isClean());
                              +        updateMaskBuilder_ =
                              +            new com.google.protobuf.SingleFieldBuilderV3<
                              +                com.google.protobuf.FieldMask,
                              +                com.google.protobuf.FieldMask.Builder,
                              +                com.google.protobuf.FieldMaskOrBuilder>(
                              +                getUpdateMask(), getParentForChildren(), isClean());
                                       updateMask_ = null;
                                     }
                                     return updateMaskBuilder_;
                                   }
                              +
                                   @java.lang.Override
                              -    public final Builder setUnknownFields(
                              -        final com.google.protobuf.UnknownFieldSet unknownFields) {
                              +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                                     return super.setUnknownFields(unknownFields);
                                   }
                               
                              @@ -882,12 +1015,12 @@ public final Builder mergeUnknownFields(
                                     return super.mergeUnknownFields(unknownFields);
                                   }
                               
                              -
                                   // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.UpdateFunctionRequest)
                                 }
                               
                                 // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.UpdateFunctionRequest)
                                 private static final com.google.cloud.functions.v2beta.UpdateFunctionRequest DEFAULT_INSTANCE;
                              +
                                 static {
                                   DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.UpdateFunctionRequest();
                                 }
                              @@ -896,16 +1029,16 @@ public static com.google.cloud.functions.v2beta.UpdateFunctionRequest getDefault
                                   return DEFAULT_INSTANCE;
                                 }
                               
                              -  private static final com.google.protobuf.Parser
                              -      PARSER = new com.google.protobuf.AbstractParser() {
                              -    @java.lang.Override
                              -    public UpdateFunctionRequest parsePartialFrom(
                              -        com.google.protobuf.CodedInputStream input,
                              -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              -        throws com.google.protobuf.InvalidProtocolBufferException {
                              -      return new UpdateFunctionRequest(input, extensionRegistry);
                              -    }
                              -  };
                              +  private static final com.google.protobuf.Parser PARSER =
                              +      new com.google.protobuf.AbstractParser() {
                              +        @java.lang.Override
                              +        public UpdateFunctionRequest parsePartialFrom(
                              +            com.google.protobuf.CodedInputStream input,
                              +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              +            throws com.google.protobuf.InvalidProtocolBufferException {
                              +          return new UpdateFunctionRequest(input, extensionRegistry);
                              +        }
                              +      };
                               
                                 public static com.google.protobuf.Parser parser() {
                                   return PARSER;
                              @@ -920,6 +1053,4 @@ public com.google.protobuf.Parser getParserForType() {
                                 public com.google.cloud.functions.v2beta.UpdateFunctionRequest getDefaultInstanceForType() {
                                   return DEFAULT_INSTANCE;
                                 }
                              -
                               }
                              -
                              diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java
                              similarity index 60%
                              rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java
                              rename to proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java
                              index 5b23cdc4..e8f2bac4 100644
                              --- a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java
                              +++ b/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequestOrBuilder.java
                              @@ -1,40 +1,72 @@
                              +/*
                              + * 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 UpdateFunctionRequestOrBuilder extends
                              +public interface UpdateFunctionRequestOrBuilder
                              +    extends
                                   // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.UpdateFunctionRequest)
                                   com.google.protobuf.MessageOrBuilder {
                               
                                 /**
                              +   *
                              +   *
                                  * 
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the function field is set. */ boolean hasFunction(); /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The function. */ com.google.cloud.functions.v2beta.Function getFunction(); /** + * + * *
                                  * Required. New version of the function.
                                  * 
                              * - * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.functions.v2beta.Function function = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder(); /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -42,10 +74,13 @@ public interface UpdateFunctionRequestOrBuilder extends
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              @@ -53,10 +88,13 @@ public interface UpdateFunctionRequestOrBuilder extends
                                  * 
                              * * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
                                  * The list of fields to be updated.
                                  * If no field mask is provided, all provided fields in the request will be
                              diff --git a/owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/proto/google/cloud/functions/v2beta/functions.proto b/proto-google-cloud-functions-v2beta/src/main/proto/google/cloud/functions/v2beta/functions.proto
                              similarity index 100%
                              rename from owl-bot-staging/v2beta/proto-google-cloud-functions-v2beta/src/main/proto/google/cloud/functions/v2beta/functions.proto
                              rename to proto-google-cloud-functions-v2beta/src/main/proto/google/cloud/functions/v2beta/functions.proto
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/AsyncCallFunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/AsyncCallFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/AsyncCallFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/AsyncCallFunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionCloudfunctionnameString.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionCloudfunctionnameString.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionCloudfunctionnameString.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionCloudfunctionnameString.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionStringString.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionStringString.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionStringString.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/callfunction/SyncCallFunctionStringString.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider1.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider1.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetCredentialsProvider1.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetEndpoint.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetEndpoint.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/create/SyncCreateSetEndpoint.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunctionLRO.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunctionLRO.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunctionLRO.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/AsyncCreateFunctionLRO.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionLocationnameCloudfunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionLocationnameCloudfunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionLocationnameCloudfunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionLocationnameCloudfunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionStringCloudfunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionStringCloudfunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionStringCloudfunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/createfunction/SyncCreateFunctionStringCloudfunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunctionLRO.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunctionLRO.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunctionLRO.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/AsyncDeleteFunctionLRO.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionCloudfunctionname.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionCloudfunctionname.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionCloudfunctionname.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionCloudfunctionname.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionString.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionString.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionString.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/deletefunction/SyncDeleteFunctionString.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/SyncGenerateUploadUrl.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/SyncGenerateUploadUrl.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/SyncGenerateUploadUrl.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/generateuploadurl/SyncGenerateUploadUrl.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/AsyncGetFunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/AsyncGetFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/AsyncGetFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/AsyncGetFunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionCloudfunctionname.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionCloudfunctionname.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionCloudfunctionname.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionCloudfunctionname.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionString.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionString.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionString.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getfunction/SyncGetFunctionString.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/AsyncGetIamPolicy.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/AsyncGetIamPolicy.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/AsyncGetIamPolicy.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/SyncGetIamPolicy.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/SyncGetIamPolicy.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/getiampolicy/SyncGetIamPolicy.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctions.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctions.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctions.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctions.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctionsPaged.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctionsPaged.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctionsPaged.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/AsyncListFunctionsPaged.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/SyncListFunctions.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/SyncListFunctions.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/SyncListFunctions.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/listfunctions/SyncListFunctions.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/AsyncSetIamPolicy.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/AsyncSetIamPolicy.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/AsyncSetIamPolicy.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/SyncSetIamPolicy.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/SyncSetIamPolicy.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/setiampolicy/SyncSetIamPolicy.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/AsyncTestIamPermissions.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/AsyncTestIamPermissions.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/AsyncTestIamPermissions.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/SyncTestIamPermissions.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/SyncTestIamPermissions.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/testiampermissions/SyncTestIamPermissions.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunctionLRO.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunctionLRO.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunctionLRO.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/AsyncUpdateFunctionLRO.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunctionCloudfunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunctionCloudfunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunctionCloudfunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsserviceclient/updatefunction/SyncUpdateFunctionCloudfunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservicesettings/getfunction/SyncGetFunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservicesettings/getfunction/SyncGetFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservicesettings/getfunction/SyncGetFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/cloudfunctionsservicesettings/getfunction/SyncGetFunction.java
                              diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/stub/cloudfunctionsservicestubsettings/getfunction/SyncGetFunction.java b/samples/snippets/generated/com/google/cloud/functions/v1/stub/cloudfunctionsservicestubsettings/getfunction/SyncGetFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/functions/v1/stub/cloudfunctionsservicestubsettings/getfunction/SyncGetFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v1/stub/cloudfunctionsservicestubsettings/getfunction/SyncGetFunction.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider1.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider1.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetCredentialsProvider1.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetEndpoint.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetEndpoint.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/create/SyncCreateSetEndpoint.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunction.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunction.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunctionLRO.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunctionLRO.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunctionLRO.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/AsyncCreateFunctionLRO.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunction.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunction.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionLocationnameFunctionString.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionLocationnameFunctionString.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionLocationnameFunctionString.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionLocationnameFunctionString.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionStringFunctionString.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionStringFunctionString.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionStringFunctionString.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/createfunction/SyncCreateFunctionStringFunctionString.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunction.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunction.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunctionLRO.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunctionLRO.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunctionLRO.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/AsyncDeleteFunctionLRO.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunction.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunction.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionFunctionname.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionFunctionname.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionFunctionname.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionFunctionname.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionString.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionString.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionString.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/deletefunction/SyncDeleteFunctionString.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/AsyncGenerateDownloadUrl.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generatedownloadurl/SyncGenerateDownloadUrl.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/AsyncGenerateUploadUrl.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/SyncGenerateUploadUrl.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/SyncGenerateUploadUrl.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/SyncGenerateUploadUrl.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/generateuploadurl/SyncGenerateUploadUrl.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/AsyncGetFunction.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/AsyncGetFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/AsyncGetFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/AsyncGetFunction.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunction.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunction.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionFunctionname.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionFunctionname.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionFunctionname.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionFunctionname.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionString.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionString.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionString.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getfunction/SyncGetFunctionString.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/AsyncGetIamPolicy.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/AsyncGetIamPolicy.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/AsyncGetIamPolicy.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/SyncGetIamPolicy.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/SyncGetIamPolicy.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/getiampolicy/SyncGetIamPolicy.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctions.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctions.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctions.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctions.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctionsPaged.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctionsPaged.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctionsPaged.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/AsyncListFunctionsPaged.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctions.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctions.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctions.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctions.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsLocationname.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsLocationname.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsLocationname.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsLocationname.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsString.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsString.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsString.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listfunctions/SyncListFunctionsString.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocations.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocations.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocations.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocations.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocationsPaged.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocationsPaged.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocationsPaged.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/AsyncListLocationsPaged.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/SyncListLocations.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/SyncListLocations.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/SyncListLocations.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listlocations/SyncListLocations.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/AsyncListRuntimes.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/AsyncListRuntimes.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/AsyncListRuntimes.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/AsyncListRuntimes.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimes.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimes.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimes.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimes.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesLocationname.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesLocationname.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesLocationname.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesLocationname.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesString.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesString.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesString.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/listruntimes/SyncListRuntimesString.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/AsyncSetIamPolicy.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/AsyncSetIamPolicy.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/AsyncSetIamPolicy.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/SyncSetIamPolicy.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/SyncSetIamPolicy.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/setiampolicy/SyncSetIamPolicy.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/AsyncTestIamPermissions.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/AsyncTestIamPermissions.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/AsyncTestIamPermissions.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/SyncTestIamPermissions.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/SyncTestIamPermissions.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/testiampermissions/SyncTestIamPermissions.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunction.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunction.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunctionLRO.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunctionLRO.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunctionLRO.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/AsyncUpdateFunctionLRO.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunction.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunction.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunctionFunctionFieldmask.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunctionFunctionFieldmask.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunctionFunctionFieldmask.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionserviceclient/updatefunction/SyncUpdateFunctionFunctionFieldmask.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionservicesettings/getfunction/SyncGetFunction.java b/samples/snippets/generated/com/google/cloud/functions/v2/functionservicesettings/getfunction/SyncGetFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/functionservicesettings/getfunction/SyncGetFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/functionservicesettings/getfunction/SyncGetFunction.java
                              diff --git a/owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/stub/functionservicestubsettings/getfunction/SyncGetFunction.java b/samples/snippets/generated/com/google/cloud/functions/v2/stub/functionservicestubsettings/getfunction/SyncGetFunction.java
                              similarity index 100%
                              rename from owl-bot-staging/v2/samples/snippets/generated/com/google/cloud/functions/v2/stub/functionservicestubsettings/getfunction/SyncGetFunction.java
                              rename to samples/snippets/generated/com/google/cloud/functions/v2/stub/functionservicestubsettings/getfunction/SyncGetFunction.java
                              diff --git a/versions.txt b/versions.txt
                              index b0211d99..a0c3f51f 100644
                              --- a/versions.txt
                              +++ b/versions.txt
                              @@ -8,3 +8,5 @@ proto-google-cloud-functions-v2beta:2.4.3:2.4.3
                               proto-google-cloud-functions-v2alpha:2.4.3:2.4.3
                               grpc-google-cloud-functions-v2beta:2.4.3:2.4.3
                               grpc-google-cloud-functions-v2alpha:2.4.3:2.4.3
                              +proto-google-cloud-functions-v2:2.4.3:2.4.3
                              +grpc-google-cloud-functions-v2:2.4.3:2.4.3
                              
                              From ef5202a9f41ecdbc6fee4b15f0093f58402b87ba Mon Sep 17 00:00:00 2001
                              From: Lawrence Qiu 
                              Date: Mon, 18 Jul 2022 20:54:46 +0000
                              Subject: [PATCH 3/3] fix: Fix dependency issue
                              
                              ---
                               proto-google-cloud-functions-v2/pom.xml | 4 ----
                               1 file changed, 4 deletions(-)
                              
                              diff --git a/proto-google-cloud-functions-v2/pom.xml b/proto-google-cloud-functions-v2/pom.xml
                              index 20ace5d7..b2f5505e 100644
                              --- a/proto-google-cloud-functions-v2/pom.xml
                              +++ b/proto-google-cloud-functions-v2/pom.xml
                              @@ -21,10 +21,6 @@
                                     com.google.api.grpc
                                     proto-google-common-protos
                                   
                              -    
                              -      com.google.api.grpc
                              -      proto-google-iam-v1
                              -    
                                   
                                     com.google.api
                                     api-common